Debian Codegraph @

src/pydata_sphinx_theme/assets/styles/components/header/_header-logo.scss

raw
1 /**
2 * Logo in the navbar
3 */
4
5 .navbar-brand {
6 position: relative;
7 height: var(--pst-header-height);
8 max-height: var(--pst-header-height);
9 padding: 0.5rem 0;
10 width: auto;
11 margin: 0;
12 display: flex;
13
14 // Ensure that the logo stays the same length while other content shrinks
15 flex-shrink: 0;
16 align-items: center;
17 gap: 0.5rem;
18
19 // If there's no logo image, we use a p element w/ the site title
20 p {
21 color: var(--pst-color-text-base);
22 margin-bottom: 0;
23 }
24
25 // If there's a logo, it'll be in an img block
26 img {
27 max-width: 100%;
28 height: 100%;
29 width: auto;
30 }
31
32 &:hover,
33 &:visited:hover {
34 @include link-style-hover;
35
36 color: var(--pst-color-text-base);
37 }
38 }