TeaWeb/shared/css/static/main-layout.scss

100 lines
1.7 KiB
SCSS
Raw Normal View History

2019-10-13 21:33:07 +02:00
@import "mixin";
$separator_thickness: 5px;
$small_device: 650px;
$animation_length: .5s;
2020-06-13 18:47:05 +02:00
html:root {
--app-background: #1e1e1e;
--chat-background: #353535;
--channel-tree-background: #353535;
--server-log-background: #353535;
--footer-background: #252525;
--footer-text: #666666;
--channel-chat-seperator: #1e1e1e;
--channel-chat-seperator-selected: #707070;
--server-log-text: #6e6e6e;
--server-log-error: #e62222;
--server-log-tree-entry: #d8d8d8;
--hostbanner-background: #2e2e2e;
}
:global {
.hide-small {
opacity: 1;
transition: opacity $animation_length linear;
}
.show-small {
display: none;
opacity: 0;
transition: opacity $animation_length linear;
}
.app-container {
right: 0;
left: 0;
top: 0;
overflow: auto;
padding: 0;
}
@media only screen and (max-width: $small_device) {
.hide-small {
display: none;
opacity: 0;
transition: opacity $animation_length linear;
}
.show-small {
display: block !important;
opacity: 1 !important;
transition: opacity $animation_length linear;
}
}
$animation_seperator_length: .1s;
.container-seperator {
2019-10-13 21:33:07 +02:00
@include transition(all $animation_seperator_length ease-in-out);
background: var(--channel-chat-seperator);
flex-grow: 0;
flex-shrink: 0;
&.horizontal {
height: $separator_thickness;
width: 100%;
cursor: row-resize;
}
&.vertical {
width: $separator_thickness;
height: 100%;
cursor: col-resize;
}
&.seperator-selected {
@include transition(all $animation_seperator_length ease-in-out);
background-color: var(--channel-chat-seperator-selected);
}
}
html, body {
overflow: hidden;
}
body {
background: var(--app-background)!important;
}
}