hippie/source/style/modules/ui/_windows_module.scss
sthag bac4b73c08 feat: Add time to task bar
- Add app.js to windows screen
- Add time display to task bar
- Add new TimeDisplay class to app.js
- Add play and pause buttons as example
- Fix event handlers of task bar according to bubbling and propagation
2025-11-01 11:21:19 +01:00

95 lines
No EOL
1.3 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: stretch;
align-content: 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);
nav,
& > div {
@extend %flex-bar;
&:last-child {
margin-left: auto;
}
}
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 {
text-align: end;
&,
& > * {
line-height: 1;
}
}
}
#screen-space {
position: relative;
height: 100%;
}
#placeholder {
display: none;
z-index: map.get(hippie.$z-indexes, "content-top");
position: fixed;
width: 100px;
height: 100px;
border: 2px dashed deeppink;
background-color: hotpink;
}