Skip to content

Commit

Permalink
Upgrade style to v9.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaiacs committed Mar 10, 2017
2 parents 211ad64 + bb2b611 commit 6027e68
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 12 deletions.
12 changes: 10 additions & 2 deletions _includes/lesson_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="row">
<div class="col-md-6" align="left">
<h4>
Copyright &copy; 2016
Copyright &copy; 2016–{{ 'now' | date: "%Y" }}
{% if site.carpentry == "swc" %}
<a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
{% elsif site.carpentry == "dc" %}
Expand All @@ -17,10 +17,18 @@ <h4>
</div>
<div class="col-md-6" align="right">
<h4>
<a href="{{ site.github.repository_url }}/">Source</a>
{% if page.source %}
{% if page.source == "Rmd" %}
<a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}">Edit on GitHub</a>
{% endif %}
{% else %}
<a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path}}">Edit on GitHub</a>
{% endif %}
/
<a href="{{ site.github.repository_url }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
/
<a href="{{ site.github.repository_url }}/">Source</a>
/
<a href="{{ site.github.repository_url }}/blob/gh-pages/CITATION">Cite</a>
/
<a href="{{ site.contact }}">Contact</a>
Expand Down
9 changes: 8 additions & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
{% comment %} Show setup instructions, reference guide, and lesson episodes for lessons. {% endcomment %}
{% if site.kind == "lesson" %}
<li><a href="{{ page.root }}/setup/">Setup</a></li>
<li><a href="{{ page.root }}/reference/">Reference</a></li>
<li class="dropdown">
<a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
<ul class="dropdown-menu">
Expand All @@ -67,6 +66,7 @@
<li class="dropdown">
<a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{ page.root }}/reference/">Reference</a></li>
{% for extra in site.extras %}
<li><a href="{{ page.root }}{{ extra.url }}">{{ extra.title }}</a></li>
{% endfor %}
Expand All @@ -76,6 +76,13 @@

{% comment %} Always show license. {% endcomment %}
<li><a href="{{ page.root }}/license/">License</a></li>
{% if page.source %}
{% if page.source == "Rmd" %}
<li><a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}">Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
{% endif %}
{% else %}
<li><a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path}}">Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
{% endif %}
</ul>
<form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
<div class="form-group">
Expand Down
18 changes: 10 additions & 8 deletions _includes/syllabus.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<div class="syllabus">
<h2 id="schedule">Schedule</h2>

{% assign lesson_number = 0 %}
{% assign day = 0 %}
{% assign multiday = false %}
{% for episode in site.episodes %}
Expand All @@ -14,8 +15,8 @@ <h2 id="schedule">Schedule</h2>

<table class="table table-striped">
<tr>
<td class="col-md-1"></td>
<td class="col-md-1"></td>
{% if multiday %}<td class="col-md-1"></td>{% endif %}
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}"></td>
<td class="col-md-3"><a href="{{ page.root }}/setup">Setup</a></td>
<td class="col-md-7">Dowload files used on the lesson.</td>
</tr>
Expand All @@ -26,8 +27,8 @@ <h2 id="schedule">Schedule</h2>
{% assign hours = current | divided_by: 60 %}
{% assign minutes = current | modulo: 60 %}
<tr>
{% if multiday %}<td></td>{% endif %}
<td class="col-md-1">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
{% if multiday %}<td class="col-md-1"></td>{% endif %}
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
<td class="col-md-3">Finish</td>
<td class="col-md-7"></td>
</tr>
Expand All @@ -38,9 +39,10 @@ <h2 id="schedule">Schedule</h2>
{% assign minutes = current | modulo: 60 %}
<tr>
{% if multiday %}<td class="col-md-1">{% if episode.start %}Day {{ day }}{% endif %}</td>{% endif %}
<td class="col-md-1">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
<td class="col-md-3">
<a href="{{ page.root }}{{ episode.url }}">{{ episode.title }}</a>
{% assign lesson_number = lesson_number | plus: 1 %}
{{ lesson_number }}. <a href="{{ page.root }}{{ episode.url }}">{{ episode.title }}</a>
</td>
<td class="col-md-7">
{% if episode.break %}
Expand All @@ -62,8 +64,8 @@ <h2 id="schedule">Schedule</h2>
{% assign hours = current | divided_by: 60 %}
{% assign minutes = current | modulo: 60 %}
<tr>
{% if multiday %}<td></td>{% endif %}
<td class="col-md-1">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
{% if multiday %}<td class="col-md-1"></td>{% endif %}
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
<td class="col-md-3">Finish</td>
<td class="col-md-7"></td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion assets/css/bootstrap.css

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

13 changes: 13 additions & 0 deletions assets/css/lesson.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $color-testimonial: #fc8dc1 !default;
color: $color;
border-left: solid 5px $color;
margin-bottom: 0px;
border-radius: 4px 0 0 4px;
}

.error { @include cdSetup($color-error); }
Expand All @@ -45,6 +46,18 @@ $color-testimonial: #fc8dc1 !default;
.r { @include cdSetup($color-source); }
.sql { @include cdSetup($color-source); }

.error pre,
.output pre,
.source pre,
.bash pre,
.make pre,
.matlab pre,
.python pre,
.r pre,
.sql pre {
border-radius: 0 4px 4px 0;
}

//----------------------------------------
// Specialized blockquote environments for learning objectives, callouts, etc.
//----------------------------------------
Expand Down
1 change: 1 addition & 0 deletions assets/js/jquery.min.map

Large diffs are not rendered by default.

0 comments on commit 6027e68

Please sign in to comment.