Files
qgreper/forum/static/theme.css
2023-07-28 15:29:16 +03:00

233 lines
3.3 KiB
CSS

body {
margin: 0;
font-family: sans-serif;
background-color: #f2f2e2;
margin-bottom: 30px;
}
body > * {
padding-left: 1em;
padding-right: 1em;
}
nav {
padding: 0;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
overflow-x: auto;
background-color: #ffca4b;
}
nav > * {
margin-top: auto;
margin-bottom: auto;
padding: 20px;
color: black;
}
main {
width: 80%;
margin: auto;
}
a {
text-decoration: none;
}
p {
margin-top: 0.7em;
margin-bottom: 0.7em;
}
table {
border-collapse: collapse;
width: 100%;
}
tr:not(:last-child) {
/* FIXME this is sometimes invisible depending on zoom level in Firefox. */
border-bottom: 1px solid;
}
th, td {
padding: 5px;
text-align: left;
}
textarea {
width: min(100%, 500px);
height: 25em;
font-size: 1em;
}
input[type=text], input[type=password] {
width: min(100%, 20em);
font-family: monospace;
font-size: 1em;
}
td > input[type=text], td > input[type=password] {
width: min(100%, 500px);
}
.logo {
margin: 0;
font-size: 3em;
font-weight: bold;
}
form.form {
width: 90%;
}
table.form {
width: 100%;
}
table.form > * > tr > td, th {
vertical-align: top;
}
.comment {
margin-left: 20px;
margin-top: 15px;
margin-bottom: 15px;
padding-left: 10px;
border-left: 1px dotted;
}
.flash.success {
background-color: lightgreen;
border-radius: 5px;
padding: 8px;
}
.flash.error {
background-color: #ff4646;
border-radius: 5px;
padding: 8px;
}
/* Abuse checkboxes to collapse comments */
.collapse {
appearance: none;
cursor: pointer;
}
.collapse:checked + * {
display: none
}
.collapse:after {
content: '[-]';
}
.collapse:checked:after {
content: '[+]';
}
.small {
font-size: 85%;
}
.spoiler {
background-color: black;
color: black;
}
.spoiler:hover {
opacity: 1;
color: white;
}
/* Dropdown menu */
.navbar {
overflow: hidden;
background-color: #333;
font-family: inherit;
}
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
text-decoration: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 0px 0px;
background-color: inherit;
font-family: inherit; /* Important for vertical align on mobile phones */
margin: 0; /* Important for vertical align on mobile phones */
}
.button_image {
height: 50px;
width: 50px;
display: block;
}
.navbar a:hover, .dropdown:hover .dropbtn {
background-color: black;
}
/* Dropdown content (hidden by default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #444;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
float: none;
color: #F9F6EE;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
background-color: #555;
}
.dropdown-content a:visited {
color: #F9F6EE;
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
display: block;
}
/* Admin */
.admin_h2 {
background-color: rgba(0,0,0,0.15);
}
main.admin {
width: 95%;
margin: auto;
}
main.admin textarea {
height: 5em;
}
.config_label {
max-width: 15em;
width: 15em;
}