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.
 
 
 
 

422 rivejä
8.2 KiB

  1. .page {
  2. background-color: var(--black);
  3. height: 100vh;
  4. overflow: auto;
  5. }
  6. .upfold {
  7. background-color: var(--black);
  8. padding: 20px 10%;
  9. .close-button {
  10. background-color: transparent;
  11. border: 0px;
  12. .icon {
  13. width: 15px;
  14. height: 15px;
  15. fill: var(--white);
  16. }
  17. }
  18. h3 {
  19. color: var(--teal);
  20. font-size: 20px;
  21. margin-top: 20px;
  22. font-weight: 500;
  23. }
  24. p {
  25. margin-top: 10px;
  26. color: var(--white);
  27. font-size: 13px;
  28. }
  29. label {
  30. color: var(--light-grey);
  31. font-size: 14px;
  32. margin-top: 20px;
  33. display: block;
  34. font-weight: 500;
  35. }
  36. }
  37. .progress-holder {
  38. height: 7px;
  39. background-color: #cecece;
  40. position: relative;
  41. .progress {
  42. position: absolute;
  43. left: 0;
  44. top: 0;
  45. height: 100%;
  46. width: 30%;
  47. background-color: var(--green);
  48. }
  49. }
  50. .segment-header {
  51. position: sticky;
  52. position: -webkit-sticky;
  53. z-index: 1;
  54. left: 0;
  55. top: 0;
  56. background-color: var(--ash-black);
  57. display: flex;
  58. align-items: stretch;
  59. height: 50px;
  60. box-shadow: 0px 0px 5px var(--black);
  61. &.hide-grades {
  62. button {
  63. width: calc(100% / 3);
  64. &:nth-child(3) {
  65. display: none;
  66. }
  67. }
  68. }
  69. button {
  70. font-size: 14px;
  71. width: calc(100% / 4);
  72. border: 0px;
  73. background-color: transparent;
  74. color: var(--light-grey);
  75. &.active {
  76. color: var(--white);
  77. }
  78. }
  79. }
  80. .test-prompt {
  81. background-color: var(--black);
  82. padding: 20px;
  83. .prompt {
  84. border-radius: 15px;
  85. background-color: var(--ash-black);
  86. padding: 20px;
  87. }
  88. p {
  89. color: var(--white);
  90. font-size: 13px;
  91. }
  92. button {
  93. margin-top: 10px;
  94. display: block;
  95. width: 100%;
  96. height: 40px;
  97. color: var(--white);
  98. font-size: 14px;
  99. background-color: var(--teal-green);
  100. border-radius: 5px;
  101. border: 0px;
  102. }
  103. }
  104. .chapter-list {
  105. list-style: none;
  106. .chapter {
  107. .chapter-action-buttons {
  108. display: none;
  109. align-items: stretch;
  110. width: 100%;
  111. justify-content: space-around;
  112. padding: 10px 0;
  113. button {
  114. width: 48%;
  115. border-radius: 5px;
  116. height: 35px;
  117. font-size: 14px;
  118. color: var(--light-grey);
  119. border: 1px solid var(--light-grey);
  120. background-color: transparent;
  121. &:first-child {
  122. border-color: var(--teal-green);
  123. color: var(--teal-green);
  124. }
  125. }
  126. }
  127. &.completed {
  128. .checkmark {
  129. fill: var(--green);
  130. }
  131. }
  132. &.active {
  133. .chapter-action-buttons {
  134. display: flex;
  135. }
  136. .container {
  137. position: sticky;
  138. position: -webkit-sticky;
  139. top: 48px;
  140. z-index: 1;
  141. border-bottom: 0px;
  142. border-top: 1px solid var(--dark-grey);
  143. }
  144. .arrow {
  145. transform: rotate(90deg);
  146. }
  147. .topic-list {
  148. display: block;
  149. }
  150. }
  151. }
  152. .container {
  153. display: flex;
  154. align-items: center;
  155. justify-content: space-between;
  156. width: 100%;
  157. padding: 15px 5%;
  158. background-color: var(--ash-black);
  159. border-bottom: 1px solid var(--dark-grey);
  160. .icon {
  161. width: 20px;
  162. height: 20px;
  163. fill: var(--light-grey);
  164. &.checkmark {
  165. width: 25px;
  166. height: 25px;
  167. background-color: var(--white);
  168. border-radius: 50%;
  169. }
  170. }
  171. .chapter-heading {
  172. width: calc(100% - 100px);
  173. }
  174. label {
  175. font-size: 16px;
  176. font-weight: 500;
  177. color: var(--white);
  178. }
  179. p {
  180. color: var(--white);
  181. font-size: 14px;
  182. }
  183. }
  184. }
  185. .topic-list {
  186. list-style: none;
  187. position: relative;
  188. z-index: 0;
  189. display: none;
  190. .topic {
  191. display: flex;
  192. width: 100%;
  193. padding-left: 5%;
  194. justify-content: space-between;
  195. background-color: #333333;
  196. position: relative;
  197. overflow: visible;
  198. &::before {
  199. content: '';
  200. position: absolute;
  201. left: calc(5% + 9px);
  202. top: 50%;
  203. height: 100%;
  204. width: 2px;
  205. background-color: var(--light-grey);
  206. z-index: 1;
  207. }
  208. &:last-child {
  209. &::before {
  210. display: none;
  211. }
  212. }
  213. &.completed {
  214. .checkmark {
  215. fill: var(--green);
  216. }
  217. &::before {
  218. background-color: var(--green);
  219. }
  220. }
  221. }
  222. .topic-container {
  223. display: flex;
  224. width: 90%;
  225. padding: 15px;
  226. background-color: var(--black);
  227. border-bottom: 1px solid #333333;
  228. .action-button {
  229. background-color: transparent;
  230. border: 0px;
  231. }
  232. .icon {
  233. margin-top: 5px;
  234. }
  235. p {
  236. font-size: 14px;
  237. color: var(--light-grey);
  238. padding-right: 10px;
  239. height: 55px;
  240. display: -webkit-box;
  241. -webkit-line-clamp: 3;
  242. -webkit-box-orient: vertical;
  243. overflow: hidden;
  244. .type {
  245. color: var(--white);
  246. font-weight: 500;
  247. }
  248. .type-icon {
  249. width: 15px;
  250. height: 15px;
  251. fill: var(--white);
  252. }
  253. }
  254. }
  255. .icon {
  256. width: 20px;
  257. height: 20px;
  258. fill: var(--light-grey);
  259. align-self: flex-start;
  260. position: relative;
  261. z-index: 2;
  262. overflow: visible;
  263. &.checkmark {
  264. align-self: center;
  265. background-color: var(--white);
  266. border-radius: 50%;
  267. }
  268. &.delete {
  269. fill: var(--danger-dark);
  270. }
  271. &.download {
  272. fill: var(--teal-green);
  273. }
  274. &.downloading {
  275. fill: var(--teal-green);
  276. overflow: visible;
  277. #download-arrow {
  278. animation: verticalMovement 1s infinite;
  279. fill: var(--light-grey);
  280. }
  281. }
  282. }
  283. .progress-button {
  284. transform: scale(0.6)translateX(17px);
  285. }
  286. #progress {
  287. stroke: var(--green);
  288. animation: fill 2s forwards;
  289. }
  290. @keyframes fill {
  291. 0% {
  292. stroke-dashoffset: calc(116.8 * (1 - 0.2));
  293. }
  294. 50% {
  295. stroke-dashoffset: calc(116.8 * (1 - 0.5));
  296. }
  297. 100% {
  298. stroke-dashoffset: calc(116.8 * (1 - 0.999999));
  299. }
  300. }
  301. }
  302. @keyframes verticalMovement {
  303. 0% {
  304. transform: translateY(0px);
  305. }
  306. 50% {
  307. transform: translateY(20px);
  308. }
  309. 0% {
  310. transform: translateY(0px);
  311. }
  312. }
  313. .resources-list {
  314. list-style: none;
  315. width: 90%;
  316. margin: 0 auto;
  317. header {
  318. font-size: 16px;
  319. color: var(--light-grey);
  320. font-weight: 500;
  321. margin: 30px 0 15px 0;
  322. }
  323. a {
  324. text-decoration: none;
  325. display: block;
  326. }
  327. li {
  328. padding: 15px 20px;
  329. background-color: var(--ash-black);
  330. display: flex;
  331. align-items: center;
  332. justify-content: space-between;
  333. border-radius: 10px;
  334. overflow: hidden;
  335. margin-bottom: 15px;
  336. }
  337. .content {
  338. width: calc(100% - 80px);
  339. }
  340. label {
  341. color: var(--white);
  342. font-size: 15px;
  343. display: block;
  344. }
  345. p {
  346. color: var(--light-grey);
  347. font-size: 12px;
  348. }
  349. .icon {
  350. width: 20px;
  351. height: 20px;
  352. fill: var(--light-grey);
  353. &.arrow {
  354. transform: rotate(-45deg);
  355. }
  356. }
  357. }