Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
UI(gallery): apply modern design on more places
Browse files Browse the repository at this point in the history
Change-Id: I2073a9b711c618d57b2888cc1a16427adfcec088
  • Loading branch information
andi34 committed Jul 4, 2022
1 parent fdd31eb commit 36839a9
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sass/modern_style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import 'classic_style';
@import 'partials/modern_button';
@import 'partials/modern_gallery';

html,
body {
Expand Down
53 changes: 53 additions & 0 deletions src/sass/partials/_modern_gallery.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.gallery {
&__header {
background: none;
> a {
top: 13px;
border-radius: 10%;
border: 2px solid $galleryButtonColor;
background: none;
> .fa {
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
}
}
&__body {
img {
border: 2px solid $galleryButtonColor;
border-radius: 8px;
}
figcaption {
background-color: unset;
border: 2px solid $galleryButtonColor;
border-radius: 8px;
margin-top: 6px;
}
}
}

a.gallery__reload,
a.gallery__close {
border: 2px solid $galleryButtonColor;
border-radius: 50%;
background: radial-gradient(grey, $mainColor, $hoverColor);
}

.pswp__button--close {
border-radius: 50%;
}

.gallerybtn {
border-radius: 50%;
left: 1em;
margin: auto;
}

.closebtn {
border-radius: 50%;
right: 1em;
margin: auto;
}

0 comments on commit 36839a9

Please sign in to comment.