You are here

webform.element.layoutcontainer.css in Webform Layout Container 8

@media (min-width: 768px) {
  .webform-layoutcontainer--horiz,
  .webform-layoutcontainer--equal {
    word-spacing: -1em; /* remove the space between inline-blocks */
  }


  .webform-layoutcontainer--horiz > *,
  .webform-layoutcontainer--equal > * {
    display: inline-block;
    vertical-align: top;
    word-spacing: normal;
    /* hack for IE 6&7 */
    zoom: 1;
    *display: inline;
  }
}

.webform-layoutcontainer--equal .webform-layoutcontainer--vert .form-item {
  float: none;
  clear: both;
  display: block;
  width: 100%;
  margin: 0;
}


.webform-layoutcontainer--vert > .form-item {
  display: block;
}


.webform-layoutcontainer--horiz > * + * {
  margin-left: 1em; /* add space between variable-width blocks */
}

.webform-layoutcontainer > .form-item input {
  max-width: 100%;
}

.webform-layoutcontainer > .form-item input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.webform-layoutcontainer > .form-item select {
  width: 100%;
}

.webform-layoutcontainer > .form-item input:not([type=submit]):not([type=file]):not([type=checkbox]):not([type=radio]),
.webform-layoutcontainer > .form-item textarea {
  margin: 0;
}

/* one item */
.webform-layoutcontainer--equal > .webform-layoutcontainer--vert:first-child:nth-last-child(1),
.webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(1) {
  width: 100%;
}

@media (min-width: 768px) {
  /* two items */
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(2),
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(2) ~ .webform-layoutcontainer--vert,
  .webform-layoutcontainer--equal > .form-item:nth-last-child(2),
  .webform-layoutcontainer--equal > .form-item:nth-last-child(2) ~ .form-item {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 48.5%;
    margin-left: 0%;
    margin-right: 3%;
  }

  /* three items */
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(3),
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(3) ~ .webform-layoutcontainer--vert,
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(3),
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(3) ~ .form-item {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 31.3333333333%;
    margin-left: 0%;
    margin-right: 3%;
  }

  /* four items */
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(4),
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(4) ~ .webform-layoutcontainer--vert,
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(4),
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(4) ~ .form-item {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 22.75%;
    margin-left: 0%;
    margin-right: 3%;
  }

  /* five items */
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(5),
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(5) ~ .webform-layoutcontainer--vert,
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(5),
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(5) ~ .form-item {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 17.6%;
    margin-left: 0%;
    margin-right: 3%;
  }

  /* six items */
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(6),
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(6) ~ .webform-layoutcontainer--vert,
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(6),
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(6) ~ .form-item {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 14.1666666667%;
    margin-left: 0%;
    margin-right: 3%;
  }

  /* seven items */
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(7),
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(7) ~ .webform-layoutcontainer--vert,
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(7),
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(7) ~ .form-item {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 11.7142857143%;
    margin-left: 0%;
    margin-right: 3%;
  }

  /* eight items */
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(8),
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(8) ~ .webform-layoutcontainer--vert,
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(8),
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(8) ~ .form-item {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 9.875%;
    margin-left: 0%;
    margin-right: 3%;
  }

  /* nine items */
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(9),
  .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(9) ~ .webform-layoutcontainer--vert,
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(9),
  .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(9) ~ .form-item {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 8.4444444444%;
    margin-left: 0%;
    margin-right: 3%;
  }

  .webform-layoutcontainer--equal {
    *zoom: 1;
  }

  .webform-layoutcontainer--equal:before,
  .webform-layoutcontainer--equal:after {
    content: '';
    display: table;
  }

  .webform-layoutcontainer--equal:after {
    clear: both;
  }

  .webform-layoutcontainer--equal .webform-layoutcontainer--vert:before,
  .webform-layoutcontainer--equal .webform-layoutcontainer--vert:after,
  .webform-layoutcontainer--equal .form-item:before,
  .webform-layoutcontainer--equal .form-item:after {
    content: '';
    display: table;
  }

  .webform-layoutcontainer--equal .webform-layoutcontainer--vert:after,
  .webform-layoutcontainer--equal .form-item:after {
    clear: both;
  }

  .webform-layoutcontainer--equal .webform-layoutcontainer--vert:last-child,
  .webform-layoutcontainer--equal .form-item:last-child {
    margin-right: 0% !important;
  }

  .webform-layoutcontainer--equal .webform-layoutcontainer--vert .form-item:first-child,
  .webform-layoutcontainer--equal .webform-layoutcontainer--vert .form-item:first-child ~ .form-item {
    float: none;
    clear: both;
    display: block;
    width: 100%;
    margin: 0;
  }

  .form-item.form-type-datetime .container-inline {
    *zoom: 1;
    margin: 0;
  }
  .form-item .container-inline > .form-item {
    display: inline-block;
  }

  .form-item.form-type-datetime .container-inline:before,
  .form-item.form-type-datetime .container-inline:after {
    content: '';
    display: table;
  }

  .form-item.form-type-datetime .container-inline:after {
    clear: both;
  }

  .form-item.form-type-datetime .container-inline .form-item.form-item-date-and-time-date,
  .form-item.form-type-datetime .container-inline .form-item.form-item-date-and-time-time {
    *zoom: 1;
    float: left;
    clear: none;
    text-align: inherit;
    width: 48.5%;
    margin-left: 0%;
    margin-right: 3%;
  }
}
.form-item.form-type-datetime .container-inline .form-item.form-item-date-and-time-time {
  margin-right: 0;
}

.form-item.form-type-datetime .container-inline .form-item:before,
.form-item.form-type-datetime .container-inline .form-item:after {
  content: '';
  display: table;
}

.form-item.form-type-datetime .container-inline .form-item:after {
  clear: both;
}

.form-item > .form-type-select {
  margin: 0;
}

File

css/webform.element.layoutcontainer.css
View source
  1. @media (min-width: 768px) {
  2. .webform-layoutcontainer--horiz,
  3. .webform-layoutcontainer--equal {
  4. word-spacing: -1em; /* remove the space between inline-blocks */
  5. }
  6. .webform-layoutcontainer--horiz > *,
  7. .webform-layoutcontainer--equal > * {
  8. display: inline-block;
  9. vertical-align: top;
  10. word-spacing: normal;
  11. /* hack for IE 6&7 */
  12. zoom: 1;
  13. *display: inline;
  14. }
  15. }
  16. .webform-layoutcontainer--equal .webform-layoutcontainer--vert .form-item {
  17. float: none;
  18. clear: both;
  19. display: block;
  20. width: 100%;
  21. margin: 0;
  22. }
  23. .webform-layoutcontainer--vert > .form-item {
  24. display: block;
  25. }
  26. .webform-layoutcontainer--horiz > * + * {
  27. margin-left: 1em; /* add space between variable-width blocks */
  28. }
  29. .webform-layoutcontainer > .form-item input {
  30. max-width: 100%;
  31. }
  32. .webform-layoutcontainer > .form-item input:not([type=checkbox]):not([type=radio]):not([type=submit]),
  33. .webform-layoutcontainer > .form-item select {
  34. width: 100%;
  35. }
  36. .webform-layoutcontainer > .form-item input:not([type=submit]):not([type=file]):not([type=checkbox]):not([type=radio]),
  37. .webform-layoutcontainer > .form-item textarea {
  38. margin: 0;
  39. }
  40. /* one item */
  41. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:first-child:nth-last-child(1),
  42. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(1) {
  43. width: 100%;
  44. }
  45. @media (min-width: 768px) {
  46. /* two items */
  47. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(2),
  48. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(2) ~ .webform-layoutcontainer--vert,
  49. .webform-layoutcontainer--equal > .form-item:nth-last-child(2),
  50. .webform-layoutcontainer--equal > .form-item:nth-last-child(2) ~ .form-item {
  51. *zoom: 1;
  52. float: left;
  53. clear: none;
  54. text-align: inherit;
  55. width: 48.5%;
  56. margin-left: 0%;
  57. margin-right: 3%;
  58. }
  59. /* three items */
  60. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(3),
  61. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(3) ~ .webform-layoutcontainer--vert,
  62. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(3),
  63. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(3) ~ .form-item {
  64. *zoom: 1;
  65. float: left;
  66. clear: none;
  67. text-align: inherit;
  68. width: 31.3333333333%;
  69. margin-left: 0%;
  70. margin-right: 3%;
  71. }
  72. /* four items */
  73. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(4),
  74. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(4) ~ .webform-layoutcontainer--vert,
  75. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(4),
  76. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(4) ~ .form-item {
  77. *zoom: 1;
  78. float: left;
  79. clear: none;
  80. text-align: inherit;
  81. width: 22.75%;
  82. margin-left: 0%;
  83. margin-right: 3%;
  84. }
  85. /* five items */
  86. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(5),
  87. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(5) ~ .webform-layoutcontainer--vert,
  88. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(5),
  89. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(5) ~ .form-item {
  90. *zoom: 1;
  91. float: left;
  92. clear: none;
  93. text-align: inherit;
  94. width: 17.6%;
  95. margin-left: 0%;
  96. margin-right: 3%;
  97. }
  98. /* six items */
  99. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(6),
  100. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(6) ~ .webform-layoutcontainer--vert,
  101. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(6),
  102. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(6) ~ .form-item {
  103. *zoom: 1;
  104. float: left;
  105. clear: none;
  106. text-align: inherit;
  107. width: 14.1666666667%;
  108. margin-left: 0%;
  109. margin-right: 3%;
  110. }
  111. /* seven items */
  112. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(7),
  113. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(7) ~ .webform-layoutcontainer--vert,
  114. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(7),
  115. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(7) ~ .form-item {
  116. *zoom: 1;
  117. float: left;
  118. clear: none;
  119. text-align: inherit;
  120. width: 11.7142857143%;
  121. margin-left: 0%;
  122. margin-right: 3%;
  123. }
  124. /* eight items */
  125. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(8),
  126. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(8) ~ .webform-layoutcontainer--vert,
  127. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(8),
  128. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(8) ~ .form-item {
  129. *zoom: 1;
  130. float: left;
  131. clear: none;
  132. text-align: inherit;
  133. width: 9.875%;
  134. margin-left: 0%;
  135. margin-right: 3%;
  136. }
  137. /* nine items */
  138. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(9),
  139. .webform-layoutcontainer--equal > .webform-layoutcontainer--vert:nth-last-child(9) ~ .webform-layoutcontainer--vert,
  140. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(9),
  141. .webform-layoutcontainer--equal > .form-item:first-child:nth-last-child(9) ~ .form-item {
  142. *zoom: 1;
  143. float: left;
  144. clear: none;
  145. text-align: inherit;
  146. width: 8.4444444444%;
  147. margin-left: 0%;
  148. margin-right: 3%;
  149. }
  150. .webform-layoutcontainer--equal {
  151. *zoom: 1;
  152. }
  153. .webform-layoutcontainer--equal:before,
  154. .webform-layoutcontainer--equal:after {
  155. content: '';
  156. display: table;
  157. }
  158. .webform-layoutcontainer--equal:after {
  159. clear: both;
  160. }
  161. .webform-layoutcontainer--equal .webform-layoutcontainer--vert:before,
  162. .webform-layoutcontainer--equal .webform-layoutcontainer--vert:after,
  163. .webform-layoutcontainer--equal .form-item:before,
  164. .webform-layoutcontainer--equal .form-item:after {
  165. content: '';
  166. display: table;
  167. }
  168. .webform-layoutcontainer--equal .webform-layoutcontainer--vert:after,
  169. .webform-layoutcontainer--equal .form-item:after {
  170. clear: both;
  171. }
  172. .webform-layoutcontainer--equal .webform-layoutcontainer--vert:last-child,
  173. .webform-layoutcontainer--equal .form-item:last-child {
  174. margin-right: 0% !important;
  175. }
  176. .webform-layoutcontainer--equal .webform-layoutcontainer--vert .form-item:first-child,
  177. .webform-layoutcontainer--equal .webform-layoutcontainer--vert .form-item:first-child ~ .form-item {
  178. float: none;
  179. clear: both;
  180. display: block;
  181. width: 100%;
  182. margin: 0;
  183. }
  184. .form-item.form-type-datetime .container-inline {
  185. *zoom: 1;
  186. margin: 0;
  187. }
  188. .form-item .container-inline > .form-item {
  189. display: inline-block;
  190. }
  191. .form-item.form-type-datetime .container-inline:before,
  192. .form-item.form-type-datetime .container-inline:after {
  193. content: '';
  194. display: table;
  195. }
  196. .form-item.form-type-datetime .container-inline:after {
  197. clear: both;
  198. }
  199. .form-item.form-type-datetime .container-inline .form-item.form-item-date-and-time-date,
  200. .form-item.form-type-datetime .container-inline .form-item.form-item-date-and-time-time {
  201. *zoom: 1;
  202. float: left;
  203. clear: none;
  204. text-align: inherit;
  205. width: 48.5%;
  206. margin-left: 0%;
  207. margin-right: 3%;
  208. }
  209. }
  210. .form-item.form-type-datetime .container-inline .form-item.form-item-date-and-time-time {
  211. margin-right: 0;
  212. }
  213. .form-item.form-type-datetime .container-inline .form-item:before,
  214. .form-item.form-type-datetime .container-inline .form-item:after {
  215. content: '';
  216. display: table;
  217. }
  218. .form-item.form-type-datetime .container-inline .form-item:after {
  219. clear: both;
  220. }
  221. .form-item > .form-type-select {
  222. margin: 0;
  223. }