Skip to content

Commit cf4d114

Browse files
wolfganggreschusodalys-dataportuidp
authored
BC-7404 Layers cleanup (#3839)
* removed unused variable * Removed variable --layer-behind * Correct z-index value in StepProgress component * Adjustment of the positioning and width of the After pseudo element in the StepProgress component * Remove the background of the After pseudo element in the StepProgress component style * Change z-index values in several components and remove the unused CSS variable --layer-page * Set z-index for sticky header to a fixed value and remove unused CSS variable --layer-sticky-header * Set fixed z-index value for ContextMenu component and remove unused CSS variable --layer-dropdown * Set fixed z-index for AlertContainer component and remove unused CSS variables; update ApplicationErrorWrapper conditional rendering * Fix conditional rendering in ApplicationErrorWrapper to display error content when an error exists * Set fixed z-index values for multiple components and remove unused CSS variable --layer-fab * Remove the unused CSS variable --layer-fab from the layer styles * Set fixed z-index for modal and remove unused CSS variable --layer-modal * Remove unused layer styles from CSS variable imports * Set height for progressbar li::after to 1px and ensure background color is applied for active state * trigger CI --------- Co-authored-by: odalys-dataport <[email protected]> Co-authored-by: Uwe Ilgenstein <[email protected]>
1 parent f668833 commit cf4d114

File tree

14 files changed

+22
-57
lines changed

14 files changed

+22
-57
lines changed

src/components/legacy/NavigationBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const setActive = (idx: number) => {
8787
position: -webkit-sticky;
8888
top: 0;
8989
left: 0;
90-
z-index: var(--layer-fab);
90+
z-index: 100;
9191
display: flex;
9292
flex-flow: row wrap;
9393
justify-content: center;

src/components/lern-store/ContentCard.vue

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default {
149149
position: absolute;
150150
top: 0;
151151
left: 0;
152-
z-index: var(--layer-page);
152+
z-index: 1;
153153
padding: 8px;
154154
margin: 12px;
155155
font-size: var(--text-xs);
@@ -183,7 +183,7 @@ export default {
183183
border-radius: var(--radius-round);
184184
opacity: 0.7;
185185
// stylelint-disable
186-
z-index: calc(var(--layer-page) + 1);
186+
z-index: 2;
187187
padding: 6px 4px 2px;
188188
// stylelint-enable
189189
}
@@ -216,7 +216,7 @@ export default {
216216
217217
&-background-gradient {
218218
position: absolute;
219-
z-index: var(--layer-page);
219+
z-index: 2;
220220
width: 100%;
221221
height: 100%;
222222
background: linear-gradient(
@@ -227,26 +227,6 @@ export default {
227227
border-radius: var(--radius-md) var(--radius-md) 0 0;
228228
opacity: 0.8;
229229
}
230-
231-
&-icon {
232-
position: absolute;
233-
top: 50%;
234-
left: 50%;
235-
z-index: var(--layer-page);
236-
font-size: 52px !important;
237-
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1));
238-
opacity: 0.9;
239-
transform: translate(-50%, -50%);
240-
}
241-
242-
&-checkbox {
243-
position: absolute;
244-
top: 5%;
245-
left: 90%;
246-
z-index: var(--layer-page);
247-
color: rgba(var(--v-theme-white));
248-
cursor: pointer;
249-
}
250230
}
251231
252232
&__title {

src/components/lern-store/LernstoreCollectionDetailView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ $tablet-portrait-width: 768px;
335335
position: -webkit-sticky;
336336
position: sticky;
337337
top: 32px;
338-
z-index: var(--layer-fab);
338+
z-index: 100;
339339
margin-top: 32px;
340340
border-radius: var(--radius-md);
341341

src/components/lern-store/LernstoreDetailView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ $tablet-portrait-width: 768px;
378378
position: fixed;
379379
top: 0;
380380
right: 0;
381-
z-index: var(--layer-modal);
381+
z-index: 1000;
382382
display: flex;
383383
justify-content: flex-end;
384384
padding: 16px;
@@ -430,7 +430,7 @@ $tablet-portrait-width: 768px;
430430
right: 0;
431431
bottom: 0;
432432
left: 0;
433-
z-index: var(--layer-page);
433+
z-index: 1;
434434
filter: blur(0.7rem);
435435
background-repeat: no-repeat;
436436
background-position: center;
@@ -439,7 +439,7 @@ $tablet-portrait-width: 768px;
439439
}
440440
441441
img {
442-
z-index: var(--layer-page);
442+
z-index: 1;
443443
object-position: center;
444444
object-fit: contain;
445445
@@ -453,7 +453,7 @@ $tablet-portrait-width: 768px;
453453
.floating-buttons {
454454
position: sticky;
455455
bottom: 0;
456-
z-index: var(--layer-page);
456+
z-index: 1;
457457
border-radius: var(--radius-md);
458458
459459
@media (max-width: $tablet-portrait-width) {

src/components/molecules/AlertContainer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const onRemoveNotification = (notification: AlertPayload) => {
4747
.alert-wrapper {
4848
position: fixed;
4949
right: 0;
50-
z-index: var(--layer-tooltip);
50+
z-index: 50;
5151
overflow: visible;
5252
}
5353
@@ -56,7 +56,7 @@ const onRemoveNotification = (notification: AlertPayload) => {
5656
right: 0;
5757
bottom: 5vh;
5858
left: 0;
59-
z-index: var(--layer-tooltip);
59+
z-index: 50;
6060
overflow: visible;
6161
}
6262
</style>

src/components/molecules/ContextMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export default {
220220
--transition-duration: 0.15s;
221221
222222
position: absolute;
223-
z-index: var(--layer-dropdown);
223+
z-index: 30;
224224
display: flex;
225225
flex-direction: column;
226226
min-width: 150px;

src/components/organisms/DataTable/TableHeadRow.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,13 @@ export default {
394394
}
395395
396396
.info-button {
397-
z-index: calc(var(--layer-fab) + 1);
397+
z-index: 101;
398398
}
399399
400400
.info-box {
401401
position: absolute;
402402
right: 0%;
403-
z-index: calc(var(--layer-fab) + 1);
403+
z-index: 101;
404404
min-width: 320px;
405405
margin-top: 40px;
406406
margin-right: 24px;
@@ -419,7 +419,7 @@ export default {
419419
}
420420
421421
button:not(.is-none):focus {
422-
z-index: var(--layer-fab);
422+
z-index: 100;
423423
outline: none;
424424
box-shadow:
425425
0 0 0 0 rgba(var(--v-theme-white)),

src/components/organisms/StepProgress.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,17 @@ ul.progressbar {
109109
&::after {
110110
position: absolute;
111111
top: 25px;
112-
left: -50%;
113-
z-index: var(--layer-behind);
114-
width: 100%;
115-
height: calc(3 * var(--border-width));
112+
left: -30%;
113+
width: 60%;
114+
height: 1px;
116115
content: "";
117-
background: map.get($grey, base);
118116
}
119117
}
120118
121119
.progressbar li.active {
122120
&::after {
123121
background: map.get($grey, base);
124122
}
125-
126123
&::before {
127124
color: map.get($grey, base);
128125
text-decoration: underline;

src/components/templates/DefaultWireframe.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const showDivider = computed(() => {
194194
.sticky {
195195
position: sticky;
196196
top: var(--topbar-height);
197-
z-index: var(--layer-sticky-header);
197+
z-index: 20;
198198
background-color: rgb(var(--v-theme-white));
199199
}
200200

src/pages/administration/StudentOverview.page.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ export default {
724724
}
725725
726726
button:not(.is-none):focus {
727-
z-index: var(--layer-fab);
727+
z-index: 100;
728728
outline: none;
729729
box-shadow:
730730
0 0 0 0 rgba(var(--v-theme-white)),

0 commit comments

Comments
 (0)