Ei kuvausta

app.scss 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. // Fonts
  2. // @import url('https://fonts.googleapis.com/css?family=Nunito');
  3. // Variables
  4. @import 'variables';
  5. // Bootstrap
  6. @import '~bootstrap/scss/bootstrap';
  7. // Material Design
  8. @import '@material/layout-grid/mdc-layout-grid';
  9. @import '@material/typography/mdc-typography';
  10. @import '@material/button/mdc-button';
  11. @import '@material/icon-button/mdc-icon-button';
  12. @import '@material/data-table/mdc-data-table';
  13. body {
  14. padding-top: 80px;
  15. }
  16. /* Rules for sizing the icon. */
  17. .material-icons {
  18. .md-18 { font-size: 18px; }
  19. .md-24 { font-size: 24px; }
  20. .md-36 { font-size: 36px; }
  21. .md-48 { font-size: 48px; }
  22. }
  23. .landing-page-grid {
  24. // @include mdc-layout-grid-inner('desktop', 10vw, 32px);
  25. @media screen and (min-width: map-get($mdc-layout-grid-breakpoints, desktop)) {
  26. width: 80%;
  27. margin: auto 10%;
  28. }
  29. text-align: center;
  30. * {
  31. margin: 8px;
  32. }
  33. }
  34. .dashboard-grid {
  35. @media screen and (min-width: map-get($mdc-layout-grid-breakpoints, desktop)) {
  36. width: 80%;
  37. margin: auto 10%;
  38. text-align: center;
  39. }
  40. }
  41. // MDC card media
  42. #home-button-course {
  43. background-image: url('/images/course_1312478.png');
  44. }
  45. #home-button-professor {
  46. background-image: url('/images/chalkboard-teacher-solid.png');
  47. }
  48. #home-button-dashboard {
  49. background-image: url('/images/file-alt-regular.png');
  50. }
  51. #dash-button-csv {
  52. background-image: url('/images/file-csv.png');
  53. }
  54. #dash-button-schedule {
  55. background-image: url('/images/calendar-alt.png')
  56. }
  57. /* Rules for using icons as black on a light background. */
  58. .material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
  59. .material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }
  60. /* Rules for using icons as white on a dark background. */
  61. .material-icons.md-light { color: rgba(255, 255, 255, 1); }
  62. .material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }
  63. .center-text {
  64. vertical-align: middle;
  65. text-align: center;
  66. white-space: nowrap;
  67. }
  68. // Fixes column headers in place
  69. // Apply to table wrapper
  70. .table-fixed-col-head {
  71. overflow-y: scroll;
  72. table thead th{
  73. position: -webkit-sticky;
  74. position: sticky;
  75. top: 0;
  76. background: white;
  77. }
  78. }
  79. // Fixes row headers in place
  80. // Apply to table wrapper
  81. .table-fixed-row-head {
  82. overflow-x: scroll;
  83. table tbody th {
  84. position: -webkit-sticky;
  85. position: sticky;
  86. left: 0;
  87. background: white;
  88. }
  89. table thead th:first-child {
  90. position: -webkit-sticky;
  91. position: sticky;
  92. left: 0;
  93. background: white;
  94. z-index: 1;
  95. }
  96. }
  97. .mdc-data-table {
  98. th {
  99. font-weight: bold;
  100. }
  101. .mdc-button {
  102. position: inherit;
  103. }
  104. .mdc-icon-button {
  105. position: inherit;
  106. }
  107. }
  108. .mdc-data-table__header-cell {
  109. font-weight: bold;
  110. }
  111. .table--fit-screen {
  112. height: 80vh;
  113. }
  114. .course-sections-table {
  115. @include mdc-data-table-column-widths(10% 10% 40% 10% 10% 10%);
  116. }
  117. #prof-table {
  118. height: 80vh;
  119. }
  120. #course-table {
  121. @include mdc-data-table-column-widths(20px 50vw);
  122. }
  123. .ellipsis {
  124. @include mdc-typography-overflow-ellipsis;
  125. }
  126. #edit-course-btn {
  127. position: sticky;
  128. right: 0;
  129. }
  130. [onclick] {
  131. cursor: pointer;
  132. }
  133. [id|="delete-confirm"] {
  134. padding-top: 4px;
  135. }