github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/docs/_sass/custom/custom.scss (about) 1 @import url('pygments/igorpro.css'); 2 3 @font-face { 4 font-family: GalanoGrotesque-ExtraLight; 5 src: local(GalanoGrotesque-ExtraLight), 6 url('../fonts/Rene Bieder - Galano Grotesque ExtraLight.otf'); 7 } 8 @font-face { 9 font-family: GalanoGrotesque; 10 src: local(GalanoGrotesque-Regular), 11 url('../fonts/Rene Bieder - Galano Grotesque.otf'); 12 } 13 @font-face { 14 font-family: GalanoGrotesque-Bold; 15 src: local(GalanoGrotesque-Bold), 16 url('../fonts/Rene Bieder - Galano Grotesque Bold.otf'); 17 } 18 @font-face { 19 font-family: GalanoGrotesque-Medium; 20 src: local(Rene-Bieder-Galano-Grotesque-Medium), 21 url('../fonts/Rene Bieder - Galano Grotesque Medium.otf'); 22 } 23 24 $white: #ffffff; 25 $french-rose: #f24886; 26 $maroon: #b62d55; 27 $pale-grey: #f1f9f9; 28 $light-blue-grey: #def1f1; 29 $info-blue: #3498db; 30 $info-blue-highlight: #2980b9; 31 $teal-green: #279890; 32 $black: #000000; 33 $battleship-grey: #6e7171; 34 $warm-grey: #7e7e7e; 35 $warm-grey-two: #949494; 36 $viridian: #258c82; 37 $aqua-marine: #2ce5b5; 38 $border-grey: #dadada; 39 $white-two: #f8f8f8; 40 $charcoal: #2f3433; 41 $note: #fff3e5; 42 $note-border: #f3a342; 43 $whitegrey: #f5f7f9; 44 $darkblue: #576489; 45 $darkblack: #575e65; 46 $lightgreen: #d8faf1; 47 $lightpink: #ffddec; 48 $bglinear: linear-gradient(#000 0%, #000 100%); 49 50 // General 51 html { 52 scroll-padding-top: 90px; 53 } 54 body { 55 font-family: GalanoGrotesque; 56 color: $black; 57 .body-wrapper, 58 footer { 59 display: flex; 60 .main, 61 .footer-main { 62 width: 75%; 63 max-width: 75%; 64 margin-left: 0; 65 float: right; 66 position: relative; 67 .main-content-wrap { 68 max-width: 1300px; 69 padding: 80px; 70 } 71 } 72 73 .side-bar, 74 .footer-sidebar { 75 width: 25%; 76 max-width: 25%; 77 position: relative; 78 height: auto; 79 background-color: $whitegrey; 80 } 81 } 82 83 a { 84 color: $teal-green; 85 } 86 p, li{ 87 font-family: GalanoGrotesque; 88 font-size: 1em; 89 } 90 91 h1 { 92 margin-top: 40px !important; 93 font-family: GalanoGrotesque-Medium; 94 font-size: 42px !important; 95 color: $black; 96 } 97 h2 { 98 margin-top: 40px !important; 99 font-size: 28px !important; 100 font-family: GalanoGrotesque-Medium; 101 &#table-of-contents { 102 font-family: GalanoGrotesque-Medium; 103 color: $white; 104 font-size: 14px !important; 105 } 106 } 107 108 h3 { 109 margin-top: 25px !important; 110 font-size: 18px; 111 font-weight: 600; 112 font-family: GalanoGrotesque-Medium; 113 } 114 115 h4 { 116 margin-top: 25px !important; 117 font-size: 16px; 118 font-weight: 600; 119 font-family: GalanoGrotesque-Medium; 120 } 121 122 .text-delta { 123 text-transform: none; 124 width: 100%; 125 display: block; 126 background-color: $teal-green; 127 color: $white; 128 border-radius: 2px 2px 0 0; 129 font-size: 14px!important; 130 padding: 10px 15px 8px 15px; 131 } 132 .text-delta + ul{ 133 background-color: $whitegrey; 134 width: 100%; 135 border: none; 136 margin-top: 0; 137 border-radius: 0; 138 position: relative; 139 top: -3px; 140 padding: 15px 25px 15px 25px; 141 li{ 142 text-decoration: underline; 143 &::before { 144 content: none; 145 } 146 a:hover{ 147 background-image: none; 148 } 149 a{ 150 white-space: normal; 151 } 152 } 153 } 154 #markdown-toc { 155 background-color: $whitegrey; 156 width: 100%; 157 border: none; 158 margin-top: 0; 159 border-radius: 0; 160 position: relative; 161 top: -3px; 162 padding: 15px 25px 15px 25px; 163 li { 164 &::before { 165 display: none; 166 } 167 a { 168 color: $teal-green; 169 font-size: 1em; 170 background-image: none; 171 white-space: normal; 172 &:hover { 173 background-image: none; 174 color: $teal-green; 175 } 176 } 177 ol, 178 ul { 179 border: none; 180 li { 181 a { 182 padding-bottom: 0; 183 } 184 } 185 } 186 } 187 } 188 189 div.highlighter-rouge pre.highlight { 190 padding: 10px; 191 } 192 193 .highlight { 194 195 code { 196 background-color: transparent; 197 } 198 } 199 200 .btn { 201 padding: 6px 14px; 202 color: $charcoal; 203 font-family: GalanoGrotesque; 204 border-radius: 4px; 205 background: $white; 206 border: solid 2px $charcoal; 207 box-shadow: none; 208 &:hover { 209 border-color: $teal-green; 210 color: $teal-green; 211 background: $white; 212 } 213 } 214 215 .btn-green { 216 font-size: 16px; 217 line-height: 1.63; 218 letter-spacing: 0.05px; 219 color: #ffffff; 220 background-color: #279890; 221 border: 2px solid #279890; 222 } 223 224 .btn-green:hover { 225 background-color: #ffffff; color: #279890; 226 } 227 228 .main-content { 229 h1, 230 h2, 231 h3, 232 h4, 233 h5, 234 h6 { 235 &:hover { 236 a.anchor-heading { 237 left: -1.7rem; 238 svg { 239 display: none; 240 } 241 background-image: url('../../assets/icons/anchor.svg'); 242 width: 24px; 243 height: 24px; 244 background-repeat: no-repeat; 245 background-size: contain; 246 background-position: center center; 247 &:hover { 248 background-image: url('../../assets/icons/anchor\ green.svg'); 249 } 250 } 251 } 252 } 253 .toc-block { 254 display: table-cell; 255 } 256 } 257 } 258 259 // Header 260 261 .main .main-header, 262 .side-bar .site-header { 263 background-color: white; 264 height: 80px; 265 max-height: 80px; 266 min-height: 80px; 267 border: 0; 268 position: fixed; 269 z-index: 2; 270 } 271 .main .main-header { 272 width: 75%; 273 nav.aux-nav { 274 width: 100%; 275 padding: 0; 276 max-width: 1080px; 277 .aux-nav-list { 278 justify-content: flex-end; 279 padding: 20px 80px; 280 .aux-nav-list-item { 281 a.site-button { 282 font-size: 16px; 283 line-height: 1.63; 284 letter-spacing: 0.05px; 285 color: $black; 286 margin: 0 4px; 287 &:hover { 288 background-image: none; 289 } 290 } 291 &:hover, 292 &.active { 293 a { 294 color: $teal-green; 295 } 296 } 297 &.button { 298 a.site-button { 299 font-size: 16px; 300 line-height: 1.63; 301 letter-spacing: 0.05px; 302 color: $white; 303 margin: 0 0 0 20px; 304 padding: 18px; 305 border-radius: 6px; 306 background-color: $french-rose; 307 border: 2px solid $french-rose; 308 &:hover { 309 background-color: $maroon; 310 border: 2px solid $maroon; 311 color: $white; 312 } 313 } 314 } 315 } 316 } 317 } 318 } 319 .side-bar:after { 320 content: ' '; 321 position: fixed; 322 width: 100vw; 323 top: 80px; 324 box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.23); 325 left: 0; 326 right: 0; 327 z-index: 0; 328 } 329 .side-bar .site-header { 330 width: 25%; 331 justify-content: flex-end; 332 top: 0; 333 a.site-title { 334 max-width: 290px; 335 padding: 0; 336 337 .site-logo { 338 width: 150px; 339 height: inherit; 340 } 341 &:hover { 342 background-image: none; 343 background-color: transparent; 344 } 345 } 346 } 347 348 .site-logo { 349 width: 135px; 350 height: 30px; 351 } 352 353 // Sidebar 354 .side-bar { 355 padding: 80px 0; 356 border: 0; 357 display: block; 358 z-index: 1; 359 360 nav.site-nav, 361 nav.aux-nav { 362 padding: 0; 363 width: 100%; 364 display: initial; 365 .nav-list, 366 .aux-nav-list { 367 width: 100%; 368 padding: 0; 369 margin-top: 30px; 370 .nav-list-item, 371 .aux-nav-list-item { 372 padding: 0; 373 &:hover { 374 background-color: $white; 375 } 376 &.active { 377 &:hover { 378 background-color: transparent; 379 } 380 .nav_list { 381 li { 382 padding-right: 0; 383 padding-left: 0; 384 &:hover { 385 background-color: $white; 386 } 387 } 388 } 389 } 390 391 &.header { 392 padding: 12px 40px 12px calc(100% - 290px); 393 color: $teal-green; 394 font-family: GalanoGrotesque-Bold; 395 font-size: 18px !important; 396 letter-spacing: 1.1px; 397 &:hover { 398 background-color: transparent; 399 background-image: none; 400 } 401 &:not(:first-of-type) { 402 padding-top: 36px; 403 border-top: 1px solid $border-grey; 404 margin-top: 20px; 405 } 406 } 407 408 a.nav-list-link { 409 padding: 12px 40px 12px calc(100% - 290px); 410 font-size: 14px !important; 411 color: $darkblue; 412 font-family: GalanoGrotesque; 413 letter-spacing: 1.1px; 414 &.active, 415 &:hover { 416 background-color: $white; 417 background-image: none; 418 } 419 } 420 a.nav-list-link.active{ 421 font-family: GalanoGrotesque-Medium!important; 422 color: $teal-green !important; 423 } 424 .nav-list-expander { 425 right: 40px; 426 width: 22px; 427 height: 22px; 428 padding: 0; 429 margin: 14px 0 0 0; 430 svg { 431 color: $black; 432 } 433 &:hover { 434 background-color: none; 435 background-image: none; 436 } 437 } 438 439 .nav-list, 440 .aux-nav-list { 441 margin-top: 0; 442 a.nav-list-link, 443 a.aux-nav-list-item { 444 margin-left: 20px; 445 font-size: 13px !important; 446 letter-spacing: 0.05px; 447 } 448 .nav-list, 449 .aux-nav-list { 450 a.nav-list-link, 451 a.aux-nav-list-item { 452 margin-left: 30px; 453 color: $warm-grey-two; 454 font-size: 12px !important; 455 } 456 } 457 } 458 } 459 } 460 461 .nav-version { 462 display: flex; 463 align-items: center; 464 justify-content: center; 465 padding: 12px 40px 12px calc(100% - 290px); 466 text-transform: none; 467 468 select { 469 height: 2em; 470 margin: 0 0 0 10px; 471 flex-grow: 1; 472 } 473 } 474 475 .search { 476 margin-top: 35px; 477 margin-left: calc(100% - 290px); 478 margin-right: 40px; 479 max-width: 250px !important; 480 max-height: 40px !important; 481 width: 250px !important; 482 z-index: 1; 483 484 .search-input { 485 background-color: $whitegrey; 486 border: 1px solid $border-grey; 487 border-radius: 6px; 488 color: $battleship-grey; 489 font-family: GalanoGrotesque-Medium; 490 &:focus, 491 &:active { 492 background-color: $whitegrey; 493 color: $battleship-grey; 494 } 495 .search-icon { 496 color: $warm-grey-two; 497 } 498 } 499 500 .search-input:focus + .search-label .search-icon { 501 color: $warm-grey-two; 502 } 503 } 504 .mobile-menu { 505 display: none; 506 } 507 } 508 } 509 510 .label { 511 text-transform: none !important; 512 margin-left: 0 !important; 513 margin-right: 0 !important; 514 } 515 516 //Search Fixes 517 .search-active .main { 518 position: inherit; 519 right: inherit; 520 left: inherit; 521 } 522 .search-overlay { 523 display: none; 524 } 525 .search-result-doc .search-result-icon { 526 color: $teal-green; 527 } 528 // Footer 529 footer { 530 height: 360px; 531 .footer-main { 532 padding: 80px; 533 ul { 534 list-style: none; 535 padding: 0; 536 margin: 0; 537 li { 538 display: inline-block; 539 padding: 0; 540 margin: 0; 541 } 542 } 543 .row { 544 display: flex; 545 .left { 546 width: 70%; 547 } 548 .right { 549 width: 30%; 550 display: flex; 551 justify-content: flex-end; 552 } 553 .site-title { 554 padding: 0; 555 margin-bottom: 30px; 556 .site-logo { 557 height: 45px; 558 } 559 } 560 .footer-links { 561 li { 562 margin-right: 40px; 563 a { 564 padding: 0; 565 color: $black; 566 font-size: 18px; 567 &:hover { 568 color: $teal-green; 569 } 570 } 571 } 572 } 573 .footer-social, 574 .bottom-footer-links { 575 li { 576 a { 577 padding: 0 15px; 578 font-size: 16px; 579 color: $warm-grey-two; 580 &:last-of-type { 581 padding-right: 0; 582 } 583 &:hover { 584 color: $teal-green; 585 } 586 } 587 } 588 } 589 .footer-social { 590 li { 591 a { 592 img { 593 &.hover { 594 display: none; 595 } 596 } 597 &:hover { 598 img { 599 &.no-hover { 600 display: none; 601 } 602 &.hover { 603 display: block; 604 } 605 } 606 } 607 } 608 } 609 } 610 } 611 .top-border { 612 padding-top: 30px; 613 margin-top: 30px; 614 border-top: 1px solid $border-grey; 615 } 616 a:hover { 617 background-color: transparent !important; 618 background-image: none !important; 619 } 620 } 621 .footer-sidebar { 622 z-index: -1; 623 } 624 } 625 626 @media (max-width: 799px) { 627 body { 628 padding-bottom: 0; 629 .body-wrapper { 630 display: block; 631 .side-bar { 632 width: 100%; 633 max-width: 100%; 634 padding: 0; 635 .site-header { 636 width: 100%; 637 flex-direction: row-reverse; 638 justify-content: flex-end; 639 .site-button { 640 padding: 11px 30px 0; 641 width: 24px; 642 height: 24px; 643 background-repeat: no-repeat; 644 background-size: auto; 645 background-position: center center; 646 background-image: url('../../assets/icons/menu.svg'); 647 &:hover, 648 &:active, 649 &:focus { 650 background-color: transparent; 651 } 652 &.nav-open { 653 background-image: url('../../assets/icons/close.svg'); 654 } 655 svg { 656 display: none; 657 } 658 } 659 } 660 661 nav { 662 display: none; 663 664 overflow: scroll; 665 background: white; 666 &.nav-open { 667 display: block; 668 position: fixed; 669 top: 0; 670 height: 100vh; 671 .search { 672 position: relative; 673 margin-top: 120px; 674 margin-left: 30px; 675 margin-right: 30px; 676 padding: 0; 677 .search-results { 678 display: block !important; 679 max-height: 60vh !important; 680 } 681 .search-input { 682 background-color: $white; 683 } 684 .search-input-wrap { 685 box-shadow: none; 686 } 687 } 688 .nav-list, 689 .aux-nav-list { 690 .nav-list-item, 691 .aux-nav-list-item { 692 padding-left: 30px !important; 693 padding-right: 30px !important; 694 695 a { 696 padding-left: 0 !important; 697 padding-right: 0 !important; 698 &.active { 699 background: unset; 700 } 701 } 702 } 703 .nav-list { 704 margin-top: 0; 705 a.nav-list-link { 706 text-indent: 0; 707 } 708 } 709 } 710 .mobile-menu { 711 display: block; 712 border-top: 1px solid $border-grey; 713 margin-top: 18px; 714 padding-bottom: 80px; 715 nav { 716 display: block; 717 .aux-nav-list { 718 flex-direction: column; 719 a.site-button { 720 font-size: 18px !important; 721 color: $black; 722 } 723 .button { 724 .site-button { 725 border-radius: 6px; 726 border: solid 2px $teal-green; 727 background-color: $white; 728 color: $teal-green; 729 padding: 10px 20px !important; 730 display: inline-block; 731 margin-top: 10px; 732 } 733 } 734 } 735 } 736 } 737 } 738 } 739 } 740 .main { 741 width: 100%; 742 max-width: 100%; 743 float: none; 744 .main-header { 745 display: none; 746 } 747 .main-content a { 748 white-space: normal; 749 } 750 .main-content-wrap { 751 padding: 80px 30px; 752 } 753 } 754 } 755 756 footer { 757 border-top: 1px solid $border-grey; 758 height: auto; 759 .footer-sidebar { 760 display: none; 761 } 762 .footer-main { 763 width: 100%; 764 max-width: 100%; 765 padding: 60px 30px; 766 float: none; 767 .row { 768 flex-direction: column; 769 .right, 770 .left { 771 width: 100%; 772 display: block; 773 } 774 .site-title { 775 margin-bottom: 40px; 776 } 777 .footer-links { 778 display: flex; 779 flex-wrap: wrap; 780 margin-bottom: 20px; 781 li { 782 margin: 0 0 30px; 783 width: 50%; 784 } 785 } 786 .footer-social { 787 width: 100%; 788 display: flex; 789 justify-content: space-between; 790 li { 791 a { 792 padding: 0; 793 img { 794 width: 34px; 795 height: 34px; 796 } 797 } 798 } 799 } 800 .bottom-footer-links { 801 li { 802 display: block; 803 margin-top: 30px; 804 a { 805 padding: 0; 806 } 807 } 808 } 809 .top-border { 810 padding-top: 40px; 811 margin-top: 40px; 812 } 813 } 814 } 815 } 816 } 817 } 818 .copy-code-container { 819 position: absolute; 820 right: 0.3em; 821 } 822 823 .copy-code-button { 824 &:hover{ 825 color: $teal-green !important; 826 } 827 align-items: center; 828 justify-content: center; 829 border: none; 830 cursor: pointer; 831 font-size: 1rem; 832 color: $black; 833 padding: 0.4em 0.5em; 834 background-color: transparent; 835 outline:none; 836 } 837 838 .highlighter-rouge { 839 position: relative; 840 } 841 842 .language-shell.highlighter-rouge pre.highlight::before, 843 .language-sh.highlighter-rouge pre.highlight::before, 844 .language-bash.highlighter-rouge pre.highlight::before{ 845 content: "$ "; 846 color: $black; 847 font-weight: 400; 848 font-family: monospace; 849 font-size: 0.75em; 850 } 851 852 th, td { 853 background-color: transparent; 854 } 855 856 .main-content ul.ui-tabs-nav > li::before { 857 content: ""; 858 } 859 860 .tabs { 861 background: transparent; 862 &.ui-widget { 863 .copy-code-button { 864 font-family: "Font Awesome 6 Free" !important; 865 } 866 } 867 } 868 869 .tabs .ui-widget-header { 870 background: transparent; 871 border: none; 872 border-bottom: 1px solid #d3d3d3; 873 -moz-border-radius: 0px; 874 -webkit-border-radius: 0px; 875 border-radius: 0px; 876 } 877 878 .tabs .ui-tabs-nav .ui-state-default { 879 background: transparent; 880 border: none; 881 } 882 .tabs .ui-tabs-nav .ui-state-active { 883 border: none; 884 } 885 886 .tabs .ui-tabs-nav .ui-state-default a { 887 color: #c0c0c0; 888 } 889 .tabs .ui-tabs-nav .ui-state-active a { 890 color: $teal-green; 891 } 892 /*overridden*/ 893 div.highlighter-rouge{ 894 border-radius: 4px; 895 &:hover { 896 > button { 897 cursor: pointer; 898 opacity: 0.5; 899 } 900 } 901 } 902 903 .highlighter-rouge{ 904 905 button.copy-code-button{ 906 color: $black; 907 } 908 } 909 910 /* Tooltip container */ 911 .tooltip { 912 position: relative; 913 display: inline-block; 914 border-bottom: 0; 915 >a,span { 916 text-decoration: underline; 917 text-decoration-style: dotted; 918 background-image: none; 919 } 920 .tooltiptext { 921 visibility: hidden; 922 text-decoration: none; 923 background-color: $aqua-marine; 924 color: $black; 925 padding: 10px 20px; 926 border-radius: 6px; 927 position: absolute; 928 z-index: 1; 929 930 width: 400px; 931 top: 100%; 932 left: 50%; 933 margin-left: -200px; 934 } 935 &:hover .tooltiptext { 936 visibility: visible; 937 } 938 .tooltiptext::after { 939 content: " "; 940 position: absolute; 941 color: $aqua-marine; 942 bottom: 100%; /* At the top of the tooltip */ 943 left: 50%; 944 margin-left: -5px; 945 border-width: 5px; 946 border-style: solid; 947 border-color: transparent transparent $aqua-marine transparent; 948 } 949 } 950 951 .ui-dialog-titlebar { 952 display: none; 953 } 954 955 .feedback-container { 956 @media (max-width: 1024px) { 957 display: none; 958 } 959 position: sticky; 960 top: 180px; 961 z-index: 9999; 962 .feedback-buttons { 963 position: absolute; 964 right: 70px; 965 margin-bottom: 20px; 966 top: -55px; 967 .tooltiptext { 968 font-size: small; 969 width: 150px; 970 margin-left: -75px; 971 text-align: center; 972 } 973 .page-helpful-btn { 974 background: none !important; 975 border-radius: 50%; 976 border: solid $teal-green 2px; 977 color: $teal-green; 978 height: 40px; 979 width: 40px; 980 margin: 0 3px; 981 cursor: pointer; 982 &:focus-visible { 983 outline: none; 984 } 985 } 986 } 987 } 988 989 #is-helpful-ty { 990 display: none; 991 a { 992 color: $teal-green !important; 993 } 994 } 995 996 .badge { 997 padding: 2px 4px; 998 background: $lightpink; 999 text-transform: uppercase; 1000 text-align: center; 1001 border-radius: 6px; 1002 font-size: x-small; 1003 } 1004 1005 .quickstart-steps { 1006 padding: 10px; 1007 img { 1008 width: 50px; 1009 height: 50px; 1010 } 1011 } 1012 1013 .row { 1014 display: flex; 1015 flex-direction: row; 1016 } 1017 1018 .col { 1019 display: flex; 1020 flex-direction: column; 1021 justify-content: center; 1022 margin-bottom: 0.3em; 1023 1024 &.step-num { 1025 margin-right: 20px; 1026 & > img { 1027 width: 40px; 1028 } 1029 } 1030 } 1031 1032 img.quickstart { 1033 box-shadow: 3px 3px 1px #ccc; 1034 border-width: thin; 1035 border-color: black; 1036 border-style: ridge; 1037 } 1038 1039 .breadcrumb-nav { margin-top: 1rem; }