740 lines
11 KiB
SCSS
740 lines
11 KiB
SCSS
$wolves_color: rgba(255, 0, 0, 0.7);
|
|
$village_color: rgba(0, 0, 255, 0.7);
|
|
$connected_color: hsl(120, 68%, 50%);
|
|
$disconnected_color: hsl(0, 68%, 50%);
|
|
$client_shadow_color: hsl(260, 55%, 61%);
|
|
$client_shadow_color_2: hsl(240, 55%, 61%);
|
|
$client_filter: drop-shadow(5px 5px 0 $client_shadow_color) drop-shadow(5px 5px 0 $client_shadow_color_2);
|
|
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
font-size: 1.5rem;
|
|
max-width: 100vw;
|
|
min-width: 100vw;
|
|
user-select: none;
|
|
color: rgba(255, 255, 255, 1);
|
|
background: black;
|
|
}
|
|
|
|
$link_color: #432054;
|
|
$link_hover_color: hsl(280, 55%, 61%);
|
|
$link_bg_color: #fff6d5;
|
|
$border_color: #432054;
|
|
$shadow_color: hsl(280, 55%, 61%);
|
|
$shadow_color_2: hsl(300, 55%, 61%);
|
|
$link_filter: drop-shadow(5px 5px 0 $shadow_color) drop-shadow(5px 5px 0 $shadow_color_2);
|
|
$link_select_filter: invert(100%);
|
|
|
|
$error_color: hsla(0, 95%, 61%, 0.7);
|
|
$error_shadow_color: hsla(340, 95%, 61%, 0.7);
|
|
$error_shadow_color_2: hsla(0, 95%, 61%, 0.7);
|
|
$error_filter: drop-shadow(5px 5px 0 $error_shadow_color) drop-shadow(5px 5px 0 $error_shadow_color_2);
|
|
|
|
|
|
nav.debug-nav {
|
|
|
|
|
|
position: sticky;
|
|
backdrop-filter: brightness(70%);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-direction: row;
|
|
padding-bottom: 10px;
|
|
padding-top: 10px;
|
|
padding-left: 5vw;
|
|
padding-right: 5vw;
|
|
gap: 10px;
|
|
|
|
}
|
|
|
|
|
|
.default-button {
|
|
font-size: 1.3rem;
|
|
border: 1px solid rgba(255, 255, 255, 1);
|
|
padding: 5px;
|
|
background-color: black;
|
|
color: #cccccc;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: white;
|
|
color: invert(#cccccc);
|
|
}
|
|
}
|
|
|
|
|
|
.player {
|
|
margin: 0px;
|
|
// padding-left: 5px;
|
|
// padding-right: 5px;
|
|
// padding-bottom: 5px;
|
|
min-width: 10rem;
|
|
max-width: 10vw;
|
|
max-height: 4rem;
|
|
text-align: center;
|
|
|
|
justify-content: center;
|
|
font-family: 'Cute Font';
|
|
|
|
&.marked {
|
|
// background-color: brighten($village_color, 100%);
|
|
filter: hue-rotate(90deg);
|
|
}
|
|
|
|
&.connected {}
|
|
|
|
&.disconnected {
|
|
// background-color: $disconnected_color;
|
|
// border: 3px solid darken($disconnected_color, 20%);
|
|
}
|
|
|
|
&.dead {
|
|
filter: grayscale(100%);
|
|
}
|
|
|
|
.number {
|
|
padding-top: 3px;
|
|
margin: 0px;
|
|
|
|
&.not-set {
|
|
border: 2px solid rgba(255, 0, 0, 0.3);
|
|
background-color: rgba(255, 0, 0, 0.7);
|
|
}
|
|
}
|
|
}
|
|
|
|
.submenu {
|
|
background-color: black;
|
|
border: 1px solid rgba(255, 255, 255, 0.7);
|
|
padding: 10px;
|
|
// position: absolute;
|
|
position: relative;
|
|
|
|
// top: 1px;
|
|
align-self: stretch;
|
|
z-index: 5;
|
|
|
|
& button {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.click-backdrop {
|
|
z-index: 4;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
height: 200vh;
|
|
width: 100vw;
|
|
background-size: cover;
|
|
}
|
|
|
|
.player-container {
|
|
width: 100%;
|
|
margin-left: 10vw;
|
|
margin-right: 10vw;
|
|
}
|
|
|
|
.start-game {
|
|
align-self: center;
|
|
margin-bottom: 30px;
|
|
font-size: 2rem;
|
|
// background-color: hsl(283, 100%, 80%);
|
|
border: 1px solid rgba(0, 255, 0, 0.7);
|
|
background-color: black;
|
|
color: rgba(0, 255, 0, 0.7);
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
|
|
&:hover {
|
|
background-color: rgba(0, 255, 0, 0.3);
|
|
}
|
|
|
|
&:disabled {
|
|
border: 1px solid rgba(255, 0, 0, 1);
|
|
color: rgba(255, 0, 0, 1);
|
|
filter: none;
|
|
|
|
&:hover {
|
|
background-color: rgba(255, 0, 0, 0.3);
|
|
filter: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
button {
|
|
font-size: 1rem;
|
|
font-family: 'Cute Font';
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
|
|
border: none;
|
|
|
|
outline: inherit;
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
background-color: #000;
|
|
|
|
&:disabled {
|
|
filter: grayscale(80%);
|
|
}
|
|
|
|
&:disabled:hover {
|
|
filter: sepia(100%);
|
|
}
|
|
|
|
&:disabled:hover::after {
|
|
content: attr(reason);
|
|
position: absolute;
|
|
margin-top: 10px;
|
|
top: 90%;
|
|
font: 'Cute Font';
|
|
// color: #000;
|
|
// background-color: #fff;
|
|
color: rgba(255, 0, 0, 1);
|
|
background-color: rgba(255, 0, 0, 0.3);
|
|
border: 1px solid rgba(255, 0, 0, 0.3);
|
|
min-width: 50vw;
|
|
width: fit-content;
|
|
padding: 3px;
|
|
z-index: 4;
|
|
}
|
|
}
|
|
|
|
|
|
.settings {
|
|
list-style: none;
|
|
|
|
font-family: 'Cute Font';
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-left: 20px;
|
|
margin-right: 20px;
|
|
|
|
gap: 30px;
|
|
|
|
}
|
|
|
|
.wolves-list {
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
justify-content: space-evenly;
|
|
flex: 1 1 0;
|
|
}
|
|
|
|
.character {
|
|
text-align: center;
|
|
border: 3px solid rgba(0, 0, 0, 0.4);
|
|
|
|
.role {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
text-align: center;
|
|
}
|
|
|
|
button.confirm {
|
|
align-self: center;
|
|
margin: 30px;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.role-list {
|
|
list-style: none;
|
|
|
|
font-family: 'Cute Font';
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
|
|
gap: 10px;
|
|
}
|
|
|
|
.role-card {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-width: 320px;
|
|
}
|
|
|
|
|
|
.role-card button {
|
|
min-width: 25px;
|
|
min-height: 25px;
|
|
background-color: rgba(255, 255, 255, 0.3);
|
|
margin: 0px;
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
}
|
|
|
|
.role-card.village {
|
|
background-color: $village_color;
|
|
color: rgba(255, 255, 255, 1);
|
|
}
|
|
|
|
rolecard {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
width: 100%;
|
|
text-align: center;
|
|
// gap: 20px;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.role.wolves {
|
|
background-color: $wolves_color;
|
|
}
|
|
|
|
bool_spacer {
|
|
min-width: 25px;
|
|
min-height: 25px;
|
|
margin: 0px;
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
margin-top: 5px;
|
|
margin-bottom: 5px;
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
bool_role {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
width: 100%;
|
|
text-align: center;
|
|
// gap: 20px;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.wolves {
|
|
background-color: $wolves_color;
|
|
}
|
|
|
|
.role-card.wolves bool_role input[type="checkbox"] {
|
|
min-width: 25px;
|
|
min-height: 25px;
|
|
opacity: 100%;
|
|
accent-color: $wolves_color;
|
|
margin: 0px;
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
|
|
.role-card.village bool_role input[type="checkbox"] {
|
|
min-width: 25px;
|
|
min-height: 25px;
|
|
opacity: 100%;
|
|
accent-color: $village_color;
|
|
margin: 0px;
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.error-container {
|
|
width: 70vw;
|
|
margin-left: 10vw;
|
|
margin-right: 10vw;
|
|
}
|
|
|
|
.error-container button {
|
|
background: transparent;
|
|
font-size: 2rem;
|
|
position: sticky;
|
|
display: inline-block;
|
|
|
|
&:hover {
|
|
filter: invert(20%);
|
|
font-size: 3rem;
|
|
}
|
|
}
|
|
|
|
.error-message {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
width: 100%;
|
|
margin: 30px;
|
|
text-align: center;
|
|
// gap: 20px;
|
|
justify-content: center;
|
|
gap: 30px;
|
|
background-color: $error_color;
|
|
filter: $error_filter;
|
|
|
|
|
|
padding-left: 5vw;
|
|
padding-right: 5vw;
|
|
}
|
|
|
|
|
|
.character {
|
|
background-color: $village_color;
|
|
width: fit-content;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
margin: 10px;
|
|
|
|
&.wolves {
|
|
background-color: $wolves_color;
|
|
}
|
|
}
|
|
|
|
|
|
.character.selected {
|
|
filter: hue-rotate(30deg);
|
|
}
|
|
|
|
.character:hover {
|
|
filter: brightness(80%);
|
|
}
|
|
|
|
|
|
player {
|
|
background-color: rgba(255, 107, 255, 0.7);
|
|
width: fit-content;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
margin: 10px;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
|
|
client {
|
|
list-style: none;
|
|
|
|
font-family: 'Cute Font';
|
|
// font-size: 0.7rem;
|
|
display: flex;
|
|
// flex-wrap: wrap;
|
|
flex-direction: column;
|
|
margin-left: 20px;
|
|
margin-right: 20px;
|
|
padding: 30px;
|
|
|
|
gap: 30px;
|
|
border: 2px solid black;
|
|
}
|
|
|
|
clients {
|
|
list-style: none;
|
|
|
|
font-family: 'Cute Font';
|
|
// font-size: 0.7rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.role-reveal-cards {
|
|
list-style: none;
|
|
// max-width: 80vw;
|
|
|
|
font-family: 'Cute Font';
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
justify-content: space-evenly;
|
|
color: black;
|
|
// align-content: stretch;
|
|
// flex: 1 1 0px;
|
|
|
|
gap: 10px;
|
|
}
|
|
|
|
.role-reveal-card {
|
|
border: 3px solid rgba(0, 0, 0, 0.5);
|
|
background-color: rgba(255, 0, 0, 0.7);
|
|
min-width: 100px;
|
|
|
|
& p.number {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
& p {
|
|
text-align: center;
|
|
}
|
|
|
|
}
|
|
|
|
.role-reveal-card.ready {
|
|
background-color: rgba(0, 255, 0, 0.7);
|
|
}
|
|
|
|
|
|
.pronouns {
|
|
font-size: 70%;
|
|
filter: opacity(70%);
|
|
}
|
|
|
|
.row-list {
|
|
list-style: none;
|
|
|
|
font-family: 'Cute Font';
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
font-size: 2rem;
|
|
|
|
justify-content: center;
|
|
|
|
&.margin-20 {
|
|
margin-left: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
&.margin-5 {
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
.gap {
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
|
|
.column-list {
|
|
list-style: none;
|
|
justify-content: center;
|
|
|
|
font-family: 'Cute Font';
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: 2rem;
|
|
margin-left: 20px;
|
|
margin-right: 20px;
|
|
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.box {
|
|
border: solid 3px;
|
|
border-color: #432054;
|
|
}
|
|
|
|
.content {
|
|
margin-left: 5vw;
|
|
margin-right: 5vw;
|
|
margin-top: 30px;
|
|
display: flexbox;
|
|
flex-basis: content;
|
|
}
|
|
|
|
.sp-ace {
|
|
margin: 10px;
|
|
}
|
|
|
|
.cover-of-darkness {
|
|
background-color: #000;
|
|
color: #fff;
|
|
font-size: 3rem;
|
|
position: fixed;
|
|
bottom: 0;
|
|
right: 0;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.small {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.client-nav {
|
|
// position: absolute;
|
|
// left: 0;
|
|
// top: 0;
|
|
width: 100%;
|
|
padding: 10px;
|
|
// background-color: rgba(255, 107, 255, 0.2);
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: baseline;
|
|
gap: 10px;
|
|
}
|
|
|
|
.ident {
|
|
gap: 0px;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
|
|
.submenu {
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
// display: flex;
|
|
justify-content: center;
|
|
// visibility: collapse;
|
|
display: none;
|
|
z-index: 5;
|
|
|
|
.button-container {
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
&.shown {
|
|
// visibility: visible;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: baseline;
|
|
// position: absolute;
|
|
}
|
|
|
|
button {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
&:active,
|
|
&:focus,
|
|
&:hover {
|
|
.submenu {
|
|
// visibility: visible;
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
|
|
.baseline {
|
|
align-items: baseline;
|
|
// justify-content: space-evenly;
|
|
}
|
|
|
|
error {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.identity {
|
|
list-style: none;
|
|
|
|
font-family: 'Cute Font';
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0px;
|
|
font-size: 1rem;
|
|
justify-content: flex-start;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
|
|
p {
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
}
|
|
|
|
.player-list {
|
|
padding-bottom: 80px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
// align-items: center;
|
|
justify-content: space-evenly;
|
|
}
|
|
|
|
.binary {
|
|
.button-container {
|
|
background-color: $village_color;
|
|
border: 3px solid darken($village_color, 20%);
|
|
text-align: center;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex: 1 1 0;
|
|
|
|
button {
|
|
font-size: 3rem;
|
|
font-weight: bold;
|
|
align-self: center;
|
|
padding: 20px;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
input {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
border: 2px solid rgba(255, 255, 255, 0.2);
|
|
margin: 10px;
|
|
}
|
|
|
|
.signin {
|
|
@extend .row-list;
|
|
justify-content: center;
|
|
text-align: center;
|
|
|
|
& label {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
& input {
|
|
height: 2rem;
|
|
text-align: center;
|
|
|
|
&#number {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.info-update {
|
|
font-size: 2rem;
|
|
align-content: stretch;
|
|
margin: 0;
|
|
|
|
& * {
|
|
margin: 0;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.zoom {
|
|
zoom: 200%;
|
|
}
|