You are here

date.css in Date 7.3

Same filename and directory in other branches
  1. 8 date_api/date.css
  2. 7 date_api/date.css
  3. 7.2 date_api/date.css

Main stylesheet for Date module.

File

date_api/date.css
View source
  1. /**
  2. * @file
  3. * Main stylesheet for Date module.
  4. */
  5. /* Force start/end dates to float using inline-block, where it works, */
  6. /* otherwise inline. */
  7. .container-inline-date {
  8. clear: both;
  9. }
  10. .container-inline-date .form-item {
  11. float: none;
  12. margin: 0;
  13. padding: 0;
  14. }
  15. .container-inline-date > .form-item {
  16. display: inline-block;
  17. margin-right: 0.5em; /* LTR */
  18. vertical-align: top;
  19. }
  20. fieldset.date-combo .container-inline-date > .form-item {
  21. margin-bottom: 10px;
  22. }
  23. .container-inline-date .form-item .form-item {
  24. float: left; /* LTR */
  25. }
  26. .container-inline-date .form-item,
  27. .container-inline-date .form-item input {
  28. width: auto;
  29. }
  30. .container-inline-date .description {
  31. clear: both;
  32. }
  33. .container-inline-date .form-item input,
  34. .container-inline-date .form-item select,
  35. .container-inline-date .form-item option {
  36. margin-right: 5px; /* LTR */
  37. }
  38. .container-inline-date .date-spacer {
  39. margin-left: -5px; /* LTR */
  40. }
  41. .views-right-60 .container-inline-date div {
  42. margin: 0;
  43. padding: 0;
  44. }
  45. .container-inline-date .date-timezone .form-item {
  46. clear: both;
  47. float: none;
  48. width: auto;
  49. }
  50. /* The exposed Views form doesn't need some of these styles. */
  51. .container-inline-date .date-padding {
  52. float: left;
  53. }
  54. fieldset.date-combo .container-inline-date .date-padding {
  55. padding: 10px;
  56. }
  57. .views-exposed-form .container-inline-date .date-padding {
  58. padding: 0;
  59. }
  60. /* Fixes for date popup css so it will behave in Drupal. */
  61. #calendar_div,
  62. #calendar_div td,
  63. #calendar_div th {
  64. margin: 0;
  65. padding: 0;
  66. }
  67. #calendar_div,
  68. .calendar_control,
  69. .calendar_links,
  70. .calendar_header,
  71. .calendar {
  72. border-collapse: separate;
  73. margin: 0;
  74. width: 185px;
  75. }
  76. .calendar td {
  77. padding: 0;
  78. }
  79. /* Formatting for start/end dates in nodes and views. */
  80. span.date-display-single {
  81. }
  82. span.date-display-start {
  83. }
  84. span.date-display-end {
  85. }
  86. .date-prefix-inline {
  87. display: inline-block;
  88. }
  89. .date-clear {
  90. clear: both;
  91. display: block;
  92. float: none;
  93. }
  94. .date-no-float {
  95. clear: both;
  96. float: none;
  97. width: 98%;
  98. }
  99. .date-float {
  100. clear: none;
  101. float: left;
  102. width: auto;
  103. }
  104. /* Add space between date option checkboxes ('All day' & 'Collect End Date'). */
  105. .date-float .form-type-checkbox {
  106. padding-right: 1em;
  107. }
  108. /* Add space between the date and time portions of the date_select widget. */
  109. .form-type-date-select .form-type-select[class*=hour] {
  110. margin-left: .75em; /* LTR */
  111. }
  112. .date-container .date-format-delete {
  113. float: left;
  114. margin-top: 1.8em;
  115. margin-left: 1.5em;
  116. }
  117. .date-container .date-format-name {
  118. float: left;
  119. }
  120. .date-container .date-format-type {
  121. float: left;
  122. padding-left: 10px;
  123. }
  124. .date-container .select-container {
  125. clear: left;
  126. float: left;
  127. }
  128. /* Calendar day CSS. */
  129. div.date-calendar-day {
  130. background: #f3f3f3;
  131. border-top: 1px solid #eee;
  132. border-left: 1px solid #eee;
  133. border-right: 1px solid #bbb;
  134. border-bottom: 1px solid #bbb;
  135. color: #999;
  136. float: left;
  137. line-height: 1;
  138. margin: 6px 10px 0 0;
  139. text-align: center;
  140. width: 40px;
  141. }
  142. div.date-calendar-day span {
  143. display: block;
  144. text-align: center;
  145. }
  146. div.date-calendar-day span.month {
  147. background-color: #b5bebe;
  148. color: white;
  149. font-size: .9em;
  150. padding: 2px;
  151. text-transform: uppercase;
  152. }
  153. div.date-calendar-day span.day {
  154. font-size: 2em;
  155. font-weight: bold;
  156. }
  157. div.date-calendar-day span.year {
  158. font-size: .9em;
  159. padding: 2px;
  160. }
  161. .date-form-element-content-multiline {
  162. padding: 10px;
  163. border: 1px solid #ccc;
  164. }
  165. /* Admin styling. */
  166. .form-item.form-item-instance-widget-settings-input-format-custom,
  167. .form-item.form-item-field-settings-enddate-required {
  168. margin-left: 1.3em;
  169. }
  170. #edit-field-settings-granularity .form-type-checkbox {
  171. margin-right: .6em; /* LTR */
  172. }
  173. .date-year-range-select {
  174. margin-right: 1em;
  175. }