Skip to content

Commit

Permalink
homepage text and image alignment fixed, ref mozilla/sumo#26
Browse files Browse the repository at this point in the history
  • Loading branch information
kkellydesign authored and akatsoulas committed Jan 23, 2020
1 parent dcd4e17 commit 2c70e3f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kitsune/landings/jinja2/landings/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ <h1 class="text-display-xl">{{ _('Search Mozilla Support') }}</h1>
</div>
</section>
<section class="mzp-l-content sumo-page-section" id="main-content">
<div class="text-center">
<div class="text-center-to-left-on-large">
<h2 class="text-display-xs">{{ _('Get Help') }}</h2>
<p>{{ _('Pick your product') }}</p>
</div>
{{ product_cards(products) }}
</section>

<section class="mzp-l-content sumo-page-section">
<div class="text-center">
<div class="text-center-to-left-on-large">
<h2 class="text-display-xs">{{ _('Featured Articles & Threads') }}</h2>
</div>
{% include "landings/includes/featured_articles.html" %}
Expand Down
8 changes: 8 additions & 0 deletions kitsune/sumo/static/sumo/scss/base/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@
text-align: center;
}

.text-center-to-left-on-large {
text-align: center;

@media #{p.$mq-lg} {
text-align: left;
}
}

.text-right {
text-align: right;
}
Expand Down
1 change: 1 addition & 0 deletions kitsune/sumo/static/sumo/scss/components/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@

&--product {
@include c.elevation-01;
display: flex;
flex-direction: column;
}

Expand Down

0 comments on commit 2c70e3f

Please sign in to comment.