Skip to content

Commit

Permalink
tweaks to spacelab theme
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmjohnson committed Jul 29, 2021
1 parent 4fa2aeb commit edc007b
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mathjax: true
timezone: Pacific/Honolulu # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
baseurl: /morea
exclude: [morea]
morea_theme: cerulean
morea_theme: spacelab
morea_navbar_items:
- Prerequisites
- Modules
Expand Down
2 changes: 1 addition & 1 deletion _layouts/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</head>
<body>

<div class="navbar navbar-expand-lg fixed-top">
<div class="navbar navbar-expand-lg fixed-top {{site.morea_theme_navbar_bg}}">
<div class="container">
<a class="navbar-brand" href="{{ site.baseurl }}/index.html"> {{ site.name }} </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Expand Down
4 changes: 3 additions & 1 deletion _layouts/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<div class="container">
<h1><small class="header-small">Module: </small> {{ page.morea_page.title }} </h1>
<p>{{ page.morea_page.content | markdownify }}</p>
<p>Dates: {{ page.morea_page.morea_start_date_string }} - {{ page.morea_page.morea_end_date_string }}</p>
{% if page.morea_page.morea_start_date_string %}
<p>Dates: {{ page.morea_page.morea_start_date_string }} - {{ page.morea_page.morea_end_date_string }}</p>
{% endif %}
</div>

{% unless page.morea_page.morea_prerequisites.size == 0 %}
Expand Down
6 changes: 6 additions & 0 deletions _plugins/MoreaGenerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ def configSite()
@config['morea_domain'].chop!
end
end
# Set the navbar background depending on the theme.
if ["spacelab"].include? @config['morea_theme'].to_s
@config['morea_theme_navbar_bg'] = 'bg-light'
else
@config['morea_theme_navbar_bg'] = 'bg-dark'
end
# logMoreaConfig()
end

Expand Down
2 changes: 1 addition & 1 deletion assessments/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Assessments
{% include breadcrumb-2.html %}

<div class="container">
<h1>Assessments <small class="header-small">in module order</small></h1>
<h1>Assessments <small class="header-small">How to tell if you've learned the material</small></h1>
</div>

{% if site.morea_overview_assessments %}
Expand Down
5 changes: 0 additions & 5 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ h1, h2, h3 {
margin-top: .20em;
}

/* Move body of page below navbar. */
body {
padding-top: 48px;
}

small {
font-size: .7em
}
Expand Down
2 changes: 1 addition & 1 deletion css/themes/spacelab/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion experiences/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Experiences
{% include breadcrumb-2.html %}

<div class="container">
<h1>Experiential Learning <small class="header-small">in module order</small></h1>
<h1>Experiential Learning <small class="header-small">"Active" learning opportunities</small></h1>
</div>

{% if site.morea_overview_experiences %}
Expand Down
8 changes: 5 additions & 3 deletions modules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ title: Modules
<span>Coming soon...</span>
</div>
{% else %}
<div class="card-footer text-center">
{{module.morea_start_date_string}} - {{module.morea_end_date_string}}
</div>
{% if module.morea_start_date_string %}
<div class="card-footer text-center">
{{module.morea_start_date_string}} - {{module.morea_end_date_string}}
</div>
{% endif %}
<a href="{{ module.morea_id }}" class="stretched-link"></a>
{% endif %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion outcomes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Learning Outcomes
{% include breadcrumb-2.html %}

<div class="container">
<h1>Learning Outcomes <small class="header-small">in module order</small></h1>
<h1>Learning Outcomes <small class="header-small">What you will know</small></h1>
</div>

{% if site.morea_overview_outcomes %}
Expand Down
2 changes: 1 addition & 1 deletion prerequisites/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Prerequisites
{% include breadcrumb-2.html %}

<div class="container">
<h1>Prerequisites <small class="header-small">in module order</small></h1>
<h1>Prerequisites <small class="header-small">Important material from other courses</small></h1>
</div>

{% if site.morea_overview_prerequisites %}
Expand Down
2 changes: 1 addition & 1 deletion readings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Readings
{% include breadcrumb-2.html %}

<div class="container">
<h1>Readings and other resources <small class="header-small">in module order</small></h1>
<h1>Readings <small class="header-small">"Passive" learning opportunities</small></h1>
</div>

{% if site.morea_overview_readings %}
Expand Down

0 comments on commit edc007b

Please sign in to comment.