Skip to content

Commit

Permalink
refactor: remove backdrop styles and improve fullscreen styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Jun 5, 2024
1 parent 7a7908f commit 57f9928
Showing 1 changed file with 21 additions and 32 deletions.
53 changes: 21 additions & 32 deletions src/scss/_fullscreen.scss
Original file line number Diff line number Diff line change
@@ -1,37 +1,26 @@
$fullscreen-list: -webkit-full-screen, -moz-full-screen, -ms-fullscreen, full-screen, fullscreen;
$backdrop-list: backdrop, -ms-backdrop;
.photoviewer-modal:fullscreen {
top: 0 !important;
right: 0 !important;
bottom: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background-color: black;
border-width: 0;
border-radius: 0;

@each $fullscreen in $fullscreen-list {
:#{$fullscreen} {
top: 0 !important;
right: 0 !important;
bottom: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background-color: transparent;
border-width: 0;
border-radius: 0;

.photoviewer-header,
.photoviewer-footer,
.photoviewer-resizable-handle {
display: none;
}

.photoviewer-stage {
top: 0;
right: 0;
bottom: 0;
left: 0;
border-width: 0;
background-color: black;
}
.photoviewer-header,
.photoviewer-footer,
.photoviewer-resizable-handle {
display: none;
}
}

@each $backdrop in $backdrop-list {
::#{$backdrop} {
background-color: black;
.photoviewer-stage {
top: 0;
right: 0;
bottom: 0;
left: 0;
border-width: 0;
background-color: transparent;
}
}

0 comments on commit 57f9928

Please sign in to comment.