Skip to content

Commit

Permalink
Use html5 semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
bananaappletw committed Aug 1, 2017
1 parent 7c0c6b3 commit be7d8bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ body{
min-height: 100vh;
flex-direction: column;
}

header{
flex: none;
}
article{

main{
flex: 1 0 auto;
}

footer{
flex: none;
}
4 changes: 2 additions & 2 deletions app/views/layouts/admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
</head>
<body>
<%= render 'admin/header' %>
<article class="ui centered aligned grid container">
<main class="ui centered aligned grid container">
<div class="sixteen wide mobile sixteen wide tablet twelve wide computer column">
<div class="ui segment">
<%= render 'layouts/flash' %>
<%= yield %>
</div>
</div>
</article>
</main>
<%= render 'layouts/footer' %>
</body>
</html>
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
</head>
<body>
<%= render 'layouts/header' %>
<article class="ui centered aligned grid container">
<main class="ui centered aligned grid container">
<div class="sixteen wide mobile sixteen wide tablet twelve wide computer column">
<div class="ui segment">
<%= render 'layouts/flash' %>
<%= yield %>
</div>
</div>
</article>
</main>
<%= render 'layouts/footer' %>
</body>
</html>

0 comments on commit be7d8bb

Please sign in to comment.