browser-go-proto/css/main.css

486 lines
9.2 KiB
CSS
Raw Normal View History

2019-08-06 21:13:51 +00:00
@import url('https://fonts.googleapis.com/css?family=La+Belle+Aurore|Raleway:300|Raleway:600');
2019-08-07 19:45:58 +00:00
html {
font-size: 12px;
}
2019-08-02 00:10:56 +00:00
* {
2019-07-26 18:02:30 +00:00
box-sizing: border-box;
2019-08-02 21:14:23 +00:00
margin: 0;
vertical-align: middle;
2019-08-06 21:13:51 +00:00
font-family: 'Raleway', sans-serif;
}
body {
2019-08-04 02:42:39 +00:00
height: vh;
width: vw;
2019-07-26 18:02:30 +00:00
}
2019-08-04 03:43:57 +00:00
.modal {
display: flex;
position: fixed;
z-index: 2;
2019-08-05 23:13:23 +00:00
/* display: none; */
2019-08-04 03:43:57 +00:00
width: 100vw;
height: 100vh;
background-color: rgba(0,0,0,0.3);
2019-08-06 21:13:51 +00:00
align-items: flex-start;
2019-08-04 03:43:57 +00:00
justify-content: center;
2019-08-05 23:13:23 +00:00
visibility: hidden;
overflow-y: scroll;
2019-08-06 21:13:51 +00:00
2019-08-04 03:43:57 +00:00
}
#menu {
2019-08-06 21:13:51 +00:00
position: relative;
background-color: rgb(250, 2250, 255, 0.9);
2019-08-04 03:43:57 +00:00
padding: 1vmin;
display: grid;
grid-template-columns: 80vw;
grid-template-rows: auto auto 80vw auto;
grid-template-areas:
"meta"
"player"
"record"
"submit";
2019-08-07 19:45:58 +00:00
font-family: 'La Belle Aurore', cursive;
2019-08-06 21:13:51 +00:00
min-height: 0;
}
#menu .menu-subblock {
display: flex;
justify-content: space-between;
margin: .25em;
}
#game-meta {
grid-area: meta;
display: flex;
flex-direction: column;
}
.menu-heading, content, #instructions, div[data-player-meta] label {
font-family: 'Raleway', sans-serif;
2019-08-07 06:13:23 +00:00
}
h1 {
font-size: 140%;
font-weight: 600;
}
2019-08-06 21:13:51 +00:00
h4 {
font-weight: 600;
2019-08-07 22:08:55 +00:00
margin: 1em .25em 1em .25em;
font-size: 110%;
}
#player-meta {
grid-area: player;
display: flex;
justify-items: stretch;
flex-direction: column;
}
2019-08-06 22:25:58 +00:00
#player-meta span[id$="rank"] {
margin: 0 2em;
}
#player-meta input[type="button"] {
margin: .25em;
}
2019-08-07 22:08:55 +00:00
#player-meta * .menu-line {
display: flex;
flex-flow: row nowrap;
align-items: baseline;
justify-items: flex-start;
}
div[data-player-meta] {
width: 100%;
justify-self: stretch;
}
div[data-player-meta] input[type="text"] {
width: 90%;
justify-self: stretch;
}
div[data-player-meta] input {
margin: 1vmin;
}
2019-08-06 23:36:39 +00:00
#confirm {
visibility: hidden;
}
div[data-player-meta] label {
margin: .25em;
font-size: 100%;
}
#game-record-space {
grid-area: record;
}
#instructions {
padding: .5em;
line-height: 1.5;
overflow: scroll;
2019-08-06 23:36:39 +00:00
height: 100%;
width: 100%
}
2019-08-04 03:43:57 +00:00
#instructions, #game-record{
border: 2px solid black;
2019-08-06 21:13:51 +00:00
height: 1;
}
#instructions:::-webkit-scrollbar-track {
border: 1px solid rgba(0,0,0,0.3);
}
#game-record {
visibility: hidden;
}
#game-update-space {
grid-area: submit;
margin: .5em;
display: flex;
justify-content: space-between;
}
2019-08-02 21:14:23 +00:00
content {
background-color: #61a6c2;
2019-08-04 02:42:39 +00:00
display: flex !important;
flex-direction: column;
justify-content: space-between !important;
2019-08-04 02:42:39 +00:00
height: 100vh;
width: 100vw;
2019-08-02 21:14:23 +00:00
}
.player-pos {
display: flex;
align-items: center;
2019-08-04 02:42:39 +00:00
justify-content: space-around;
flex: 5;
2019-08-06 21:13:51 +00:00
height: 9vmin;
2019-08-02 21:14:23 +00:00
}
2019-08-07 01:13:34 +00:00
#game-hud p {
font-size: 130%;
2019-08-07 19:45:58 +00:00
width: 50%;
order: 0;
width: 10vh;
background-color: rgba(0,0,0,0.3);
padding: 1vh;
color: #fff;
cursor: pointer;
visibility: hidden;
2019-08-02 21:14:23 +00:00
}
.player-pos#black-pos {
flex-direction: row-reverse;
2019-08-04 02:42:39 +00:00
justify-self: flex-end;
2019-08-02 21:14:23 +00:00
}
#kifu {
order: 0;
height: 10vh;
width: 8vh;
background-color: #FFF;
transform: rotate(-20deg);
}
#kifu table {
2019-08-04 02:42:39 +00:00
2019-08-02 21:14:23 +00:00
}
.bowl {
order: -1;
margin: 1vh;
2019-08-04 02:42:39 +00:00
height: 10vh;
width: 10vh;
/* border: solid black; */
2019-08-02 21:14:23 +00:00
border-radius: 50%;
background-color: rgb(116, 48, 17);
box-shadow: -1vmin 2vmin 3vmin rgba(83, 53, 35, 0.61);
display: flex;
align-items: center;
justify-content: center;
}
.bowl p {
display: none;
}
.bowl[data-turn]:hover p {
display: block;
color: #FFF;
background-color: rgba(0,0,0,0.3);
padding: .5em;
2019-08-05 23:13:23 +00:00
cursor: grab;
}
.bowl[data-turn] {
2019-08-07 19:45:58 +00:00
box-shadow: 0 0 3vh 3vh rgb(255, 175, 2);
2019-08-02 21:14:23 +00:00
}
2019-08-04 04:38:31 +00:00
.caps-space {
color: #FFF;
margin: 1vh;
height: 6vh;
width: 6vh;
border-radius: 50%;
background-color: rgb(116, 48, 17);
box-shadow: -0.5vmin 1vmin 3vmin rgba(83, 53, 35, 0.61);
2019-08-04 04:38:31 +00:00
display: flex;
align-items: center;
justify-content: center;
2019-08-02 21:14:23 +00:00
}
2019-08-06 23:36:39 +00:00
.caps-space :first-child {
display: none;
}
.bowl[data-turn] + .name-space .caps-space:hover :first-child {
display: block;
position: absolute;
background-color: rgba(0,0,0,0.7);
padding: .5em;
cursor: grab;
}
.name-space {
order: 1;
display: flex;
flex-direction: column;
align-items: center;
}
2019-08-06 21:13:51 +00:00
.name-space h4 {
font-size: 120%;
color: rgb(255,240,230)
}
2019-08-06 23:36:39 +00:00
#board-container {
width: 100%;
display: grid;
grid-template-areas: 100%;
grid-template-columns: 100%;
grid-template-areas:
"board";
}
#board-underlay {
grid-area: board;
background-color: rgb(255, 255, 255);
width: 100%;
height: 100%;
}
2019-08-02 21:14:23 +00:00
#board-space {
2019-08-06 23:36:39 +00:00
grid-area: board;
2019-08-02 21:14:23 +00:00
margin: 0 auto;
/* grid-area: board-space; */
2019-08-02 21:14:23 +00:00
display: flex;
flex-direction: column;
2019-08-06 23:36:39 +00:00
background-color: rgba(234, 178, 78, 1);
2019-08-04 02:42:39 +00:00
/* width: 90vmin; */
/* height: 90vmin; */
2019-08-02 21:14:23 +00:00
padding: 1vmin;
z-index: 1;
box-shadow: -2vmin 4vmin 3vmin rgba(145, 92, 23, 0.5);
2019-08-04 02:42:39 +00:00
flex: 1;
}
2019-08-06 23:36:39 +00:00
#board-space table {
2019-08-02 21:14:23 +00:00
display: flex;
align-items: stretch;
justify-content: space-between;
height: 81vmin;
width: 81min;
margin: auto;
}
#board-space td {
2019-08-02 21:14:23 +00:00
height: 9vmin;
width: 9vmin;
background: conic-gradient(#000 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0) 24%, #000 25%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 49%, #000 50%, rgba(0,0,0,0) 51%, rgba(0,0,0,0) 74%, #000 75%, rgba(0,0,0,0) 76%, rgba(0,0,0,0) 99%, #000 100%);
border-radius: 50% solid black;
color: black;
margin: auto;
padding: 0;
vertical-align: middle;
2019-08-02 21:14:23 +00:00
}
#board-space td[id^="1"] {
2019-08-02 21:14:23 +00:00
background: conic-gradient( rgba(0,0,0,0) 24%, #000 25%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 49%, #000 50%, rgba(0,0,0,0) 51%, rgba(0,0,0,0) 74%, #000 75%, rgba(0,0,0,0) 76%);
}
#board-space td[id^="9"] {
2019-08-02 21:14:23 +00:00
background: conic-gradient(#000 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0) 24%, #000 25%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 74%, #000 75%, rgba(0,0,0,0) 76%, rgba(0,0,0,0) 99%, #000 100%);
}
#board-space td[id$="1"] {
2019-08-02 21:14:23 +00:00
background: conic-gradient(#000 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0) 24%, #000 25%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 49%, #000 50%, rgba(0,0,0,0) 51%, rgba(0,0,0,0) 99%, #000 100%);
}
#board-space td[id$="9"] {
2019-08-02 21:14:23 +00:00
background: conic-gradient(#000 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0) 49%, #000 50%, rgba(0,0,0,0) 51%, rgba(0,0,0,0) 74%, #000 75%, rgba(0,0,0,0) 76%, rgba(0,0,0,0) 99%, #000 100%);
}
2019-08-05 23:13:23 +00:00
#board-space td[id="1-1"] {
background: conic-gradient( rgba(0,0,0,0) 24%, #000 25%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 49%, #000 50%, rgba(0,0,0,0) 51%);
2019-08-02 21:14:23 +00:00
}
2019-08-05 23:13:23 +00:00
#board-space td[id="1-9"] {
background: conic-gradient( rgba(0,0,0,0) 49%, #000 50%, rgba(0,0,0,0) 51%, rgba(0,0,0,0) 74%, #000 75%, rgba(0,0,0,0) 76% );
2019-08-02 21:14:23 +00:00
}
2019-08-05 23:13:23 +00:00
#board-space td[id="9-1"] {
background: conic-gradient(#000 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0) 24%, #000 25%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 99%, #000 100%);
2019-08-02 21:14:23 +00:00
}
2019-08-05 23:13:23 +00:00
#board-space td[id="9-9"] {
background: conic-gradient(#000 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0) 74%, #000 75%, rgba(0,0,0,0) 76%, rgba(0,0,0,0) 99%, #000 100%);
}
2019-08-06 21:13:51 +00:00
#board-space td * * div.hoshi { /* to be added later */
background: radial-gradient(circle farthest-corner at center, #000 0%, #000 30%, rgba(0,0,0,0) 50%);
z-index: 3;
width: 100%;
height: 100%
}
td .stone {
width: 85%;
height: 85%;
border-radius: 50%;
margin: auto;
vertical-align: middle;
display: flex;
flex-direction: column;
justify-content: center;
}
td .stone .dot {
width: 35%;
height: 35%;
border-radius: 50%;
margin: auto;
vertical-align: middle;
}
td .stone[data-stone="ko"] {
background-color: transparent;
border: 1vmin solid red;
}
td .stone[data-stone="white"] {
background-color: white;
}
td .stone[data-stone="black"] {
background-color: black;
}
td .stone[data-stone="none"] {
background-color: transparent;
}
td .dot[data-dot="white"] {
background-color: white;
}
td .dot[data-dot="black"] {
background-color: black;
}
td .dot[data-dot="none"] {
background-color: transparent;
}
2019-08-06 21:13:51 +00:00
td .dot[data-dot="dame"] {
background-color: purple;
}
td .dot .seki {
}
2019-08-07 22:08:55 +00:00
@media only screen and (min-width: 591px) {
2019-08-07 19:45:58 +00:00
#player-meta {
flex-direction: row;
}
2019-08-07 19:45:58 +00:00
div[data-player-meta] {
width: 50%;
}
2019-08-07 19:45:58 +00:00
#menu {
grid-template-columns: 60vw;
grid-template-rows: auto auto 60vw auto;
}
2019-08-06 21:13:51 +00:00
}
@media only screen and (min-width: 500px) {
2019-08-07 22:08:55 +00:00
2019-08-07 19:45:58 +00:00
html {
font-size: 14px;
}
2019-08-06 21:13:51 +00:00
.player-pos {
height: 14vh;
}
#kifu {
order: 0;
height: 12vh;
width: 9vh;
background-color: #FFF;
transform: rotate(-20deg);
}
.bowl {
margin: 2vh;
height: 12vh;
width: 12vh;
}
.caps-space {
margin: 1vh;
height: 8vh;
width: 8vh;
}
#board-space {
margin: 0 auto;
/* grid-area: board-space; */
display: flex;
flex-direction: column;
background-color: #EAB24E;
/* width: 90vmin; */
/* height: 90vmin; */
padding: 1vmin;
z-index: 1;
box-shadow: -2vmin 4vmin 3vmin rgba(145, 92, 23, 0.5);
flex: 1;
}
#board-space table {
display: flex;
align-items: stretch;
justify-content: space-between;
height: 72vmin;
width: 72min;
margin: auto;
}
#board-space td {
height: 8vmin;
width: 8vmin;
background: conic-gradient(#000 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0) 24%, #000 25%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 49%, #000 50%, rgba(0,0,0,0) 51%, rgba(0,0,0,0) 74%, #000 75%, rgba(0,0,0,0) 76%, rgba(0,0,0,0) 99%, #000 100%);
border-radius: 50% solid black;
color: black;
margin: auto;
padding: 0;
vertical-align: middle;
}
}