Portfolio/static/public/style.css

106 lines
1.5 KiB
CSS

img {
width: calc(min(100%, 800px));
border-radius: 0.25em;
border-style: none;
}
button {
font: inherit;
cursor: pointer;
text-decoration: none;
color: black;
}
.visually-hidden {
overflow: hidden;
width: 0;
height: 0;
display: block;
left: 50%;
position: absolute;
transform: translateY(-100%);
}
.button-link {
background: none;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
text-decoration: underline;
color: blue;
}
ul.navbar {
list-style-type: none;
background-color: #c0c0c4;
margin: 0;
padding: 0;
display: flex;
}
ul.navbar li {
display: inline;
margin: 0;
padding: 0;
}
ul.navbar button {
background-color: #c0c0c4;
border: none;
padding: 1em 1.5em;
font: inherit;
cursor: pointer;
text-decoration: none;
display: block;
color: black;
}
ul.navbar button:hover {
background-color: #a0a0a4;
}
input[type="text"], input[type="email"], textarea {
display: block;
width: calc(min(100% - 1em, 800px));
}
input[type="text"], input[type="email"], input[type="button"], textarea, button {
border-radius: 0.25em;
border-width: thin;
border-style: solid;
border-color: gray;
padding: 0.25em 0.5em;
}
textarea {
height: 10em;
}
label {
margin-top: 0.5em;
display: block;
}
html, body {
background-color: #404044;
height: 100%;
margin: 0;
padding: 0;
}
#root-head {
margin: 0 auto;
padding: 0;
background-color: #e0e0e0;
display: block;
max-width: calc(max(80%, 800px));
min-height: 100%;
}
#root-body {
padding: 1em;
}