fullcalendar.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. // // Core variables and mixins
  2. // Core variables and mixins
  3. @import "../../bootstrap/functions";
  4. @import "../../bootstrap/mixins";
  5. @import "../../bootstrap-extended/mixins";
  6. // Core variables and mixins overrides
  7. @import "../../core/variables/variables";
  8. @import "../../bootstrap/variables";
  9. // Overrides user variable
  10. @import "../../core/variables/components-variables";
  11. @import '../../bootstrap/buttons';
  12. $pastMonthBgColor: #f1f1f1;
  13. $calendarBorderColor: #e0e0e0;
  14. // Full calendar styles
  15. .fc{
  16. // header buttons and bullets styles
  17. .fc-header-toolbar{
  18. margin-bottom: 2rem;
  19. .bullets-group-1,
  20. .bullets-group-2{
  21. display: flex;
  22. align-items: center;
  23. margin-left: 0;
  24. margin: .5rem auto;
  25. }
  26. .bullets-group-2{
  27. margin-bottom: 0;
  28. }
  29. .fc-right{
  30. div:first-child{
  31. display: flex;
  32. justify-content: flex-end;
  33. align-items: center;
  34. h2{
  35. font-weight: 400;
  36. font-size: 1.3rem;
  37. margin: 0 0.5rem;
  38. }
  39. }
  40. .fc-button{
  41. border-radius: 50%;
  42. padding: .4rem .4rem;
  43. height: 24px;
  44. width: 24px;
  45. &.fc-prev-button{
  46. margin-right: 0.5rem;
  47. .fc-icon{
  48. position: relative;
  49. top: -6px;
  50. left: -4px;
  51. }
  52. }
  53. &.fc-next-button{
  54. margin-left: 0.5rem;
  55. .fc-icon{
  56. position: relative;
  57. top: -6px;
  58. right: 3px;
  59. }
  60. }
  61. }
  62. }
  63. .fc-addNew-button{
  64. padding: .65rem 2rem;
  65. &:before{
  66. font-family: "feather";
  67. content: "\e8b1";
  68. }
  69. }
  70. }
  71. // calendar body styles
  72. .fc-view-container{
  73. .fc-head{
  74. .fc-head-container{
  75. thead{
  76. .fc-day-header {
  77. padding: 1px 0;
  78. &.fc-today{
  79. color: $white;
  80. }
  81. }
  82. }
  83. }
  84. }
  85. .fc-body{
  86. .fc-week{
  87. table{
  88. tbody{
  89. .fc-day{
  90. cursor: pointer;
  91. &.fc-today{
  92. background : transparent;
  93. }
  94. }
  95. .fc-other-month{
  96. background-color: $pastMonthBgColor;
  97. }
  98. }
  99. }
  100. }
  101. // date rounded bg
  102. .fc-day-top.fc-today{
  103. a{
  104. background-color: $primary;
  105. color: $white;
  106. padding: 5px 10px;
  107. margin-top: 2px;
  108. margin-right: 2px;
  109. border-radius: 50%;
  110. }
  111. }
  112. // opacity of add new event
  113. .fc-not-end,
  114. .fc-not-start{
  115. padding: 1px 8px !important;
  116. opacity: 1 !important;
  117. .fc-title{
  118. padding-left: 1rem;
  119. }
  120. }
  121. .fc-not-start{
  122. margin-left: -6px !important;
  123. }
  124. .fc-not-end{
  125. margin-right: -6px !important;
  126. }
  127. }
  128. td,
  129. th{
  130. border-color: $calendarBorderColor;
  131. font-size: 1rem;
  132. }
  133. }
  134. // button styles
  135. .fc-button{
  136. @extend .btn;
  137. @extend .btn-outline-primary;
  138. padding: 0.6rem 1rem;
  139. height: auto;
  140. outline: none;
  141. text-shadow: none;
  142. background-color: $primary;
  143. color: $white;
  144. &:not(:disabled).fc-button-active{
  145. background-color: darken($color: $primary, $amount: 10%)
  146. }
  147. &:focus{
  148. outline: none;
  149. box-shadow: none;
  150. }
  151. }
  152. // calendar event styles
  153. .fc-event{
  154. background:$primary;
  155. border: 1px solid darken($primary,5%);
  156. padding: 1px 8px;
  157. border-radius: 1rem;
  158. border: none;
  159. padding-left: 1rem;
  160. .fc-title{
  161. font-size: .85rem;
  162. color: $white;
  163. }
  164. }
  165. }
  166. // add event modal dropdown toggle styles
  167. .modal-calendar{
  168. .calendar-dropdown{
  169. .dropdown-toggle{
  170. font-size: 1.2rem;
  171. &:after{
  172. display: none;
  173. }
  174. }
  175. }
  176. #cal-start-date{
  177. &:disabled{
  178. opacity: .5;
  179. }
  180. }
  181. }
  182. // calendar header responsive styles
  183. @media(max-width: 900px){
  184. .fc{
  185. .fc-header-toolbar{
  186. margin-bottom: 2rem;
  187. .bullets-group-1{
  188. [class*="category-"]{
  189. margin: .3rem 0;
  190. }
  191. }
  192. }
  193. }
  194. }
  195. @include media-breakpoint-down(sm) {
  196. .fc{
  197. .fc-header-toolbar{
  198. flex-direction: column;
  199. margin-bottom: 2rem;
  200. .bullets-group-1{
  201. display: none;
  202. }
  203. .fc-left{
  204. margin-bottom: 1rem;
  205. }
  206. .fc-center{
  207. margin: 1 auto;
  208. margin-bottom: 0;
  209. }
  210. .fc-right{
  211. margin: 1rem auto;
  212. div:first-child{
  213. justify-content: center;
  214. }
  215. }
  216. }
  217. }
  218. }