summaryrefslogtreecommitdiff
path: root/src/sass/underscores/_galleries.scss
diff options
context:
space:
mode:
authorMax2018-10-15 23:46:42 +0200
committerMax2018-10-15 23:46:42 +0200
commit00c9709fd9763542e848f6278db8ba26af5c9886 (patch)
tree92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /src/sass/underscores/_galleries.scss
downloadfuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz
Initial commit.
Diffstat (limited to 'src/sass/underscores/_galleries.scss')
-rw-r--r--src/sass/underscores/_galleries.scss46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/sass/underscores/_galleries.scss b/src/sass/underscores/_galleries.scss
new file mode 100644
index 0000000..1458347
--- /dev/null
+++ b/src/sass/underscores/_galleries.scss
@@ -0,0 +1,46 @@
+.gallery {
+ margin-bottom: 1.5em;
+}
+
+.gallery-item {
+ display: inline-block;
+ text-align: center;
+ vertical-align: top;
+ width: 100%;
+
+ .gallery-columns-2 & {
+ max-width: 50%;
+ }
+
+ .gallery-columns-3 & {
+ max-width: 33.33%;
+ }
+
+ .gallery-columns-4 & {
+ max-width: 25%;
+ }
+
+ .gallery-columns-5 & {
+ max-width: 20%;
+ }
+
+ .gallery-columns-6 & {
+ max-width: 16.66%;
+ }
+
+ .gallery-columns-7 & {
+ max-width: 14.28%;
+ }
+
+ .gallery-columns-8 & {
+ max-width: 12.5%;
+ }
+
+ .gallery-columns-9 & {
+ max-width: 11.11%;
+ }
+}
+
+.gallery-caption {
+ display: block;
+} \ No newline at end of file