news-reader-php/public/css/style.css

62 lines
1.7 KiB
CSS

:root {
--color-background: #2E3436;
--color-foreground: #D3D7CF;
--color-blue-light: #9CD9F0;
--color-blue-dark: #72B3CC;
--color-black-light: #5D5D5D;
--color-black-dark: #000000;
--color-white-light: #F7F7F7;
--color-white-dark: #B0B0B0;
--spacing-elements: 1rem;
--width-border-default: 0.2rem;
--width-sidebar-max: 15rem;
--font-family-default: "DejaVu Sans Mono", "Menlo", "Consolas", monospace;
--font-family-headlines: "Montserrat", "Avenir", "Roboto", sans-serif; }
body {
font-family: var(--font-family-default);
background: --color-background;
color: --color-foreground;
margin: 0;
padding: 0; }
h1 {
color: var(--color-blue-dark);
font-family: var(--font-family-headlines);
font-weight: 300;
letter-spacing: .14em;
word-spacing: .3em; }
a {
color: var(--color-wihte-light);
text-decoration: underline; }
a:active, a:visited {
color: var(--color-wihte-light); }
a:hover {
color: var(--color-black-dark);
background: var(--color-blue-light); }
body > header {
padding: var(--spacing-elements);
border-bottom: var(--color-blue-light) solid var(--width-border-default); }
body > header h1 {
margin: 0; }
body > main > nav {
border-right: var(--color-blue-light) solid var(--width-border-default); }
body > main > nav a {
display: block;
padding: var(--spacing-elements); }
body > main > section {
padding: var(--spacing-elements); }
body > main > section header h1 {
margin: 0; }
body > footer {
padding: var(--spacing-elements);
border-top: var(--color-blue-light) solid var(--width-border-default); }
body > main {
display: grid;
grid-template-columns: var(--width-sidebar-max) calc(100% - var(--width-sidebar-max)); }