Skip to content

Commit 1234710

Browse files
authored
Multiple fixes (#2)
* variable improvements * class changes * border toc * border toc
1 parent 591e5bd commit 1234710

File tree

7 files changed

+59
-54
lines changed

7 files changed

+59
-54
lines changed

_includes/resource-table-all.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,22 @@ <h2>Relevant tools and resources</h2>
6262
{%- if tool.registry.biotools %}
6363
<a data-bs-toggle="tooltip"
6464
data-bs-original-title="Find a scientific and technical description of the resource" href="https://bio.tools/{{tool.registry.biotools}}"
65-
><span class="badge registry_badge">bio.tools</span></a>
65+
><span class="badge bg-dark text-white hover-primary">bio.tools</span></a>
6666
{%- endif %}
6767
{%- if tool.registry.fairsharing %}
6868
<a data-bs-toggle="tooltip"
6969
data-bs-original-title="Find related policies and standards" href="https://fairsharing.org/FAIRsharing.{{tool.registry.fairsharing}}"
70-
><span class="badge registry_badge">FAIRsharing</span></a>
70+
><span class="badge bg-dark text-white hover-primary">FAIRsharing</span></a>
7171
{%- endif %}
7272
{%- if tool.registry.fairsharing-coll %}
7373
<a data-bs-toggle="tooltip"
7474
data-bs-original-title="Find related policies and standards" href="https://fairsharing.org/{{tool.registry.fairsharing-coll}}"
75-
><span class="badge registry_badge">FAIRsharing</span></a>
75+
><span class="badge bg-dark text-white hover-primary">FAIRsharing</span></a>
7676
{%- endif %}
7777
{%- if tool.registry.tess %}
7878
<a data-bs-toggle="tooltip"
7979
data-bs-original-title="Find training for this resource" href="https://tess.elixir-europe.org/search?q={{tool.registry.tess}}"
80-
><span class="badge registry_badge">TeSS</span></a>
80+
><span class="badge bg-dark text-white hover-primary">TeSS</span></a>
8181
{%- endif %}
8282
</td>
8383
</tr>

_includes/topnav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
55
<nav class="navbar navbar-expand-lg mb-3 mb-lg-5">
66
<div class="container">
7-
<a class="navbar-brand" href="{{ 'index.html' | relative_url }}"><img class="me-3" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span>{{site.topnav_title}}</span>{% endif %}</a>
7+
<a class="navbar-brand" href="{{ 'index.html' | relative_url }}"><img class="me-3 img-fluid" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span>{{site.topnav_title}}</span>{% endif %}</a>
88
<button class="navbar-toggler text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
99
<i title="navbar-toggler" class="fa fa-bars"></i>
1010
</button>

_includes/training-table-all.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<tr>
2020
<td><a href="{{training.url | relative_url }}">{{training.name}}{%- if training.name == 'Training in TeSS'%} about {{page.title}}{%- endif %}</a></td>
2121
<td><a href="{{page.url | relative_url }}"><span class="badge default-badge">{{page.title}}</span></a></td>
22-
<td>{%- if training.registry %}{%- if training.registry_url %}<a href="{{training.registry_url}}">{%- endif %}<span class="badge registry_badge">{{training.registry}}</span>{%- if training.registry_url %}</a>{%- endif %}{%- endif %}</td>
22+
<td>{%- if training.registry %}{%- if training.registry_url %}<a href="{{training.registry_url}}">{%- endif %}<span class="badge bg-dark text-white hover-primary">{{training.registry}}</span>{%- if training.registry_url %}</a>{%- endif %}{%- endif %}</td>
2323
</tr>
2424
{%- endfor %}
2525
{%- endunless %}

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<main id="main" class="mb-5">
55
{%- if page.title %}
66
{%- assign subtitle = page.type | replace: "_", " " | capitalize %}
7-
<h1>{% unless subtitle == nil %}<span class="d-block text-secondary fs-4 ff-body">{{subtitle}}</span><span class="visually-hidden">:</span> {% endunless %}{{ page.title }}
7+
<h1>{% unless subtitle == nil or subtitle == blank or subtitle == "" %}<span class="d-block text-secondary fs-4 ff-body">{{subtitle}}</span><span class="visually-hidden">:</span> {% endunless %}{{ page.title }}
88
<div class="btn-group">
99
{%- if page.custom-editme %}
1010
<a role="button" data-bs-toggle="tooltip" title="Propose changes to the content of this page on GitHub" href="{{site.github.repository_url}}/blob/master/{{page.custom-editme}}" class="btn hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>

_sass/_bootstrap_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $secondary: #6c757d;
44
$light: #f8f9fa;
55
$dark: #212529;
66

7-
/*-----Custom bootstrap values-----*/
7+
/*-----Custom values for Bootstrap variables-----*/
88
$link-decoration: none;
99
$nav-link-color: $dark;
1010
$nav-link-hover-color: $primary;

_sass/_custom_variables.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,25 @@ $btn-primary-color-hover: $white;
99
/*-----Top navigation-----*/
1010
$topnav-bg: $light;
1111
$topnav-title-color: $primary;
12+
$topnav-brand-height: 44px;
13+
$topnav-border: 0;
1214

1315
/*-----Search-----*/
1416
$search-result-color: $primary;
1517

1618
/*-----Sidebar-----*/
1719
$sidebar-bg: $light;
1820
$sidebar-color: $dark;
21+
$sidebar-lvl2-bg: $white;
22+
$sidebar-lvl2-color: $dark;
23+
$sidebar-lvl3-bg: $white;
24+
$sidebar-lvl3-color: $dark;
1925
$sidebar-bg-active: $primary;
2026
$sidebar-color-active: $white;
2127

2228
/*-----TOC-----*/
2329
$toc-bg: $light;
30+
$toc-border: 0;
2431

2532
/*-----Section navigation tiles-----*/
2633
$nav-card-bg: $white;
@@ -48,7 +55,7 @@ $contr-crown-color: $white;
4855
/*-----Events & news-----*/
4956
$news-title-bg: $primary;
5057

51-
/*-----Cookie banner-----*/
58+
/*-----Cookie consent banner-----*/
5259
$cookie-alert-bg: $light;
5360

5461
/*-----Default badge-----*/
@@ -63,4 +70,5 @@ $footer-color: $dark;
6370
$footer-link-color: $dark;
6471
$footer-link-color-hover: $primary;
6572
$footer-copyright-bg: $gray-200;
73+
$footer-border: 0;
6674

assets/css/main.scss

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ main {
4343
a:not(.btn):hover {
4444
text-decoration: underline;
4545
}
46+
47+
ol li,
48+
ul li {
49+
margin: 10px 0px;
50+
}
4651
}
4752

4853
.ff-body {
@@ -53,6 +58,8 @@ main {
5358
font-family: $font-family-theme !important;
5459
}
5560

61+
/*-----Blockquote-----*/
62+
5663
blockquote {
5764
margin-left: 20px;
5865
border-left: 5px solid $gray-600;
@@ -61,10 +68,9 @@ blockquote {
6168
border-radius: $border-radius;
6269
}
6370

64-
/* Selection color */
71+
/*-----Selection color-----*/
6572

6673
::-moz-selection {
67-
/* Code for Firefox */
6874
color: $white;
6975
background: $primary;
7076
}
@@ -74,20 +80,13 @@ blockquote {
7480
background: $primary;
7581
}
7682

77-
/* End - Selection color */
78-
79-
main ol li,
80-
main ul li {
81-
margin: 10px 0px;
82-
}
83-
84-
/* list circles colored */
83+
/*-----Color list marker-----*/
8584

8685
ul li::marker {
8786
color: $primary;
8887
}
8988

90-
/* position and size emoji */
89+
/*-----Emoji styling-----*/
9190

9291
main img.emoji {
9392
margin: 0px 0px 0.2em 0px;
@@ -124,10 +123,11 @@ pre code {
124123

125124
header .navbar {
126125
background-color: $topnav-bg;
126+
border-bottom: $topnav-border;
127127
.navbar-brand {
128128
color: $topnav-title-color;
129129
img {
130-
height: 40px;
130+
height: $topnav-brand-height;
131131
}
132132
}
133133
}
@@ -268,6 +268,7 @@ ul#menu {
268268
> span {
269269
float: right;
270270
width: 15px;
271+
margin-left: $btn-padding-x;
271272
text-align: center;
272273
}
273274

@@ -283,25 +284,30 @@ ul#menu {
283284
transition: transform 0.2s ease-in-out;
284285
}
285286
}
286-
li.active:not(.parent) > a {
287-
background-color: $sidebar-bg-active;
288-
color: $sidebar-color-active;
287+
li.active {
288+
&:not(.parent) > a {
289+
background-color: $sidebar-bg-active;
290+
color: $sidebar-color-active;
291+
}
292+
> a > span:after {
293+
transform: rotate(-180deg);
294+
}
289295
}
290296
ul {
291297
display: none;
292298
li {
293299
a {
294-
padding-left: 30px;
300+
margin-left: 30px;
301+
background-color: $sidebar-lvl2-bg;
302+
color: $sidebar-lvl2-color;
295303
}
296304
ul li a {
297-
padding-left: 60px;
305+
margin-left: 60px;
306+
background-color: $sidebar-lvl3-bg;
307+
color: $sidebar-lvl3-color;
298308
}
299309
}
300310
}
301-
302-
&.active > a > span:after {
303-
transform: rotate(-180deg);
304-
}
305311
}
306312

307313
/*-----Summary under page title-----*/
@@ -322,27 +328,28 @@ ul#menu {
322328

323329
#toc {
324330
background-color: $toc-bg;
325-
/* Indent the lists and reset any other padding */
331+
border: $toc-border;
332+
// Indent the lists and reset any other padding
326333

327334
ul {
328335
padding: 0 0 0 20px;
329336
}
330337

331-
/* Consistent vertical space between list items */
338+
// Consistent vertical space between list items
332339

333340
li,
334341
ul ul li {
335342
margin: 8px 0 0 0;
336343
}
337344

338-
/* Sublists */
345+
// Sublists
339346

340347
ul ul {
341348
list-style: circle outside;
342349
}
343350
}
344351

345-
/* ---- Theme Badges-------- */
352+
/*-----Default badge-----*/
346353

347354
.default-badge {
348355
font-weight: inherit;
@@ -369,7 +376,7 @@ table {
369376
@extend .table;
370377
}
371378

372-
/* Name and description column improvements */
379+
// Tool table column width optimizations
373380

374381
#tooltable {
375382
tr th:nth-child(1) {
@@ -392,23 +399,13 @@ table {
392399
font-weight: bold;
393400
}
394401

395-
/*-----Registries in tool table------*/
396-
397-
.registry_badge {
398-
background-color: $dark;
399-
color: $white;
400-
}
401-
402-
.registry_badge:hover {
403-
background-color: $primary;
404-
}
405-
406402
/*-----Footer-----*/
407403

408404
footer {
409405
font-size: 0.9em;
410406
line-height: 24px;
411407
background-color: $footer-bg;
408+
border-top: $footer-border;
412409
color: $footer-color;
413410

414411
a {
@@ -485,7 +482,7 @@ footer {
485482
}
486483
}
487484

488-
/*--------Contributor list---------*/
485+
/*--------Page contributors---------*/
489486
.page-contributors {
490487
background-color: $contr-bg;
491488
.contributor-link {
@@ -512,7 +509,7 @@ footer {
512509
width: 130px;
513510
}
514511

515-
/* ----- Cookie consent ----- */
512+
/*-----Cookie consent banner-----*/
516513

517514
.cookiealert {
518515
position: fixed;
@@ -535,7 +532,7 @@ footer {
535532
transition-delay: 1000ms;
536533
}
537534

538-
/*--------------Hover classes--------------*/
535+
/*-----Hoover classes-----*/
539536

540537
.hover-primary:hover,
541538
.hover-primary:focus {
@@ -550,7 +547,7 @@ footer {
550547
color: $primary !important;
551548
}
552549

553-
/*-------------- Fixed sizes --------------*/
550+
/*-----Size components-----*/
554551

555552
.h-40px {
556553
height: 40px;
@@ -560,7 +557,7 @@ footer {
560557
height: 24px;
561558
}
562559

563-
/*--------------News and events--------------*/
560+
/*-----News and events-----*/
564561

565562
li.upcoming_event,
566563
li.past_event,
@@ -592,7 +589,7 @@ li.past_event,
592589
display: inline-block;
593590
}
594591
}
595-
/*--------------More information-------------*/
592+
/*-----More information tiles-----*/
596593

597594
.info-card {
598595
background-color: $info-card-bg;
@@ -613,7 +610,7 @@ li.past_event,
613610
}
614611
}
615612

616-
/*--------------Navigation tiles-------------*/
613+
/*-----Section navigation tiles-----*/
617614

618615
.navigation-tiles {
619616
.card {
@@ -641,7 +638,7 @@ li.past_event,
641638
}
642639
}
643640

644-
/*--------------Scaling presentations and videos-------------*/
641+
/*-----Scaling presentations and videos-----*/
645642

646643
iframe.scale {
647644
height: 500px;

0 commit comments

Comments
 (0)