Blog: styles
This commit is contained in:
parent
c40e2474b7
commit
dbd6c2ea92
3 changed files with 28 additions and 12 deletions
|
|
@ -106,7 +106,7 @@
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<style>
|
<style lang="scss">
|
||||||
.posts {
|
.posts {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -115,6 +115,10 @@
|
||||||
grid-template-columns: 100%;
|
grid-template-columns: 100%;
|
||||||
gap: var(--spacing-base);
|
gap: var(--spacing-base);
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post {
|
.post {
|
||||||
|
|
@ -127,6 +131,10 @@
|
||||||
|
|
||||||
.post:hover {
|
.post:hover {
|
||||||
color: var(--brand-orange);
|
color: var(--brand-orange);
|
||||||
|
background-color: white;
|
||||||
|
border: 1px solid var(--brand-orange);
|
||||||
|
scale: 1.02;
|
||||||
|
box-shadow: 10px 10px 10px 10px var(--gray-200);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post a {
|
.post a {
|
||||||
|
|
@ -138,7 +146,8 @@
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
font-family: var(--font-family-title);
|
font-family: var(--font-family-title);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding-bottom: 8px;
|
padding-bottom: 4px;
|
||||||
|
font-size: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-date {
|
.post-date {
|
||||||
|
|
@ -146,9 +155,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-preview {
|
.post-preview {
|
||||||
font-size: 0.9rem;
|
font-size: 0.95rem;
|
||||||
line-height: 120%;
|
line-height: 140%;
|
||||||
color: var(--gray-600);
|
color: var(--gray-600);
|
||||||
|
padding-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.days-since {
|
.days-since {
|
||||||
|
|
|
||||||
|
|
@ -49,12 +49,12 @@
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<style lang="scss" global>
|
<style lang="scss">
|
||||||
header {
|
header {
|
||||||
padding-top: 24px;
|
padding-top: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#article {
|
:global(#article) {
|
||||||
max-width: 95%;
|
max-width: 95%;
|
||||||
width: 65ch;
|
width: 65ch;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,11 @@
|
||||||
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
||||||
--font-family-serif: Georgia, Cambria, 'Times New Roman', Times, serif;
|
--font-family-serif: Georgia, Cambria, 'Times New Roman', Times, serif;
|
||||||
|
|
||||||
|
--line-height: 120%;
|
||||||
|
--line-height-sm: 120%;
|
||||||
|
--line-height-md: 138%;
|
||||||
|
--line-height-lg: 145%;
|
||||||
|
|
||||||
--font-size-base: 1rem;
|
--font-size-base: 1rem;
|
||||||
--spacing-base: 1rem;
|
--spacing-base: 1rem;
|
||||||
--spacing-sm: 0.25rem;
|
--spacing-sm: 0.25rem;
|
||||||
|
|
@ -35,6 +40,7 @@
|
||||||
--navbar-height: 75px;
|
--navbar-height: 75px;
|
||||||
|
|
||||||
--font-size-sm: 0.875rem;
|
--font-size-sm: 0.875rem;
|
||||||
|
--font-size: 1.08rem;
|
||||||
--font-size-md: 1.25rem;
|
--font-size-md: 1.25rem;
|
||||||
--font-size-lg: 1.5rem;
|
--font-size-lg: 1.5rem;
|
||||||
|
|
||||||
|
|
@ -48,7 +54,7 @@
|
||||||
body {
|
body {
|
||||||
font-family: var(--font-family-sans);
|
font-family: var(--font-family-sans);
|
||||||
color: var(--gray-900);
|
color: var(--gray-900);
|
||||||
line-height: 130%;
|
line-height: var(--line-height-md);
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -68,7 +74,7 @@ body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 750px;
|
max-width: 750px;
|
||||||
font-size: 1.19rem;
|
font-size: 1.19rem;
|
||||||
line-height: 134%;
|
line-height: var(--line-height-md);
|
||||||
padding-bottom: var(--spacing-base);
|
padding-bottom: var(--spacing-base);
|
||||||
color: var(--gray-700);
|
color: var(--gray-700);
|
||||||
padding-bottom: 2rem;
|
padding-bottom: 2rem;
|
||||||
|
|
@ -84,7 +90,7 @@ body {
|
||||||
|
|
||||||
.thomaswilson-strapline p {
|
.thomaswilson-strapline p {
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
line-height: 131%;
|
line-height: var(--line-height-md);
|
||||||
letter-spacing: -0.25px;
|
letter-spacing: -0.25px;
|
||||||
font-weight: 250;
|
font-weight: 250;
|
||||||
}
|
}
|
||||||
|
|
@ -102,14 +108,14 @@ h6 {
|
||||||
color: var(--gray-800);
|
color: var(--gray-800);
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
line-height: 120%;
|
line-height: var(--line-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
p,
|
p,
|
||||||
li,
|
li,
|
||||||
a {
|
a {
|
||||||
font-size: 1.08rem;
|
font-size: var(--font-size);
|
||||||
line-height: 143%;
|
line-height: var(--line-height-lg);
|
||||||
font-family: var(--font-family-sans);
|
font-family: var(--font-family-sans);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--gray-800);
|
color: var(--gray-800);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue