Skip to content

Commit 32d8915

Browse files
patmellonbrsoff
authored andcommitted
[PYT-224] Use #EE4C2C for orange (Lightning-AI#46)
1 parent 836b449 commit 32d8915

File tree

3 files changed

+168
-26
lines changed

3 files changed

+168
-26
lines changed

pytorch_sphinx_theme/static/css/theme.css

Lines changed: 76 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/_sphinx_base.scss

Lines changed: 86 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,15 @@ p {
5454
margin-top: 0;
5555
margin-bottom: rem(18px);
5656
@include default_link_styles;
57+
a:link,
58+
a:visited,
59+
a:hover {
60+
color: $red_orange;
61+
}
5762
}
5863

5964
.wy-breadcrumbs li a {
60-
color: $orange;
65+
color: $red_orange;
6166
}
6267

6368
ul.pytorch-breadcrumbs {
@@ -69,7 +74,7 @@ ul.pytorch-breadcrumbs {
6974
}
7075

7176
a {
72-
color: $orange;
77+
color: $red_orange;
7378
text-decoration: none;
7479
}
7580
}
@@ -346,6 +351,11 @@ article.pytorch-article .sphx-glr-thumbcontainer {
346351
}
347352

348353
@include animated_border_hover_state;
354+
@include desktop {
355+
&:after {
356+
background-color: $red_orange;
357+
}
358+
}
349359
}
350360

351361
article.pytorch-article {
@@ -355,7 +365,7 @@ article.pytorch-article {
355365
background: $light_grey;
356366
padding: rem(18px);
357367
padding-right: 110px;
358-
border-left: 3px solid $orange;
368+
border-left: 3px solid $red_orange;
359369
word-wrap: break-word;
360370
a {
361371
position: absolute;
@@ -366,7 +376,7 @@ article.pytorch-article {
366376
}
367377
&:hover {
368378
.viewcode-link {
369-
color: $orange;
379+
color: $red_orange;
370380
}
371381
}
372382
}
@@ -433,13 +443,13 @@ article.pytorch-article {
433443
@extend .function;
434444
dt {
435445
border-left: none;
436-
border-top: 3px solid $orange;
446+
border-top: 3px solid $red_orange;
437447
}
438448

439449
em.property {
440450
text-transform: uppercase;
441451
font-style: normal;
442-
color: $orange;
452+
color: $red_orange;
443453
font-size: rem(16px);
444454
letter-spacing: 0;
445455
line-height: rem(24px);
@@ -455,7 +465,7 @@ article.pytorch-article {
455465
.method,
456466
.staticmethod {
457467
dt {
458-
border-left: 3px solid $orange;
468+
border-left: 3px solid $red_orange;
459469
border-top: none;
460470
}
461471
}
@@ -484,6 +494,11 @@ article.pytorch-article {
484494
margin: rem(20px) auto;
485495

486496
@include animated_border_hover_state;
497+
@include desktop {
498+
&:after {
499+
background-color: $red_orange;
500+
}
501+
}
487502

488503
@include desktop {
489504
background-position: left 20px center;
@@ -643,3 +658,67 @@ article.pytorch-article {
643658
padding-right: 0;
644659
max-width: none;
645660
}
661+
662+
a:link,
663+
a:visited,
664+
a:hover {
665+
color: $red_orange;
666+
}
667+
668+
::-webkit-input-placeholder {
669+
color: $red_orange;
670+
}
671+
672+
::-moz-placeholder {
673+
color: $red_orange;
674+
}
675+
676+
:-ms-input-placeholder {
677+
color: $red_orange;
678+
}
679+
680+
:-moz-placeholder {
681+
color: $red_orange;
682+
}
683+
684+
.site-footer {
685+
@include desktop {
686+
a:hover {
687+
color: $red_orange;
688+
}
689+
}
690+
}
691+
692+
.docs-tutorials-resources {
693+
a {
694+
color: $red_orange;
695+
}
696+
}
697+
698+
.header-holder .main-menu {
699+
ul li {
700+
&.active {
701+
&:after {
702+
color: $red_orange;
703+
}
704+
705+
a {
706+
color: $red_orange;
707+
}
708+
}
709+
}
710+
711+
ul li a {
712+
@include full-nav-menu-desktop {
713+
&:hover {
714+
color: $red_orange;
715+
}
716+
}
717+
}
718+
}
719+
720+
.mobile-main-menu.open {
721+
ul li.active a {
722+
color: $red_orange;
723+
}
724+
}

0 commit comments

Comments
 (0)