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.

app.less 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. .text-center() {
  2. text-align: center;
  3. }
  4. .border-radius(@radius) {
  5. -webkit-border-radius: @radius;
  6. -moz-border-radius: @radius;
  7. border-radius: @radius;
  8. }
  9. .no-text-select {
  10. -webkit-touch-callout: none;
  11. -webkit-user-select: none;
  12. -khtml-user-select: none;
  13. -moz-user-select: none;
  14. -ms-user-select: none;
  15. user-select: none;
  16. }
  17. /**
  18. ========================================================
  19. **/
  20. .md-group-button {
  21. margin: 0;
  22. padding: 0;
  23. min-height: 0;
  24. line-height: 30px;
  25. font-weight: bold;
  26. }
  27. .md-group-button-checked {
  28. background-color: rgba(0, 0, 0, 0.12);
  29. }
  30. .md-sidebar md-content {
  31. height: 100%;
  32. min-height: 150px;
  33. }
  34. .md-main-content {
  35. margin-left: 5px;
  36. }
  37. .welcome-message {
  38. font-size: large;
  39. }
  40. @media (max-width: 479px){
  41. .seven-cols .col-sm-1 {
  42. width: 100%;
  43. *width: 100%;
  44. }
  45. }
  46. @media (min-width: 480px) {
  47. .seven-cols .col-sm-1 {
  48. width: 14.285714285714285714285714285714%;
  49. *width: 14.285714285714285714285714285714%;
  50. }
  51. }
  52. @calendar-height: 24*30px;
  53. @grey-color: #505050;
  54. @course-font-size: 12px;
  55. .day-column {
  56. .text-center();
  57. border-left: solid @grey-color 1px;
  58. border-top: solid @grey-color 1px;
  59. border-bottom: solid @grey-color 1px;
  60. height: @calendar-height;
  61. padding: 0;
  62. }
  63. .day-column-header {
  64. background-color: darkorange;
  65. color: #2e6da4;
  66. font-weight: bold;
  67. }
  68. .day-column-header-current {
  69. color: red;
  70. }
  71. .day-column-header-today {
  72. color: green;
  73. }
  74. .day-column-header-day {
  75. padding-top: 5px;
  76. }
  77. .day-column-header-date {
  78. padding-bottom: 5px;
  79. border-bottom: solid @grey-color 1px;
  80. }
  81. .day-column-course {
  82. position: absolute;
  83. background-color: cadetblue;
  84. width: 100%;
  85. border-top: solid @grey-color 1px;
  86. border-bottom: solid @grey-color 1px;
  87. overflow: hidden;
  88. cursor: pointer;
  89. &:hover {
  90. left: 0 !important;
  91. width: 100% !important;
  92. z-index: 10;
  93. opacity: 0.8;
  94. }
  95. }
  96. .day-column-courses {
  97. height: @calendar-height - 50px;
  98. position: relative;
  99. }
  100. .day-column-course-name {
  101. font-weight: bold;
  102. font-size: @course-font-size;
  103. }
  104. .day-column-room-name {
  105. font-size: @course-font-size;
  106. text-decoration: underline;
  107. }
  108. .day-column-staff-name {
  109. font-size: @course-font-size;
  110. font-style: italic;
  111. }
  112. .day-column-course-hour {
  113. font-size: @course-font-size;
  114. }
  115. .day-column-group-name {
  116. font-size: @course-font-size;
  117. }
  118. .days-container {
  119. padding-left: 0;
  120. width: 90%;
  121. }
  122. .hour-column {
  123. .day-column();
  124. margin-top: 50px;
  125. height: @calendar-height - 50px;
  126. width: 50px;
  127. }
  128. .day-column-hours {
  129. .day-column-courses();
  130. }
  131. .day-column-hour {
  132. position: absolute;
  133. width: 100%;
  134. margin-top: -10px;
  135. text-align: right;
  136. }
  137. .sidebar-group-list {
  138. height: 100%;
  139. min-height: 75px;
  140. }
  141. .course-dialog {
  142. min-width: 400px;
  143. }