-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from ChtiJS/refactor/gallery
refactor(ui): move the gallery to CSS modules
- Loading branch information
Showing
3 changed files
with
57 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@import '../layouts/variables.scss'; | ||
|
||
.root { | ||
clear: both; | ||
background: var(--secondary); | ||
padding: calc(var(--vRythm) / 2) calc(var(--gutter) / 2); | ||
} | ||
.root p { | ||
text-align: center; | ||
padding: calc(var(--vRythm) / 2) calc(var(--gutter) / 2); | ||
margin: 0; | ||
height: calc(var(--vRythm) * 22); | ||
background: var(--light); | ||
} | ||
.root p img { | ||
max-width: 100%; | ||
height: 100%; | ||
max-height: 100%; | ||
} | ||
.root ul { | ||
display: flex; | ||
justify-content: left; | ||
flex-wrap: wrap; | ||
margin: 0 0 0 calc(-0.5 * var(--gutter)); | ||
padding: 0; | ||
overflow: hidden; | ||
} | ||
.root ul li { | ||
display: block; | ||
list-style-type: none; | ||
text-align: center; | ||
padding: calc(var(--vRythm) / 2) 0 0 calc(var(--gutter) / 2); | ||
} | ||
.root ul li a { | ||
display: block; | ||
height: calc(var(--vRythm) * 4); | ||
width: calc(var(--column) * 2); | ||
background: var(--light); | ||
} | ||
.root ul li img { | ||
max-width: 100%; | ||
max-height: 100%; | ||
height: 100%; | ||
cursor: pointer; | ||
} | ||
@media screen and (max-width: $CSS_BREAKPOINT_END_M) { | ||
.root p { | ||
height: calc(var(--vRythm) * 12); | ||
} | ||
.root ul li a { | ||
height: calc(var(--vRythm) * 2); | ||
width: calc(var(--column) * 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters