extra.css 2.2 KB

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