From 00c9709fd9763542e848f6278db8ba26af5c9886 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 15 Oct 2018 23:46:42 +0200 Subject: Initial commit. --- src/sass/underscores/_captions.scss | 16 +++++++++++++ src/sass/underscores/_galleries.scss | 46 ++++++++++++++++++++++++++++++++++++ src/sass/underscores/_media.scss | 25 ++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 src/sass/underscores/_captions.scss create mode 100644 src/sass/underscores/_galleries.scss create mode 100644 src/sass/underscores/_media.scss (limited to 'src/sass/underscores') diff --git a/src/sass/underscores/_captions.scss b/src/sass/underscores/_captions.scss new file mode 100644 index 0000000..c299bfe --- /dev/null +++ b/src/sass/underscores/_captions.scss @@ -0,0 +1,16 @@ +.wp-caption { + margin-bottom: 1.5em; + max-width: 100%; + + img[class*="wp-image-"] { + @include center-block; + } + + .wp-caption-text { + margin: 0.8075em 0; + } +} + +.wp-caption-text { + text-align: center; +} 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 diff --git a/src/sass/underscores/_media.scss b/src/sass/underscores/_media.scss new file mode 100644 index 0000000..198535d --- /dev/null +++ b/src/sass/underscores/_media.scss @@ -0,0 +1,25 @@ +.page-content .wp-smiley, +.entry-content .wp-smiley, +.comment-content .wp-smiley { + border: none; + margin-bottom: 0; + margin-top: 0; + padding: 0; +} + +/* Make sure embeds and iframes fit their containers. */ +embed, +iframe, +object { + max-width: 100%; +} + +/*-------------------------------------------------------------- +## Captions +--------------------------------------------------------------*/ +@import "captions"; + +/*-------------------------------------------------------------- +## Galleries +--------------------------------------------------------------*/ +@import "galleries"; \ No newline at end of file -- cgit v1.2.3