hippie/source/style/modules/ui/_windows_module.scss

164 lines
No EOL
2.1 KiB
SCSS

@use "sass:map";
@use "../../hippie-style/hippie";
$padding_half: calc(#{hippie.$space_half} - 3px) hippie.$space_half;
%flex-bar {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
gap: hippie.$space_half hippie.$space_basic;
}
#task-bar {
@extend %flex-bar;
z-index: map.get(hippie.$z-indexes, "content-top");
position: fixed;
//right: 0;
//bottom: 0;
//left: 0;
border: 1px solid transparent;
padding: hippie.$space_basic;
background-color: rgba(0, 0, 0, .1);
&.top,
&.bottom {
nav,
& > div {
&:last-child {
margin-top: unset;
margin-left: auto;
}
}
.clock {
text-align: end;
}
}
&.right,
&.left {
nav,
& > div {
&:last-child {
margin-top: auto;
margin-left: unset;
}
}
.clock {
text-align: center;
& > span {
display: inline-block;
word-wrap: anywhere;
}
}
}
nav,
& > div {
@extend %flex-bar;
flex-direction: inherit;
}
button {
@extend .button_io;
overflow: hidden;
* {
pointer-events: none;
}
}
nav.small {
//font-size: .8em;
button {
border: none;
padding: $padding_half;
&:hover {
background-color: transparent;
}
}
}
nav.big {
font-size: 1.5em;
button {
border: none;
padding: 0;
&:hover {
background-color: transparent;
}
}
}
.clock {
&,
& > * {
line-height: 1;
}
}
}
#screen-space {
position: relative;
height: 100%;
}
#placeholder {
@extend %flex-bar;
display: none;
z-index: map.get(hippie.$z-indexes, "toast");
position: fixed;
border: 1px dashed black;
border-radius: 2px;
background-color: rgba(0, 0, 0, .4);
padding: 16px;
&.top,
&.bottom {
span {
writing-mode: unset;
}
}
&.right,
&.left {
span {
writing-mode: vertical-rl;
}
}
* {
pointer-events: none;
}
& > div {
@extend %flex-bar;
flex-direction: inherit;
flex-wrap: nowrap;
}
.box,
.box_brd {
width: 16px;
height: 16px;
}
.box {
background-color: black;
}
.box_brd {
border: 2px solid black;
background-color: transparent;
}
}