-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from studiopress/gutenberg-module
Extract Gutenberg functionality
- Loading branch information
Showing
6 changed files
with
434 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,216 @@ | ||
/* Font Sizes | ||
--------------------------------------------- */ | ||
|
||
.entry-content p.has-small-font-size{ | ||
font-size: 12px; | ||
} | ||
|
||
.entry-content p.has-regular-font-size{ | ||
font-size: 16px; | ||
} | ||
|
||
.entry-content p.has-large-font-size{ | ||
font-size: 20px; | ||
} | ||
|
||
.entry-content p.has-larger-font-size{ | ||
font-size: 24px; | ||
} | ||
|
||
/* Color Palette | ||
--------------------------------------------- */ | ||
|
||
.entry-content .has-light-gray-background-color { | ||
background-color: #f5f5f5; | ||
} | ||
|
||
.entry-content .has-light-gray-color { | ||
color: #f5f5f5; | ||
} | ||
|
||
.entry-content .has-medium-gray-background-color { | ||
background-color: #999; | ||
} | ||
|
||
.entry-content .has-medium-gray-color { | ||
color: #999; | ||
} | ||
|
||
.entry-content .has-dark-gray-background-color { | ||
background-color: #333; | ||
} | ||
|
||
.entry-content .has-dark-gray-color { | ||
color: #333; | ||
} | ||
|
||
/* Background Color | ||
--------------------------------------------- */ | ||
|
||
.entry-content p.has-background { | ||
padding: 25px 30px; | ||
} | ||
|
||
.entry-content p.has-background.box-shadow { | ||
box-shadow: 0 0 20px rgba(0,0,0,0.1); | ||
} | ||
|
||
.entry-content p.has-background.light-text a { | ||
color: #fff; | ||
text-decoration: underline; | ||
} | ||
|
||
.entry-content p.has-background.light-text a:focus, | ||
.entry-content p.has-background.light-text a:hover { | ||
text-decoration: none; | ||
} | ||
|
||
/* Alignment | ||
--------------------------------------------- */ | ||
|
||
.wp-block-button.alignleft, | ||
.wp-block-cover-image.alignleft { | ||
margin-right: 2em; | ||
} | ||
|
||
.wp-block-button.alignright, | ||
.wp-block-cover-image.alignright { | ||
margin-left: 2em; | ||
} | ||
|
||
.wp-block-image.alignwide, | ||
.wp-block-image.alignfull, | ||
.wp-block-embed.alignwide, | ||
.wp-block-embed.alignfull { | ||
margin-bottom: 30px; | ||
} | ||
|
||
.full-width-content .entry-content .alignfull { | ||
margin-left: calc( -100vw / 2 + 100% / 2 ); | ||
margin-right: calc( -100vw / 2 + 100% / 2 ); | ||
max-width: 100vw; | ||
} | ||
|
||
/* Columns | ||
--------------------------------------------- */ | ||
|
||
.entry-content .wp-block-columns { | ||
display: block; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.entry-content .wp-block-columns .wp-block-column { | ||
margin-left: 15px; | ||
margin-right: 15px; | ||
} | ||
|
||
.entry-content .wp-block-columns .wp-block-column:first-of-type { | ||
margin-left: 0; | ||
} | ||
|
||
.entry-content .wp-block-columns .wp-block-column:last-of-type { | ||
margin-right: 0; | ||
} | ||
|
||
/* Cover Image | ||
--------------------------------------------- */ | ||
|
||
.full-width-content .entry-content .wp-block-cover-image.alignfull { | ||
width: 100vw; | ||
} | ||
|
||
.entry-content .wp-block-cover-image .wp-block-cover-image-text { | ||
font-size: 48px; | ||
} | ||
|
||
/* Buttons | ||
--------------------------------------------- */ | ||
|
||
.content .wp-block-button .wp-block-button__link { | ||
background-color: #333; | ||
border: 0; | ||
border-radius: 0; | ||
color: #fff; | ||
cursor: pointer; | ||
font-size: 16px; | ||
font-weight: 600; | ||
padding: 15px 30px; | ||
text-align: center; | ||
text-decoration: none; | ||
white-space: normal; | ||
width: auto; | ||
} | ||
|
||
.content .wp-block-button .wp-block-button__link:focus, | ||
.content .wp-block-button .wp-block-button__link:hover { | ||
background-color: #0073e5; | ||
color: #fff; | ||
} | ||
|
||
/* Other Blocks | ||
---------------------------------------------------------------------------------------------------- */ | ||
|
||
.wp-block-preformatted { | ||
white-space: pre-wrap; | ||
} | ||
|
||
hr.wp-block-separator { | ||
border: none; | ||
border-top: 1px solid #eee; | ||
margin: 1.65em auto; | ||
} | ||
|
||
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) { | ||
max-width: 100px | ||
} | ||
|
||
.wp-block-audio audio { | ||
display: inline-block; | ||
width: 100%; | ||
} | ||
|
||
.entry-content .wp-block-gallery { | ||
padding-left: 0; | ||
} | ||
|
||
.entry-content .wp-block-quote cite { | ||
color: #666; | ||
display: block; | ||
font-size: 14px; | ||
margin-top: -25px; | ||
} | ||
|
||
.entry-content .wp-block-image figcaption { | ||
color: #666; | ||
font-size: 14px; | ||
font-style: italic; | ||
margin-bottom: 30px; | ||
margin-top: 10px; | ||
} | ||
|
||
/* Media Queries | ||
--------------------------------------------- */ | ||
|
||
@media only screen and (min-width: 510px) { | ||
|
||
.entry-content .wp-block-columns { | ||
display: flex; | ||
} | ||
|
||
.entry-content .wp-block-columns .wp-block-column { | ||
flex: 1; | ||
margin-left: 15px; | ||
margin-right: 15px; | ||
} | ||
|
||
} | ||
|
||
@media only screen and (min-width: 1062px) { | ||
|
||
.full-width-content .entry-content .alignwide { | ||
margin-left: -180px; | ||
margin-right: -180px; | ||
min-width: 1062px; | ||
} | ||
|
||
} |
Oops, something went wrong.