foundation.calendar.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /* Responsive Calendar for Foundation */
  2. .calendar {
  3. margin-left: 0;
  4. margin-bottom: 1.25rem;
  5. padding-bottom: 1px;
  6. border-bottom: 2px solid #ccc;
  7. }
  8. .calendar * {
  9. list-style: none;
  10. line-height: 1;
  11. }
  12. .calendar .title {
  13. text-align: center;
  14. font-size: 1.6875rem;
  15. }
  16. .calendar .week {
  17. padding: 0px;
  18. margin: 0px;
  19. }
  20. .calendar .week:before, .calendar .week:after {
  21. content: " ";
  22. display: table;
  23. }
  24. .calendar .week:after {
  25. clear: both;
  26. }
  27. .calendar .day,
  28. .calendar .days {
  29. position: relative;
  30. padding: 0.3rem 0.39375rem;
  31. width: 100%;
  32. min-height: 6rem;
  33. float: left;
  34. border:1px #eee solid;
  35. }
  36. .calendar .day-header {
  37. background-color: #ccc;
  38. }
  39. .calendar .day-header .day,
  40. .calendar .day-header .days {
  41. background-color: #ccc;
  42. color: black;
  43. text-align: center;
  44. min-height: 0.5rem;
  45. display: none;
  46. }
  47. .day:hover, .days:hover {
  48. background: #efefef;
  49. }
  50. .day.previous-month,
  51. .days.previous-month,
  52. .day.next-month,
  53. .days.next-month {
  54. background: #e9e9e9;
  55. color: #222222;
  56. display: none;
  57. }
  58. .day.today, .days.today {
  59. background: #76df9d;
  60. }
  61. .day.today:hover, .days.today:hover {
  62. background: #65ce8c;
  63. }
  64. @media only screen {
  65. .calendar .small-1 {
  66. position: relative;
  67. width: 14.28571%;
  68. }
  69. .calendar .day-header .small-1,
  70. .small-1.previous-month,
  71. .small-1.next-month {
  72. display: block;
  73. visibility: visible;
  74. }
  75. }
  76. @media only screen and (min-width: 40.063em) {
  77. .calendar .medium-1 {
  78. position: relative;
  79. width: 14.28571%;
  80. }
  81. .calendar .day-header .medium-1,
  82. .medium-1.previous-month,
  83. .medium-1.next-month {
  84. display: block;
  85. visibility: visible;
  86. }
  87. }
  88. @media only screen and (min-width: 64.063em) {
  89. .calendar .large-1 {
  90. position: relative;
  91. width: 14.28571%;
  92. }
  93. .calendar .day-header .large-1,
  94. .large-1.previous-month,
  95. .large-1.next-month {
  96. display: block;
  97. visibility: visible;
  98. }
  99. }
  100. @media only screen and (min-width: 90.063em) {
  101. .calendar .xlarge-1 {
  102. position: relative;
  103. width: 14.28571%;
  104. }
  105. .calendar .day-header .xlarge-1,
  106. .xlarge-1.previous-month,
  107. .xlarge-1.next-month {
  108. display: block;
  109. visibility: visible;
  110. }
  111. }
  112. @media only screen and (min-width: 120.063em) {
  113. .calendar .xxlarge-1 {
  114. position: relative;
  115. width: 14.28571%;
  116. }
  117. .calendar .day-header .xxlarge-1,
  118. .xxlarge-1.previous-month,
  119. .xxlarge-1.next-month {
  120. display: block;
  121. visibility: visible;
  122. }
  123. }