Skip to content

Commit 538d279

Browse files
committed
Minor UI/style changes.
1 parent 7b786dc commit 538d279

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

assets/static/style.css

+12
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,25 @@ body {
6363
.dropdown:hover .dropdown-menu {
6464
display: block;
6565
}
66+
6667
.dropdown-menu {
6768
margin-top: 0px;
6869
}
70+
6971
.navbar-dark .navbar-nav .nav-item .nav-link {
7072
padding-bottom: .3rem;
7173
color: white;
7274
}
75+
7376
.navbar-dark .navbar-nav .nav-item.active .nav-link {
7477
border-bottom: 2px solid white;
78+
}
79+
80+
.toc-card {
81+
width: 18rem;
82+
margin-bottom: 1rem;
83+
}
84+
85+
.toc {
86+
margin-bottom: 0;
7587
}

templates/layout.html

+2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@
6060
<div class="row justify-content-md-center">
6161
<div class="col-9 content-wrap">
6262
<div class="page py-3">
63+
<a name="top"></a>
6364
<h2 class="pb-2"><strong>{% block header %}{{ this.title }}{% endblock %}</strong></h2>
6465
{% block body %}{% endblock %}
66+
<a id="back-to-top" href="#top" class="btn btn-dark btn-sm" role="button">Back to top</a>
6567
</div>
6668
</div>
6769
</div>

templates/page-with-toc.html

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{% extends "layout.html" %}
22
{% block title %}{{ this.title }}{% endblock %}
33
{% block body %}
4-
<ul class="toc list-unstyled">
5-
{% for item in this.body.toc %}
6-
<li><a href="#{{ item.anchor }}">{{ item.title }}</a></li>
7-
{% endfor %}
8-
</ul>
9-
<hr/>
4+
<div class="card toc-card bg-light">
5+
<div class="card-body">
6+
<ul class="toc list-unstyled">
7+
{% for item in this.body.toc %}
8+
<li><a href="#{{ item.anchor }}">{{ item.title }}</a></li>
9+
{% endfor %}
10+
</ul>
11+
</div>
12+
</div>
1013
{{ this.body }}
11-
1214
{% endblock %}

templates/project-ideas.html

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
{% block header %}GSoC 2019: Project Ideas{% endblock %}
55
{% block body %}
66
<p class="text-muted">This is the project idea list for the <a href="/gsoc-2019">Google Summer of Code 2019</a> program. We have a mix of projects that are meant to be installed widely (such as plugins for other software) and projects that are more focused on improving user experience for users of Creative Commons licenses. Regardless of scope, these projects all have a broad and positive community impact.</p>
7-
<a name="ideas-top"></a>
87
<hr/>
98
<!-- We display all ideas by default. -->
109
{% set ideas = site.query('/gsoc-2019/project-ideas-collection').include_undiscoverable(true) %}
@@ -54,6 +53,5 @@ <h2 class="card-header"><a name="your-idea">Your idea here</a></h5>
5453
<li class="list-group-item">We are open to original ideas for projects that will help increase the utility of CC-licensed content, ease the process for creators applying CC licenses to their content, or improve CC's internal tools or processes. Please talk to us on Slack or via the mailing list to find a mentor for the project before submitting your proposal.</li>
5554
</ul>
5655
</div>
57-
<a id="back-to-top" href="#ideas-top" class="btn btn-dark btn-sm" role="button">Back to list</a>
5856
</div>
5957
{% endblock %}

0 commit comments

Comments
 (0)