summaryrefslogtreecommitdiff
path: root/theme_common/static/src/old_snippets/s_showcase_image
diff options
context:
space:
mode:
authorRichard Sassine <richardsassine@tutanota.com>2021-05-04 18:00:38 +0300
committerRichard Sassine <richardsassine@tutanota.com>2021-05-04 18:00:38 +0300
commitad97722b1b35aff50d0adf13a19715f7b8373c07 (patch)
treeedf36f1114b896a01602e31dafd74efe45736427 /theme_common/static/src/old_snippets/s_showcase_image
initial commit
Diffstat (limited to 'theme_common/static/src/old_snippets/s_showcase_image')
-rw-r--r--theme_common/static/src/old_snippets/s_showcase_image/000.scss106
-rw-r--r--theme_common/static/src/old_snippets/s_showcase_image/000_variables.scss6
2 files changed, 112 insertions, 0 deletions
diff --git a/theme_common/static/src/old_snippets/s_showcase_image/000.scss b/theme_common/static/src/old_snippets/s_showcase_image/000.scss
new file mode 100644
index 0000000..0cf49dd
--- /dev/null
+++ b/theme_common/static/src/old_snippets/s_showcase_image/000.scss
@@ -0,0 +1,106 @@
+
+#wrapwrap .s_showcase_image {
+ height: auto;
+ text-align: left;
+ .info {
+ margin-bottom: 1.5em;
+ }
+ > .row {
+ height: 100%;
+ }
+ figure {
+ background-size : cover;
+ position : relative;
+ height : 200px;
+
+ // Layout Options
+ // =======================
+ &.tl figcaption {
+ top : 0;
+ left : 0;
+ bottom : auto;
+ right : auto;
+ margin-left : 14px;
+ text-align: right;
+ }
+ &.tr figcaption {
+ top : 0;
+ left : auto;
+ bottom : auto;
+ right : 0;
+ }
+ &.bl figcaption {
+ top : auto;
+ left : 0;
+ bottom : 0;
+ margin-left : 14px;
+ right : auto;
+ text-align: right;
+ }
+ }
+ figcaption {
+ position : absolute;
+ bottom : 0;
+ width : 100%;
+ text-shadow : $s-showcase-image-caption-text-shadow;
+ font-size : $s-showcase-image-caption-font-size-mobile;
+ padding : $s-showcase-image-caption-padding;
+
+ &:not([class*=bg-]) {
+ color : $s-showcase-image-caption-color;
+ background : $s-showcase-image-caption-bg;
+ }
+
+ h6 {
+ margin-top: 0;
+ }
+ }
+
+ @include media-breakpoint-up(lg) {
+ height: 350px;
+ .info {
+ height: 100%;
+ margin-bottom: 0;
+ display: flex;
+ flex-flow: column nowrap;
+ justify-content: center;
+ }
+ figure {
+ height: 100%;
+ }
+ figcaption {
+ position : absolute;
+ bottom : 0;
+ right : 0;
+ width : 50%;
+ font-size : $s-showcase-image-caption-font-size-desktop;
+ padding : $s-showcase-image-caption-padding;
+ }
+ }
+
+ &.s_right {
+ text-align: right;
+ figure {
+ float: right;
+
+ // Layout Options
+ // =======================
+ &.tl figcaption {
+ margin-left: 0;
+ }
+ &.tr figcaption {
+ margin-right : 14px;
+ }
+ &.bl figcaption {
+ margin-left: 0;
+ }
+ }
+
+ @include media-breakpoint-up(lg) {
+ figcaption {
+ margin-right : 14px;
+ text-align : left;
+ }
+ }
+ }
+}
diff --git a/theme_common/static/src/old_snippets/s_showcase_image/000_variables.scss b/theme_common/static/src/old_snippets/s_showcase_image/000_variables.scss
new file mode 100644
index 0000000..46eb944
--- /dev/null
+++ b/theme_common/static/src/old_snippets/s_showcase_image/000_variables.scss
@@ -0,0 +1,6 @@
+$s-showcase-image-caption-bg : white;
+$s-showcase-image-caption-color : #333;
+$s-showcase-image-caption-padding : 1em;
+$s-showcase-image-caption-font-size-mobile : 1em;
+$s-showcase-image-caption-font-size-desktop : .8em;
+$s-showcase-image-caption-text-shadow : none;