Skip to content

Commit

Permalink
Link to one stylesheet per page by using @import instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclynperrone committed May 15, 2015
1 parent c39b37b commit c368791
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cycledash/static/scss/examine.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'bootstrap.min';
@import 'style';

/* ExaminePage */
h1 small {
Expand Down
2 changes: 0 additions & 2 deletions cycledash/static/scss/header.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'bootstrap.min';

nav.navigation {
font-size: 12px;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion cycledash/static/scss/runs.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'bootstrap.min';
@import 'style';

main {
width: 800px;
Expand Down
1 change: 1 addition & 0 deletions cycledash/static/scss/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import 'bootstrap.min';
@import 'header';

body {
padding: 11px;
Expand Down
4 changes: 4 additions & 0 deletions cycledash/templates/about.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{% extends "layouts/layout.html" %}
{%- from 'macros/nav.html' import nav -%}

{% block head %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
{% endblock %}

{% block body %}
{{ nav("about") }}
<main>
Expand Down
4 changes: 4 additions & 0 deletions cycledash/templates/comments.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{% extends "layouts/layout.html" %}
{%- from 'macros/nav.html' import nav -%}

{% block head %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
{% endblock %}

{% block body %}
{{ nav("comments") }}
<main id="comments"></main>
Expand Down
3 changes: 0 additions & 3 deletions cycledash/templates/layouts/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
<script type="text/javascript" src={{config['TYPEKIT_URL']}}></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
{% endif %}

<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/header.css">
{% block head %}{% endblock %}
</head>

Expand Down

0 comments on commit c368791

Please sign in to comment.