Skip to content

Commit

Permalink
[web] Replace hard-coded values with Bulma variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hacketiwack committed Nov 28, 2023
1 parent bd70054 commit 58b06ee
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions web-src/src/mystyles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ a.navbar-item {
}

.fd-tabs-section {
padding-bottom: 3px;
padding-top: 3px;
padding-bottom: 0;
padding-top: 0;
background: $white;
top: 3.25rem;
top: $navbar-height;
z-index: 20;
position: fixed;
width: 100%;
Expand All @@ -73,17 +73,17 @@ a.navbar-item {
}

.fd-page {
margin-top: 3.25rem;
margin-bottom: 3.25rem;
margin-top: $navbar-height;
margin-bottom: $navbar-height;
&-with-tabs {
margin-top: 6.25rem !important;
margin-bottom: 3.25rem;
margin-top: calc(2 * $navbar-height) !important;
margin-bottom: $navbar-height;
}
}

/* Set minimum height to hide "option" section */
.fd-content-with-option {
min-height: calc(100vh - 3.25rem - 3.25rem);
min-height: calc(100vh - calc(2 * $navbar-height));
}

.fd-cover {
Expand Down Expand Up @@ -182,14 +182,14 @@ a.navbar-item {
/* Show scrollbar for navbar menu in desktop mode if content exceeds the screen size */
@media only screen and (min-width: 1024px) {
.navbar-dropdown {
max-height: calc(100vh - 3.25rem - 3.25rem - 2rem);
max-height: calc(100vh - calc(2 * $navbar-height) - 2rem);
overflow: auto;
}
}

/* Limit the size of the bottom navbar menu to not be displayed behind the Safari browser menu on iOS */
.fd-bottom-navbar .navbar-menu {
max-height: calc(100vh - 3.25rem - 3.25rem - 1rem);
max-height: calc(100vh - calc(2 * $navbar-height) - 1rem);
overflow: scroll;
}

Expand Down

0 comments on commit 58b06ee

Please sign in to comment.