Skip to content

Commit 863ef60

Browse files
authored
Merge Feature/rebranding styles into Main (#45)
* Initial rebranding styles Changed header and footer background color for both light and dark modes * Initial rebranding styles * Fixing styles The headings should no longer be underlined and cards should now show have black as font color in dark mode * Fixes in links The links and titles should now show properly in cards for both dark and light modes * Rebranding styles This commit includes multiple changes for the rebranding styles, like changing some colors. * The right content bar should now be sticky to the page, making it always available with no need to scroll to the top * Collapse and Expand all buttons has been added for the left navbar * The GCX code component should now take all the entire height from the body space on the website. * The code blocks should no longer have bold font
1 parent 644bb74 commit 863ef60

13 files changed

+228
-37
lines changed

gcx/styles/src/css/helios-gcx-alerts.css

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,69 @@
1010

1111
.doc .admonitionblock.caution tr {
1212
display: block;
13-
background: #d8ddf2;
13+
background: var(--color-white);
1414
border: 2px solid #3b4260;
1515
border-radius: 6px;
1616
}
1717

1818
.doc .admonitionblock.caution td.content {
19-
color: #3b4260;
19+
color: var(--color-black);
2020
}
2121

2222
.doc .admonitionblock.tip tr {
2323
display: block;
24-
background: #F0F8F4;
25-
border: 2px solid #008040;
24+
background: var(--color-white);
25+
border: 2px solid var(--color-green-700);
2626
border-radius: 6px;
2727
}
2828

2929
.doc .admonitionblock.tip td.content {
30-
color: #008040;
30+
color: var(--color-black);
31+
}
32+
33+
.dark-mode .doc .admonitionblock td.content{
34+
background: var(--color-purple-700);
35+
color: var(--color-white)!important;
3136
}
3237

3338
.doc .admonitionblock.warning tr {
3439
display: block;
35-
background: #F9F6F0;
36-
border: 2px solid #916707;
40+
background: var(--color-white);
41+
border: 2px solid var(--color-red-500);
3742
border-radius: 6px;
3843
}
3944

4045
.doc .admonitionblock.warning td.content {
41-
color: #916707;
46+
color: var(--color-black);
4247
}
4348

4449
.doc .admonitionblock.important tr {
4550
display: block;
46-
background: #FEF1F1;
47-
border: 2px solid #D52424;
51+
background: var(--color-white);
52+
border: 2px solid var(--color-gray-neutral-700);
53+
border-radius: 6px;
54+
}
55+
56+
.dark-mode .doc .admonitionblock.important tr {
57+
display: block;
58+
background: var(--color-white);
59+
border: 2px solid var(--color-gray-neutral-500);
4860
border-radius: 6px;
4961
}
5062

5163
.doc .admonitionblock.important td.content {
52-
color: #D52424;
64+
color: var(--color-black);
5365
}
5466

5567
.doc .admonitionblock.note tr {
5668
display: block;
57-
background: #F3F8FF;
58-
border: 2px solid #1E71D4;
69+
background: var(--color-white);
70+
border: 2px solid var(--color-green-700);
5971
border-radius: 6px;
6072
}
6173

6274
.doc .admonitionblock.note td.content {
63-
color: #1E71D4;
75+
color: var(--color-black);
6476
}
6577

6678
.doc .exampleblock>.content {

gcx/styles/src/css/helios-gcx-body.css

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
}
3434

3535
.nav.pagination {
36+
hyphens: none!important;
3637
margin-bottom: 20px;
3738
}
3839

@@ -47,7 +48,7 @@
4748
}
4849

4950
.full-articles {
50-
flex: 0 1 50%;
51+
flex: 0 1 49%;
5152
z-index: 999;
5253
}
5354

@@ -87,7 +88,7 @@
8788

8889
.doc .sect1 {
8990
margin-top: 1rem!important;
90-
padding: 20px 0 20px 20px;
91+
padding: 20px 10px 20px 20px;
9192
border-width: 1px 0px 1px 1px;
9293
border-style: solid;
9394
border-top-left-radius: 6px;
@@ -104,18 +105,22 @@
104105
}
105106

106107
.doc .sect1 .paragraph {
107-
padding: 0 1rem;
108+
padding: 0 0rem;
108109
}
109110

110111
.doc .sect1.active {
111112
background-color: #eceef0;
112-
border-top-left-radius: 6px;
113-
border-bottom-left-radius: 6px;
114-
border-width: 1px 0px 1px 1px;
113+
border-radius: 6px;
114+
border-width: 1px;
115115
border-style: solid;
116116
border-color: var(--section-divider-color);
117117
}
118118

119+
.doc {
120+
hyphens: none!important;
121+
}
122+
123+
119124
/*Card Styles*/
120125

121126

@@ -201,3 +206,17 @@
201206
min-width: 0;
202207
}
203208
}
209+
210+
/* Make right sidebar sticky */
211+
212+
main > .content {
213+
position: relative;
214+
}
215+
216+
.doc .listingblock:hover pre.highlight .source-toolbox {
217+
visibility: visible!important;
218+
}
219+
220+
.doc .listingblock:hover .source-toolbox {
221+
visibility: hidden;
222+
}

gcx/styles/src/css/helios-gcx-enlighter.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ div.enlighter {
88
/* for Chrome, Safari, and Opera */
99
}
1010

11+
.enlighter-t-bootstrap4 {
12+
height: 100%;
13+
}
14+
1115
.enlighter-default {
1216
font-family: 'Roboto Mono', monospace!important;
17+
font-weight: lighter;
1318
margin: 0!important;
1419
overflow: scroll!important;
1520
-ms-overflow-style: none;
@@ -103,7 +108,7 @@ div.enlighter {
103108
}
104109

105110
.dark-mode .doc .sect1.active {
106-
background-color: var(--color-interface-night-800);
111+
background-color: var(--color-purple-secondary-dark);
107112
}
108113

109114
.dark-mode .enlighter-t-bootstrap4 div.enlighter>div.enlighter-special {

gcx/styles/src/css/helios-gcx-icons.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
1-
.doc .admonitionblock.tip .icon {
2-
color: #008040;
1+
.doc .admonitionblock .icon {
2+
padding: 0 1.5rem;;
33
}
44

5-
.doc .admonitionblock.warning .icon {
6-
color: #916707;
5+
.doc .admonitionblock.tip .icon,
6+
.doc .admonitionblock.note .icon {
7+
color: var(--color-green-700);
8+
background-color: var(--color-green-700);
9+
border: 2px solid var(--color-green-700);
10+
}
11+
12+
.doc .admonitionblock.warning .icon,
13+
.doc .admonitionblock.caution .icon {
14+
color: var(--color-red-500);
15+
background-color: var(--color-red-500);
16+
border: 2px solid var(--color-red-500);
717
}
818

919
.doc .admonitionblock.important .icon {
10-
color: #D52424;
20+
color: var(--color-gray-neutral-700);
21+
background-color: var(--color-gray-neutral-700);
22+
border: 2px solid var(--color-gray-neutral-700);
1123
}
1224

13-
.doc .admonitionblock.note .icon {
14-
color: #1E71D4;
25+
.dark-mode .doc .admonitionblock.important .icon {
26+
color: var(--color-gray-neutral-500);
27+
background-color: var(--color-gray-neutral-500);
28+
border: 2px solid var(--color-gray-neutral-500);
1529
}
1630

31+
1732
.doc .admonitionblock .icon i::after {
1833
color: white;
1934
}

gcx/styles/src/css/helios-gcx-images.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
@media only screen and (max-width: 600px) {
1313
.navbar-brand img {
14-
height: 30px;
14+
height: 24px;
15+
margin-top: 3%;
1516
}
1617
}

gcx/styles/src/css/helios-gcx-links.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,30 @@
4848
}
4949

5050
.doc .admonitionblock.caution a {
51-
color: #3b4260!important;
51+
color: var(--color-black)!important;
5252
text-decoration: underline;
5353
}
5454

5555
.doc .admonitionblock.tip a {
56-
color: #008040!important;
56+
color: var(--color-black)!important;
5757
text-decoration: underline;
5858
}
5959

6060
.doc .admonitionblock.warning a {
61-
color: #916707!important;
61+
color: var(--color-black)!important;
6262
text-decoration: underline;
6363
}
6464

6565
.doc .admonitionblock.important a {
66-
color: #D52424!important;
66+
color: var(--color-black)!important;
6767
text-decoration: underline;
6868
}
6969

7070
.doc .admonitionblock.note a {
71-
color: #1E71D4!important;
71+
color: var(--color-black)!important;
7272
text-decoration: underline;
73+
}
74+
75+
.dark-mode .doc .admonitionblock.note a {
76+
color: var(--color-white)!important;
7377
}

gcx/styles/src/css/helios-gcx-rightSidebar.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,22 @@
2424

2525
.dark-mode .toc .toc-menu a:hover {
2626
color: #c8cbd3;
27+
}
28+
29+
/* Setting the content menu sticky */
30+
31+
.toc.sidebar .toc-menu {
32+
top: 0!important;
33+
overflow-y: auto;
34+
max-height: 100vh;
35+
-ms-overflow-style: none; /* IE and Edge */
36+
scrollbar-width: none; /* Firefox */
37+
}
38+
39+
.toc.sidebar .toc-menu::-webkit-scrollbar {
40+
display: none;
41+
}
42+
43+
.dark-mode .sidebar.toc .toc-menu a:focus {
44+
background-color: var(--color-purple-secondary-dark);
2745
}

gcx/styles/src/css/helios-gcx-sidebar.css

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ label.collapse_label:after {
341341
.dark-mode .nav-item[data-depth="2"]:hover,
342342
.dark-mode .nav-item[data-depth="3"]:hover,
343343
.dark-mode .nav-item[data-depth="4"]:hover {
344-
background-color: #2e394e;
344+
background-color: var(--color-purple-secondary-dark);
345345
}
346346

347347
.dark-mode .nav-item[data-depth="1"].toggler:hover,
@@ -477,3 +477,87 @@ label.collapse_label:after {
477477
color: #6a7086;
478478
}
479479

480+
.nav-controls {
481+
display: flex;
482+
justify-content: flex-end;
483+
padding-right: 5px;
484+
}
485+
486+
.nav-controls button {
487+
width: 25px;
488+
background: transparent;
489+
color: var(--color-black);
490+
border: 0.5px solid var(--section-divider-color);
491+
margin-right: 5px;
492+
}
493+
494+
.nav-controls button:hover {
495+
background: var(--section-divider-color);
496+
}
497+
498+
.dark-mode .nav-controls button {
499+
color: var(--color-white);
500+
border: 0.5px solid var(--color-purple-700);
501+
}
502+
503+
.dark-mode .nav-controls button:hover {
504+
background: var(--color-purple-700);
505+
}
506+
507+
.small-container .nav-controls {
508+
display: none;
509+
}
510+
511+
#expandable,
512+
#collapsable {
513+
position: relative;
514+
display: inline-block;
515+
}
516+
517+
/* Tooltip text */
518+
#expandable .tooltiptext,
519+
#collapsable .tooltiptext {
520+
visibility: hidden;
521+
width: 80px;
522+
background-color: var(--color-black);
523+
color: #fff;
524+
text-align: center;
525+
padding: 5px 0;
526+
border-radius: 6px;
527+
position: absolute;
528+
z-index: 1;
529+
bottom: 125%;
530+
left: 50%;
531+
margin-left: -43px;
532+
opacity: 0;
533+
transition: opacity 0.3s;
534+
font-size: 12px;
535+
}
536+
537+
.dark-mode #expandable .tooltiptext,
538+
.dark-mode #collapsable .tooltiptext {
539+
border: 1px solid var(--color-white);
540+
}
541+
542+
#collapsable .tooltiptext::after,
543+
#expandable .tooltiptext::after {
544+
content: "";
545+
position: absolute;
546+
top: 100%;
547+
left: 50%;
548+
margin-left: -5px;
549+
border-width: 5px;
550+
border-style: solid;
551+
border-color: var(--color-black) transparent transparent transparent;
552+
}
553+
554+
.dark-mode #collapsable .tooltiptext::after,
555+
.dark-mode #expandable .tooltiptext::after {
556+
border-color: var(--color-white) transparent transparent transparent;
557+
}
558+
559+
#expandable:hover .tooltiptext,
560+
#collapsable:hover .tooltiptext {
561+
visibility: visible;
562+
opacity: 1;
563+
}

gcx/styles/src/css/helios-gcx.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ gcx-full .full-articles {
539539
}
540540

541541
.doc .sect1 .paragraph {
542-
padding: 0 1rem;
542+
padding: 0 0rem;
543543
}
544544

545545
.doc .sect1.active {

0 commit comments

Comments
 (0)