Nenhuma descrição

app.scss 3.3KB

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