trivabble/public/trivabble.css

641 lines
10 KiB
CSS

#board {
border-collapse:collapse;
}
a {
text-decoration:none;
color:blue;
}
html {
font-family: "Droid Sans", sans-serif;
}
html, #board, [draggable], .tile {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
}
#chat-messages, #number, #name {
-webkit-touch-callout: default;
-webkit-user-select: element;
-khtml-user-select: element;
-moz-user-select: element;
-ms-user-select: element;
user-select: element;
-moz-user-select: element;
-khtml-user-select: element;
-webkit-user-select: element;
user-select: element;
}
#chat-messages .error {
color: #F66;
}
#chat-messages .ok {
color: green;
}
#clear-game, #clear-rack {
white-space:pre-wrap;
}
[draggable] {
/* Required to make elements draggable in old WebKit */
-khtml-user-drag: element;
-webkit-user-drag: element;
}
#help-message {
font-size:small
}
#board td {
text-transform:uppercase;
border:1px solid #220;
background:#FFC;
vertical-align:middle;
text-align:center;
}
#board td .tile-placeholder {
position: relative;
height: 100%;
width: 100%;
top: 0px;
left: 0px;
display: flex;
justify-content: center;
flex-direction: column;
}
#board th {
font-size:small;
color:gray;
font-weight:normal
}
.corner {
visibility:hidden;
border:none !important
}
.special-cell-tripleWord {
background:#F77 !important;
box-shadow: 0 0 1px #F77;
}
.special-cell-tripleLetter {
background:#77F !important;
box-shadow: 0 0 1px #77F;
}
.special-cell-doubleLetter {
background:#7CF !important;
box-shadow: 0 0 1px #7CF;
}
.special-cell-doubleWord {
background:#FBB !important;
box-shadow: 0 0 1px #FBB;
}
.special-cell-label {
display:inline-block;
white-space:pre-wrap;
font-size:7px;
}
#center-cell .special-cell-label {
font-weight:bold;
color:black;
font-size:large
}
body {
display:-webkit-flex;
display:flex;
-webkit-flex-direction:row;
flex-direction:row;
justify-content:safe center;
}
@media (max-width: 940px) {
body {
justify-content:start;
}
}
#menu, #panel {
display:-webkit-flex;
display:flex;
-webkit-flex-direction:column;
flex-direction:column;
}
button {
margin: 0.25em 0;
min-height:3em;
background:#AFA;
border:1px solid gray;
}
button:hover {
background:#FD7;
cursor:pointer
}
button[disabled=disabled], button:disabled {
background:#AFA;
cursor:not-allowed;
}
#rack {
background:#EEC;
font-size:0;
border-radius:4px;
display:inline-block;
padding:2px 5px;
white-space:pre;
box-shadow:0 0 2px gray
}
#board td {
height:32px;
width: 32px;
}
#rack .tile-placeholder {
height:32px;
width: 32px;
}
.tile {
background-color: #EE8;
transition:background-color 1s, border 1s;
display: inline-block;
width: 95%;
height: 95%;
left: 2.5%;
top: 2.5%;
position: absolute;
border: 1px solid #AA5;
box-sizing: border-box;
text-align: center;
font-size:1rem;
cursor:pointer
}
.tile.tile-spelling-ok {
background-color: #3E3;
}
.tile.tile-spelling-nok {
background-color: #E33;
}
.tile.tile-highlight {
background-color: #FFF;
font-weight: bold;
animation: highlight 4s ease-in;
border: 1px solid black;
}
@keyframes highlight {
0% {
background:red;
color:white;
}
100% {
background:white
}
}
.laser-highlighting .tile {
transition:none;
}
.laser-highlight {
background-color: #E3E;
}
.laser-highlight .tile:not(.tile-highlight) {
background-color: inherit;
}
.tile-score {
font-size: 0.5em;
position: absolute;
bottom: 0px;
right: 2px;
}
#chat-messages .tile {
position:relative;
cursor:auto;
top:0;
left:0;
width: 1.5em;
height: 1.5em;
margin:2px;
vertical-align:bottom;
}
#chat-messages .tile-letter {
font-size:0.9em;
}
#chat-messages .tile-score {
font-size: 0.4em;
}
#chat-messages.blink {
animation:chat-blink 1s
}
#chat-messages .info {
color:gray;
font-style:italic;
}
td.blink {
animation:td-blink 1s
}
.current-player {
font-weight:bold;
}
.current-player td:first-child:before {
position:absolute;
left:-1em;
color:red;
content: "→";
}
@keyframes chat-blink {
0% {
background:rgba(255, 255, 150, 0);
}
50% {
background:rgba(255, 255, 150, 1);
}
100% {
background:rgba(255, 255, 150, 0);
}
}
@keyframes td-blink {
0% {
background:rgba(100, 200, 255, 0);
}
50% {
background:rgba(100, 200, 255, 1);
}
100% {
background:rgba(100, 200, 255, 0);
}
}
.tile-target {
background:rgba(255,255,255, 0.9);
/* } */
/* #bag.tile-target, td .tile-target { */
outline: 1px solid #F33
}
#rack .tile-placeholder {
position:relative;
margin-left:1px;
margin-right:1px;
display:inline-block;
vertical-align:middle;
background:#CCA;
}
#panel {
-webkit-justify-content:center;
justify-content:space-between;
text-align:center;
}
#bag, #rack-outer {
-webkit-align-self:center;
align-self:center;
text-align:center;
}
#p-name {
text-align:center;
font-size:small
}
.minibutton {
padding:0;
min-height:0;
font-size:small
}
.msg-sender {
color:blue;
}
#chat-messages {
overflow:auto
}
#bag {
width:165px;
height:160px;
background:url(bag.svg) no-repeat;
background-size:100% 100%;
}
#bag:hover {
cursor:pointer;
opacity:0.8
}
#chat-messages {
border:1px solid silver;
box-sizing:border-box;
width: 100%;
margin-bottom:1px;
height:15em;
}
#chat-ta {
width:100%;
box-sizing:border-box;
height:3em
}
#participants {
font-size:small;
border-collapse:collapse;
margin:0 auto 1ex auto;
}
#participants th, #participants td {
border:1px solid gray;
padding:0.33ex 0.5ex;
}
#participants .score-cell > span {
display:inline-block;
min-width:2.5em;
}
#participants .score-cell > span:hover, .turn-cell button:hover {
cursor:pointer;
background:#FFA
}
#participants .score-cell button {
min-height: auto;
font-size:x-small;
padding:0 1ex;
margin:0;
background:#CCC;
color:back;
border:0;
}
#participants .score-cell button:hover {
background:#DDD;
}
#participants th {
font-weight:normal;
background:#EEE;
font-size:smaller
}
#participants-placeholder {
font-style:italic;
}
.turn-cell button {
padding:0 2px;
background:white;
min-height:1em;
height:1em;
margin:0;
display:flex;
}
.turn-cell img {
width:1em;
vertical-align: middle;
}
@media screen and (max-height:650px) {
#board td , #rack .tile-placeholder {
height:28px;
width: 28px;
}
}
@media screen and (max-height:600px) {
#board td , #rack .tile-placeholder {
height:24px;
width: 24px;
}
}
@media screen and (max-height:550px) {
#chat-messages {
height:7em;
}
}
#prefs {
margin:1ex 0 0 0;
}
#prefs p {
margin:0;
padding:0;
font-size:small
}
#lang-selection, #board-lang-selection {
font-size:small;
}
#prefs input, #prefs label {
vertical-align:middle
}
.modal {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
visibility: hidden;
transform: scale(1.1);
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
z-index: 1;
}
.modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 1rem 1.5rem;
width: 24rem;
border-radius: 0.3rem;
}
.modal-content h2 {
margin: 0px;
font-weight: bold;
font-size: large;
}
.modal-button {
float: right;
width: 1.5rem;
line-height: 1.5rem;
text-align: center;
cursor: pointer;
border-radius: 0.25rem;
background-color: lightgray;
}
.modal-button:hover, #btn-settings:hover {
background-color: darkgray;
}
.show-modal {
opacity: 1;
visibility: visible;
transform: scale(1.0);
transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}
.alert {
z-index: 2;
}
#btn-settings {
background:lightgray;
color:black;
font-size:small;
border-radius:3px;
border:none;
margin:0 0 0 auto;
min-height: 2em;
}
#btn-settings:before {
content: "⚙️ "
}
#info-spell-checking {
font-size:small;
color:gray;
}
#info-spell-checking a {
color:black;
}
#help-messages {
box-sizing:border-box;
overflow:auto;
width: 20em;
margin-bottom:1px;
}
#help-box {
margin-left:1ex;
margin-top:1ex;
align-items:center;
display:flex;
flex-direction:column;
justify-content:center;
}
#help-box-inner {
display:flex;
flex-direction:row;
min-height:2em;
border-top:1px solid gray;
border-bottom:1px solid gray;
align-items:center;
}
#next-help-msg {
border:0;
background:none;
color:#333;
font-size:1.5rem;
margin-right:0.5ex;
background:#F1F1F1;
border-radius:100rem;
height:1.5em;
width:1.5em;
font-weight:bold;
transition:500ms;
}
#next-help-msg:hover {
background:#CCC;
}
#help-box-title {
margin:0;
padding:0 0 0.25ex 0;
text-align:right;
width:100%;
color:gray;
font-size:small;
font-style:italic;
}
#help-messages p {
margin:0;
font-size:0.9;
color:#222;
}
#help-box-inner:before {
content:"i";
display:inline-block;
height:1.2em;
width:1.2em;
font-style:italic;
font-weight:bold;
font-family:serif;
color:#AAA;
border:2px solid;
border-radius:100rem;
}
#panel-buttons {
display:flex;
flex-direction:column;
}