shapez/src/css/ingame_hud/dialogs.scss

232 lines
5.9 KiB
SCSS
Raw Normal View History

2020-05-09 16:45:23 +02:00
.ingameDialog {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: all;
background: $modalDialogBg;
display: flex;
align-items: center;
justify-content: center;
2020-05-16 18:02:50 +02:00
@include InlineAnimation(0.12s ease-in-out) {
0% {
background-color: transparent;
opacity: 0.5;
}
100% {
background-color: $modalDialogBg;
}
}
2020-06-21 20:27:39 +02:00
$darkModeDialogBg: darken($darkModeGameBackground, 10);
2020-05-17 13:24:47 +02:00
@include DarkThemeOverride {
2020-06-21 20:27:39 +02:00
background: rgba($darkModeDialogBg, 0.9);
2020-05-17 13:24:47 +02:00
@include InlineAnimation(0.12s ease-in-out) {
0% {
background-color: transparent;
opacity: 0.5;
}
100% {
2020-06-21 20:27:39 +02:00
background-color: rgba($darkModeDialogBg, 0.9);
2020-05-17 13:24:47 +02:00
}
}
2020-06-17 03:30:01 +02:00
> .dialogInner.optionChooserDialog .optionParent {
.option {
background: #3d3f42;
&:hover {
background-color: #424348;
}
&.active {
background: $colorBlueBright;
color: #fff;
}
}
}
2020-05-17 13:24:47 +02:00
}
2020-05-09 16:45:23 +02:00
&.visible {
.dialogInner {
opacity: 1;
}
2020-07-27 14:25:22 +02:00
backdrop-filter: blur(D(3px));
2020-05-09 16:45:23 +02:00
}
.dialogInner {
transition: opacity 0.2s ease-in-out;
opacity: 0;
}
&.loadingDialog {
* {
color: #fff;
}
}
2020-05-09 16:45:23 +02:00
> .dialogInner {
background: #fff;
2020-05-11 14:21:59 +02:00
max-height: calc(100vh - #{D(40px)});
2020-05-17 13:24:47 +02:00
@include S(border-radius, $globalBorderRadius);
2020-05-09 16:45:23 +02:00
display: flex;
flex-direction: column;
2020-05-11 14:21:59 +02:00
@include S(padding, 12px);
2020-05-09 16:45:23 +02:00
pointer-events: all;
2020-05-17 13:24:47 +02:00
@include DarkThemeOverride {
background: #333438;
}
2020-05-17 12:46:51 +02:00
&.optionChooserDialog {
.optionParent {
display: grid;
@include S(grid-gap, 5px);
grid-template-columns: 1fr 1fr;
.option {
pointer-events: all;
cursor: pointer;
@include S(padding, 10px);
background: #eee;
2020-05-17 13:24:47 +02:00
transition: background-color 0.12s ease-in-out;
&:hover {
background-color: #e7e7e7;
}
&.active {
background-color: $colorBlueBright;
color: #fff;
}
2020-05-17 12:46:51 +02:00
}
}
}
2020-05-09 16:45:23 +02:00
> .title {
@include Heading;
margin: 0;
text-transform: uppercase;
display: grid;
2020-05-11 14:21:59 +02:00
align-items: center;
2020-05-09 16:45:23 +02:00
grid-template-columns: 1fr auto;
@include S(margin-bottom, 10px);
2020-05-17 13:24:47 +02:00
@include DarkThemeInvert();
2020-05-09 16:45:23 +02:00
> .closeButton {
opacity: 0.7;
@include S(width, 20px);
@include S(height, 20px);
2020-05-11 14:21:59 +02:00
background: uiResource("icons/close.png") center center / 80% no-repeat;
2020-05-09 16:45:23 +02:00
cursor: pointer;
pointer-events: all;
transition: opacity 0.2s ease-in-out;
&:hover {
opacity: 0.4;
}
}
}
> .content {
2020-05-17 13:24:47 +02:00
@include PlainText;
2020-05-09 16:45:23 +02:00
overflow-y: auto;
pointer-events: all;
@include S(width, 350px);
2020-05-25 20:23:47 +02:00
@include DarkThemeOverride {
color: #aaa;
}
2020-06-16 10:25:31 +02:00
a {
color: $colorBlueBright;
}
2020-06-03 10:06:13 +02:00
strong {
2020-05-25 20:23:47 +02:00
font-weight: bold;
}
2020-05-28 15:36:38 +02:00
.keybinding {
position: relative;
background: #eee;
@include PlainText;
height: unset;
margin: 1px 0;
}
2020-05-28 19:40:48 +02:00
input {
background: #eee;
color: #333438;
width: 100%;
&.errored {
background-color: rgb(250, 206, 206);
}
}
2020-06-03 10:06:13 +02:00
ul.bucketList {
padding-left: 30px;
li {
display: list-item;
}
}
2020-05-09 16:45:23 +02:00
}
> .buttons {
@include S(margin-top, 15px);
display: flex;
justify-content: flex-end;
> button {
@include S(margin-left, 8px);
@include Text;
@include S(min-width, 60px);
@include S(padding, 5px, 15px);
2020-05-17 13:24:47 +02:00
transition: opacity 0.12s ease-in-out;
&:hover {
opacity: 0.9;
}
&.good {
background-color: $colorGreenBright;
color: #fff;
}
&.bad {
background-color: $colorRedBright;
color: #fff;
}
2020-05-25 20:23:47 +02:00
&.timedButton {
pointer-events: none;
cursor: default;
position: relative;
overflow: hidden;
&::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: unset;
z-index: 5;
content: " ";
display: inline-block;
background: rgba(#fff, 0.6);
@include InlineAnimation(5s linear) {
0% {
width: 100%;
}
100% {
width: 0%;
}
}
}
}
}
}
2020-05-09 16:45:23 +02:00
}
}