MSRS/static/main.css

229 lines
2.9 KiB
CSS
Raw Normal View History

2021-04-18 20:58:18 +02:00
:root {
--primary: #0f506f;
--background: #211f1f;
--button-ok: hsl(0, 0%, 14%);
--button-cancel: #80342d;
}
body {
background: var(--background);
color: #999;
margin: 0;
font-family: monospace;
}
input, textarea, button {
font-family: inherit;
font-size: inherit;
}
a {
color: #afafaf;
}
h3 {
font-weight: normal;
}
header {
color: var(--background);
background-color: var(--primary);
}
header h1 {
margin: 0;
font-size: 120%;
}
h1 a {
color: inherit;
text-decoration: none;
display: block;
padding: 10px;
}
nav {
background-color: rgba(0, 0, 0, 0.1);
}
nav ul {
margin: 0;
padding: 0;
}
nav li {
list-style-type: none;
display: inline-block;
margin: 0 10px;
}
nav li:first-child {
margin-left: 0;
}
nav li:last-child {
margin-right: 0;
}
nav span, nav a {
display: inline-block;
padding: 10px 1vw;
}
nav a {
text-decoration: none;
color: black;
}
header a {
transition: background-color 0.1s;
background-color: rgba(255, 255, 255, 0);
}
header a:hover, header a:focus, header a:active {
background-color: rgba(255, 255, 255, 0.3);
}
h1 a:hover, h1 a:focus, h1 a:active {
background-color: rgba(255, 255, 255, 0.1);
}
.text--important {
color: #e74c3c;
}
button.cancel {
background-color: var(--button-cancel);
color: white;
}
button:focus.cancel {
background-color: #c0392b;
}
/*change the layout of the navigation bar for all the screens
that have a width less or equal than 500px*/
@media only screen and (max-width: 750px) {
nav li {
margin: 0;
}
nav span, nav a {
padding: 10px;
}
}
@media only screen and (min-width: 750px) {
body {
font-size: 18px;
}
.align {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
min-width: 750px;
}
}
.alignLeft {
float: left;
text-align: left;
}
.alignRight {
float: right;
text-align: right;
}
main {
padding: 10px;
}
input {
width: 100%;
}
input[type=text] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
}
.deemphasized {
color: #421b08;
}
main ul {
padding: 0;
}
main li {
list-style-type: none;
margin: 3em 0;
}
main li:first-child {
margin-top: 2em;
}
main li:last-child {
margin-bottom: 2em;
}
select,
input,
textarea,
button {
width: 100%;
line-height: 1.5;
padding: 15px 10px;
border: 1px solid hsl(0, 0%, 10%);
color: #afafaf;
background: var(--button-ok);
transition: background-color 0.1s cubic-bezier(.22, .61, .36, 1),
transform 0.2s cubic-bezier(.22, .61, .36, 1);
}
textarea {
height: 170px;
}
::placeholder {
color: #808080;
opacity: 0.8;
}
/* On focus styling */
select:focus,
input:focus,
textarea:focus,
button:active {
background: hsl(0, 0%, 20%);
}
select:focus,
input:focus,
textarea:focus
button:active {
transform: scale(1.02);
}
/* Hover styling */
button:hover:not([disabled]) {
cursor: pointer;
}
footer {
color: #777777;
padding: 10px;
}
footer a {
color: #888888;
}