kers/static/main.css

169 lines
2.2 KiB
CSS
Raw Normal View History

2020-07-22 17:16:04 +02:00
body {
background: #141313;
color: #999;
margin: 0;
2020-07-22 17:25:59 +02:00
font-family: monospace;
2020-07-22 17:16:04 +02:00
}
2020-07-22 17:25:59 +02:00
input, textarea {
font-family: inherit;
font-size: inherit;
}
2020-07-25 13:33:33 +02:00
a {
color: #afafaf;
}
2020-07-22 17:25:59 +02:00
header {
color: #141313;
2020-07-22 17:16:04 +02:00
background-color: #ff8000;
2020-07-22 17:25:59 +02:00
}
header h1 {
margin: 0;
font-size: 120%;
2020-07-25 13:27:20 +02:00
}
h1 a {
color: inherit;
text-decoration: none;
display: block;
2020-07-22 17:25:59 +02:00
padding: 10px;
}
nav {
background-color: rgba(0, 0, 0, 0.1);
2020-07-22 17:16:04 +02:00
}
nav ul {
margin: 0;
padding: 0;
}
nav li {
list-style-type: none;
display: inline-block;
2020-07-25 01:31:56 +02:00
margin: 0 10px;
2020-07-22 17:16:04 +02:00
}
2020-07-25 01:31:56 +02:00
nav li:first-child {
margin-left: 0;
}
nav li:last-child {
margin-right: 0;
}
nav span, nav a {
display: inline-block;
padding: 10px 1vw;
2020-07-22 17:16:04 +02:00
}
nav a {
text-decoration: none;
color: black;
}
2020-07-25 13:27:20 +02:00
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);
2020-07-22 17:16:04 +02:00
}
/*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;
}
2020-07-25 13:27:20 +02:00
nav span, nav a {
padding: 10px;
2020-07-25 01:31:56 +02:00
}
2020-07-22 17:16:04 +02:00
}
2020-07-22 17:25:59 +02:00
@media only screen and (min-width: 750px) {
body {
font-size: 18px;
}
.align {
2020-07-25 13:27:20 +02:00
display: block;
2020-07-22 17:25:59 +02:00
margin-left: auto;
margin-right: auto;
width: 50%;
2020-07-25 13:27:20 +02:00
min-width: 750px;
2020-07-22 17:25:59 +02:00
}
2020-07-25 13:27:20 +02:00
}
2020-07-25 01:31:56 +02:00
2020-07-25 13:27:20 +02:00
.alignLeft {
float: left;
text-align: left;
}
2020-07-25 01:31:56 +02:00
2020-07-25 13:27:20 +02:00
.alignRight {
float: right;
text-align: right;
2020-07-25 01:31:56 +02:00
}
main {
padding: 10px;
2020-07-22 17:16:04 +02:00
}
input {
width: 100%;
}
input[type=text] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
}
2020-07-25 13:27:20 +02:00
.deemphasized {
2020-07-22 17:16:04 +02:00
color: #66351d;
}
select,
input,
textarea,
button {
width: 100%;
line-height: 1.5;
padding: 15px 10px;
2020-07-25 13:27:20 +02:00
border: 1px solid hsl(0, 0%, 10%);
color: #afafaf;
background: hsl(0, 0%, 14%);
2020-07-22 17:16:04 +02:00
transition: background-color 0.3s cubic-bezier(0.57, 0.21, 0.69, 1.25),
transform 0.3s cubic-bezier(0.57, 0.21, 0.69, 1.25);
}
textarea {
height: 170px;
}
::placeholder {
2020-07-25 13:27:20 +02:00
color: #808080;
2020-07-22 17:16:04 +02:00
opacity: 0.8;
}
/* On focus styling */
select:focus,
input:focus,
textarea:focus,
button:focus {
2020-07-25 13:27:20 +02:00
background: hsl(0, 7%, 20%);
2020-07-22 17:16:04 +02:00
}
select:focus,
input:focus,
textarea:focus {
transform: scale(1.02);
}