Commit 33ec961f authored by webchick's avatar webchick

Issue #2398469 by DickJohnson, LewisNyman, emma.maria, kandra, mherchel: Clean...

Issue #2398469 by DickJohnson, LewisNyman, emma.maria, kandra, mherchel: Clean up the "Featured-top" component in Bartik
parent f8722b88
......@@ -32,7 +32,7 @@ function bartik_preprocess_html(&$variables) {
}
if (!empty($variables['page']['featured_top'])) {
$variables['attributes']['class'][] = 'featured-top';
$variables['attributes']['class'][] = 'has-featured-top';
}
}
......
......@@ -24,7 +24,7 @@
text-align: center;
text-shadow: none;
}
#featured-top .demo-block {
.featured-top .demo-block {
font-size: 0.55em;
}
#header .demo-block {
......
/* ----------------- Featured ----------------- */
/**
* @file
* Visual styles for Bartik's featured top.
*/
#featured-top {
.featured-top {
text-align: center;
font-size: 1.2em;
font-weight: normal;
......@@ -12,11 +15,11 @@
border-bottom: 1px solid #e7e7e7;
text-shadow: 1px 1px #fff;
}
#featured-top h2 {
.featured-top h2 {
font-size: 1.2em;
line-height: 1;
}
#featured-top p {
.featured-top p {
margin: 0;
padding: 0;
}
......@@ -5,7 +5,7 @@
margin: 0 auto;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.featured-top #messages {
.has-featured-top #messages {
background: #f0f0f0;
background: rgba(30, 50, 10, 0.08);
}
......
......@@ -10,7 +10,7 @@ body,
min-height: 100%;
}
#header div.section,
#featured-top aside.section,
.featured-top__inner,
#messages div.section,
#main,
#featured-bottom,
......@@ -144,7 +144,7 @@ body,
@media all and (min-width: 851px) {
#header div.section,
#featured-top aside.section,
.featured-top__inner,
#messages div.section,
#main,
#featured-bottom,
......
......@@ -115,8 +115,8 @@
</div>
{% endif %}
{% if page.featured_top %}
<div id="featured-top">
<aside class="section clearfix" role="complementary">
<div class="featured-top">
<aside class="featured-top__inner clearfix" role="complementary">
{{ page.featured_top }}
</aside>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment