Add responsive and lazy image loading
This commit is contained in:
34
src/lib/styles/base.css
Normal file
34
src/lib/styles/base.css
Normal file
@ -0,0 +1,34 @@
|
||||
:root {
|
||||
--main-text-color: #1a1a1a;
|
||||
--main-bg-color: #fff;
|
||||
}
|
||||
|
||||
@media screen and (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--main-text-color: #e7e7e7;
|
||||
--main-bg-color: #1a1a1a;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
box-sizing: border-box;
|
||||
font-size: 1em;
|
||||
font-family: 'Roboto', 'Open Sans', sans-serif;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
.container,
|
||||
.footer {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
background-color: var(--main-bg-color);
|
||||
color: var(--main-text-color);
|
||||
}
|
||||
Reference in New Issue
Block a user