aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/assets/scss
diff options
context:
space:
mode:
authorpacien2020-05-08 19:10:52 +0200
committerpacien2020-05-08 19:10:52 +0200
commite02b09f405c81fd3eb612b0bb1f78f5860b0a5e8 (patch)
treee9752489fd04b57655430b7cddcb6deafe233f8b /viewer/src/assets/scss
parent3cf40298471995fddea8a66860353a2b1ceeeeee (diff)
downloadldgallery-e02b09f405c81fd3eb612b0bb1f78f5860b0a5e8.tar.gz
viewer/style/global: factorise flex centering container
Diffstat (limited to 'viewer/src/assets/scss')
-rw-r--r--viewer/src/assets/scss/global.scss11
1 files changed, 11 insertions, 0 deletions
diff --git a/viewer/src/assets/scss/global.scss b/viewer/src/assets/scss/global.scss
index 9444548..5d2e6dc 100644
--- a/viewer/src/assets/scss/global.scss
+++ b/viewer/src/assets/scss/global.scss
@@ -51,6 +51,17 @@ button svg + span {
51 align-items: center; 51 align-items: center;
52} 52}
53 53
54/**
55 * Class for containers that centers its content vertically and horizontally,
56 * preferably sticking to the container start if the container is smaller than the content.
57 */
58.container-vh-centering {
59 min-height: 100%;
60 display: flex;
61 align-items: center;
62 justify-content: center;
63}
64
54// === Links 65// === Links
55 66
56.link { 67.link {