Skip to content

Commit

Permalink
Merge pull request #43 from wearerequired/feature/variable-z-index
Browse files Browse the repository at this point in the history
Use custom property for z-index value
  • Loading branch information
midzer authored Nov 20, 2020
2 parents 7804fa0 + b2ae4f7 commit 5062370
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/css/tobii.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
--zoom-icon-background: hsla(210, 38%, 16%, 0.94);
--zoom-icon-color: #fff;
--lightbox-background: hsla(210, 38%, 16%, 0.94);
--lightbox-z-index: 1337;
--caption-background: rgba(255, 255, 255, 0.94);
--caption-color: hsl(210, 38%, 16%);
--counter-background: transparent;
Expand Down Expand Up @@ -72,7 +73,8 @@
position: fixed;
right: 0;
top: 0;
z-index: 1337; }
z-index: 1337;
z-index: var(--lightbox-z-index); }
.tobii[aria-hidden='true'] {
display: none; }
.tobii *,
Expand Down
2 changes: 1 addition & 1 deletion dist/css/tobii.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--zoom-icon-color: #fff;

--lightbox-background: hsla(210, 38%, 16%, 0.94);
--lightbox-z-index: 1337;

--caption-background: rgba(255, 255, 255, 0.94);
--caption-color: hsl(210, 38%, 16%);
Expand Down
2 changes: 1 addition & 1 deletion src/scss/tobii.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
position: fixed;
right: 0;
top: 0;
z-index: 1337;
z-index: var(--lightbox-z-index);


&[aria-hidden='true'] {
Expand Down

0 comments on commit 5062370

Please sign in to comment.