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

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