calendar.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*!
  2. * # Fomantic-UI - Calendar
  3. * http://github.com/fomantic/Fomantic-UI/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*******************************
  11. Popup
  12. *******************************/
  13. .ui.calendar .ui.popup {
  14. max-width: none;
  15. padding: 0;
  16. border: none;
  17. -webkit-user-select: none;
  18. -moz-user-select: none;
  19. -ms-user-select: none;
  20. user-select: none;
  21. }
  22. /*******************************
  23. Calendar
  24. *******************************/
  25. .ui.calendar .calendar:focus {
  26. outline: 0;
  27. }
  28. /*******************************
  29. Grid
  30. *******************************/
  31. .ui.calendar .ui.popup .ui.grid {
  32. display: block;
  33. white-space: nowrap;
  34. }
  35. .ui.calendar .ui.popup .ui.grid > .column {
  36. width: auto;
  37. }
  38. /*******************************
  39. Table
  40. *******************************/
  41. .ui.calendar .ui.table.year,
  42. .ui.calendar .ui.table.month,
  43. .ui.calendar .ui.table.minute {
  44. min-width: 15em;
  45. }
  46. .ui.calendar .ui.table.day {
  47. min-width: 18em;
  48. }
  49. .ui.calendar .ui.table.day.andweek {
  50. min-width: 22em;
  51. }
  52. .ui.calendar .ui.table.hour {
  53. min-width: 20em;
  54. }
  55. .ui.calendar .ui.table tr th,
  56. .ui.calendar .ui.table tr td {
  57. padding: 0.5em;
  58. white-space: nowrap;
  59. }
  60. .ui.calendar .ui.table tr th {
  61. border-left: none;
  62. }
  63. .ui.calendar .ui.table tr th .icon {
  64. margin: 0;
  65. }
  66. .ui.calendar .ui.table tr:first-child th {
  67. position: relative;
  68. padding-left: 0;
  69. padding-right: 0;
  70. }
  71. .ui.calendar .ui.table.day tr:first-child th {
  72. border: none;
  73. }
  74. .ui.calendar .ui.table.day tr:nth-child(2) th {
  75. padding-top: 0.2em;
  76. padding-bottom: 0.3em;
  77. }
  78. .ui.calendar .ui.table tr td {
  79. padding-left: 0.1em;
  80. padding-right: 0.1em;
  81. }
  82. .ui.calendar .ui.table tr .link {
  83. cursor: pointer;
  84. }
  85. .ui.calendar .ui.table tr .prev.link {
  86. width: 14.28571429%;
  87. position: absolute;
  88. left: 0;
  89. }
  90. .ui.calendar .ui.table tr .next.link {
  91. width: 14.28571429%;
  92. position: absolute;
  93. right: 0;
  94. }
  95. .ui.calendar .ui.table tr .disabled {
  96. pointer-events: auto;
  97. cursor: default;
  98. color: rgba(40, 40, 40, 0.3);
  99. }
  100. .ui.calendar .ui.table tr .adjacent:not(.disabled) {
  101. color: rgba(0, 0, 0, 0.6);
  102. background: rgba(0, 0, 0, 0.03);
  103. }
  104. /*--------------
  105. States
  106. ---------------*/
  107. .ui.calendar .ui.table tr td.today {
  108. font-weight: bold;
  109. }
  110. .ui.calendar .ui.table tr td.range {
  111. background: rgba(0, 0, 0, 0.05);
  112. color: rgba(0, 0, 0, 0.95);
  113. -webkit-box-shadow: none;
  114. box-shadow: none;
  115. }
  116. .ui.calendar .ui.table.inverted tr td.range {
  117. background: rgba(255, 255, 255, 0.08);
  118. color: #ffffff;
  119. -webkit-box-shadow: none;
  120. box-shadow: none;
  121. }
  122. .ui.calendar:not(.disabled) .calendar:focus .ui.table tbody tr td.focus,
  123. .ui.calendar:not(.disabled) .calendar.active .ui.table tbody tr td.focus {
  124. -webkit-box-shadow: inset 0 0 0 1px #85B7D9;
  125. box-shadow: inset 0 0 0 1px #85B7D9;
  126. }
  127. .ui.calendar:not(.disabled) .calendar:focus .ui.table.inverted tbody tr td.focus,
  128. .ui.calendar:not(.disabled) .calendar.active .ui.table.inverted tbody tr td.focus {
  129. -webkit-box-shadow: inset 0 0 0 1px #85B7D9;
  130. box-shadow: inset 0 0 0 1px #85B7D9;
  131. }
  132. /*******************************
  133. States
  134. *******************************/
  135. /*--------------------
  136. Disabled
  137. ---------------------*/
  138. .ui.disabled.calendar {
  139. opacity: 0.45;
  140. }
  141. .ui.disabled.calendar > .input,
  142. .ui.disabled.calendar .ui.table tr .link {
  143. pointer-events: none;
  144. }
  145. /*******************************
  146. Theme Overrides
  147. *******************************/