Added align image and text with gutenberg.

This commit is contained in:
Fabiano Alencar 2018-08-24 12:29:18 -03:00
parent 3650bc1da5
commit f92d3fbce6
2 changed files with 41 additions and 0 deletions

View File

@ -52,6 +52,32 @@
img[class*="align"], img[class*="wp-image-"], img[class*="attachment-"] { img[class*="align"], img[class*="wp-image-"], img[class*="attachment-"] {
height: auto; height: auto;
} }
h1, h2, h3, h4, h5, h6 {
padding-top: .4rem;
&::after{
display: block;
clear: both;
content: "";
}
}
.alignleft {
float:left;
margin: 0 1em 1em 0;
}
.alignright {
float:right;
margin: 0 0 1em 1em;
}
@media only screen and (max-width: 576px) {
.alignleft, .alignright {
float: none;
text-align: center;
margin: 0;
img {
width: 275px;
}
}
}
img { img {
padding: 6px; padding: 6px;
max-width: calc( 100% - 14px ); max-width: calc( 100% - 14px );
@ -108,6 +134,9 @@
border: 1px solid black; border: 1px solid black;
padding: 5px; padding: 5px;
} }
figure {
margin: 16px 40px;
}
.wp-block-cover-image{ .wp-block-cover-image{
width: 99.5vw; width: 99.5vw;
position: relative; position: relative;
@ -127,17 +156,28 @@
.wp-block-gallery{ .wp-block-gallery{
.blocks-gallery-item{ .blocks-gallery-item{
figure{ figure{
margin: 0 !important;
figcaption{ figcaption{
padding: 10px 10px 5px; padding: 10px 10px 5px;
background: #fff; background: #fff;
color: #000; color: #000;
} }
} }
img {
height: 100% !important;
}
} }
@media (max-width: 768px){ @media (max-width: 768px){
padding-left: 0; padding-left: 0;
} }
} }
.wp-block-image {
&.is-resized {
img {
max-width: none !important;
}
}
}
.wp-block-pullquote{ .wp-block-pullquote{
border-top: 1px solid #cbcbcb; border-top: 1px solid #cbcbcb;
border-bottom: 1px solid #cbcbcb; border-bottom: 1px solid #cbcbcb;

View File

@ -32,4 +32,5 @@ $theme-colors: (
); );
$font-family-base: 'Roboto'; $font-family-base: 'Roboto';
$headings-font-family: 'Roboto'; $headings-font-family: 'Roboto';
$headings-font-weight: 400;
@import "../vendor/bootstrap/scss/bootstrap"; @import "../vendor/bootstrap/scss/bootstrap";