css variables refactoring

This commit is contained in:
tmshv committed 2020-03-04 22:49:24 +03:00
1 parent 19f2535a24
commit a4999dad9e
7 files changed
+21 -30

No files matched your search

+3 -3
View File
@@ -8,12 +8,12 @@ export const Contacts: React.FC = props => {
<> <>
<style jsx>{` <style jsx>{`
h4 { h4 {
margin-bottom: var(--half-margin); margin-bottom: var(--size-s);
} }
p { p {
margin-left: var(--single-margin); margin-left: var(--size-m);
margin-bottom: var(--half-margin); margin-bottom: var(--size-s);
} }
`}</style> `}</style>
+1 -1
View File
@@ -17,7 +17,7 @@ export const HudozkaTitle: React.FC<HudozkaTitleProps> = memo(props => (
@media (max-width: 31.25em) { @media (max-width: 31.25em) {
div { div {
--padding: 0 0 var(--double-margin); --padding: 0 0 2em;
} }
} }
`}</style> `}</style>
+3 -16
View File
@@ -14,10 +14,6 @@
/* SIZE */ /* SIZE */
--mobile-width: 31.25em; --mobile-width: 31.25em;
--desktop-width: 59.99999em;
--tablet-min-width: 31.25em;
--tablet-max-width: 64em;
/* CONTENT */ /* CONTENT */
--content-width: 60%; --content-width: 60%;
@@ -76,18 +72,13 @@
--shadow-active: 0 4px 16px var(--color-shadow); --shadow-active: 0 4px 16px var(--color-shadow);
/* MARGINS */ /* MARGINS */
--small-margin: 0.2em;
--half-margin: 0.5em;
--single-margin: 1em; --single-margin: 1em;
--double-margin: 2em;
/* OTHER */ /* OTHER */
--block-border-radius: 3px; --block-border-radius: 3px;
/* ARTICLE */ /* ARTICLE */
--article-line-height: 1.5em; --article-line-height: 1.5em;
--article-quote-padding: var(--half-margin);
--article-quote-font-size: 1.25em;
/* KAZIMIR */ /* KAZIMIR */
--kazimir-caption-margin: 0px; --kazimir-caption-margin: 0px;
@@ -115,7 +106,7 @@ footer {
padding: var(--single-margin); padding: var(--single-margin);
color: var(--color-text-opposite); color: var(--color-text-opposite);
background-color: var(--color-back-opposite); background-color: var(--color-back-opposite);
font-size: var(--smaller-font-size); font-size: var(--font-size-second);
} }
h1 { h1 {
@@ -182,8 +173,8 @@ a.invisible {
@media (max-width: 31.25em) { @media (max-width: 31.25em) {
:root { :root {
--smaller-font-size: 0.9rem; --font-size-default: 14pt;
--font-size-accent: 16pt;
--font-size-h1: 1.5rem; --font-size-h1: 1.5rem;
--font-size-h2: 1.5rem; --font-size-h2: 1.5rem;
--font-size-h3: 1.25rem; --font-size-h3: 1.25rem;
@@ -193,9 +184,5 @@ a.invisible {
--content-wide-margin: var(--size-m) var(--size-m); --content-wide-margin: var(--size-m) var(--size-m);
--kazimir-image-increase: 0px; --kazimir-image-increase: 0px;
--article-line-height: 1.5em;
--article-quote-padding: 0.5em;
--article-quote-font-size: 1em;
} }
} }
+11 -7
View File
@@ -7,19 +7,19 @@
} }
.article ul { .article ul {
margin-left: var(--half-margin); margin-left: var(--size-s);
margin-bottom: var(--single-margin); margin-bottom: var(--single-margin);
list-style: disc; list-style: disc;
} }
.article ol { .article ol {
margin-left: var(--half-margin); margin-left: var(--size-s);
margin-bottom: var(--single-margin); margin-bottom: var(--single-margin);
} }
.article li { .article li {
margin-bottom: var(--half-margin); margin-bottom: var(--size-s);
} }
.article p { .article p {
@@ -45,14 +45,18 @@
} }
.article hr { .article hr {
margin-bottom: var(--double-margin); margin-bottom: var(--size-xl);
border: none; border: none;
height: 1px; height: 1px;
background: var(--dark-color); background: var(--dark-color);
} }
@media (max-width: var(--mobile-width)) { @media (max-width: 31.25em){
.article { .article blockquote {
padding: 0
}
/* .article {
--text-margin: 0; --text-margin: 0;
} }
@@ -66,5 +70,5 @@
.article ol { .article ol {
margin-left: var(--single-margin); margin-left: var(--single-margin);
} } */
} }
+1 -1
View File
@@ -43,7 +43,7 @@
@media (max-width: var(--mobile-width)) { @media (max-width: var(--mobile-width)) {
.document-row__file { .document-row__file {
margin-left: var(--half-margin); margin-left: var(--size-s);
} }
.document-row__file-info { .document-row__file-info {
+1 -1
View File
@@ -3,7 +3,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding: 0; padding: 0;
margin-bottom: var(--double-margin); margin-bottom: var(--size-xl);
} }
.document__image{ .document__image{
+1 -1
View File
@@ -1,6 +1,6 @@
.MarkerTable { .MarkerTable {
width: 100%; width: 100%;
margin-bottom: var(--double-margin); margin-bottom: var(--size-l);
border-spacing: 0; border-spacing: 0;
border-collapse: separate; border-collapse: separate;