Skip to content

Commit a9d725b

Browse files
committed
fix(power): add size limits for large monitors
1 parent c10188f commit a9d725b

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

src/static/themes/default/styles/power-menu.scss

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ $base-noise-010: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp
66
height: 100vh;
77
background-image: url($base-noise-010);
88
background-color: #000d;
9+
color: #fcfcfc;
910

1011
.power-menu {
11-
padding: 10% 10% 14%;
12-
color: #fcfcfc;
13-
1412
display: flex;
1513
flex-direction: column;
1614
align-items: center;
15+
justify-content: center;
1716
gap: 1rem;
1817

1918
.power-menu-user {
@@ -44,10 +43,13 @@ $base-noise-010: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp
4443
.power-menu-list {
4544
flex: 1;
4645
width: 100%;
46+
max-width: 1200px;
47+
max-height: 500px;
48+
4749
display: grid;
4850
grid-template-columns: repeat(3, 1fr);
4951
grid-template-rows: 1fr 1fr;
50-
gap: 20px;
52+
gap: 25px;
5153

5254
.power-menu-item {
5355
position: relative;
@@ -56,34 +58,43 @@ $base-noise-010: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp
5658
height: 100%;
5759
border-radius: 16px;
5860
background-color: rgba(var(--system-accent-darker-color-rgb), 0.5);
59-
color: #fcfcfc;
61+
color: #fafafa;
6062

6163
display: flex;
6264
flex-direction: column;
6365
align-items: center;
6466
justify-content: center;
6567
gap: 1rem;
6668

69+
transition: background-color 0.2s ease, transform 0.2s ease;
70+
6771
&:hover {
6872
background-color: rgba(var(--system-accent-dark-color-rgb), 0.5);
73+
transform: scale(1.05);
6974
}
7075

7176
&:active {
72-
background-color: rgba(var(--system-accent-dark-color-rgb), 0.5);
73-
transform: scale(0.95);
77+
background-color: rgba(var(--system-accent-darker-color-rgb), 0.5);
7478
}
7579

7680
&:focus-visible {
7781
outline: solid 2px #fcfcfc !important;
7882
}
7983

8084
.slu-icon {
81-
height: 30% !important;
85+
height: 40% !important;
8286
}
8387

8488
.power-menu-item-label {
89+
margin-bottom: -2.2rem; // hack to center the icon
8590
font-size: 1.2rem;
8691
font-weight: 600;
92+
opacity: 0;
93+
transition: opacity 0.2s ease;
94+
}
95+
96+
&:hover .power-menu-item-label {
97+
opacity: 1;
8798
}
8899
}
89100
}

0 commit comments

Comments
 (0)