extra.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. height: 230px;
  50. margin: 3px;
  51. border-radius: 5px;
  52. filter: drop-shadow(2px 2px 2px #ddd);
  53. }
  54. .screenshots .nowrap {
  55. white-space: nowrap;
  56. }
  57. .lightbox {
  58. opacity: 0;
  59. visibility: hidden;
  60. position: fixed;
  61. left:0;
  62. right: 0;
  63. top: 0;
  64. bottom: 0;
  65. z-index: -1;
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. transition: all 0.15s ease-in;
  70. }
  71. .lightbox.show {
  72. background-color: rgba(0,0,0, 0.75);
  73. opacity: 1;
  74. visibility: visible;
  75. z-index: 1000;
  76. }
  77. .lightbox img {
  78. max-width: 90%;
  79. max-height: 90%;
  80. filter: drop-shadow(5px 5px 10px #222);
  81. border-radius: 5px;
  82. }
  83. .lightbox .close-lightbox {
  84. cursor: pointer;
  85. position: absolute;
  86. top: 30px;
  87. right: 30px;
  88. width: 20px;
  89. height: 20px;
  90. }
  91. .lightbox .close-lightbox::after,
  92. .lightbox .close-lightbox::before {
  93. content: '';
  94. width: 3px;
  95. height: 20px;
  96. background-color: #ddd;
  97. position: absolute;
  98. border-radius: 5px;
  99. transform: rotate(45deg);
  100. }
  101. .lightbox .close-lightbox::before {
  102. transform: rotate(-45deg);
  103. }
  104. .lightbox .close-lightbox:hover::after,
  105. .lightbox .close-lightbox:hover::before {
  106. background-color: #fff;
  107. }