Skip to content

Commit

Permalink
Improve layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoporto committed Feb 16, 2017
1 parent d03ccc7 commit f107099
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 3 deletions.
34 changes: 34 additions & 0 deletions dist/css/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,40 @@ i[class^="icon-"] {
transform: rotate(10deg);
}
}
.header {
width: auto;
max-width: 900px;
float: none;
display: block;
margin-right: auto;
margin-left: auto;
padding-left: 0;
padding-right: 0;
margin-bottom: 3em;
}
.header::after {
content: '';
display: table;
clear: both;
}
.footer {
width: auto;
max-width: 900px;
float: none;
display: block;
margin-right: auto;
margin-left: auto;
padding-left: 0;
padding-right: 0;
text-align: center;
font-size: 1.2em;
margin-bottom: 1.5em;
}
.footer::after {
content: '';
display: table;
clear: both;
}
.main {
width: auto;
max-width: 900px;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/demo.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/handlebars/includes/footer.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<footer>
<footer class="footer">
Copyright © 2014 - <span id="year"></span> Tiago Porto
</footer>

Expand Down
2 changes: 1 addition & 1 deletion src/handlebars/includes/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<!-- endbuild -->
</head>
<body>
<header>
<header class="header">
<h1>Accessibility Buttons</h1>

<p>Buttons to add/remove contrast and increase/decrease font size.</p>
Expand Down
5 changes: 5 additions & 0 deletions src/stylesheets/components/_footer.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.footer
center(900px)
text-align: center
font-size: 1.2em
trailer(1)
3 changes: 3 additions & 0 deletions src/stylesheets/components/_header.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.header
center(900px)
trailer(2)
2 changes: 2 additions & 0 deletions src/stylesheets/components/_index.styl
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
@import "_github-corner"
@import "_header"
@import "_footer"
@import "_main"

0 comments on commit f107099

Please sign in to comment.