Add BG and first style for 20Q

This commit is contained in:
Mandar
2021-01-04 21:46:18 +01:00
parent 1edebf04cc
commit e05426e567
12 changed files with 450 additions and 428 deletions

View File

@@ -42,8 +42,13 @@ $l5r5e-linear-gradient-first: rgba(65, 20, 15, 0.75);
$l5r5e-linear-gradient-first-dark: rgba(35, 10, 5, 0.75);
$l5r5e-linear-gradient-second: rgba(10, 0, 20, 0.75);
$l5r5e-linear-gradient-second-dark: rgba(0, 0, 10, 0.75);
$l5r5e-linear-gradient-third: rgba(175, 145, 110, 1);
$l5r5e-linear-gradient-third-dark: rgba(150, 120, 90, 1);
$l5r5e-linear-gradient-third: rgba(95, 40, 65, 1);
$l5r5e-linear-gradient-third-dark: rgba(65, 25, 40, 1);
// Chat color
$l5r5e-chat-color: rgba(225, 215, 200, 0.75);
$l5r5e-chat-color-mid: rgba(225, 215, 200, 0.5);
$l5r5e-chat-color-light: rgba(225, 215, 200, 0.25);
// -- Rings

View File

@@ -8,29 +8,6 @@ body {
}
}
/* Chat */
#chat-log .message.ic {
background-color: rgba(255, 255, 255, 0.5);
color: rgba(0, 0, 0, 0.75);
}
#chat-log .message.ic .message-header {
color: rgba(0, 0, 0, 0.75);
}
#chat-log .message.emote {
background-color: rgba(255, 255, 255, 0.5);
color: rgba(0, 0, 0, 0.75);
}
#chat-log .message.emote .message-header {
color: rgba(0, 0, 0, 0.75);
}
#chat-log .message {
background-color: rgba(195, 165, 130, 0.5);
color: rgba(0, 0, 0, 0.75);
}
#chat-log .message .message-header {
color: rgba(0, 0, 0, 0.75);
}
/* Windows */
.window-app {
.window-content {
@@ -44,6 +21,17 @@ body {
z-index: 2;
background: $black-light;
}
&.twenty-questions-dialog {
.window-content {
background: url(https://localhost:30000/systems/l5r5e/assets/imgs/bg20Q.webp) no-repeat;
background-size: cover;
}
}
}
#l5r5e-twenty-questions-dialog {
min-height: 800px;
min-width: 600px;
}
/* Focus, Active */
@@ -69,6 +57,12 @@ input[type="time"]:focus {
box-shadow: 0 0 10px $red;
}
#sidebar #settings button,
#sidebar .sidebar-tab .action-buttons button {
height: 2rem;
line-height: initial;
}
button:hover {
box-shadow: 0 0 10px $red;
}

View File

@@ -1,47 +1,95 @@
&.twenty-questions-dialog {
table {
width: 100%;
.sheet-tabs {
float: left;
flex-direction: column;
width: 9%;
height: 100%;
margin: 7% 4.75%;
padding: 0;
border-bottom: 0 none;
--notchSize: 0.5rem;
clip-path: polygon(
0% var(--notchSize),
var(--notchSize) 0%,
calc(100% - var(--notchSize)) 0%,
100% var(--notchSize),
100% calc(100% - var(--notchSize)),
calc(100% - var(--notchSize)) 100%,
var(--notchSize) 100%,
0% calc(100% - var(--notchSize))
);
}
table tr td {
vertical-align: top;
h3 {
font-size: 1rem;
color: $l5r5e-label;
}
.third {
width: 230px;
nav {
.item {
&.active,
&:hover {
clip-path: none;
}
}
}
.fifty {
width: 49%;
}
.or {
width: 100px;
}
.dropbox {
min-height: 75px;
}
.errors {
position: sticky;
top: 0px;
left: 0px;
z-index: 999;
display: block;
width: 100%;
background-color: $l5r5e-red;
border: 1px solid $dark-red;
border-radius: 1rem;
text-align: center;
}
.checklist label {
font-size: 0.85rem;
flex: 0 0 auto;
margin: 0 0.25rem 0.25rem;
padding: 0 0.5rem;
color: #5a6e5a;
background: rgba(255, 255, 255, 0.5);
border: 1px solid #5a6e5a;
border-radius: 1rem;
}
.checklist input {
margin: 0.25rem 0 0 0;
height: 0.65rem;
width: 0.65rem;
article {
float: left;
width: 80%;
label {
&.full {
display: block;
width: 100%;
line-height: 2rem;
input {
display: inline;
width: 70%;
float: right;
}
}
}
table {
width: 100%;
}
table tr td {
vertical-align: top;
}
.third {
width: 230px;
}
.fifty {
width: 49%;
}
.or {
width: 100px;
}
.dropbox {
min-height: 75px;
}
.errors {
position: sticky;
top: 0px;
left: 0px;
z-index: 999;
display: block;
width: 100%;
background-color: $l5r5e-red;
border: 1px solid $dark-red;
border-radius: 1rem;
text-align: center;
}
.checklist label {
font-size: 0.85rem;
flex: 0 0 auto;
margin: 0 0.25rem 0.25rem;
padding: 0 0.5rem;
color: #5a6e5a;
background: rgba(255, 255, 255, 0.5);
border: 1px solid #5a6e5a;
border-radius: 1rem;
}
.checklist input {
margin: 0.25rem 0 0 0;
height: 0.65rem;
width: 0.65rem;
}
}
}

View File

@@ -164,7 +164,7 @@ button {
);
background-origin: padding-box;
border-image: url("../assets/ui/macro-button.webp") 10 repeat;
border-image-width: 0.25rem;
border-image-width: 0.5rem;
border-image-outset: 0px;
&:hover {
background: linear-gradient(
@@ -175,28 +175,105 @@ button {
}
}
}
// Settings
#settings button {
cursor: default;
color: $white;
background: linear-gradient(
$l5r5e-linear-gradient-third,
$l5r5e-linear-gradient-third-dark,
$l5r5e-linear-gradient-third
);
background-origin: padding-box;
border-image: url("../assets/ui/macro-button.webp") 10 repeat;
border-image-width: 0.5rem;
border-image-outset: 0px;
&:hover {
background: linear-gradient(
$l5r5e-linear-gradient-first-dark,
$l5r5e-linear-gradient-first,
$l5r5e-linear-gradient-first-dark
);
}
}
// Chat
#chat-form textarea,
.chat-message,
.blind,
.whisper,
#chat-controls .roll-type-select,
.header-search input {
background: transparent url("../assets/ui/chat-texture.webp") no-repeat;
}
.header-search input[name="search"] {
background-color: $l5r5e-chat-color-mid;
color: $l5r5e-black;
&:focus {
background-color: $l5r5e-chat-color;
}
}
// Chat-Message
.chat-message {
.message-header {
line-height: 2rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 0.25rem;
border-radius: 0;
}
}
#chat-log {
margin: 0 0 0.5rem;
.message.whisper,
.message.blind {
.message.blind,
.message.roll {
position: relative;
font-style: italic;
.message-header {
.message-metadata:before {
content: " (Private Roll) ";
position: absolute;
top: -0.5rem;
right: 0.25rem;
font-size: 0.5rem;
color: rgba(255, 255, 255, 0.5);
color: $l5r5e-red;
height: 0;
}
}
}
.message.whisper {
.message-header {
.message-metadata:before {
content: "(Private)";
}
}
&.roll {
.message-header {
.message-metadata:before {
content: "(Private Roll)";
}
}
}
}
.message.blind {
.message-header {
.message-metadata:before {
content: " (Blind Roll) ";
content: "(Blind)";
}
}
&.roll {
.message-header {
.message-metadata:before {
content: "(Blind Roll)";
}
}
}
}
.message.roll {
.message-header {
.message-metadata:before {
content: "(Roll)";
}
}
}
@@ -205,6 +282,22 @@ button {
color: $l5r5e-red;
text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.25);
}
.message {
background-color: $l5r5e-chat-color-light;
color: $l5r5e-black;
&.roll {
background-color: $l5r5e-chat-color-mid;
}
&.blind {
background-color: $l5r5e-chat-color-light;
}
&.whisper {
background-color: $l5r5e-white;
&.roll {
background-color: $l5r5e-chat-color;
}
}
}
}
// hotbar
@@ -428,27 +521,6 @@ button {
}
}
// Chat-form
#chat-form textarea,
.chat-message,
#chat-controls .roll-type-select,
.sidebar-tab .directory-header .header-search input {
background: transparent url("../assets/ui/chat-texture.webp") no-repeat;
}
.sidebar-tab .directory-header .header-search input {
color: $white;
}
// Chat-Message
.chat-message {
.message-header {
line-height: 2rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 0.25rem;
border-radius: 0;
}
}
// Playlist
#playlists {
.playlist {
@@ -462,34 +534,12 @@ button {
}
}
// Settings
#settings button {
cursor: default;
color: $white;
background: linear-gradient(
$l5r5e-linear-gradient-third,
$l5r5e-linear-gradient-third-dark,
$l5r5e-linear-gradient-third
);
background-origin: padding-box;
border-image: url("../assets/ui/macro-button.webp") 10 repeat;
border-image-width: 0.25rem;
border-image-outset: 0px;
&:hover {
background: linear-gradient(
$l5r5e-linear-gradient-first-dark,
$l5r5e-linear-gradient-first,
$l5r5e-linear-gradient-first-dark
);
}
}
// Combat
#combat {
#combat-round {
.encounters {
h3 {
font-size: 0.75rem;
font-size: 0.85rem;
}
}
}