GoServer/public/css/main.css

119 lines
2.8 KiB
CSS
Raw Normal View History

h1, h2, h3, h4, h5, h6 {
font-family: "Indie Flower", serif;
text-align: center; }
h1 {
font-size: 5em;
margin: 0px; }
body {
font-family: "Raleway", sans-serif;
margin: 0px;
background-color: #f4f4f4; }
.content-wrapper {
max-width: 750px;
margin: auto; }
.board {
background-color: tomato;
padding: 20px;
max-width: 500px;
margin: auto;
border-radius: 10px; }
.black-player .overlay:hover {
2018-06-02 21:07:38 -07:00
background-image: url("../svg/black.svg"); }
.white-player .overlay:hover {
2018-06-02 21:07:38 -07:00
background-image: url("../svg/white.svg"); }
.board-cell {
display: inline-block;
position: relative;
2018-06-02 21:07:38 -07:00
background-image: url("../svg/cross.svg");
background-size: 100%;
padding: 5.5555555556%; }
.board-cell .overlay {
position: absolute;
box-sizing: border-box;
2018-06-02 21:07:38 -07:00
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-image: url("../svg/cross.svg");
transition: background-image .25s;
background-size: 100%; }
.board-cell.small {
2018-06-02 21:07:38 -07:00
padding: 5.5555555556%; }
.board-cell.medium {
2018-06-02 21:07:38 -07:00
padding: 3.8461538462%; }
.board-cell.large {
2018-06-02 21:07:38 -07:00
padding: 2.6315789474%; }
.black-cell .overlay {
2018-06-02 21:07:38 -07:00
background-image: url("../svg/black.svg"); }
.white-cell .overlay {
2018-06-02 21:07:38 -07:00
background-image: url("../svg/white.svg"); }
.split-wrapper {
display: flex;
width: 100%; }
@media screen and (max-width: 640px) {
.split-wrapper {
flex-direction: column; } }
.split-item {
flex-grow: 1;
box-sizing: border-box; }
.split-wrapper form {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px; }
.split-wrapper form input {
margin-top: 20px;
padding: 5px;
padding-left: 10px;
padding-right: 10px;
border: none;
outline: none;
width: 100%;
max-width: 300px; }
.split-wrapper form input[type="radio"] {
opacity: 0;
width: 0px;
height: 0px; }
.split-wrapper form input[type="radio"]:checked ~ label {
color: tomato;
transition: color .25s; }
.split-wrapper form input[type="submit"] {
padding: 10px;
background-color: tomato;
color: white; }
.split-wrapper form input[type="submit"]:focus, .split-wrapper form input[type="submit"]:hover {
background-color: inherit;
color: tomato;
transition: background-color .25s, color .25s; }
.split-wrapper form input[type="text"] {
background-color: inherit;
border-bottom: solid tomato;
border-width: 2px;
height: 3em;
box-sizing: border-box;
display: block; }
.split-wrapper form input[type="text"]:focus {
border-width: 3px;
transition: background-color .25s, border-width .25s; }
.split-wrapper form .radio-parent {
display: flex;
margin-top: 20px;
width: 100%;
max-width: 300px; }
.split-wrapper form .radio-wrapper {
flex-grow: 1;
display: inline-block;
text-align: center; }