Angular LMS app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

434 line
9.0 KiB

  1. .add-post {
  2. width: 90%;
  3. margin: 10px auto 20px;
  4. .post-input {
  5. border: 0px;
  6. height: 150px;
  7. display: block;
  8. width: 100%;
  9. font-size: 16px;
  10. color: var(--white);
  11. padding: 10px;
  12. background-color: transparent;
  13. border: 2px solid var(--dark-grey);
  14. border-radius: 7px;
  15. resize: none;
  16. margin: 20px auto;
  17. &::placeholder {
  18. opacity: 0.8;
  19. font-weight: 400;
  20. }
  21. }
  22. .action-buttons {
  23. display: flex;
  24. width: 100%;
  25. margin-top: 20px;
  26. justify-content: space-between;
  27. }
  28. .input-holder {
  29. display: flex;
  30. align-items: center;
  31. width: 100%;
  32. justify-content: flex-start;
  33. margin-bottom: 10px;
  34. background-color: var(--ash-black);
  35. border-radius: 5px;
  36. padding: 10px;
  37. height: 55px;
  38. .icon {
  39. width: 20px;
  40. height: 20px;
  41. fill: var(--light-grey);
  42. }
  43. textarea, input {
  44. font-size: 14px;
  45. border: 0px;
  46. background-color: transparent;
  47. padding: 0 10px;
  48. color: var(--white);
  49. display: block;
  50. flex-grow: 1;
  51. resize: none;
  52. &::placeholder {
  53. opacity: 0.8;
  54. font-weight: 400;
  55. }
  56. }
  57. input[type="file"] {
  58. height: auto;
  59. color: vaR(--light-grey);
  60. }
  61. }
  62. .add-post-button {
  63. display: block;
  64. flex-grow: 1;
  65. height: 40px;
  66. font-size: 14px;
  67. background-color: var(--teal-green);
  68. color: var(--white);
  69. border: 0px;
  70. border-radius: 5px;
  71. }
  72. .cancel-post-button {
  73. display: block;
  74. width: 100px;
  75. height: 40px;
  76. font-size: 14px;
  77. background-color: var(--dark-grey);
  78. color: var(--white);
  79. border: 0px;
  80. border-radius: 5px;
  81. margin-right: 20px;
  82. }
  83. }
  84. .more-options-slideup {
  85. position: fixed;
  86. width: 100%;
  87. background-color: var(--ash-black);
  88. left: 0;
  89. bottom: 0;
  90. z-index: 1;
  91. transform: translateY(100vh);
  92. transition: box-shadow 0.5s, transform 0.5s;
  93. &.active {
  94. box-shadow: 0 0 100vw 100vh rgba(black, 0.8);
  95. transform: translateY(0);
  96. }
  97. header {
  98. background-color: var(--ash-black);
  99. filter: brightness(85%);
  100. display: flex;
  101. align-items: center;
  102. height: 45px;
  103. padding: 0 5%;
  104. position: relative;
  105. }
  106. .close-button {
  107. border: 0px;
  108. background-color: transparent;
  109. margin-left: auto;
  110. .icon {
  111. width: 13px;
  112. height: 13px;
  113. fill: var(--light-grey);
  114. }
  115. }
  116. h4 {
  117. color: var(--light-grey);
  118. font-size: 14px;
  119. font-weight: 400;
  120. }
  121. textarea {
  122. display: block;
  123. height: 150px;
  124. resize: none;
  125. background-color: var(--black);
  126. font-size: 14px;
  127. color: var(--light-grey);
  128. padding: 15px;
  129. border-radius: 7px;
  130. width: 90%;
  131. margin: 20px auto;
  132. border: 0px;
  133. }
  134. .post-comment-button {
  135. width: 90%;
  136. margin: 20px auto;
  137. height: 40px;
  138. background-color: var(--dark-grey);
  139. box-shadow: 1px 1px 5px var(--black);
  140. border-radius: 5px;
  141. display: flex;
  142. align-items: center;
  143. justify-content: center;
  144. color: var(--light-grey);
  145. font-size: 14px;
  146. border: 0px;
  147. }
  148. ul {
  149. position: relative;
  150. list-style: none;
  151. padding: 0 5%;
  152. li {
  153. text-align: center;
  154. color: var(--white);
  155. margin: 20px auto;
  156. font-size: 14px;
  157. }
  158. }
  159. }
  160. .forum-post-list {
  161. list-style: none;
  162. width: 100%;
  163. margin: 0 auto;
  164. overflow: hidden;
  165. padding: 0 2%;
  166. .post {
  167. background-color: var(--ash-black);
  168. padding: 20px 5%;
  169. position: relative;
  170. border-radius: 10px;
  171. overflow: hidden;
  172. margin: 20px auto;
  173. &.active {
  174. box-shadow: 0px 0px 5px var(--teal-green);
  175. p {
  176. display: block;
  177. max-height: none;
  178. }
  179. .comment-list {
  180. display: block;
  181. }
  182. }
  183. }
  184. .tags {
  185. width: 100%;
  186. button {
  187. background-color: var(--black);
  188. color: var(--white);
  189. border-radius: 20px;
  190. height: 25px;
  191. font-size: 12px;
  192. padding: 0 15px;
  193. border: 0px;
  194. margin-right: 5px;
  195. }
  196. }
  197. .book-mark-button {
  198. position: absolute;
  199. right: 10px;
  200. top: 0;
  201. border: 0px;
  202. background-color: transparent;
  203. &.active {
  204. .icon {
  205. fill: var(--teal);
  206. }
  207. }
  208. .icon {
  209. width: 15px;
  210. height: 15px;
  211. fill: var(--light-grey);
  212. }
  213. }
  214. h5 {
  215. font-size: 16px;
  216. color: var(--white);
  217. font-weight: 400;
  218. margin: 0px auto 15px;
  219. }
  220. p {
  221. font-size: 14px;
  222. color: var(--light-grey);
  223. display: -webkit-box;
  224. -webkit-line-clamp: 2;
  225. -webkit-box-orient: vertical;
  226. overflow: hidden;
  227. max-height: 50px;
  228. margin: 15px auto;
  229. line-height: 1.7;
  230. a {
  231. color: var(--teal);
  232. }
  233. }
  234. .author {
  235. display: flex;
  236. align-items: center;
  237. width: 100%;
  238. margin: 15px auto;
  239. img {
  240. width: 20px;
  241. height: 20px;
  242. border-radius: 50%;
  243. margin-right: 7px;
  244. }
  245. label {
  246. font-size: 12px;
  247. color: var(--white);
  248. }
  249. .time-stamp {
  250. margin-left: 20px;
  251. color: var(--light-grey);
  252. font-size: 12px;
  253. &::before {
  254. content: '';
  255. width: 5px;
  256. height: 5px;
  257. background-color: var(--light-grey);
  258. border-radius: 50%;
  259. display: inline-block;
  260. margin-right: 7px;
  261. vertical-align: middle;
  262. }
  263. }
  264. }
  265. .action-buttons {
  266. display: flex;
  267. align-items: center;
  268. width: 100%;
  269. button {
  270. background-color: transparent;
  271. color: var(--light-grey);
  272. padding: 0 10px;
  273. height: 30px;
  274. margin-right: 10px;
  275. display: flex;
  276. align-items: center;
  277. justify-content: center;
  278. border: 1px solid var(--light-grey);
  279. border-radius: 5px;
  280. &.active {
  281. color: var(--teal-green);
  282. .icon {
  283. fill: var(--teal-green);
  284. }
  285. }
  286. .icon {
  287. width: 15px;
  288. height: 15px;
  289. margin-right: 5px;
  290. fill: var(--light-grey);
  291. }
  292. span {
  293. font-size: 12px;
  294. }
  295. &.more-button {
  296. margin-left: auto;
  297. border: 1px solid var(--light-grey);
  298. border-radius: 5px;
  299. display: flex;
  300. align-items: center;
  301. justify-content: center;
  302. height: 20px;
  303. .icon {
  304. margin-right: 0;
  305. }
  306. }
  307. }
  308. }
  309. }
  310. .question {
  311. font-weight: 400;
  312. font-size: 20px;
  313. padding: 0 5%;
  314. color: var(--light-grey);
  315. margin: 20px auto;
  316. }
  317. .post-header {
  318. margin: 20px auto;
  319. padding: 0 5%;
  320. font-size: 16px;
  321. color: var(--light-grey);
  322. text-align: center;
  323. }
  324. .add-comment-button {
  325. width: 100%;
  326. margin: 30px auto;
  327. height: 40px;
  328. background-color: var(--dark-grey);
  329. box-shadow: 1px 1px 5px var(--black);
  330. border-radius: 5px;
  331. display: flex;
  332. align-items: center;
  333. justify-content: center;
  334. color: var(--light-grey);
  335. font-size: 14px;
  336. border: 0px;
  337. .icon {
  338. width: 15px;
  339. height: 15px;
  340. margin-right: 5px;
  341. fill: var(--light-grey);
  342. }
  343. }
  344. .comment-list {
  345. list-style: none;
  346. margin: 20px auto;
  347. padding: 5px 5% 20px;
  348. display: none;
  349. background-color: var(--black);
  350. border-radius: 10px;
  351. box-shadow: 0px 0px 5px var(--black);
  352. .comment {
  353. margin-bottom: 40px;
  354. &:last-child {
  355. margin-bottom: 0;
  356. }
  357. p {
  358. display: block;
  359. max-height: none;
  360. margin: 10px auto;
  361. }
  362. .author {
  363. margin: 10px auto;
  364. }
  365. &.reply-comment {
  366. margin-top: 10px;
  367. margin-bottom: 0px;
  368. padding: 10px;
  369. margin-left: auto;
  370. width: 99%;
  371. background-color: var(--ash-black);
  372. border-left: 3px solid var(--light-grey);
  373. border-top-right-radius: 7px;
  374. border-bottom-right-radius: 7px;
  375. }
  376. }
  377. }