Skip to content

Commit

Permalink
Merge pull request google#294 from google/comp-pages
Browse files Browse the repository at this point in the history
Fix visual on component pages (fixes google#277)
  • Loading branch information
addyosmani committed May 13, 2015
2 parents 672da04 + fbf8069 commit 6598ffe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
8 changes: 8 additions & 0 deletions docs/_assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,11 @@ button a {
color: inherit;
text-decoration: none;
}

.component-description {
max-width: 720px;
padding: 40px;
}
.component-description .mdl-button:first-of-type {
margin-top: 8px;
}
23 changes: 9 additions & 14 deletions docs/_templates/component.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{% extends 'layout.html' %}

{% block content %}
<div class="component-description mdl-cell mdl-cell--12-col">
<div>
<a href="../">back to all </a>
</div>

<div>
<a href="../">back to all </a>
</div>

<div>
<button class="mdl-button mdl-js-button mdl-button--raised">
<a href="demo.html">demo</a></button>
</div>



{{content|safe}}
<div>
<a href="demo.html" class="mdl-button mdl-js-button mdl-button--raised">demo</a></button>
</div>

{{content|safe}}
</div>
{% endblock %}


0 comments on commit 6598ffe

Please sign in to comment.