Procházet zdrojové kódy

Premium Content : Ensuring correct vertical margin

The paragraph elements inside of Premium Content blocks weren't
included in the entry-content margin definitions.  This ensures
that any paragraph (including those in Premium Content blocks)
have the appropriate styles assigned.
Jason Crist před 4 roky
rodič
revize
aefdd21ac0
3 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 1 0
      varia/sass/layout/_structure.scss
  2. 4 0
      varia/style-rtl.css
  3. 4 0
      varia/style.css

+ 1 - 0
varia/sass/layout/_structure.scss

@@ -87,6 +87,7 @@
 .site-main > article > *, // apply vertical margins to article level
 .site-main > .not-found > *, // apply vertical margins to article level
 .entry-content > *,
+.entry-content p, //ensure proper margins in Premium Content block
 [class*="inner-container"] > *,
 .widget-area > * {
 

+ 4 - 0
varia/style-rtl.css

@@ -918,6 +918,7 @@ footer {
 .site-main > article > *,
 .site-main > .not-found > *,
 .entry-content > *,
+.entry-content p,
 [class*="inner-container"] > *,
 .widget-area > * {
 	margin-top: 21.312px;
@@ -929,6 +930,7 @@ footer {
 	.site-main > article > *,
 	.site-main > .not-found > *,
 	.entry-content > *,
+	.entry-content p,
 	[class*="inner-container"] > *,
 	.widget-area > * {
 		margin-top: 32px;
@@ -940,6 +942,7 @@ footer {
 .site-main > article > *:first-child,
 .site-main > .not-found > *:first-child,
 .entry-content > *:first-child,
+.entry-content p:first-child,
 [class*="inner-container"] > *:first-child,
 .widget-area > *:first-child {
 	margin-top: 0;
@@ -949,6 +952,7 @@ footer {
 .site-main > article > *:last-child,
 .site-main > .not-found > *:last-child,
 .entry-content > *:last-child,
+.entry-content p:last-child,
 [class*="inner-container"] > *:last-child,
 .widget-area > *:last-child {
 	margin-bottom: 0;

+ 4 - 0
varia/style.css

@@ -918,6 +918,7 @@ footer {
 .site-main > article > *,
 .site-main > .not-found > *,
 .entry-content > *,
+.entry-content p,
 [class*="inner-container"] > *,
 .widget-area > * {
 	margin-top: 21.312px;
@@ -929,6 +930,7 @@ footer {
 	.site-main > article > *,
 	.site-main > .not-found > *,
 	.entry-content > *,
+	.entry-content p,
 	[class*="inner-container"] > *,
 	.widget-area > * {
 		margin-top: 32px;
@@ -940,6 +942,7 @@ footer {
 .site-main > article > *:first-child,
 .site-main > .not-found > *:first-child,
 .entry-content > *:first-child,
+.entry-content p:first-child,
 [class*="inner-container"] > *:first-child,
 .widget-area > *:first-child {
 	margin-top: 0;
@@ -949,6 +952,7 @@ footer {
 .site-main > article > *:last-child,
 .site-main > .not-found > *:last-child,
 .entry-content > *:last-child,
+.entry-content p:last-child,
 [class*="inner-container"] > *:last-child,
 .widget-area > *:last-child {
 	margin-bottom: 0;