sitoctt/Assets/Assets/WM.css

171 lines
3.6 KiB
CSS
Raw Normal View History

2022-08-28 00:21:04 +02:00
/*--------------------------------------------------------*
* Globale *
2022-08-28 00:21:04 +02:00
*--------------------------------------------------------*/
:Root {
--WindowPadding: 4px;
2022-08-29 00:12:31 +02:00
--WindowBorderSize: 4px;
2022-08-29 15:41:44 +02:00
--TitleBarHeight: 32px;
--TitleBarForeground: #FFFFFF;
--TitleBarBackground: #2A0A3A;
--TaskBarForeground: #FFFFFF;
--TaskBarBackground: #2A0A3A;
2022-08-28 00:21:04 +02:00
--TaskBarHeight: 36px;
}
* {
Box-Sizing: Border-Box;
}
2022-08-28 00:21:04 +02:00
Body {
Margin: 0;
Padding: 0;
Overflow-Y: Hidden;
2022-08-29 15:41:44 +02:00
}
.NoDisplay {
Display: None;
2022-08-28 00:21:04 +02:00
}
/*--------------------------------------------------------*/
2022-08-28 00:21:04 +02:00
/*--------------------------------------------------------*
* Window Manager *
*--------------------------------------------------------*/
.Window {
Margin: Var(--WindowPadding);
2022-08-29 00:12:31 +02:00
Border: Solid Var(--WindowBorderSize) Var(--TitleBarBackground);
2022-08-28 00:21:04 +02:00
Color: #000000;
Background: #EEE0FF;
2022-08-28 00:21:04 +02:00
}
.WindowContent {
2022-08-29 15:41:44 +02:00
Min-Width: Calc(100% + Var(--WindowPadding)*2 + Var(--WindowBorderSize)*2);
Padding: Calc(Var(--WindowPadding)*2);
2022-08-28 00:21:04 +02:00
Overflow-Y: Auto;
2022-08-29 00:12:31 +02:00
Margin-Left: Calc(0px - Var(--WindowPadding) - Var(--WindowBorderSize));
Margin-Top: Var(--WindowBorderSize);
Color: #000000;
Background: #EEE0FF;
Border: Solid Var(--WindowBorderSize) Var(--TitleBarBackground);
2022-08-28 00:21:04 +02:00
}
.Window:Hover {
2022-08-29 00:12:31 +02:00
Z-Index: 128 !Important;
2022-08-28 00:21:04 +02:00
}
.TitleBar {
Padding: Var(--WindowPadding);
Color: Var(--TitleBarForeground);
Background: Var(--TitleBarBackground);
2022-08-28 00:21:04 +02:00
Vertical-Align: Top;
Max-Height: Var(--TitleBarHeight);
}
2022-08-29 15:41:44 +02:00
.TitleBarContent {
Text-Align: Center;
}
.TitleBarContent > Span:Nth-Child(1) {
2022-08-28 00:21:04 +02:00
Float: Left;
}
2022-08-29 15:41:44 +02:00
.TitleBarContent > Span:Nth-Child(3) {
2022-08-28 00:21:04 +02:00
Float: Right;
}
.TaskBar {
Width: 100%;
Color: Var(--TaskBarForeground);
Background: Var(--TaskBarBackground);
2022-08-28 00:21:04 +02:00
Position: Fixed;
Bottom: 0px;
Padding: Var(--WindowPadding);
Min-Height: Var(--TaskBarHeight);
2022-08-28 00:21:04 +02:00
Max-Height: Var(--TaskBarHeight);
Z-Index: 256;
}
.TaskBar > Details > Div {
Position: Fixed;
Left: 0px;
Bottom: Var(--TaskBarHeight);
2022-08-29 15:41:44 +02:00
Padding: Calc(Var(--WindowPadding)*2);
Color: Var(--TaskBarForeground);
Background: Var(--TaskBarBackground);
2022-08-29 15:41:44 +02:00
Max-Height: Calc(90vh - Var(--TaskBarHeight));
Overflow-Y: Scroll;
}
.TaskBarMenu A {
Color: #DDCCFF !Important;
}
2022-08-28 00:21:04 +02:00
.MenuButton {
Display: Inline-Block;
Height: 100%;
2022-08-28 00:21:04 +02:00
}
2022-08-29 15:41:44 +02:00
/*--- "Shade window" button --------------------------*/
.CheckToggle {
2022-08-29 00:12:31 +02:00
Position: Fixed;
Opacity: 0;
2022-08-29 15:41:44 +02:00
Visibility: Hidden;
2022-08-29 00:12:31 +02:00
}
2022-08-29 15:41:44 +02:00
.CheckLabel:Before {
Content: '🔼';
}
:Checked ~ .TitleBarContent > Span > .CheckLabel:Before {
2022-08-29 00:12:31 +02:00
Content: '🔽' !Important;
}
:Checked ~ .ToggleBox {
Display: None;
Visibility: Hidden;
}
2022-08-29 15:41:44 +02:00
/**** -------------------------------------------- ****/
/*--------------------------------------------------------*/
/*--------------------------------------------------------*
* Fritto Misto - Andrebbe ordinato *
*--------------------------------------------------------*/
2022-08-29 00:12:31 +02:00
/* No selezione */
.NoSelect,
2022-08-29 15:41:44 +02:00
.TitleBarContent,
.TaskBar,
#TitlesWindow {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
User-Select: none;
2022-08-28 00:21:04 +02:00
}
#MainWindow {
Max-Width: 80vw;
2022-08-28 00:21:04 +02:00
Position: Absolute;
Top: 12px;
Right: 12px;
Max-Height: 90vh;
2022-08-28 00:21:04 +02:00
Z-Index: 16;
}
2022-08-29 15:41:44 +02:00
#MainWindow .WindowContent {
Max-Height: Calc(90vh - Calc(Var(--TitleBarHeight) * 2) - Var(--WindowPadding));
2022-08-28 00:21:04 +02:00
}
#TitlesWindow {
Max-Width: 60vw;
2022-08-28 00:21:04 +02:00
Position: Absolute;
Top: 80px;
Left: 12px;
Max-Height: 60vh;
2022-08-28 00:21:04 +02:00
Z-Index: 8;
}
2022-08-29 15:41:44 +02:00
#TitlesWindow .WindowContent {
Max-Height: Calc(60vh - Calc(Var(--TitleBarHeight) * 2) - Var(--WindowPadding));
2022-08-28 00:21:04 +02:00
}
/*--------------------------------------------------------*/