extra.css 2.1 KB

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