article.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /* Article */
  2. article {
  3. overflow: hidden;
  4. }
  5. article header {
  6. position: relative;
  7. }
  8. article section {
  9. font-size: 2rem;
  10. line-height: 3rem;
  11. font-weight: 500;
  12. padding: 0 2rem;
  13. }
  14. article section.limited {
  15. display: block;
  16. max-height: 60rem;
  17. overflow: hidden;
  18. }
  19. article section.limited:after {
  20. content: "";
  21. display: block;
  22. background: linear-gradient(to bottom, rgba(var(--movim-background-main), 0), rgba(var(--movim-background-main), 1));
  23. width: 100%;
  24. height: 10rem;
  25. position: absolute;
  26. bottom: 0;
  27. pointer-events: none;
  28. }
  29. @media screen and (max-width: 1024px) {
  30. article section.limited {
  31. max-height: 40rem;
  32. }
  33. }
  34. article img,
  35. article video {
  36. max-width: 100%;
  37. height: auto;
  38. }
  39. /* Some CSS to style the quote XHTML generated by Movim */
  40. article section content div.quote {
  41. display: block;
  42. border-radius: 2px;
  43. border: 1px solid rgba(0, 0, 0, 0.12);
  44. padding: 1rem 2rem;
  45. margin-bottom: 1rem;
  46. box-sizing: border-box;
  47. }
  48. article section content div.quote:before,
  49. article section content div.quote:after {
  50. content: '';
  51. display: none;
  52. }
  53. article section content div.quote ul {
  54. display: flex;
  55. flex-flow: row wrap;
  56. }
  57. article section content div.quote ul:not(.list):not(.tabs):not(.grid) > li {
  58. list-style-type: none;
  59. padding-left: 0;
  60. }
  61. article section content div.quote ul li > * {
  62. margin-right: 1rem;
  63. }
  64. article section content div.quote li:first-child {
  65. flex: 1 75%;
  66. padding-right: 2rem;
  67. box-sizing: border-box;
  68. }
  69. @media screen and (max-width: 1024px) {
  70. article section content div.quote li {
  71. flex: 1 100%;
  72. }
  73. }
  74. article section content div.quote li img {
  75. max-height: 10rem;
  76. max-width: 100%;
  77. float: right;
  78. }
  79. article section content img.big_picture {
  80. display: block;
  81. margin: 0rem auto;
  82. margin-bottom: 1rem;
  83. }
  84. article section content img.active:hover {
  85. cursor: pointer;
  86. }
  87. article section content div.video_embed {
  88. position: relative;
  89. padding-bottom: 56.25%; /* 16:9 */
  90. margin-bottom: 2rem;
  91. height: 0;
  92. }
  93. article section content div.video_embed iframe {
  94. position: absolute;
  95. top: 0;
  96. left: 0;
  97. width: 100%;
  98. height: 100%;
  99. }
  100. article ul li.pic img {
  101. max-width: 30rem;
  102. max-height: 30rem;
  103. }
  104. /* Spoiler */
  105. article input[type=checkbox].spoiler {
  106. display: none;
  107. }
  108. article input[type=checkbox].spoiler:not(:checked) + section {
  109. position: relative;
  110. }
  111. article input[type=checkbox].spoiler:not(:checked) + section content > * {
  112. opacity: 0.05;
  113. pointer-events: none;
  114. }
  115. article section label.spoiler,
  116. article input[type=checkbox].spoiler:checked + section label.spoiler {
  117. display: none;
  118. }
  119. article input[type=checkbox].spoiler + section label.spoiler {
  120. text-align: center;
  121. display: block;
  122. position: absolute;
  123. top: calc(50% - 5rem);
  124. left: calc(50% - 5rem);
  125. width: 10rem;
  126. height: 10rem;
  127. line-height: 10rem;
  128. font-size: 4rem;
  129. border-radius: 100%;
  130. opacity: 0.9;
  131. background-color: gray;
  132. color: white;
  133. }
  134. article section label.spoiler:hover {
  135. cursor: pointer;
  136. }