165 lines
2.2 KiB
CSS
165 lines
2.2 KiB
CSS
body {
|
|
background: #141313;
|
|
color: #999;
|
|
margin: 0;
|
|
font-family: monospace;
|
|
}
|
|
|
|
input, textarea {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
|
|
header {
|
|
color: #141313;
|
|
background-color: #ff8000;
|
|
}
|
|
header h1 {
|
|
margin: 0;
|
|
font-size: 120%;
|
|
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;
|
|
}
|
|
|
|
nav a:hover, nav a:focus {
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
/*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 {
|
|
display: block;
|
|
margin: 0;
|
|
}
|
|
|
|
nav a {
|
|
display: block;
|
|
}
|
|
|
|
.alignLeft, .alignRight {
|
|
border-top: 1px solid #000;
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: 750px) {
|
|
body {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.align {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 50%;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.accentuated {
|
|
color: #66351d;
|
|
}
|
|
|
|
:root {
|
|
--white: #afafaf;
|
|
--soft-grey: #808080;
|
|
--red: #e31b23;
|
|
--bodyColor: #292a2b;
|
|
--borderFormEls: hsl(0, 0%, 10%);
|
|
--bgFormEls: hsl(0, 0%, 14%);
|
|
--bgFormElsFocus: hsl(0, 7%, 20%);
|
|
}
|
|
|
|
select,
|
|
input,
|
|
textarea,
|
|
button {
|
|
width: 100%;
|
|
line-height: 1.5;
|
|
padding: 15px 10px;
|
|
border: 1px solid var(--borderFormEls);
|
|
color: var(--white);
|
|
background: var(--bgFormEls);
|
|
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 {
|
|
color: var(--soft-grey);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* On focus styling */
|
|
select:focus,
|
|
input:focus,
|
|
textarea:focus,
|
|
button:focus {
|
|
background: var(--bgFormElsFocus);
|
|
}
|
|
|
|
select:focus,
|
|
input:focus,
|
|
textarea:focus {
|
|
transform: scale(1.02);
|
|
}
|