github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/docs-website/src/css/custom.css (about) 1 /** 2 * Any CSS included here will be global. The classic template 3 * bundles Infima by default. Infima is a CSS framework designed to 4 * work well for content-centric websites. 5 */ 6 7 /* You can override the default Infima variables here. */ 8 :root { 9 --ifm-color-primary: #7bd5f5; 10 --ifm-color-primary-dark: #44a4c2; 11 --ifm-color-primary-darker: #44a4c2; 12 --ifm-color-primary-darkest: #44a4c2; 13 --ifm-color-primary-light: #b0ffff; 14 --ifm-color-primary-lighter: #b0ffff; 15 --ifm-color-primary-lightest: #b0ffff; 16 --ifm-background-color: #0a0e2e; 17 --ifm-background-surface-color: #0d133d; 18 --ifm-code-font-size: 95%; 19 --svg-icon-height: 20px; 20 } 21 22 /* For readability concerns, you should choose a lighter palette in dark mode. */ 23 html[data-theme="dark"], 24 [data-theme="dark"] { 25 --text-secondary: #ffffffb3; 26 --action-active: #ffffff8f; 27 --ifm-background-surface-color: #0d133d; 28 --ifm-background-color: #0a0e2e; 29 --ifm-color-primary: #4adede; 30 --ifm-color-primary-dark: #4adede; 31 --ifm-color-primary-darker: #4adede; 32 --ifm-color-primary-darkest: #4adede; 33 --ifm-color-primary-light: #4adede; 34 --ifm-color-primary-lighter: #4adede; 35 --ifm-color-primary-lightest: #4adede; 36 --ifm-navbar-link-color: var(--text-secondary); 37 --ifm-toc-link-color: var(--text-secondary); 38 --search-local-highlight-color: #44a4c2; 39 --ifm-navbar-search-input-icon: url("images/svg/search-icon-dark.svg"); 40 } 41 42 .docusaurus-highlight-code-line { 43 background-color: #10184c; 44 display: block; 45 margin: 0 calc(-1 * var(--ifm-pre-padding)); 46 padding: 0 var(--ifm-pre-padding); 47 } 48 49 [data-theme="dark"] .docusaurus-highlight-code-line { 50 background-color: #0a0e2e; 51 } 52 53 /* || SvgIcon */ 54 55 .svg-icon { 56 height: var(--svg-icon-height); 57 display: flex; 58 align-items: center; 59 } 60 61 .svg-icon-path { 62 fill: var(--text-secondary); 63 fill-opacity: unset; 64 } 65 66 .svg-link { 67 max-width: fit-content; 68 border-radius: 50px !important; 69 border: solid; 70 border-color: transparent; 71 padding: 8px; 72 } 73 74 .svg-link:hover { 75 background-color: var(--ifm-menu-color-background-active); 76 } 77 78 .svg-link:hover .svg-icon-path { 79 fill: var(--ifm-navbar-link-hover-color); 80 } 81 82 /* || SearchBar */ 83 84 /* Dark themed search-input */ 85 [data-theme="dark"] .navbar__search-input { 86 padding-right: 32px; 87 padding-left: 44px; 88 width: 220px; 89 height: 40px; 90 border-radius: 4px; 91 border: 1px solid rgba(255, 255, 255, 0.23); 92 background: var(--ifm-background-surface-color) 93 var(--ifm-navbar-search-input-icon) no-repeat 0.75rem center / 1rem 1rem; 94 } 95 96 /* 97 * Remove the outline. 98 * Highlight on hover and select. 99 */ 100 [data-theme="dark"] .navbar__search-input:focus-visible, 101 [data-theme="dark"] .navbar__search-input:hover { 102 outline: transparent; 103 border-color: var(--ifm-color-primary); 104 } 105 106 /* Default is hidden */ 107 .mobile-search { 108 display: none; 109 } 110 111 /* Hide large search and display icon on small screens */ 112 @media (max-width: 576px) { 113 .navbar__search-input { 114 display: none; 115 } 116 .mobile-search { 117 display: flex !important; 118 } 119 } 120 121 /* Override the .svg-icon dimensions when child of mobile-search */ 122 .mobile-search .svg-icon { 123 width: 18px; 124 height: 18px; 125 } 126 127 /* || NavBar */ 128 129 .navbar { 130 align-items: center; 131 box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 132 0px 6px 10px rgba(0, 0, 0, 0.14), 0px 1px 18px rgba(0, 0, 0, 0.12); 133 } 134 135 /* Jackal.dev logo size */ 136 .navbar__logo { 137 width: 152px; 138 height: 42px; 139 } 140 141 /* Jackal.dev padding and styling */ 142 .navbar__item { 143 display: flex; 144 font-size: 14px; 145 font-weight: 500; 146 align-items: center; 147 } 148 149 /* override docusaurus fields at their breakpoint */ 150 @media (max-width: 996px) { 151 /* Center the logo on smaller screens */ 152 .navbar__items .navbar__brand { 153 margin-right: auto; 154 margin-left: auto; 155 } 156 157 /* Shrink the logo on smaller screens */ 158 .navbar__logo { 159 height: 40px; 160 } 161 162 /* 163 * Restore original functionality from template 164 * that was removed to center text and hover state 165 */ 166 .navbar__item { 167 display: none; 168 } 169 } 170 171 /* Add Selection Line to bottom of selected navbar item */ 172 .navbar__link--active { 173 border-bottom: 2px solid var(--ifm-color-primary); 174 } 175 176 /* Add hover state highlighting background to navbar__items */ 177 .navbar__item:hover { 178 background-color: var(--ifm-menu-color-background-active); 179 } 180 181 /* Remove Hover state from navbar socials box */ 182 .navbar__item--socials-box:hover { 183 background-color: unset; 184 } 185 186 /* Remove Padding from navbar socials box */ 187 .navbar__item--socials-box { 188 padding: unset; 189 } 190 191 /* || Mobile Navbar (menu) */ 192 193 .menu { 194 background-color: var(--ifm-background-surface-color); 195 box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 196 0px 2px 2px rgba(0, 0, 0, 0.14), 0px 1px 5px rgba(0, 0, 0, 0.12); 197 } 198 199 /* Remove rounded links */ 200 .menu__link { 201 border-radius: 0; 202 } 203 204 /* Highlight text on hover */ 205 .menu__link:hover { 206 color: var(--ifm-navbar-link-hover-color); 207 } 208 209 /* 210 * Customize Main Menu to look like jackal.dev mobile drawer 211 * Without effecting the table of contents. 212 */ 213 [class="menu__list-item"] .menu__link { 214 justify-content: center; 215 font-size: x-large; 216 font-weight: 300; 217 margin-bottom: 16px; 218 } 219 220 /* Underline the active nav item and not the active doc. */ 221 :not(.theme-doc-sidebar-item-link) > [class="menu__link menu__link--active"] { 222 border-bottom: 2px solid var(--ifm-color-primary); 223 } 224 225 /* || Footer */ 226 227 /* Hide the Original Footer */ 228 #__docusaurus > footer { 229 display: none; 230 } 231 232 /* Resize and recolor the footer to match doc item. */ 233 .footer { 234 margin-top: 2rem; 235 margin-bottom: -2rem; 236 padding: 32px var(--doc-sidebar-width) 32px 0; 237 background-color: var(--ifm-background-color); 238 } 239 240 /* Flex position the footer container */ 241 .footer .container { 242 display: flex; 243 align-items: center; 244 justify-content: space-between; 245 } 246 247 /* Override logo size */ 248 .footer__logo { 249 height: 47px; 250 } 251 252 /* Override social media icons size */ 253 .footer__link-item .socials-box .svg-link .svg-icon { 254 height: 32px; 255 } 256 257 /* Adjust copyright font-size */ 258 .p-copy { 259 font-size: 20px; 260 } 261 262 @media (max-width: 996px) { 263 .footer { 264 padding: unset; 265 margin-bottom: 16px; 266 margin-top: 4rem; 267 } 268 269 .footer .container { 270 text-align: center; 271 gap: 24px; 272 flex-direction: column; 273 justify-items: center; 274 } 275 } 276 277 /* Remove the margin so they can be centered properly */ 278 .footer__links, 279 .p-copy, 280 .footer__logo { 281 margin: unset; 282 } 283 284 /* Remove the logo hover styling and center */ 285 .footer > .container > a { 286 display: flex; 287 opacity: unset; 288 transition: none; 289 justify-items: center; 290 } 291 292 /* || EditThisPage */ 293 294 .theme-edit-this-page { 295 display: flex; 296 align-items: center; 297 gap: 12px; 298 color: var(--text-secondary); 299 border-radius: 0px !important; 300 } 301 302 .theme-edit-this-page:hover .svg-icon .svg-icon-path { 303 fill: var(--ifm-color-primary); 304 } 305 306 .theme-edit-this-page .svg-icon { 307 height: "24px"; 308 } 309 310 .theme-edit-this-page:hover { 311 text-decoration: none; 312 }