Sha256: b6b058be2342886d2793666a39761b698025ec07292ad9fd122a50893ff64138

Contents?: true

Size: 1.49 KB

Versions: 17

Compression:

Stored size: 1.49 KB

Contents

///
/// Editorial by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///

/* Banner */

	#banner {
		@include padding(6em, 0);
		@include vendor('display', 'flex');

		h1 {
			margin-top: -0.125em;
		}

		.content {
			@include vendor('flex-grow', '1');
			@include vendor('flex-shrink', '1');
			width: 50%;
		}

		.image {
			@include vendor('flex-grow', '0');
			@include vendor('flex-shrink', '0');
			display: block;
			margin: 0 0 _size(element-margin) (_size(element-margin) * 2);
			width: 50%;

			img {
				height: 100%;
				-moz-object-fit: cover;
				-webkit-object-fit: cover;
				-ms-object-fit: cover;
				object-fit: cover;
				-moz-object-position: center;
				-webkit-object-position: center;
				-ms-object-position: center;
				object-position: center;
				width: 100%;
			}
		}

		@include orientation(portrait) {
			@include vendor('flex-direction', 'column-reverse');

			h1 {
				br {
					display: none;
				}
			}

			.content {
				@include vendor('flex-grow', '0');
				@include vendor('flex-shrink', '0');
				width: 100%;
			}

			.image {
				@include vendor('flex-grow', '0');
				@include vendor('flex-shrink', '0');
				margin: 0 0 (_size(element-margin) * 2) 0;
				height: 25em;
				max-height: 50vh;
				min-height: 18em;
				width: 100%;
			}

			@include breakpoint('<=xsmall') {
				.image {
					max-height: 35vh;
				}
			}
		}
	}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
jekyll-theme-html5up-editorial-0.1.1 _sass/layout/_banner.scss
jekyll-theme-html5up-editorial-0.1.0 _sass/layout/_banner.scss
jekyll-theme-consulting-0.3.3 _sass/layout/_banner.scss
jekyll-theme-consulting-0.3.2 _sass/layout/_banner.scss
jekyll-theme-consulting-0.3.1 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.12 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.11 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.9 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.8 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.7 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.6 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.5 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.4 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.3 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.2 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.1 _sass/layout/_banner.scss
jekyll-theme-consulting-0.2.0 _sass/layout/_banner.scss