extra.css 2.1 KB

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