102 lines
No EOL
1.7 KiB
CSS
102 lines
No EOL
1.7 KiB
CSS
:root {
|
|
--header-height: 1.75rem;
|
|
--header-button-hover-color: rgba(255, 255, 255, 5%);
|
|
}
|
|
|
|
.Window-container {
|
|
--shadow-size: 0.3rem;
|
|
--shadow-opacity: 35%;
|
|
--shadow-spread: 3;
|
|
|
|
position: absolute;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 300px;
|
|
min-height: 150px;
|
|
background-color: var(--background-color-c);
|
|
border-radius: 0.5rem;
|
|
box-shadow: calc(var(--shadow-size) * -1) var(--shadow-size) calc(var(--shadow-size) * var(--shadow-spread)) 0px rgba(0, 0, 0, var(--shadow-opacity));
|
|
resize: both;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@keyframes pop-in {
|
|
0% {
|
|
scale: 0;
|
|
}
|
|
100% {
|
|
scale: 100%;
|
|
}
|
|
}
|
|
|
|
.Window-container.Maximized {
|
|
width: 100%;
|
|
height: calc(100% - var(--task-bar-height));
|
|
border-radius: 0;
|
|
transform: none !important;
|
|
resize: none;
|
|
}
|
|
|
|
.Header {
|
|
display: flex;
|
|
align-items: center;
|
|
height: var(--header-height);
|
|
padding: 0.25rem;
|
|
padding-left: 0.5rem;
|
|
padding-right: 0;
|
|
background-color: var(--background-color-b);
|
|
cursor: grab;
|
|
}
|
|
|
|
.Window-icon,
|
|
.Window-icon > div,
|
|
.Window-icon > div > svg {
|
|
height: 100%;
|
|
width: auto;
|
|
}
|
|
|
|
.Window-icon {
|
|
height: 1rem;
|
|
margin-right: 0.4rem;
|
|
}
|
|
|
|
.Window-icon > div {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.Header > p {
|
|
user-select: none;
|
|
width: auto;
|
|
margin: 0;
|
|
margin-right: auto;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.Header > button {
|
|
margin: 0;
|
|
padding: 0.5rem;
|
|
height: var(--header-height);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.Header button {
|
|
color: var(--foreground-color-a);
|
|
background: none;
|
|
cursor: pointer;
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
|
|
.Header button:hover, .Header button:focus-visible {
|
|
background-color: var(--header-button-hover-color);
|
|
}
|
|
|
|
.Window-content {
|
|
position: relative;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
} |