extra.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. :root > * {
  2. --md-primary-fg-color: #338574;
  3. --md-primary-fg-color--light: #338574;
  4. --md-primary-fg-color--dark: #338574;
  5. --md-footer-bg-color: #353744;
  6. }
  7. .md-header__button.md-logo :is(img, svg) {
  8. width: unset !important;
  9. }
  10. .md-header__topic:first-child {
  11. font-weight: 400;
  12. }
  13. .md-typeset h4 {
  14. font-weight: 500 !important;
  15. margin: 0 !important;
  16. font-size: 1.1em !important;
  17. }
  18. .admonition {
  19. font-size: .74rem !important;
  20. }
  21. article {
  22. padding-bottom: 50px;
  23. }
  24. figure img, figure video {
  25. border-radius: 7px;
  26. }
  27. header {
  28. background: linear-gradient(150deg, rgba(51,133,116,1) 0%, rgba(86,189,168,1) 100%);
  29. }
  30. body[data-md-color-scheme="default"] header {
  31. filter: drop-shadow(0 5px 10px #ccc);
  32. }
  33. body[data-md-color-scheme="slate"] header {
  34. filter: drop-shadow(0 5px 10px #333);
  35. }
  36. body[data-md-color-scheme="default"] figure img,
  37. body[data-md-color-scheme="default"] figure video,
  38. body[data-md-color-scheme="default"] .screenshots img,
  39. body[data-md-color-scheme="default"] .screenshots video {
  40. filter: drop-shadow(3px 3px 3px #ccc);
  41. }
  42. body[data-md-color-scheme="slate"] figure img,
  43. body[data-md-color-scheme="slate"] figure video,
  44. body[data-md-color-scheme="slate"] .screenshots img,
  45. body[data-md-color-scheme="slate"] .screenshots video {
  46. filter: drop-shadow(3px 3px 3px #353744);
  47. }
  48. figure video {
  49. width: 100%;
  50. max-height: 450px;
  51. }
  52. .remove-md-box {
  53. background: none;
  54. border: none;
  55. margin: 0 auto;
  56. }
  57. .remove-md-box td {
  58. padding: 0 10px
  59. }
  60. /* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
  61. .screenshots {
  62. text-align: center;
  63. }
  64. .screenshots img {
  65. max-height: 230px;
  66. max-width: 300px;
  67. margin: 3px;
  68. border-radius: 5px;
  69. filter: drop-shadow(2px 2px 2px #ddd);
  70. }
  71. .screenshots .nowrap {
  72. white-space: nowrap;
  73. }
  74. .lightbox {
  75. opacity: 0;
  76. visibility: hidden;
  77. position: fixed;
  78. left:0;
  79. right: 0;
  80. top: 0;
  81. bottom: 0;
  82. z-index: -1;
  83. display: flex;
  84. align-items: center;
  85. justify-content: center;
  86. transition: all 0.15s ease-in;
  87. }
  88. .lightbox.show {
  89. background-color: rgba(0,0,0, 0.75);
  90. opacity: 1;
  91. visibility: visible;
  92. z-index: 1000;
  93. }
  94. .lightbox img {
  95. max-width: 90%;
  96. max-height: 90%;
  97. filter: drop-shadow(5px 5px 10px #222);
  98. border-radius: 5px;
  99. }
  100. .lightbox .close-lightbox {
  101. cursor: pointer;
  102. position: absolute;
  103. top: 30px;
  104. right: 30px;
  105. width: 20px;
  106. height: 20px;
  107. }
  108. .lightbox .close-lightbox::after,
  109. .lightbox .close-lightbox::before {
  110. content: '';
  111. width: 3px;
  112. height: 20px;
  113. background-color: #ddd;
  114. position: absolute;
  115. border-radius: 5px;
  116. transform: rotate(45deg);
  117. }
  118. .lightbox .close-lightbox::before {
  119. transform: rotate(-45deg);
  120. }
  121. .lightbox .close-lightbox:hover::after,
  122. .lightbox .close-lightbox:hover::before {
  123. background-color: #fff;
  124. }