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

294 lines
4.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;
--control-bar-background: #454545;
--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;
2020-06-13 18:47:05 +02:00
}
.app {
2019-10-13 21:33:07 +02:00
min-width: 600px;
min-height: 330px;
2019-10-13 21:33:07 +02:00
padding: 5px;
.container-app-main {
2019-08-21 10:00:01 +02:00
height: 100%;
width: 100%;
min-height: 500px;
margin-top: 5px;
position: relative;
display: flex;
flex-direction: column;
justify-content: stretch;
.container-channel-chat {
2019-08-21 10:00:01 +02:00
height: 80%; /* "default" settings */
width: 100%;
2020-02-02 15:05:36 +01:00
min-height: 27em; /* fits with the music bot interface */
2019-08-21 10:00:01 +02:00
min-width: 100px;
display: flex;
flex-direction: row;
justify-content: stretch;
& > * {
height: 100%;
min-height: 250px;
border-radius: 5px;
}
2019-08-21 10:00:01 +02:00
> .container-channel-tree {
width: 50%; /* "default" settings */
height: 100%;
2020-06-13 18:47:05 +02:00
background: var(--channel-tree-background);
min-width: 200px;
display: flex;
2019-08-21 10:00:01 +02:00
flex-direction: column;
justify-content: stretch;
2019-08-21 10:00:01 +02:00
min-height: 100px;
overflow: hidden;
2019-08-21 10:00:01 +02:00
> .hostbanner {
flex-grow: 0;
flex-shrink: 0;
max-height: 9em; /* same size as the info pannel */
display: flex;
flex-direction: column;
justify-content: stretch;
}
> .channel-tree {
2019-10-13 21:33:07 +02:00
min-height: 5em;
2019-08-21 10:00:01 +02:00
flex-grow: 1;
flex-shrink: 1;
2020-04-21 16:34:54 +02:00
.channel-tree-container {
height: 100%;
flex-grow: 1;
flex-shrink: 1;
overflow: hidden;
overflow-y: auto;
}
2019-08-21 10:00:01 +02:00
}
}
2019-08-21 10:00:01 +02:00
> .container-chat {
width: 50%; /* "default" settings */
height: 100%;
2020-06-13 18:47:05 +02:00
background: var(--chat-background);
min-width: 350px;
display: flex;
flex-direction: column;
justify-content: stretch;
}
}
2019-08-21 10:00:01 +02:00
> .container-bottom {
height: 20%;
min-height: 1.5em;
width: 100%;
2019-08-21 10:00:01 +02:00
display: flex;
flex-direction: column;
justify-content: stretch;
> .container-server-log {
display: flex;
flex-direction: column;
justify-content: stretch;
flex-shrink: 1;
flex-grow: 1;
min-height: 0;
width: 100%;
2019-08-21 10:00:01 +02:00
border-radius: 5px 5px 0 0;
padding-right: 5px;
padding-left: 5px;
2020-06-13 18:47:05 +02:00
background: var(--server-log-background);
2019-08-21 10:00:01 +02:00
}
> .container-footer {
flex-shrink: 0;
flex-grow: 0;
height: 1.5em;
2020-06-13 18:47:05 +02:00
background: var(--footer-background);
color: var(--footer-text);
2019-08-21 10:00:01 +02:00
border-radius: 0 0 5px 5px;
padding-right: 5px;
padding-left: 5px;
padding-top: 2px;
2020-06-13 18:47:05 +02:00
-webkit-box-shadow: inset 0 2px 5px 0 rgba(0,0,0,0.125);
-moz-box-shadow: inset 0 2px 5px 0 rgba(0,0,0,0.125);
box-shadow: inset 0 2px 5px 0 rgba(0,0,0,0.125);
2019-08-21 10:00:01 +02:00
display: flex;
flex-direction: row;
justify-content: space-between;
> * {
align-self: center;
}
2019-09-19 01:25:57 +02:00
> span {
display: flex;
flex-direction: row;
justify-content: flex-start;
> a {
margin-right: .5em;
}
}
2019-08-21 10:00:01 +02:00
a[href], a[href]:visited {
2020-06-13 18:47:05 +02:00
color: var(--footer-text)!important;
2019-08-21 10:00:01 +02:00
}
}
}
}
.container-control-bar {
z-index: 200;
flex-shrink: 0;
border-radius: 5px;
2019-08-21 10:00:01 +02:00
height: 2em;
width: 100%;
2020-06-13 18:47:05 +02:00
background-color: var(--control-bar-background);
display: flex;
flex-direction: column;
justify-content: center;
}
.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;
2019-10-13 21:33:07 +02:00
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 {
2019-10-13 21:33:07 +02:00
@include transition(all $animation_seperator_length ease-in-out);
background-color: var(--channel-chat-seperator-selected);
}
}
.icon-container {
position: relative;
display: inline-block;
height: 16px;
width: 16px;
> img {
position: absolute;
}
}
2020-08-09 00:08:56 +02:00
.icon_empty {
display: inline-block;
height: 16px;
width: 16px;
}
html, body {
overflow: hidden;
}
body {
2020-06-13 18:47:05 +02:00
background: var(--app-background)!important;
}