extra.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. body[data-md-color-scheme="default"] figure img, body[data-md-color-scheme="default"] figure video {
  27. filter: drop-shadow(3px 3px 3px #ccc);
  28. }
  29. body[data-md-color-scheme="slate"] figure img, body[data-md-color-scheme="slate"] figure video {
  30. filter: drop-shadow(3px 3px 3px #1a1313);
  31. }
  32. figure video {
  33. width: 100%;
  34. max-height: 450px;
  35. }
  36. .remove-md-box {
  37. background: none;
  38. border: none;
  39. margin: 0 auto;
  40. }
  41. .remove-md-box td {
  42. padding: 0 10px
  43. }
  44. /* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
  45. .screenshots {
  46. text-align: center;
  47. }
  48. .screenshots img {
  49. max-height: 230px;
  50. max-width: 300px;
  51. margin: 3px;
  52. border-radius: 5px;
  53. filter: drop-shadow(2px 2px 2px #ddd);
  54. }
  55. .screenshots .nowrap {
  56. white-space: nowrap;
  57. }
  58. .lightbox {
  59. opacity: 0;
  60. visibility: hidden;
  61. position: fixed;
  62. left:0;
  63. right: 0;
  64. top: 0;
  65. bottom: 0;
  66. z-index: -1;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. transition: all 0.15s ease-in;
  71. }
  72. .lightbox.show {
  73. background-color: rgba(0,0,0, 0.75);
  74. opacity: 1;
  75. visibility: visible;
  76. z-index: 1000;
  77. }
  78. .lightbox img {
  79. max-width: 90%;
  80. max-height: 90%;
  81. filter: drop-shadow(5px 5px 10px #222);
  82. border-radius: 5px;
  83. }
  84. .lightbox .close-lightbox {
  85. cursor: pointer;
  86. position: absolute;
  87. top: 30px;
  88. right: 30px;
  89. width: 20px;
  90. height: 20px;
  91. }
  92. .lightbox .close-lightbox::after,
  93. .lightbox .close-lightbox::before {
  94. content: '';
  95. width: 3px;
  96. height: 20px;
  97. background-color: #ddd;
  98. position: absolute;
  99. border-radius: 5px;
  100. transform: rotate(45deg);
  101. }
  102. .lightbox .close-lightbox::before {
  103. transform: rotate(-45deg);
  104. }
  105. .lightbox .close-lightbox:hover::after,
  106. .lightbox .close-lightbox:hover::before {
  107. background-color: #fff;
  108. }