kers/static/main.css

194 lines
2.4 KiB
CSS

body {
background: #141313;
color: #999;
margin: 0;
font-family: monospace;
}
input, textarea {
font-family: inherit;
font-size: inherit;
}
a {
color: #afafaf;
}
h3 {
font-weight: normal;
}
header {
color: #141313;
background-color: #ff8000;
}
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);
}
/*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: #66351d;
}
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: hsl(0, 0%, 14%);
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:focus {
background: hsl(0, 0%, 20%);
}
select:focus,
input:focus,
textarea:focus {
transform: scale(1.02);
}
footer {
color: #777777;
padding: 10px;
}
footer a {
color: #888888;
}