File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
src/pydata_sphinx_theme/assets/styles/components Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,10 @@ Here are several examples:
134134
135135 .. code :: css
136136
137- i .fa-twitter- square :before {
137+ svg .fa-square-twitter {
138138 color : #55acee ;
139139 }
140140
141- This has already been added for the brands that have *shortcuts * (:ref: `see below <icon-link-shortcuts >`).
142-
143141 Image icons
144142-----------
145143
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ ul.navbar-icon-links {
3535 list-style : none ;
3636
3737 // Icons styling
38- i {
38+ svg {
3939 & .fa-brands ,
4040 & .fa-regular ,
4141 & .fa-solid {
@@ -44,18 +44,13 @@ ul.navbar-icon-links {
4444 font-size : var (--pst-font-size-icon );
4545 }
4646
47- /* Social media buttons hard-code the brand color */
48- & .fa-square-twitter ::before {
49- color : #55acee ;
50- }
47+ /* We no longer color the social media icons in their brand colors (makes a11y harder)
48+ but this one is left in as an example in case we decide to go back to it someday:
5149
52- & .fa-square-gitlab ::before {
53- color : #548 ;
54- }
55-
56- & .fa-bitbucket ::before {
57- color : #0052cc ;
50+ &.fa-square-twitter {
51+ color: #55acee;
5852 }
53+ */
5954 }
6055
6156 // Force images to be icon-sized
You can’t perform that action at this time.
0 commit comments