Debian Codegraph @

src/pydata_sphinx_theme/assets/styles/components/_icon-links.scss

raw
1 /**
2 * Icon links in the navbar
3 */
4
5 .pst-navbar-icon {
6 // Extra specificity needed for overrides
7 html & {
8 @include min-hit-area;
9 @include link-style-block;
10
11 display: flex;
12 align-items: center;
13 justify-content: center;
14
15 // Bootstrap overrides
16 border-radius: 0;
17 border: none;
18 font-size: 1rem;
19 line-height: $line-height-body; // Override Boostrap, which defines a separate line-height for buttons
20 padding: $navbar-link-padding-y 0; // Horizontal white space in nav bar between items is controlled via column gap rule on the container.
21
22 // Make the navbar icon links have the same size as the navbar text links
23 height: calc(2 * $navbar-link-padding-y + $line-height-body * 1rem);
24 }
25 }
26
27 ul.navbar-icon-links {
28 display: flex;
29 flex-flow: row wrap;
30 column-gap: $nav-icon-column-gap;
31 justify-content: space-evenly;
32 align-items: center;
33 padding-left: 0;
34 margin-bottom: 0;
35 list-style: none;
36
37 // Icons styling
38 svg {
39 &.fa-brands,
40 &.fa-regular,
41 &.fa-solid {
42 vertical-align: middle;
43 font-style: normal;
44 font-size: var(--pst-font-size-icon);
45 }
46
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:
49
50 &.fa-square-twitter {
51 color: #55acee;
52 }
53 */
54 }
55
56 // Force images to be icon-sized
57 img.icon-link-image {
58 height: 1.5em;
59 border-radius: 0.2rem;
60 }
61
62 .fa-pydata {
63 stroke: var(--pst-color-background);
64 stroke-linejoin: round;
65 stroke-width: 0.35;
66 }
67 }