some layout updates

This commit is contained in:
tmshv committed 2021-02-17 19:52:01 +03:00
1 parent aa21c21dfb
commit 8ef299f876
4 files changed
+14 -18

No files matched your search

+3 -4
View File
@@ -7,17 +7,16 @@ export const Contacts: React.FC = props => {
return ( return (
<> <>
<style jsx>{` <style jsx>{`
h4 { strong {
margin-bottom: var(--size-s); margin-bottom: var(--size-m);
} }
p { p {
margin-left: var(--size-m);
margin-bottom: var(--size-s); margin-bottom: var(--size-s);
} }
`}</style> `}</style>
<h4>Контактная информация</h4> <strong>Контактная информация</strong>
{contacts.map((x, i) => ( {contacts.map((x, i) => (
<p key={i}><a href={x.value}>{x.title}</a></p> <p key={i}><a href={x.value}>{x.title}</a></p>
+1 -1
View File
@@ -8,7 +8,7 @@ export const Date: React.FC<DateProps> = props => (
<p style={props.style}> <p style={props.style}>
<style jsx>{` <style jsx>{`
p { p {
color: var(--color-text-second); color: var(--color-text);
font-size: var(--font-size-second); font-size: var(--font-size-second);
} }
`}</style> `}</style>
+1 -1
View File
@@ -3,7 +3,7 @@
} }
.article h1 { .article h1 {
margin-bottom: var(--size-s); margin-bottom: var(--size-m);
} }
.article ul { .article ul {
+9 -12
View File
@@ -27,11 +27,11 @@
--color-shadow: rgba(27, 51, 88, 0.25); --color-shadow: rgba(27, 51, 88, 0.25);
/* SIZE */ /* SIZE */
--size-xs: 0.35em; --size-xs: 0.35rem;
--size-s: 0.75em; --size-s: 0.75rem;
--size-m: 1em; --size-m: 1.25rem;
--size-l: 2em; --size-l: 2rem;
--size-xl: 3em; --size-xl: 3rem;
/* EFFECTS */ /* EFFECTS */
--radius: 16px; --radius: 16px;
@@ -81,6 +81,7 @@ footer {
} }
h1 { h1 {
font-family: var(--title-font);
text-align: center; text-align: center;
font-size: var(--font-size-h1); font-size: var(--font-size-h1);
@@ -88,6 +89,7 @@ h1 {
} }
h2 { h2 {
font-family: var(--title-font);
margin: var(--size-m) 0; margin: var(--size-m) 0;
font-size: var(--font-size-h2); font-size: var(--font-size-h2);
@@ -102,11 +104,6 @@ h3 {
hyphens: none; hyphens: none;
} }
h1,
h2 {
font-family: var(--title-font);
}
a { a {
color: var(--color-text); color: var(--color-text);
@@ -159,8 +156,8 @@ a.invisible {
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
/* TEXT COLOR */ /* TEXT COLOR */
--color-text: hsl(240, 10%, 90%); --color-text: hsl(240, 10%, 80%);
--color-text-second: hsl(240, 10%, 90%); --color-text-second: hsl(240, 10%, 60%);
--color-text-opposite: hsl(240, 10%, 15%); --color-text-opposite: hsl(240, 10%, 15%);
--color-back-main: hsl(240, 10%, 10%); --color-back-main: hsl(240, 10%, 10%);