You are here

smart_date.css in Smart Date 3.0.x

Styles for TimeStamp Ranges fields.

File

css/smart_date.css
View source
  1. /**
  2. * @file
  3. * Styles for TimeStamp Ranges fields.
  4. *
  5. */
  6. .smartdate--widget .fieldset-wrapper .form-item,
  7. .smartdate--widget tr.odd .fieldset-wrapper .form-item,
  8. .smartdate--widget tr.even .fieldset-wrapper .form-item {
  9. margin: 0.4em 0;
  10. }
  11. .smartdate--widget .fieldset-wrapper h4.label,
  12. .smartdate--widget .fieldset__wrapper h4.form-item__label {
  13. float: left;
  14. margin-right: 1em;
  15. width: 5em;
  16. text-align: right;
  17. padding-top: 0.75em;
  18. }
  19. /* Adjustments for Adminimal */
  20. .adminimal .smartdate--widget h4.label {
  21. margin-top: 0;
  22. }
  23. /* Adjustments for Claro */
  24. .smartdate--widget .fieldset__wrapper h4.form-item__label {
  25. margin-top: 0.375rem;
  26. padding-top: 0.85em;
  27. display: block;
  28. }
  29. .smartdate--widget .fieldset__wrapper .form-type--boolean {
  30. margin-left: 0.3rem;
  31. }
  32. .smartdate--widget .allday {
  33. margin: 0.65em 0.5em 0 4.8em;
  34. }
  35. .adminimal .smartdate--widget .allday {
  36. margin: 0.125em 0.5em 0 4.5em;
  37. }
  38. .smartdate--widget .fieldset__wrapper .allday {
  39. margin: 1em 0.5em 0 5.2em;
  40. position: relative;
  41. top: -2px;
  42. }
  43. .smartdate--widget .allday-label {
  44. float: left;
  45. margin: 0.75em 2.2em 0.75em 0;
  46. }
  47. .adminimal .smartdate--widget .allday-label {
  48. margin-right: 2em;
  49. }
  50. .smartdate--widget .form-type-select,
  51. tr.odd .smartdate--widget .form-type-select,
  52. tr.even .smartdate--widget .form-type-select,
  53. .smartdate--widget .form-type--select,
  54. tr.odd .smartdate--widget .form-type--select,
  55. tr.even .smartdate--widget .form-type--select {
  56. margin: 0.6em 0;
  57. display: inline-block;
  58. }
  59. .smartdate--widget .form-type-select label,
  60. .smartdate--widget .form-type--select label {
  61. margin-right: 1em;
  62. padding-top: 0.25em;
  63. text-align: right;
  64. display: inline-block;
  65. padding-top: 0.85em;
  66. }
  67. /* Min width only for Seven and other legacy themes. */
  68. .smartdate--widget .form-type-select label {
  69. min-width: 5em;
  70. }
  71. .smartdate--widget .form-type-select label,
  72. tr.odd .smartdate--widget .form-type-select label,
  73. tr.even .smartdate--widget .form-type-select label {
  74. padding-top: 0.6em;
  75. }
  76. .smartdate--widget .form-type--select label,
  77. tr.odd .smartdate--widget .form-type--select label,
  78. tr.even .smartdate--widget .form-type--select label {
  79. padding-top: 0.85em;
  80. }
  81. .smartdate--widget .pad-left {
  82. margin-left: 0.7em;
  83. }
  84. .smartdate--widget .form-type-number,
  85. .smartdate--widget .form-type--number {
  86. display: inline-block;
  87. }
  88. .smartdate--widget .form-type-number .field-suffix,
  89. .smartdate--widget .form-type--number .form-item__suffix {
  90. display: inline-block;
  91. padding-top: 0.85em;
  92. font-weight: bold;
  93. }
  94. /* For Claro and Gin, match suffix to label size. */
  95. .smartdate--widget .form-type--number .form-item__suffix {
  96. font-size: 0.889rem;
  97. }
  98. .smartdate--widget .form-type-number input,
  99. .smartdate--widget .form-type--number input {
  100. display: inline-block;
  101. margin-right: 5px;
  102. }
  103. /* Narrower width for Seven and other legacy themes. */
  104. .smartdate--widget .form-type-number input {
  105. width: 4.5em;
  106. }
  107. /* Wider width for Claro and Gin themes. */
  108. .smartdate--widget .form-type--number input {
  109. width: 5em;
  110. }
  111. .smartdate--widget .form-type-number + .form-type-date,
  112. .smartdate--widget .form-type--number + .form-type--date {
  113. display: inline-block;
  114. }
  115. .smartdate--widget .repeat-end-date {
  116. width: 11.5em;
  117. display: inline-block;
  118. vertical-align: baseline;
  119. }
  120. .smartdate--widget .repeat-text {
  121. margin-top: 0.8em;
  122. }
  123. /* Smart Date Recur elements */
  124. .field-interval--label {
  125. display: inline-block;
  126. padding-top: 0.85em;
  127. text-align: right;
  128. margin: 0.75em 0.25em 0.75em 0;
  129. width: auto;
  130. }
  131. .field-interval--label.form-item__label {
  132. display: inline-block;
  133. }
  134. .adminimal .field-interval--label {
  135. padding-right: 0.3em;
  136. }
  137. .smartdate--widget .byday-checkboxes {
  138. display: inline-block;
  139. }
  140. .smartdate--widget .byday-checkboxes legend {
  141. float: left;
  142. margin: 0.75em 0.75em 0.75em 0.1em;
  143. }
  144. /* Fix wrapping for Claro. */
  145. .smartdate--widget .byday-checkboxes .fieldset__label,
  146. .smartdate--widget .byday-checkboxes .fieldset__wrapper {
  147. display: inline-block;
  148. }
  149. .smartdate--widget .byday-checkboxes input {
  150. display: none;
  151. }
  152. .smartdate--widget .byday-checkboxes input ~ label.option {
  153. color: black;
  154. background: white;
  155. border: 1px solid black;
  156. border-radius: 50% 50%;
  157. width: 1.7rem;
  158. text-align: center;
  159. padding: 5px 0px 0px;
  160. font-size: 0;
  161. line-height: 1rem;
  162. position: relative;
  163. top: -2px;
  164. vertical-align: -3px;
  165. display: inline-block;
  166. }
  167. .adminimal .smartdate--widget .byday-checkboxes input ~ label.option {
  168. vertical-align: -2px;
  169. }
  170. .smartdate--widget .byday-checkboxes input ~ label.option:first-letter {
  171. font-size: 1rem;
  172. }
  173. .smartdate--widget .byday-checkboxes input ~ label.option:hover {
  174. background: #ddd;
  175. }
  176. .smartdate--widget .byday-checkboxes input:checked ~ label.option {
  177. color: white;
  178. background: black;
  179. border: 1px solid #ddd;
  180. }