Update design
This commit is contained in:
160
static/css/styles.css
Executable file
160
static/css/styles.css
Executable file
@@ -0,0 +1,160 @@
|
||||
/* theming */
|
||||
:root {
|
||||
--text: #ededed;
|
||||
--background: #1f2124;
|
||||
}
|
||||
|
||||
:root {
|
||||
--headings: var(--text);
|
||||
--link: var(--highlight);
|
||||
--border: #b5b5b5;
|
||||
--line: #ffffff;
|
||||
--link: #cc99ff;
|
||||
--link-hover: #ffffff;
|
||||
}
|
||||
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
background-color: var(--background);
|
||||
color: var(--text);
|
||||
font-family: Helvetica, Arial, sans-serif, "Apple Color Emoji",
|
||||
"Segoe UI Emoji", "Segoe UI Symbol";
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
line-height: 1.6;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 100%;
|
||||
} /* 16px */
|
||||
|
||||
html {
|
||||
font-size: 100%;
|
||||
} /* 16px */
|
||||
|
||||
h1 {
|
||||
font-size: 1.99rem; /* 31.84px */
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.658rem; /* 26.56px */
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.382rem; /* 22.08px */
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.152rem; /* 18.4px */
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 0.96rem; /* 15.36px */
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 0.667rem; /* 10.72px */
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: var(--line);
|
||||
}
|
||||
|
||||
/* layout */
|
||||
body {
|
||||
background-color: var(--background);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {
|
||||
color: var(--headings);
|
||||
line-height: 1.2;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 8px;
|
||||
|
||||
color: var(--headings);
|
||||
font-weight: bold;
|
||||
line-height: 1.2;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
header {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--link);
|
||||
transition: color 0.1s linear;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--link-hover);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.container {
|
||||
width: 540px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
width: 720px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.container {
|
||||
width: 960px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.container {
|
||||
width: 1140px;
|
||||
}
|
||||
}
|
||||
|
||||
.link {
|
||||
text-decoration: none;
|
||||
transition: color 0.1s linear;
|
||||
padding: 4px 12px;
|
||||
}
|
||||
|
||||
.link:hover {
|
||||
border-bottom: 2px solid var(--line);
|
||||
}
|
||||
|
||||
main {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
section {
|
||||
border-radius: 5px;
|
||||
padding: 5px 20px;
|
||||
}
|
||||
Reference in New Issue
Block a user