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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. background: none !important;
  37. height: 100%;
  38. }
  39. .welcome-message {
  40. font-size: large;
  41. }
  42. @media (max-width: 479px){
  43. .seven-cols .col-sm-1 {
  44. width: 100%;
  45. *width: 100%;
  46. }
  47. }
  48. @media (min-width: 480px) {
  49. .seven-cols .col-sm-1 {
  50. width: 14.285714285714285714285714285714%;
  51. *width: 14.285714285714285714285714285714%;
  52. }
  53. }
  54. @calendar-height: 24*30px;
  55. @grey-color: #dddddd;
  56. @course-font-size: 12px;
  57. @header-text-color: rgba(255, 255, 255, 0.70);
  58. @header-bg-color: #F44336;
  59. .day-column {
  60. .text-center();
  61. border-left: solid @grey-color 1px;
  62. border-top: solid @grey-color 1px;
  63. border-bottom: solid @grey-color 1px;
  64. height: @calendar-height;
  65. padding: 0;
  66. }
  67. .day-column-header {
  68. background-color: @header-bg-color;
  69. color: @header-text-color;
  70. //font-weight: bold;
  71. }
  72. .day-column-header-current {
  73. background-color: #D32F2F;
  74. }
  75. .day-column-header-today {
  76. color: white;
  77. font-weight: bold;
  78. }
  79. .day-column-header-day {
  80. padding-top: 5px;
  81. }
  82. .day-column-header-date {
  83. padding-bottom: 5px;
  84. border-bottom: solid @grey-color 1px;
  85. }
  86. .day-column-course {
  87. position: absolute;
  88. background-color: #FFCDD2;
  89. width: 100%;
  90. border-top: solid @grey-color 1px;
  91. border-bottom: solid @grey-color 1px;
  92. overflow: hidden;
  93. cursor: pointer;
  94. &:hover {
  95. left: 0 !important;
  96. width: 100% !important;
  97. z-index: 10;
  98. opacity: 0.8;
  99. }
  100. }
  101. .day-column-courses {
  102. height: @calendar-height - 50px;
  103. position: relative;
  104. }
  105. .day-column-course-name {
  106. font-weight: bold;
  107. font-size: @course-font-size;
  108. }
  109. .day-column-room-name {
  110. font-size: @course-font-size;
  111. text-decoration: underline;
  112. }
  113. .day-column-staff-name {
  114. font-size: @course-font-size;
  115. font-style: italic;
  116. }
  117. .day-column-course-hour {
  118. font-size: @course-font-size;
  119. }
  120. .day-column-group-name {
  121. font-size: @course-font-size;
  122. }
  123. .days-container {
  124. padding-left: 0;
  125. width: 90%;
  126. }
  127. .hour-column {
  128. .day-column();
  129. margin-top: 50px;
  130. height: @calendar-height - 50px;
  131. width: 50px;
  132. }
  133. .day-column-hours {
  134. .day-column-courses();
  135. }
  136. .day-column-hour {
  137. position: absolute;
  138. width: 100%;
  139. margin-top: -10px;
  140. text-align: right;
  141. color: rgba(0, 0, 0, 0.54)
  142. }
  143. .sidebar-group-list {
  144. height: 100%;
  145. min-height: 75px;
  146. }
  147. .course-dialog {
  148. min-width: 400px;
  149. }
  150. .md-sidebar md-content {
  151. height: auto;
  152. }