thirdparty-calendar.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. .enable_plugin_fullcalendar() when(@enable-plugin-fullcalendar = true) {
  2. //calendar
  3. .fc-toolbar h2 {
  4. font-size: @font-size-calendar-header;
  5. color: #65A0CE;
  6. }
  7. .fc-unthemed th, .fc-unthemed td, .fc-unthemed hr, .fc-unthemed thead, .fc-unthemed tbody, .fc-unthemed .fc-row, .fc-unthemed .fc-popover {
  8. border-color: #BCD4E5;
  9. }
  10. .fc-unthemed .fc-today {
  11. background: #FFC;
  12. }
  13. .fc-event {
  14. border-width: 0; //default BORDER color
  15. &:not([class*="label-"]) {
  16. background-color: @label-default;
  17. }
  18. color: @label-text;
  19. &.label-yellow {
  20. color: @label-yellow-text;
  21. }
  22. &.label-light {
  23. color: @label-light-text;
  24. }
  25. padding: 1px 1px 2px 2px;
  26. border-radius: 0;
  27. .label-yellow & { color:#996633; }
  28. .label-light & { color:#888; }
  29. [class*="label-"] > & , [class*="label-"] > & > .fc-event-skin.fc-event-head {
  30. background-color: inherit;
  31. }
  32. &.ui-draggable-dragging {
  33. cursor:move;
  34. }
  35. &.fc-event-vert , .fc-event-vert > &
  36. {
  37. padding:0 0 1px;
  38. }
  39. }
  40. .fc-day-number {
  41. color: #2E6589;
  42. .opacity(1);
  43. }
  44. .fc-widget-header, .fc .fc-axis {
  45. background:#ECF2F7;
  46. color:#8090A0;
  47. }
  48. //
  49. //.fc-grid th , th.fc-widget-header{
  50. // height:28px;
  51. // vertical-align:middle !important;
  52. //}
  53. .fc-event-hori , .fc-event-vert {
  54. border-radius:0 !important;
  55. border-color:transparent;
  56. }
  57. .fc-event-vert {
  58. .fc-event-content {
  59. padding-left:1px;
  60. padding-right:1px;
  61. }
  62. .fc-event-time {
  63. padding:0;
  64. }
  65. }
  66. .fc-state-default {
  67. & , & .fc-button-inner {
  68. border:none;
  69. background-color: @btn-default;
  70. color: #FFF;
  71. background-image:none;
  72. box-shadow:none;
  73. text-shadow:none;
  74. border-radius:0 !important;
  75. margin-left:2px;
  76. }
  77. border:none;
  78. .fc-button-effect {
  79. display:none;
  80. }
  81. }
  82. .fc-state-disabled {
  83. & , & .fc-button-inner {
  84. .opacity(0.75);
  85. color:#DDD;
  86. }
  87. }
  88. .fc-state-active {
  89. & , & .fc-button-inner {
  90. border-color:#4F99C6;
  91. background-color:#6FB3E0;
  92. }
  93. }
  94. .fc-state-hover {
  95. & , & .fc-button-inner {
  96. background-color:#8B9AA3;
  97. }
  98. }
  99. .fc .fc-button-group > * {
  100. margin: 0 1px 0 0;
  101. }
  102. .external-event {
  103. margin: 6px 0;
  104. padding: 0;
  105. cursor: default;
  106. display: block;
  107. &:not([class*="label-"]) {
  108. background-color: @label-default;
  109. }
  110. font-size: @base-font-size;
  111. line-height: 28px;
  112. &:hover {
  113. .opacity(1);
  114. }
  115. &.ui-draggable-dragging {
  116. cursor:move;
  117. }
  118. color: @label-text;
  119. &.label-yellow {
  120. color: @label-yellow-text;
  121. }
  122. &.label-light {
  123. color: @label-light-text;
  124. }
  125. > .@{icon}:first-child {// the move & drag icon
  126. display: inline-block; height:32px; width:32px;
  127. text-align: center;
  128. line-height: 30px;
  129. margin-right: 5px;
  130. font-size: floor(@base-font-size * 1.2);
  131. border-right:1px solid #FFF;
  132. }
  133. }
  134. //calendar inside widget-box --- not complete yet
  135. /**
  136. .widget-main {
  137. .fc {
  138. position:relative;
  139. top:-40px;
  140. > .fc-header {
  141. position:relative;
  142. z-index:10;
  143. }
  144. .fc-header-space {
  145. padding-left:2px;
  146. }
  147. }
  148. .fc-header-title > h2 {
  149. font-size: floor(@base-font-size * 1.4);
  150. line-height: 36px;
  151. }
  152. .fc-content {
  153. top:-14px;
  154. z-index:11;
  155. }
  156. .fc-button-content {
  157. height:37px;
  158. line-height:36px;
  159. }
  160. }
  161. */
  162. //calendar
  163. @media only screen and (max-width: @screen-xs) {
  164. .fc-header td {
  165. display:block;
  166. width:auto;
  167. text-align:left;
  168. }
  169. }
  170. }
  171. .enable_plugin_fullcalendar();