Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

316 rader
6.9 KiB

  1. .close-article-button {
  2. width: 40px;
  3. height: 40px;
  4. position: fixed;
  5. top: 10px;
  6. right: 10px;
  7. display: flex;
  8. align-items: center;
  9. justify-content: center;
  10. background-color: rgba(#ffff, 0.5);
  11. border-radius: 50%;
  12. z-index: 3;
  13. opacity: 0;
  14. transform: translateY(10px);
  15. transition: opacity 0.3s, transform 0.3s;
  16. &.active {
  17. animation: fadeInFromBottom 0.5s forwards;
  18. }
  19. ion-icon {
  20. color: white;
  21. font-size: 20px;
  22. }
  23. }
  24. @keyframes fadeInFromBottom {
  25. 0% {
  26. opacity: 0;
  27. transform: translateY(30px);
  28. }
  29. 100% {
  30. opacity: 1;
  31. transform: translateY(0px);
  32. }
  33. }
  34. .image-holder {
  35. position: sticky;
  36. position: -webkit-sticky;
  37. top: 0;
  38. height: 40%;
  39. overflow: hidden;
  40. h4 {
  41. font-size: 1.5rem;
  42. margin: 0px;
  43. line-height: 1.5;
  44. font-weight: 500;
  45. transition: opacity 0.1s;
  46. padding: 10px 0;
  47. position: absolute;
  48. color: white;
  49. bottom: 45px;
  50. left: 6%;
  51. width: 70%;
  52. animation: fadeInFromBottom 0.5s forwards;
  53. }
  54. button {
  55. width: 60px;
  56. height: 60px;
  57. position: absolute;
  58. top: calc(50% - 60px);
  59. left: calc(50% - 30px);
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. background-color: rgba(var(--brand-red-rgb), 0.5);
  64. border-radius: 50%;
  65. animation: popin 0.3s forwards;
  66. animation-delay: 0.5s;
  67. transform: scale(0);
  68. @keyframes popin {
  69. 0% {
  70. transform: scale(0);
  71. }
  72. 50% {
  73. transform: scale(1.4);
  74. }
  75. 100% {
  76. transform: scale(1);
  77. }
  78. }
  79. ion-icon {
  80. color: white;
  81. font-size: 20px;
  82. transition: color 0.3s;
  83. }
  84. }
  85. figure {
  86. margin: 0;
  87. display: block;
  88. width: 100%;
  89. height: 100%;
  90. filter: brightness(30%);
  91. img {
  92. height: 100%;
  93. object-fit: cover;
  94. display: block;
  95. width: 100%;
  96. }
  97. }
  98. }
  99. .content {
  100. background-color: white;
  101. padding: 5%;
  102. margin: 0 auto;
  103. border-radius: 0px;
  104. transition: border-radius 0.3s, transform 0.3s, width 0.3s, margin 0.3s, box-shadow 0.3s;
  105. border-bottom: 1px solid rgba(var(--light-grey-rgb), 0.3);
  106. z-index: 2;
  107. width: 90%;
  108. height: auto;
  109. position: relative;
  110. border-radius: 10px;
  111. overflow: auto;
  112. border-width: 0px;
  113. box-shadow: 0px 0px 15px rgba(var(--light-grey-rgb), 0.3);
  114. animation: showUpContent 0.5s forwards;
  115. }
  116. @keyframes showUpContent {
  117. 0% {
  118. transform: translateY(0px);
  119. }
  120. 100% {
  121. transform: translateY(-40px);
  122. }
  123. }
  124. .details {
  125. margin: 0px;
  126. font-size: 0.9rem;
  127. line-height: 1.5;
  128. font-weight: 400;
  129. color: var(--light-grey);
  130. overflow: hidden;
  131. transition: opacity 0.1s;
  132. }
  133. .action-buttons {
  134. display: flex;
  135. padding: 0 3%;
  136. z-index: 1;
  137. margin: 0 auto 20px;
  138. width: 90%;
  139. background-color: white;
  140. border-radius: 10px;
  141. position: sticky;
  142. position: -webkit-sticky;
  143. bottom: 10px;
  144. z-index: 2;
  145. box-shadow: 0px 0px 15px rgba(var(--light-grey-rgb), 0.3);
  146. justify-content: center;
  147. height: 60px;
  148. .shortcuts {
  149. display: flex;
  150. align-items: center;
  151. height: 100%;
  152. width: 50%;
  153. button {
  154. margin-right: 5px;
  155. border-radius: 50%;
  156. background-color: rgba(var(--light-grey-rgb), 0.1);
  157. margin: 0 auto;
  158. width: 40px;
  159. height: 40px;
  160. &.wide-button {
  161. width: auto;
  162. border-radius: 5px;
  163. padding: 0 10px;
  164. }
  165. &.active {
  166. ion-icon, span {
  167. color: var(--brand-red);
  168. }
  169. }
  170. span {
  171. vertical-align: middle;
  172. color: var(--light-grey);
  173. }
  174. ion-icon {
  175. vertical-align: middle;
  176. color: var(--brand-black);
  177. font-size: 1.2rem;
  178. }
  179. }
  180. }
  181. }
  182. .comments {
  183. background-color: white;
  184. width: 90%;
  185. position: relative;
  186. box-shadow: 0px 0px 0px var(--light-grey);
  187. z-index: 1;
  188. margin: -20px auto 20px;
  189. border-radius: 10px;
  190. box-shadow: 0px 0px 15px rgba(var(--light-grey-rgb), 0.3);
  191. border-radius: 10px;
  192. overflow: hidden;
  193. opacity: 0;
  194. animation: fadeInFromBottom 0.5s forwards;
  195. header {
  196. font-size: 1.1rem;
  197. margin: 0px;
  198. line-height: 1.5;
  199. font-weight: 500;
  200. color: var(--brand-black);
  201. transition: opacity 0.1s;
  202. background-color: white;
  203. padding: 10px 5%;
  204. }
  205. ul {
  206. list-style: none;
  207. padding: 0;
  208. margin: 0;
  209. li {
  210. padding: 5px 5% 10px;
  211. border-top: 1px solid rgba(var(--light-grey-rgb), 0.3);
  212. line-height: 1.5;
  213. }
  214. label {
  215. font-size: 1rem;
  216. font-weight: 500;
  217. letter-spacing: 1px;
  218. color: rgba(var(--brand-red-rgb), 0.8);
  219. }
  220. p {
  221. margin: 3px 0;
  222. font-size: 1rem;
  223. font-weight: 400;
  224. color: var(--light-grey);
  225. }
  226. button {
  227. background-color: #f3f3f3;
  228. margin-right: 5px;
  229. height: 30px;
  230. width: auto;
  231. border-radius: 5px;
  232. padding: 0 5px;
  233. span {
  234. vertical-align: middle;
  235. color: var(--light-grey);
  236. }
  237. ion-icon {
  238. vertical-align: middle;
  239. color: var(--brand-black);
  240. font-size: 1rem;
  241. }
  242. &.active {
  243. ion-icon, span {
  244. color: var(--brand-red);
  245. }
  246. }
  247. }
  248. .input-holder {
  249. display: flex;
  250. width: 100%;
  251. height: 70px;
  252. align-items: center;
  253. input {
  254. width: calc(100% - 80px);
  255. margin: 0 auto;
  256. border: 1px solid rgba(var(--light-grey-rgb), 0.3);
  257. border-radius: 30px;
  258. font-size: 14px;
  259. color: var(--brand-black);
  260. font-weight: 500;
  261. height: 40px;
  262. padding: 0 15px;
  263. }
  264. button {
  265. width: 40px;
  266. height: 40px;
  267. background-color: var(--brand-red);
  268. margin: 0 auto;
  269. border-radius: 50%;
  270. ion-icon {
  271. color: white;
  272. font-size: 16px;
  273. }
  274. }
  275. }
  276. }
  277. }