five-for-the-future/themes/wporg-5ftf/css/objects/_hero.scss
Kelly Dwan 157b73e13f
Homepage: clean up item positioning
- Remove accidental drop-shadow (mistake in Figma)
- Use the correct fonts for callout text
- Switch to a fixed width of rems over percentages to make alignment easier
- Use rems to outdent quote so it lines up with the edge of the photo
- Overlap the blue box + photo on larger screens, and offset the quote down
- Remove unused selectors
- Fix quote display in the editor
2019-10-24 13:10:40 -04:00

26 lines
594 B
SCSS

// Defined here so we can use `ms`.
$size__spacing-unit: ms( 4 );
/* Fills 100% of the screen on mobile, and 100% of the content area on desktop */
.is-style-wporg-hero {
position: relative;
left: -#{ $size__spacing-unit };
width: calc( 100% + ( 2 * #{ $size__spacing-unit } ) );
max-width: calc( 100% + ( 2 * #{ $size__spacing-unit} ) );
clear: both;
margin-bottom: 0;
@include breakpoint( $breakpoint-tablet ) {
position: inherit;
left: inherit;
width: inherit;
max-width: inherit;
clear: inherit;
margin-bottom: 1em;
&.wp-block-group {
margin-top: -8rem;
}
}
}