Skip to content

Commit 953503d

Browse files
committed
Update lay-out
1 parent cd281c3 commit 953503d

10 files changed

+64
-12
lines changed

_includes/sidebar.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div class="sidebar">
22
{% if page.tags contains "project_home" or page.tags contains "wiki"%}
33
<div class="sidebar-links">
4-
<h5>Links</h5>
54
<div class="list-group">
6-
<a class="list-group-item list-group-item-action" href="/projects/{{ page.project }}/">
5+
<h5 class="list-group-item list-group-item-heading">Links</h5>
6+
<a class="list-group-item list-group-item-action" href="/projects/{{ page.project }}">
77
<i class="fa fa-home pr-1"></i>Project home
88
</a>
99
<a class="list-group-item list-group-item-action" href="{{ page.github_project }}" target="_blank">
@@ -15,16 +15,16 @@ <h5>Links</h5>
1515
</div>
1616
</div>
1717

18-
<div class="sidebar-wiki">
18+
<div class="sidebar-wiki mt-5">
19+
<div class="list-group">
1920
<!-- Check if their are wiki pages, only then print wiki head -->
2021
{% for site_page in site.pages %}
2122
{% assign site_page_tags = site_page.tags | split: ", " %}
2223
{% if site_page_tags contains "wiki" %} {% if site_page_tags contains page.project %}
23-
<h5 class="mt-5">Wiki</h5>
24+
<h5 class="list-group-item list-group-item-heading">Wiki</h5>
2425
{% break %}
2526
{% endif %} {% endif %}
2627
{% endfor %}
27-
<div class="list-group">
2828
{% for site_page in site.pages %}
2929
{% assign site_page_tags = site_page.tags | split: ", " %}
3030
{% if site_page_tags contains "wiki" %} {% if site_page_tags contains page.project %}
@@ -37,9 +37,9 @@ <h5 class="mt-5">Wiki</h5>
3737
</div>
3838
{% endif %}
3939

40-
<div class="sidebar-projects">
41-
<h5 class="mt-5">Projects</h5>
40+
<div class="sidebar-projects mt-5">
4241
<div class="list-group">
42+
<h5 class="list-group-item list-group-item-heading">Projects</h5>
4343
{% for site_page in site.pages %}
4444
{% if site_page.tags contains "project_home" %}
4545
<a class="list-group-item list-group-item-action" href="{{ site_page.permalink }}">

_sass/_bootstrap_customization.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif !defa
3434

3535
// Typography ==================================================================
3636

37-
p {
37+
p, .page-content li {
3838
font-family: $font-family-serif;
3939
}
4040

_sass/_compomics_customization.scss

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Typography
2+
p{
3+
text-align: justify;
4+
margin-bottom: 1.5 rem;
5+
line-height: 1.5;
6+
}
7+
8+
h1, h2, h3, h4, h5, h6,
9+
.h1, .h2, .h3, .h4, .h5, .h6 {
10+
margin-bottom: 1 rem;
11+
}
12+
13+
// Navbar
114
.navbar-dark{
215
background-color: theme-color("primary-darker");
316
}
@@ -10,12 +23,23 @@
1023
padding: 0px 15px;
1124
}
1225

26+
// Footer
1327
.footer-social-icons,
1428
.footer-social-icons a{
15-
font-size: 1.2em; color: theme-color("primary-darker");
29+
font-size: 1.2em;
30+
color: theme-color("primary-darker");
1631
}
1732

1833
.highlight pre {
1934
margin-bottom: 1rem;
2035
border: 0px;
2136
}
37+
38+
// List-group-item
39+
.list-group-item-heading {
40+
background-color: $gray-200;
41+
}
42+
43+
.card p {
44+
text-align: left;
45+
}

_sass/_variables.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ $font-size-base: 1.063rem !default;
3030

3131
$headings-font-weight: 700 !default;
3232

33+
$h1-font-size: $font-size-base * 2.5 !default;
34+
$h2-font-size: $font-size-base * 1.75 !default;
35+
$h3-font-size: $font-size-base * 1.5 !default;
36+
$h4-font-size: $font-size-base * 1.25 !default;
37+
$h5-font-size: $font-size-base * 1 !default;
38+
$h6-font-size: $font-size-base !default;
39+
40+
3341
// Navbar
3442

3543
$navbar-dark-color: rgba($white,.6) !default;

assets/img/featured_logos/colims.png

10.5 KB
Loading
20.1 KB
Loading
16.8 KB
Loading
Loading

generate_docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ projects:
2929
- ThermoRawFileParserGUI
3030
- xilmass
3131
- xtandem-parser
32-
github_token: 16be30b92dab2378c9b0e5201012116f065170a7
32+
github_token: 0000000000000000000000000000000000000000

index.html

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,28 @@ <h1>CompOmics documentation</h1>
1111
<a href="https://github.com/compomics">Github</a>).
1212
</p>
1313

14-
<h3>Projects</h3>
15-
<div class='list-group my-2'>
14+
<!--
15+
<h3>Featured</h3>
16+
<div class="container-fluid">
17+
<div class="row">
18+
<div class="col">
19+
<div class="card" style="width: 15rem;">
20+
<img src="/assets/img/featured_logos/thermo-raw-file-parser-gui.png" class="card-img-top" alt="thermo raw file parser gui logo">
21+
<div class="card-body">
22+
<h5 class="card-title">Thermo Raw File Parser</h5>
23+
<p class="card-text">Thermo RAW file parser that runs on Linux with Mono</p>
24+
<a href="/projects/ThermoRawFileParser" class="btn btn-primary">Go to project page</a>
25+
</div>
26+
</div>
27+
</div>
28+
</div>
29+
</div>
30+
-->
31+
32+
<div class='list-group my-5'>
33+
<h3 class='list-group-item list-group-item-heading'>
34+
Projects
35+
</h3>
1636
{% for page in site.pages %}
1737
{% if page.tags contains "project_home" %}
1838
<a class="list-group-item list-group-item-action" href="{{ page.permalink }}">

0 commit comments

Comments
 (0)