extra.css 1.7 KB

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