mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-07 19:25:44 +03:00
Theme: Add WIP styles for About page.
This commit is contained in:
parent
7b45a8c1c1
commit
a197adc6e2
13 changed files with 285 additions and 168 deletions
32
themes/wporg-5ftf/css/base/_elements.scss
Normal file
32
themes/wporg-5ftf/css/base/_elements.scss
Normal file
|
@ -0,0 +1,32 @@
|
|||
$size__spacing-unit: ms( 4 ); // todo is this globally scoped? if so should move to vars file
|
||||
|
||||
.wp-block-image {
|
||||
// this shouldn't apply to all images, just .alignfull ?
|
||||
// but then the design calls for the images to be allignful on mobile, but not on desktop, so.... wtf?
|
||||
// need a new alignment setting that says "alignfull-on-mobile-but-constrain-on-desktop" ?
|
||||
// maybe this impacts how you do the has-background pullquote and other paragraphs, too, since they're also aligned fully on mobile.
|
||||
|
||||
/* Make it fill 100% of the screen */
|
||||
position: relative;
|
||||
left: -#{ $size__spacing-unit };
|
||||
width: calc( 100% + ( 2 * #{ $size__spacing-unit } ) );
|
||||
max-width: calc( 100% + ( 2 * #{ $size__spacing-unit} ) );
|
||||
clear: both;
|
||||
|
||||
@include breakpoint( $breakpoint-desktop ) {
|
||||
position: inherit;
|
||||
left: inherit;
|
||||
width: inherit;
|
||||
max-width: inherit;
|
||||
clear: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
p.is-style-wporg-tldr {
|
||||
color: $color__text-heading;
|
||||
font-style: italic;
|
||||
|
||||
@include breakpoint( $breakpoint-tablet ) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue