fix magins, add svg for web, fix pre, fix pagination margins, fix img on safari

feature/oscar-theme
Segundo Fdez 2022-03-10 12:19:27 +01:00
parent 947b270959
commit 0bdbb3c70f
7 changed files with 173 additions and 62 deletions

View File

@ -1,5 +1,6 @@
# TODO
- [ ] Emphasize <code>
- [ ] Take a look to the li margin-bottom
- [X] Take a look to the li margin-bottom
- [ ] About, social section, maybe something similar to the index page could fit better
- [ ] Review <link rel="stylesheet" href="{{ "css/fonts.css" | relURL }}"> in metas.html. It´s necessary?

File diff suppressed because one or more lines are too long

View File

@ -542,13 +542,16 @@ i, em {
}
.hero .hero-img img {
width: 100%;
aspect-ratio: 1;
border-radius: 50%;
mix-blend-mode: overlay;
}
.post .social,
.social {
margin-top: var(--spacing-7);
margin-bottom: calc(var(--spacing-8) * 2);
}
.social ul {
.post .social ul, .social ul {
list-style-type: none;
padding: 0;
margin: 0;
@ -556,10 +559,10 @@ i, em {
flex-wrap: wrap;
gap: var(--spacing-3);
}
.social ul li {
.post .social ul li, .social ul li {
flex-shrink: 0;
}
.social span {
.post .social span, .social span {
/* position:absolute;
left:-10000px;
top:auto;
@ -572,22 +575,21 @@ i, em {
width: min-content;
margin-inline: auto;
}
.social a {
.post .social a, .social a {
display: block;
text-align: center;
}
.social a:hover svg > * {
.post .social a:hover svg > *, .social a:hover svg > * {
fill: var(--color-main);
stroke: var(--color-main);
stroke-width: 1px;
}
.social svg {
.post .social svg, .social svg {
vertical-align: middle;
transition: all ease-in-out 250ms;
vertical-align: middle;
margin: 0 auto;
}
.social svg > * {
.post .social svg > *, .social svg > * {
fill: none;
stroke: var(--color-link);
stroke-width: 1px;
@ -643,9 +645,11 @@ i, em {
}
.post-detail pre {
overflow-x: scroll;
border: 1px solid var(--color-main-medium);
/* border: 1px solid var(--color-main-medium); */
/* box-shadow: 3px 3px 15px 5px rgba(0, 0, 0, 0.3); */
padding: var(--spacing-3);
border-radius: 4px;
background-color: red;
}
.post-detail ul {
padding-left: 1rem;
@ -660,24 +664,27 @@ i, em {
font-size: clamp(var(--font-size-3), 2.5vw, var(--font-size-4));
margin-bottom: 0;
}
.post-detail p, .post-detail li {
.post-detail p{
margin-bottom: var(--spacing-3);
}
.post-detail li {
margin-bottom: var(--spacing-1);
}
/* Archive */
.post h2 {
font: var(--font-heading);
margin: 0;
display: flex;
aling-items: center;
align-items: center;
border-bottom: 1px solid var(--color-main-dark);
padding-bottom: var(--spacing-1);
}
.post h2 span {
font: var(--font-heading);
font: var(--font-body);
color: var(--color-main-medium);
vertical-align: middle;
}
.post h2 span:first-child {
font: var(--font-heading);
margin-right: var(--spacing-2);
color: var(--color-main);
}
@ -698,7 +705,7 @@ i, em {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--spacing-3);
gap: 0 var(--spacing-3);
}
.pagination a {
font: var(--font-heading);

View File

@ -60,11 +60,13 @@
overflow: hidden;
img {
width: 100%;
aspect-ratio: 1;
border-radius: 50%;
mix-blend-mode: overlay;
}
}
}
.post .social,
.social {
margin-top: var(--spacing-7);
margin-bottom: calc(var(--spacing-8) * 2);

View File

@ -5,7 +5,7 @@
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--spacing-3);
gap: 0 var(--spacing-3);
a {
font: var(--font-heading);
}

View File

@ -53,9 +53,11 @@
}
pre {
overflow-x: scroll;
border: 1px solid var(--color-main-medium);
/* border: 1px solid var(--color-main-medium); */
/* box-shadow: 3px 3px 15px 5px rgba(0, 0, 0, 0.3); */
padding: var(--spacing-3);
border-radius: 4px;
background-color: red;
}
ul {
padding-left: 1rem;
@ -70,25 +72,28 @@
font-size: clamp(var(--font-size-3), 2.5vw, var(--font-size-4));
margin-bottom: 0;
}
p, li {
p{
margin-bottom: var(--spacing-3);
}
li {
margin-bottom: var(--spacing-1);
}
}
/* Archive */
.post {
h2 {
font: var(--font-heading);
margin: 0;
display: flex;
aling-items: center;
align-items: center;
border-bottom: 1px solid var(--color-main-dark);
padding-bottom: var(--spacing-1);
span {
font: var(--font-heading);
font: var(--font-body);
color: var(--color-main-medium);
vertical-align: middle;
&:first-child {
font: var(--font-heading);
margin-right: var(--spacing-2);
color: var(--color-main);
}

File diff suppressed because one or more lines are too long