Skip to content

Commit

Permalink
Title & Instructions Heading
Browse files Browse the repository at this point in the history
Move Instructions into translations, setup CSS for h2 & h3,
  • Loading branch information
ChristineP2 committed Mar 11, 2019
1 parent 2805512 commit 223b6c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app/assets/stylesheets/mountain_view/styleguide.css
Expand Up @@ -90,6 +90,12 @@ body{
color: #333;
}

.mv-main h2{
font-weight: 100;
font-size: 33px;
margin-bottom: 20px;
}

.mv-main__description {
}

Expand Down Expand Up @@ -119,7 +125,7 @@ body{
margin-top: 30px;
}

.mv-component__description h2{
.mv-component__description h3{
font-weight: bold;
margin-bottom: 20px;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/mountain_view/styleguide/show.html.erb
Expand Up @@ -17,7 +17,7 @@
<%= render_component @component.name, component_stub.properties.clone %>
</div>
<div class="mv-component__description">
<h3>Instructions for use</h3>
<h3><%= t('mountain_view.show.instruction_heading') %></h3>
<% unless component_stub.meta_description.blank? %>
<p><%= component_stub.meta_description %></p>
<br />
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Expand Up @@ -9,6 +9,7 @@ en:
tip_stub_format_html: 'You should write stub examples like this:'
hint_stub_creation_html: <span>Hint:</span>To see your component make sure you've created stubs
tip_stub_creation_html: 'You should write stub examples here:'
instruction_heading: Instructions for use
index:
description_html:
<p>Select one of the components from the side to view its examples and documentation.</p>
Expand Down

0 comments on commit 223b6c2

Please sign in to comment.