www/style/main.css

302 lines
4.4 KiB
CSS

:root {
--background-color: white;
--header-color: rgb(245, 245, 245);
--header-button-color: var(--header-color);
--header-button-active-color: rgb(210, 210, 210);
--header-button-hover-color: rgb(205, 205, 205);
--header-button-font-color: black;
--border-color: var(--header-button-active-color);
--accent-color: tomato
}
@font-face {
font-family: Libertinus;
src: url(fonts/Libertinus/LibertinusSerif-Regular.woff2)
}
* {
font-family: Libertinus;
padding: 0;
margin: 0;
font-size: 18px;
}
*::selection {
color: white;
background: var(--accent-color)
}
a {
color: var(--accent-color);
text-decoration: none
}
a:hover {
text-decoration: underline;
}
body {
background: var(--background-color);
}
header {
padding-inline: 6px;
background: var(--header-color);
border-bottom: 1px solid var(--border-color);
user-select: none;
}
.heigher {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 50px;
}
.heigher button {
display: none;
cursor: pointer;
margin-right: 10px;
width: 35px;
height: 35px;
background: none;
border-radius: 5px;
border: none;
padding: 5px
}
.heigher button.active {
background: var(--header-button-active-color);
}
.heigher button:hover {
background: var(--header-button-hover-color);
}
.logo {
color: black
}
.button {
display: inline-block;
padding: 8px 12px;
margin-inline: 2px;
border-radius: 5px;
text-decoration: none;
border: var(--header-button-color);
color: var(--header-button-font-color)
}
#menu {
display: none;
overflow: hidden;
max-height: 0;
transition: max-height .2s ease-out
}
#menu .button {
box-sizing: border-box;
width: 100%;
margin-bottom: 4px;
}
header .button.active {
background: var(--header-button-active-color);
}
header .button:hover {
background: var(--header-button-hover-color);
text-decoration: none;
}
header .logo {
display: none;
font-size: 150%;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
main {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
text-align: center
}
.search {
width: 500px;
text-align: center
}
#form {
width: 500px;
border-radius: 5px;
overflow: hidden;
border: 1px solid var(--border-color);
background: color-mix(in srgb, var(--background-color), black 2%);
text-align: left;
}
form {
padding: 20px
}
#label {
background: var(--header-color);
text-align: center;
border-bottom: 1px solid var(--border-color);
padding: 10px
}
label {
display: block;
width: 100%;
padding-bottom: 20px;
}
label p {
margin-bottom: 5px;
}
.input {
height: 40px;
padding: 0 15px;
border-radius: 5px;
border: 1px solid var(--border-color);
outline: none;
}
.input:hover {
border-color: color-mix(in srgb, var(--border-color), black 30%);
transition: border-color .2s;
}
.input:focus {
border-color: var(--accent-color);
}
#form .input {
box-sizing: border-box;
width: 100%;
}
input[type=checkbox] {
accent-color: var(--accent-color);
}
input[type=submit] {
width: 100%;
height: 40px;
border-radius: 5px;
margin-top: 15px;
background: var(--accent-color);
color: white;
border: none;
cursor: pointer
}
input[type=submit]:hover {
background: color-mix(in srgb, var(--accent-color), black 20%);
transition: background-color .2s;
}
.content {
width: 800px;
}
.content h1 {
margin-bottom: 20px;
text-align: center
}
.content form {
padding: 0;
}
.content .input {
box-sizing: border-box;
width: 100%
}
.content input {
margin-bottom: 10px;
font-weight: bold;
}
.content textarea {
height: 400px;
padding-top: 10px;
padding-bottom: 10px;
margin-bottom: 10px
}
.content select {
width: 100%;
}
textarea {
resize: none;
}
select {
height: 40px;
accent-color: red;
padding-inline: 10px;
}
#fullverse {
margin: 20px;
text-align: left;
}
h1 {
font-size: 120%;
}
#fullverse a {
display: block;
margin-bottom: 20px;
}
footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
background: var(--header-color);
border-top: 1px solid var(--border-color)
}
footer a:first-child {
margin-right: 10px;
}
@media (max-width: 748px) {
.heigher nav {
display: none;
}
header .logo {
display: block;
margin-left: 10px;
}
.right > button {
display: block;
}
#menu {
display: block;
}
footer {
flex-direction: column;
}
}
@media (max-width: 555px) {
.search {
width: 90vw;
}
#form {
width: 90vw;
}
}
@media (max-width: 888px) {
.content {
width: 90vw;
}
}