Fix aligncenter images
Images with .aligncenter still aren't centered with only the style .mx-auto because they need to be set to display:block as well.
This commit is contained in:
parent
41115509cd
commit
53c7d59767
|
@ -1,9 +1,12 @@
|
||||||
// Some basic padding for all wrappers
|
// Some basic padding for all wrappers
|
||||||
.wrapper {
|
.wrapper {
|
||||||
padding: $grid-gutter-width 0; }
|
padding: $grid-gutter-width 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Reset hero wrapper padding to 0
|
// Reset hero wrapper padding to 0
|
||||||
#wrapper-hero { padding: 0px !important; }
|
#wrapper-hero {
|
||||||
|
padding: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
// Adding basic WordPress classes to pass the WordPress.org tests
|
// Adding basic WordPress classes to pass the WordPress.org tests
|
||||||
.sticky,
|
.sticky,
|
||||||
|
@ -13,18 +16,28 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Separate sticky wrapper from main content
|
// Separate sticky wrapper from main content
|
||||||
.wrapper#wrapper-sticky { border-bottom: 1px solid $gray-300; }
|
.wrapper#wrapper-sticky {
|
||||||
|
border-bottom: 1px solid $gray-300;
|
||||||
|
}
|
||||||
|
|
||||||
// Adding some contrast background color to footer full widget
|
// Adding some contrast background color to footer full widget
|
||||||
#wrapper-footer-full,
|
#wrapper-footer-full,
|
||||||
#wrapper-static-hero { background-color: $gray-200; }
|
#wrapper-static-hero {
|
||||||
|
background-color: $gray-200;
|
||||||
|
}
|
||||||
|
|
||||||
// Necessary WP classes
|
// Necessary WP classes
|
||||||
.wp-caption { font-size: inherit; }
|
.wp-caption {
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-caption-text { font-size: inherit; }
|
.wp-caption-text {
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.screen-reader-text { @extend .sr-only; }
|
.screen-reader-text {
|
||||||
|
@extend .sr-only;
|
||||||
|
}
|
||||||
|
|
||||||
.alignleft {
|
.alignleft {
|
||||||
display: inline;
|
display: inline;
|
||||||
|
@ -38,7 +51,10 @@
|
||||||
margin-left: 1.5em;
|
margin-left: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aligncenter { @extend .mx-auto; }
|
.aligncenter {
|
||||||
|
@extend .mx-auto,
|
||||||
|
.d-block;
|
||||||
|
}
|
||||||
|
|
||||||
.widget_categories,
|
.widget_categories,
|
||||||
.widget_archive {
|
.widget_archive {
|
||||||
|
@ -48,9 +64,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Post design
|
// Post design
|
||||||
.entry-footer span { padding-right: 10px; }
|
.entry-footer span {
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
// Limit featured image size to 100%
|
|
||||||
img.wp-post-image,
|
img.wp-post-image,
|
||||||
article img,
|
article img,
|
||||||
figure,
|
figure,
|
||||||
|
@ -69,7 +86,9 @@ a.skip-link {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset Jumbotron default margin
|
// Reset Jumbotron default margin
|
||||||
.jumbotron { margin-bottom: 0px; }
|
.jumbotron {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
// Dropdown translation
|
// Dropdown translation
|
||||||
.navbar-dark .navbar-nav .dropdown-menu .nav-link {
|
.navbar-dark .navbar-nav .dropdown-menu .nav-link {
|
||||||
|
@ -101,6 +120,7 @@ a.skip-link {
|
||||||
&:disabled {
|
&:disabled {
|
||||||
color: $dropdown-link-disabled-color !important;
|
color: $dropdown-link-disabled-color !important;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
// Remove CSS gradients if they're enabled
|
// Remove CSS gradients if they're enabled
|
||||||
@if $enable-gradients {
|
@if $enable-gradients {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
@ -124,4 +144,6 @@ a.skip-link {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar h1 { font-weight: $font-weight-normal; }
|
.navbar h1 {
|
||||||
|
font-weight: $font-weight-normal;
|
||||||
|
}
|
||||||
|
|
Reference in New Issue