Skip to content

Commit 2b3910c

Browse files
author
Tino Mettler
committed
CSS style cleanup
1 parent c584ee0 commit 2b3910c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

data/website_gallery/css/modal.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@
3535
}
3636

3737
.nav {
38+
height: var(--navigation-bar-height);
3839
justify-content: center;
3940
align-items: center;
4041
display: flex;
4142
z-index: 1001;
4243
}
4344

4445
.slider {
46+
height: calc(100vh - var(--navigation-bar-height));
4547
position: relative;
4648
width: 100vw;
4749
touch-action: none;

data/website_gallery/css/style.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,15 @@ body {
3535
box-shadow: 0 1vw 4vw 1vw rgba(0,0,0,0.6);
3636
}
3737

38+
.viewer {
39+
--navigation-bar-height: 5vh;
40+
}
41+
3842
.nav {
39-
height: 5vh;
4043
background-color: rgba(60,60,60, 0.4);
4144
color: #ccc;
4245
}
4346

44-
.slider {
45-
height: 95vh; /* remaining vh after nav vh */
46-
}
47-
4847
.navgrid {
4948
grid-template-columns: 4em 1fr 1.5em 1.5em 1fr 1.5em 1.5em;
5049
font-size: 3.5vh;

0 commit comments

Comments
 (0)