extra.css 1.6 KB

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