pages/CS 6314/firststyle.css

279 lines
4.6 KiB
CSS
Raw Normal View History

html {
width: 100%;
height: 100%;
background-color: #2a323d;
color: white;
font-family: "Roboto", sans-serif;
font-weight: normal;
line-height: 1.5;
}
#title {
text-align: center;
font-family: 'Pacifico', cursive, sans-serif;
}
section {
width: 95%;
max-width: 1200px;
margin: auto;
background-color: #242a33;
box-shadow: 2px 2px 3px #222;
border-radius: 2px;
padding: 10px;
margin-bottom: 20px;
}
section img {
margin: auto;
display: block;
}
section table {
margin: auto;
min-width: 50%;
text-align: left;
}
section button {
margin: 10px;
background: none;
outline: none;
border: solid 1px grey;
color: white;
cursor: pointer;
transition: background .2s;
border-radius: 10px;
padding: 4px 8px;
font-size: large;
transition: .2s;
}
section button:hover {
background: #2a323d;
}
section .field {
display: flex;
margin: 8px 0;
border-bottom: solid 2px #2a323d;
padding-bottom: 8px;
}
section .field > * {
flex-basis: 50%;
}
section .field > :first-child {
flex-shrink: 1;
}
footer {
font-size: .8em;
width: 95%;
max-width: 1200px;
margin: auto;
margin-top: 20px;
padding-bottom: 10px;
text-align: center;
}
a {
color: #ffab40;
}
input {
background: none;
border: none;
border-bottom: solid 1px grey;
transition: border .2s;
color: white;
font-size: medium;
min-width: 0;
}
input:focus {
border-bottom-color: white;
outline: none;
}
input:invalid {
color: red;
}
input[type=color] {
padding: 0;
border-bottom: none;
}
input[type=checkbox],
input[type=radio] {
display: none;
}
input[type=checkbox] + label,
input[type=radio] + label {
display: block;
cursor: pointer;
}
input[type=radio] + label:not(:last-child) {
margin-bottom: 8px;
}
input[type=checkbox] + label:before,
input[type=radio] + label:before {
border: 1px solid grey;
display: inline-block;
box-sizing: border-box;
width: 24px;
height: 24px;
vertical-align: bottom;
color: transparent;
transition: .2s;
text-align: center;
margin-right: 8px;
}
input[type=checkbox] + label:before {
content: "\2714";
border-radius: 3px;
}
input[type=radio] + label:before {
content: "\25CF";
border-radius: 50%;
font-size: smaller;
}
input[type=checkbox] + label:active:before,
input[type=radio] + label:active:before,
button:active {
transform: translateY(-10px);
border-color: white;
}
input[type=checkbox]:checked + label:before,
input[type=radio]:checked + label:before {
background-color: #2a323d;
color: #fff;
}
input[type=reset] {
border-bottom: none;
text-transform: uppercase;
border-radius: 10px;
padding: 4px 8px;
cursor: pointer;
border: solid 2px red;
transition: background .2s;
}
input[type=reset]:hover {
background: red;
}
.button-row {
text-align: center;
}
.button-row p {
margin-bottom: 0;
}
@keyframes rotate {
from {
transform: rotateZ(0);
}
to {
transform: rotateZ(360deg);
}
}
@keyframes popout {
0% {
box-shadow: 0 0 red, 0 0 red, 0 0 red, 0 0 red, 0 0 red, 0 0 red, 0 0 red, 0 0 red;
transform: translateX(0) translateY(0);
}
50% {
box-shadow: 1px -1px red, 2px -2px red, 3px -3px red, 4px -4px red, 5px -5px red, 6px -6px red, 7px -7px red, 8px -8px red;
transform: translateX(-8px) translateY(8px);
}
100% {
box-shadow: 0 0 red, 0 0 red, 0 0 red, 0 0 red, 0 0 red, 0 0 red, 0 0 red, 0 0 red;
transform: translateX(0) translateY(0);
}
}
@keyframes jump {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
100% {
transform: translateY(0);
}
}
#example-1 {
background-color: grey;
color: black;
padding: 4px;
}
#example-1 .yellow {
text-decoration: underline;
margin: auto;
}
#example-2 {
background-color: white;
color: black;
padding: 4px;
}
.container {
border: solid 1px black;
width: 50%;
margin: auto;
padding: 8px;
}
.container span, .container div:not(.inner-container) {
border: solid 1px black;
padding: 8px;
}
.dashed {
border: dashed 1px black;
}
.yellow {
background-color: yellow;
width: 50%
}
.inner-container {
width: 75%;
}
.inner-container span {
display: inline-block;
box-sizing: border-box;
}
.inner-container .yellow {
width: 75%;
}
.inner-container .no-left-padding {
padding-left: 0;
width: 25%;
}
.middle {
margin-left: 25%;
}