Browse Source

Fix scoping for widget styles.

pull/11/head
Ned Zimmerman 8 years ago
parent
commit
308b82acf1
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 2
      app/setup.php
  2. 10
      resources/assets/styles/layouts/_pages.scss

2
app/setup.php

@ -134,7 +134,7 @@ add_action('widgets_init', function () {
'aldine' 'aldine'
), ),
'id' => 'front-page-block', 'id' => 'front-page-block',
'before_widget' => '<section class="widget %1$s %2$s">', 'before_widget' => '<section class="block %1$s %2$s">',
'after_widget' => '</section>', 'after_widget' => '</section>',
'before_title' => '<h3 class="tc ttu">', 'before_title' => '<h3 class="tc ttu">',
'after_title' => '</h3>' 'after_title' => '</h3>'

10
resources/assets/styles/layouts/_pages.scss

@ -1,5 +1,5 @@
.home { .home {
.widget, .block,
.latest-books { .latest-books {
height: 445px; height: 445px;
background-color: $white; background-color: $white;
@ -28,7 +28,7 @@
} }
} }
.widget { .block {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
@ -125,7 +125,7 @@
margin-top: -366px; margin-top: -366px;
} }
.widget { .block {
width: 775px; width: 775px;
margin-bottom: 119px; margin-bottom: 119px;
padding: 0 90px; padding: 0 90px;
@ -169,7 +169,7 @@
@media (min-width: $large) { @media (min-width: $large) {
.home { .home {
.widget { .block {
width: 1115px; width: 1115px;
height: 494px; height: 494px;
} }
@ -193,7 +193,7 @@
@media (min-width: $extra-large) { @media (min-width: $extra-large) {
.home { .home {
.widget { .block {
width: 1115px; width: 1115px;
box-shadow: -3px 5px 4px 2px rgba(135, 135, 135, 0.09); box-shadow: -3px 5px 4px 2px rgba(135, 135, 135, 0.09);
} }

Loading…
Cancel
Save