PCv5/app/static/css/global.css

170 lines
2.9 KiB
CSS

@font-face {
font-family: NotoSans;
src: url(../fonts/noto_sans.ttf);
font-display: swap;
}
@font-face {
font-family: Twemoji;
src: url(../fonts/TwitterColorEmoji.ttf);
font-display: swap;
}
@font-face {
font-family: Cantarell;
font-weight: normal;
src: url(../fonts/Cantarell-Regular.otf);
font-display: swap;
}
@font-face {
font-family: Cantarell;
font-weight: bold;
src: url(../fonts/Cantarell-Bold.otf);
font-display: swap;
}
* {
box-sizing: border-box;
transition: .15s ease;
}
body {
margin: 0;
background: var(--background);
color: var(--text);
font-family: 'DejaVu Sans', sans-serif;
font-size: 13px;
}
@media screen and (min-width:1449px) {
body {
font-size: 14px;
}
}
a {
text-decoration: none;
color: var(--links);
}
a:hover,
a:focus {
text-decoration: underline;
outline: none;
}
img.pixelated {
image-rendering: pixelated;
}
hr {
height: 3px;
border: var(--hr-border);
border-width: 1px 0;
margin: 24px 0;
}
section p {
line-height: 20px;
word-wrap: anywhere;
}
section ul {
line-height: 24px;
}
section h1 {
margin-top: 0;
border-bottom: var(--hr-border);
font-family: Cantarell;
font-weight: bold;
font-size: 26px;
color: var(--text-light);
}
section h2 {
margin: 24px 0 16px 0;
border-bottom: var(--hr-border);
font-family: Cantarell;
font-weight: bold;
font-size: 18px;
color: var(--text-light);
padding-bottom: 2px;
}
section blockquote {
margin: 0 0 10px 0;
border-left: 3px solid var(--border);
background: var(--background);
padding-left: 15px;
}
button,
.button,
input[type="button"],
input[type="submit"] {
padding: 6px 10px;
border-radius: 2px;
cursor: pointer;
font-family: 'DejaVu Sans', sans-serif;
font-weight: 400;
border: 0;
}
button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
button:focus,
.button:focus,
input[type="button"]:focus,
input[type="submit"]:focus {
text-decoration: none;
}
.flex {
display: flex;
}
.bg-ok {
background: var(--ok);
color: var(--ok-text);
}
.bg-ok:hover,
.bg-ok:focus,
.bg-ok:active {
background: var(--ok-active);
}
.bg-error {
background: var(--error);
color: var(--error-text);
}
.bg-error:hover,
.bg-error:focus,
.bg-error:active {
background: var(--error-active);
}
.bg-warn {
background: var(--warn);
color: var(--warn-text);
}
.bg-warn:hover,
.bg-warn:focus,
.bg-warn:active {
background: var(--warn-active);
}
.align-left {
text-align: left;
}
.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
.align-right {
display: block;
margin-left: auto;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
.skip-to-content-link {
height: 30px;
left: 50%;
padding: 8px;
position: absolute;
transform: translateY(-200%);
transition: transform 0.3s;
background: var(--links);
color: var(--warn-text);
border-radius: 1px;
overflow: hidden;
}
.skip-to-content-link:focus {
transform: translateY(0%);
}