mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 02:53:43 +03:00
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
This commit is contained in:
parent
f888fd85c8
commit
157b73e13f
|
@ -13,7 +13,7 @@ body.page-about .entry-content {
|
||||||
> .wp-block-media-text,
|
> .wp-block-media-text,
|
||||||
> .wp-block-button,
|
> .wp-block-button,
|
||||||
> .wp-block-group {
|
> .wp-block-group {
|
||||||
margin-left: 35%;
|
margin-left: 17.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.is-style-wporg-tldr {
|
p.is-style-wporg-tldr {
|
||||||
|
|
|
@ -13,13 +13,3 @@
|
||||||
color: $color__text-heading;
|
color: $color__text-heading;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p.has-background,
|
|
||||||
.wp-block-group.has-background,
|
|
||||||
.wp-block-pullquote.has-wporg-blue-background-color {
|
|
||||||
/*
|
|
||||||
* Remove the gaps between consecutive paragraphs that have the same background color, and make it fill 100%
|
|
||||||
* of the screen on the mobile view.
|
|
||||||
*/
|
|
||||||
//margin: 0 - ms( 4 ); this is buggy, affects surrounding elements, see notes in parallelogram file
|
|
||||||
}
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ $size__spacing-unit: ms( 4 );
|
||||||
width: calc( 100% + ( 2 * #{ $size__spacing-unit } ) );
|
width: calc( 100% + ( 2 * #{ $size__spacing-unit } ) );
|
||||||
max-width: calc( 100% + ( 2 * #{ $size__spacing-unit} ) );
|
max-width: calc( 100% + ( 2 * #{ $size__spacing-unit} ) );
|
||||||
clear: both;
|
clear: both;
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
@include breakpoint( $breakpoint-tablet ) {
|
@include breakpoint( $breakpoint-tablet ) {
|
||||||
position: inherit;
|
position: inherit;
|
||||||
|
@ -15,5 +16,10 @@ $size__spacing-unit: ms( 4 );
|
||||||
width: inherit;
|
width: inherit;
|
||||||
max-width: inherit;
|
max-width: inherit;
|
||||||
clear: inherit;
|
clear: inherit;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
|
||||||
|
&.wp-block-group {
|
||||||
|
margin-top: -8rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
6
themes/wporg-5ftf/css/objects/_image.scss
Normal file
6
themes/wporg-5ftf/css/objects/_image.scss
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.wp-block-image {
|
||||||
|
|
||||||
|
img {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,5 +8,6 @@
|
||||||
@import "../../../pub/wporg/css/objects/notices";
|
@import "../../../pub/wporg/css/objects/notices";
|
||||||
@import "buttons";
|
@import "buttons";
|
||||||
@import "hero";
|
@import "hero";
|
||||||
|
@import "image";
|
||||||
@import "pledge-form";
|
@import "pledge-form";
|
||||||
@import "pullquote";
|
@import "pullquote";
|
||||||
|
|
|
@ -4,3 +4,4 @@
|
||||||
@import "../../../pub/wporg/css/settings/typography";
|
@import "../../../pub/wporg/css/settings/typography";
|
||||||
@import "colors";
|
@import "colors";
|
||||||
@import "structure";
|
@import "structure";
|
||||||
|
@import "typography";
|
||||||
|
|
5
themes/wporg-5ftf/css/settings/_typography.scss
Normal file
5
themes/wporg-5ftf/css/settings/_typography.scss
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
$type__base: 18px;
|
||||||
|
$type__base-mobile: 16px;
|
||||||
|
$type__lineheight: 1.5;
|
||||||
|
|
||||||
|
$font__serif: Georgia, "Times New Roman", serif;
|
|
@ -6,6 +6,7 @@
|
||||||
@import "settings/colors";
|
@import "settings/colors";
|
||||||
@import "../../pub/wporg/css/settings/structure";
|
@import "../../pub/wporg/css/settings/structure";
|
||||||
@import "settings/structure";
|
@import "settings/structure";
|
||||||
|
@import "settings/typography";
|
||||||
@import "../../pub/wporg/css/tools/breakpoint";
|
@import "../../pub/wporg/css/tools/breakpoint";
|
||||||
@import "../../pub/wporg/css/settings/_modular-scale.scss";
|
@import "../../pub/wporg/css/settings/_modular-scale.scss";
|
||||||
@import "../../pub/wporg/css/objects/buttons";
|
@import "../../pub/wporg/css/objects/buttons";
|
||||||
|
@ -42,7 +43,9 @@
|
||||||
.wp-block-pullquote.is-style-wporg-home-pullquote {
|
.wp-block-pullquote.is-style-wporg-home-pullquote {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
// font-family and face, etc?
|
// font-family and face, etc?
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
p.is-style-wporg-tldr {
|
p.is-style-wporg-tldr {
|
||||||
color: $color__text-heading;
|
color: $color__text-heading;
|
||||||
|
font-family: $font__serif;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
|
||||||
@include breakpoint( $breakpoint-tablet ) {
|
@include breakpoint( $breakpoint-tablet ) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
.wp-block-pullquote.is-style-wporg-home-pullquote {
|
.wp-block-pullquote.is-style-wporg-home-pullquote {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
font-family: $font__serif;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
|
@ -13,9 +14,9 @@
|
||||||
|
|
||||||
@include breakpoint( $breakpoint-tablet ) {
|
@include breakpoint( $breakpoint-tablet ) {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 14rem;
|
||||||
left: -255px;
|
left: -17.5rem;
|
||||||
max-width: 250px;
|
max-width: 16rem;
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
border-left: none;
|
border-left: none;
|
||||||
|
|
Loading…
Reference in a new issue