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

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long