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