extra.css 2.5 KB

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