css variables cleanup
This commit is contained in:
1 parent
1e3ceb5017
commit
58739a6b32
5 files changed
+39
-66
No files matched your search
@@ -11,7 +11,7 @@ export interface IFooterProps {
|
|||||||
export const Footer: React.FC<IFooterProps> = props => (
|
export const Footer: React.FC<IFooterProps> = props => (
|
||||||
<footer className={'opposite'}>
|
<footer className={'opposite'}>
|
||||||
<Block direction={'vertical'} style={{
|
<Block direction={'vertical'} style={{
|
||||||
marginBottom: 'var(--single-margin)',
|
marginBottom: 'var(--size-m)',
|
||||||
}}>
|
}}>
|
||||||
<Contacts />
|
<Contacts />
|
||||||
</Block>
|
</Block>
|
||||||
|
|||||||
+31
-26
@@ -5,22 +5,6 @@
|
|||||||
--title-font: Shadow, Georgia, serif;
|
--title-font: Shadow, Georgia, serif;
|
||||||
--text-font: 'PT Sans', Helvetica, sans-serif;
|
--text-font: 'PT Sans', Helvetica, sans-serif;
|
||||||
|
|
||||||
--smaller-font-size: 0.9rem;
|
|
||||||
|
|
||||||
/* MENU */
|
|
||||||
--menu-mark-thickness: 4px;
|
|
||||||
|
|
||||||
/* SIZE */
|
|
||||||
--mobile-width: 31.25em;
|
|
||||||
|
|
||||||
/* CONTENT */
|
|
||||||
--content-width: 60%;
|
|
||||||
--content-margin: 0;
|
|
||||||
--content-wide-width: 100%;
|
|
||||||
--content-wide-margin: var(--size-l) var(--size-xl);
|
|
||||||
|
|
||||||
--embed-video-ratio: 56.25%;
|
|
||||||
|
|
||||||
/* FONTS */
|
/* FONTS */
|
||||||
--font-size-default: 14pt;
|
--font-size-default: 14pt;
|
||||||
--font-size-accent: 24pt;
|
--font-size-accent: 24pt;
|
||||||
@@ -56,14 +40,16 @@
|
|||||||
--shadow: 0 0 8px var(--color-shadow);
|
--shadow: 0 0 8px var(--color-shadow);
|
||||||
--shadow-active: 0 4px 16px var(--color-shadow);
|
--shadow-active: 0 4px 16px var(--color-shadow);
|
||||||
|
|
||||||
/* MARGINS */
|
/* SPECIAL */
|
||||||
--single-margin: 1em;
|
|
||||||
|
|
||||||
/* OTHER */
|
|
||||||
--block-border-radius: 3px;
|
|
||||||
|
|
||||||
/* ARTICLE */
|
|
||||||
--article-line-height: 1.5em;
|
--article-line-height: 1.5em;
|
||||||
|
--menu-mark-thickness: 4px;
|
||||||
|
--embed-video-ratio: 56.25%;
|
||||||
|
|
||||||
|
/* CONTENT */
|
||||||
|
--content-width: 60%;
|
||||||
|
--content-margin: 0;
|
||||||
|
--content-wide-width: 100%;
|
||||||
|
--content-wide-margin: var(--size-l) var(--size-xl);
|
||||||
|
|
||||||
/* KAZIMIR */
|
/* KAZIMIR */
|
||||||
--kazimir-caption-margin: 0px;
|
--kazimir-caption-margin: 0px;
|
||||||
@@ -89,7 +75,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
padding: var(--single-margin);
|
padding: var(--size-m);
|
||||||
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(--font-size-second);
|
font-size: var(--font-size-second);
|
||||||
@@ -103,14 +89,14 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin: var(--single-margin) 0;
|
margin: var(--size-m) 0;
|
||||||
font-size: var(--font-size-h2);
|
font-size: var(--font-size-h2);
|
||||||
|
|
||||||
hyphens: none;
|
hyphens: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin: var(--single-margin) 0;
|
margin: var(--size-m) 0;
|
||||||
|
|
||||||
font-size: var(--font-size-h3);
|
font-size: var(--font-size-h3);
|
||||||
|
|
||||||
@@ -169,3 +155,22 @@ a.invisible {
|
|||||||
--kazimir-image-increase: 0px;
|
--kazimir-image-increase: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* DARK THEME */
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
/* TEXT COLOR */
|
||||||
|
--color-text: #cbd0d3;
|
||||||
|
--color-text-second: #bbc2c6;
|
||||||
|
--color-text-opposite: #2c363c;
|
||||||
|
|
||||||
|
--color-back-main: #1a1f22;
|
||||||
|
--color-back: #2c363c;
|
||||||
|
--color-back-opposite: #bbc2c6;
|
||||||
|
--color-link: #666;
|
||||||
|
--color-link-opposite: #8f9aa0;
|
||||||
|
|
||||||
|
--shadow: none;
|
||||||
|
--shadow-active: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
+2
-18
@@ -8,14 +8,14 @@
|
|||||||
|
|
||||||
.article ul {
|
.article ul {
|
||||||
margin-left: var(--size-s);
|
margin-left: var(--size-s);
|
||||||
margin-bottom: var(--single-margin);
|
margin-bottom: var(--size-m);
|
||||||
|
|
||||||
list-style: disc;
|
list-style: disc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.article ol {
|
.article ol {
|
||||||
margin-left: var(--size-s);
|
margin-left: var(--size-s);
|
||||||
margin-bottom: var(--single-margin);
|
margin-bottom: var(--size-m);
|
||||||
}
|
}
|
||||||
|
|
||||||
.article li {
|
.article li {
|
||||||
@@ -54,20 +54,4 @@
|
|||||||
.article blockquote {
|
.article blockquote {
|
||||||
padding: 0
|
padding: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .article {
|
|
||||||
--text-margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.article img {
|
|
||||||
max-height: 20em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.article ul {
|
|
||||||
margin-left: var(--single-margin);
|
|
||||||
}
|
|
||||||
|
|
||||||
.article ol {
|
|
||||||
margin-left: var(--single-margin);
|
|
||||||
} */
|
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: var(--single-margin);
|
margin-bottom: var(--size-m);
|
||||||
}
|
}
|
||||||
|
|
||||||
.document-row__image{
|
.document-row__image{
|
||||||
@@ -30,23 +30,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.document-row__file {
|
.document-row__file {
|
||||||
margin-left: var(--single-margin);
|
margin-left: var(--size-m);
|
||||||
flex-grow: 10;
|
flex-grow: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.document-row__file-info {
|
.document-row__file-info {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
font-size: var(--smaller-font-size);
|
font-size: var(--font-size-second);
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: var(--mobile-width)) {
|
|
||||||
.document-row__file {
|
|
||||||
margin-left: var(--size-s);
|
|
||||||
}
|
|
||||||
|
|
||||||
.document-row__file-info {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
//width: 20em;
|
//width: 20em;
|
||||||
//height: 20em;
|
//height: 20em;
|
||||||
|
|
||||||
margin-bottom: var(--single-margin);
|
margin-bottom: var(--size-m);
|
||||||
|
|
||||||
//display: flex;
|
//display: flex;
|
||||||
//justify-content: center;
|
//justify-content: center;
|
||||||
@@ -37,11 +37,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.document__file-info {
|
.document__file-info {
|
||||||
font-size: var(--smaller-font-size);
|
font-size: var(--font-size-second);
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: var(--mobile-width)) {
|
|
||||||
.document {
|
|
||||||
margin: 0 var(--single-margin) var(--single-margin);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user