You are here

smart_date.css in Smart Date 3.2.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. /* Styles for the inline version */
  116. .smartdate--time-inline .form-datetime-wrapper h4.form-item__label,
  117. .smartdate--time-inline h4.label {
  118. display: none;
  119. }
  120. .smartdate--time-inline {
  121. display: flex;
  122. align-items: flex-end;
  123. }
  124. .smartdate--time-inline .smartdate--separator {
  125. margin: 0 0.5rem 0.5rem;
  126. }
  127. /* Use a different bottom margin for Claro and Gin */
  128. .fieldset__wrapper .smartdate--time-inline .smartdate--separator {
  129. margin: 0 0.5rem 1.5rem;
  130. }
  131. .smartdate--time-inline .form-datetime-wrapper .form-items-inline,
  132. .smartdate--time-inline div.time-start,
  133. .smartdate--time-inline div.time-end {
  134. display: flex;
  135. flex-wrap: wrap;
  136. align-items: center;
  137. justify-content: flex-end;
  138. }
  139. .smartdate--time-inline .form-datetime-wrapper:nth-of-type(2) .form-items-inline,
  140. .smartdate--time-inline div.time-end {
  141. flex-direction: row-reverse;
  142. }