WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3246a35

Browse files
committed
docs: adjust SCSS and tans_demo searchability
* Change link colour from cmu-red to skibo-red * Adjust navigation bar colour and hover/active SCSS * Exclude tans_demo.md from being searchable.
1 parent f904dfe commit 3246a35

File tree

3 files changed

+26
-53
lines changed

3 files changed

+26
-53
lines changed

docs/_sass/color_schemes/delphi.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33

44
// Core Colors
55
$cmu-red: #C41230;
6+
$skibo-red: #941120;
67
$berkley-blue: #002676;
7-
$fg: #172431;
8+
$fg: #373c46;
89
$bg: #fff;
910
$border: #e1e4e8;
1011

1112
// Base Colors
1213
$body-background-color: $bg;
1314
$body-text-color: $fg;
1415
$headings-color: $berkley-blue;
15-
$link-color: $cmu-red;
16+
$link-color: $skibo-red;
1617
$border-color: $border;
1718

1819
// Sidebar and Navigation

docs/_sass/custom/custom.scss

Lines changed: 22 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -41,65 +41,36 @@ h6 {
4141
margin: 2.75rem 0 1.05rem;
4242
}
4343

44-
aside {
45-
padding-top: 1.5rem;
46-
border-left: none;
47-
48-
h2 {
49-
margin-top: 1.2rem;
50-
font-size: 1.25rem;
51-
font-family: 'Source Serif Pro', serif;
52-
color: #002676;
53-
}
54-
55-
.roles {
56-
color: var(--body-text);
57-
opacity: 0.8;
58-
}
59-
60-
.nav-list-item {
61-
margin-bottom: 0.25rem;
62-
}
44+
.nav-list-item {
45+
margin-bottom: 0.25rem;
46+
}
6347

64-
.nav-list-link {
65-
padding: 0.25rem 0.5rem;
66-
border-radius: 4px;
67-
transition: background-color 0.2s, color 0.2s;
68-
69-
&:hover {
70-
background-color: rgba(0, 38, 118, 0.05);
71-
color: #941120;
72-
text-decoration: none;
73-
}
74-
75-
&.active {
76-
font-weight: 600;
77-
color: #941120;
78-
background-color: rgba(196, 18, 48, 0.03);
79-
}
80-
}
48+
.nav-list-link {
49+
padding: 0.25rem 0.5rem;
50+
border-radius: 4px;
51+
transition: background-color 0.2s, color 0.2s;
52+
opacity: 0.9;
8153

82-
.list-unstyled li {
83-
margin-bottom: 0.5rem;
54+
&.active {
55+
font-weight: 600;
56+
color: #941120;
57+
opacity: 1;
8458
}
8559

86-
.dev-status .list-unstyled li {
87-
margin-bottom: 0.1rem;
60+
&:hover {
61+
color: #941120;
62+
font-weight: 600;
63+
text-decoration: none;
64+
opacity: 1;
8865
}
8966
}
9067

91-
@media (max-width: 576px) {
92-
aside {
93-
margin: 0.5rem;
94-
width: calc(100vw - 1rem);
95-
background-color: #f8f9fa;
96-
border-radius: 4px;
97-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
68+
.list-unstyled li {
69+
margin-bottom: 0.5rem;
70+
}
9871

99-
h2:first-child {
100-
margin-top: 1rem;
101-
}
102-
}
72+
.dev-status .list-unstyled li {
73+
margin-bottom: 0.1rem;
10374
}
10475

10576
.row>main {

docs/tabs_demo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Documentation Features Tutorial
33
nav_exclude: true
4+
search_exclude: true
45
---
56

67
# Documentation Features Tutorial

0 commit comments

Comments
 (0)