1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-01-31 10:53:36 +00:00
mipilin/static/css/main.css

177 lines
2.6 KiB
CSS
Raw Normal View History

* {
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
margin: 0;
background-color: #21211d;
width: 100vw;
height: 100vh;
font-family: "Gohufont 14", sans-serif;
font-size: 14px;
}
main {
background-color: #faf8da;
width: 95%;
height: 95%;
}
a {
color: #4630df;
}
h1,
h2,
h3 {
margin: 0;
}
header {
display: flex;
flex-direction: row;
justify-content: space-between;
background-color: #e0d665;
background-image: linear-gradient(to bottom, #f6ef98, #c7c07d);
padding: 16px;
width: 100%;
overflow: hidden;
}
#header-logo {
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
height: 40px;
}
header nav {
display: flex;
align-items: center;
gap: 2em;
}
header nav a {
text-decoration: none;
text-shadow: 0 0px 4px rgba(0, 0, 0, 0.8);
color: #faf8da;
font-size: 24px;
font-weight: bold;
}
header nav a:visited {
color: #faf8da;
}
header nav a:hover {
text-decoration: underline;
}
summary {
cursor: pointer;
}
#ticker {
position: relative;
border: 1px solid #25251d;
background-color: #454542;
height: 1.5em;
color: #faf8da;
}
#ticker > div {
display: flex;
float: left;
align-items: center;
justify-content: center;
border-right: 1px solid #25251d;
background-color: #3b3b33;
padding: 0 4px;
min-width: 255px;
height: 100%;
text-align: center;
}
#ticker div a {
color: #faf8da;
}
#ticker #ticker-marquee {
width: auto;
height: 100%;
display: flex;
align-items: center;
}
#page {
height: calc(100% - 1.5em - 76px);
overflow-y: auto;
}
#sidebar {
padding: 1em;
float: left;
width: 256px;
height: 100%;
margin-right: 24px;
border-right: 1px solid #afa870;
}
#content {
padding: 1em;
}
#content > *:nth-child(2) {
margin-top: 0;
margin-inline-start: 0;
}
#content > *:last-child {
margin-bottom: 0;
margin-inline-end: 0;
}
#flashes div {
margin-bottom: 8px;
padding: 8px;
border-width: 1px;
border-style: solid;
}
#flashes div:first-child {
margin-top: 0;
}
.flash-error {
background-color: #e06583;
border-color: #911533;
}
.flash-info {
background-color: #8ca3f2;
border-color: #6371a1;
}
.flash-success {
background-color: #8cf2a6;
border-color: #3da758;
}
button,
textarea,
select,
input {
border: 1px solid #757462;
background-color: white;
padding: 4px;
font-family: inherit;
}
button:focus,
textarea:focus,
select:focus,
input:focus {
outline: 0;
border: 1px solid #000000;
}
button,
select {
cursor: pointer;
}
@font-face {
font-family: "Gohufont 14";
src: url("/fonts/gohufont-14.ttf") format("truetype"),
url("/fonts/gohufont-14.woff") format("woff");
}