abtmtr-v4/views/styles/windows.css

151 lines
3.1 KiB
CSS
Raw Normal View History

2023-11-23 08:53:28 +00:00
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0");
.window-master {
display: inline-block;
position: fixed;
left: 0;
top: 0;
width: 0;
height: 0;
overflow: visible;
2023-11-23 08:53:28 +00:00
}
div.window-object {
display: grid;
grid-template-rows: max-content auto;
grid-gap: 0.25em;
position: fixed;
width: 600px;
height: 500px;
left: calc(50vw - 300px);
top: calc(50vh - 250px);
bottom: auto;
2023-11-23 08:53:28 +00:00
min-width: 10em;
min-height: 2em;
background-color: var(--accent-color);
color: var(--accent-color-fg);
border: var(--border-style);
resize: both;
overflow: hidden;
padding: 0.25em;
/* padding: 0.5em; */
/* transition: background-color 0.25s, color 0.25s, opacity 0.25s; */
transition: none;
2023-11-23 08:53:28 +00:00
scale: 1;
opacity: 1;
animation-name: appear;
animation-duration: 0.25s;
}
div.window-object.unfocused {
opacity: 0.5;
}
div.window-object.petrified {
2023-11-23 08:53:28 +00:00
resize: none;
}
div.window-object.maximized {
top: 0 !important;
left: 0 !important;
max-width: 100vw !important;
width: 100vw !important;
min-width: 100vw !important;
max-height: 100vh !important;
height: 100vh !important;
min-height: 100vh !important;
resize: none;
}
div.window-object.maximized > div.window-manager {
cursor: default !important;
}
div.window-object.minimized {
top: auto !important;
left: 0 !important;
max-width: 20em !important;
width: 20em !important;
min-width: 20em !important;
max-height: calc(2em + (1em / 16)) !important;
height: calc(2em + (1em / 16)) !important;
min-height: calc(2em + (1em / 16)) !important;
resize: none;
z-index: var(--z-index) !important;
}
div.window-object.minimized > div.window-manager {
cursor: default !important;
}
div.window-object.minimized > iframe.window-content {
display: none;
}
2023-11-23 08:53:28 +00:00
div.window-object > div.window-manager {
display: grid;
width: 100%;
grid-template-columns: auto max-content;
vertical-align: middle;
height: 1.5em;
2023-11-25 05:09:23 +00:00
/* overflow: hidden; */
2023-11-23 08:53:28 +00:00
user-select: none;
}
div.window-object > div.window-manager > div {
width: 100%;
vertical-align: middle;
height: 100%;
box-sizing: content-box;
}
div.window-object > div.window-manager > div.window-manager-start {
text-align: start;
2023-11-25 05:09:23 +00:00
overflow: hidden;
2023-11-23 08:53:28 +00:00
}
div.window-object
> div.window-manager
> div.window-manager-start
> span.window-manager-label {
display: inline-block;
height: 100%;
width: 100%;
line-height: 1.5em;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
div.window-object > div.window-manager > div.window-manager-end {
text-align: end;
}
div.window-object > div.window-manager > div > button {
height: 1.5em;
width: 1.5em;
padding: 0;
margin: 0;
margin-inline-start: 0.25em;
box-sizing: border-box;
border: var(--border-style);
background-color: transparent;
color: currentColor;
2023-11-23 08:53:28 +00:00
font-family: "Material Symbols Outlined";
text-align: center;
vertical-align: middle;
font-size: 1em;
line-height: 0.5em;
}
div.window-object > iframe.window-content {
background-color: var(--background-color);
2023-11-23 08:53:28 +00:00
height: 100%;
width: 100%;
border: var(--border-style);
min-height: 0;
min-width: 0;
2023-11-23 08:53:28 +00:00
}