You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

layout.scss 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /*
  2. TODO
  3. - separate styles to proper places
  4. - decide a good class name structure for core layouts (e.g. 'v-layout', 'v-vertical', 'v-grid' etc.)
  5. - use !important in carefully selected places to prevent accidental layout breakage by custom theming (e.g. alignments should be forced)
  6. */
  7. @mixin base-layout {
  8. .v-vertical.v-margin-top,
  9. .v-horizontal.v-margin-top {
  10. padding-top: 12px;
  11. }
  12. .v-vertical.v-margin-right,
  13. .v-horizontal.v-margin-right {
  14. padding-right: 12px;
  15. }
  16. .v-vertical.v-margin-bottom,
  17. .v-horizontal.v-margin-bottom {
  18. padding-bottom: 12px;
  19. }
  20. .v-vertical.v-margin-left,
  21. .v-horizontal.v-margin-left {
  22. padding-left: 12px;
  23. }
  24. /* Different for historical reasons: previously was inherited directly from Base theme */
  25. /* TODO unify these values in version 7 */
  26. .v-gridlayout.v-layout-margin-top {
  27. padding-top: 24px;
  28. }
  29. .v-gridlayout,
  30. .v-verticallayout,
  31. .v-horizontallayout {
  32. font-size: 0;
  33. line-height: normal;
  34. }
  35. .v-gridlayout.v-layout-margin-bottom {
  36. padding-bottom: 24px;
  37. }
  38. .v-gridlayout.v-layout-margin-left {
  39. padding-left: 24px;
  40. }
  41. .v-gridlayout.v-layout-margin-right {
  42. padding-right: 24px;
  43. }
  44. .v-gridlayout .v-layout-spacing-on {
  45. padding-left: 12px;
  46. padding-top: 12px;
  47. }
  48. .v-spacing {
  49. width: 6px;
  50. height: 6px;
  51. }
  52. .v-vertical,
  53. .v-horizontal {
  54. display: inline-block;
  55. }
  56. div.v-layout.v-horizontal.v-widget {
  57. white-space: nowrap;
  58. }
  59. .v-layout.v-vertical > .v-expand,
  60. .v-layout.v-horizontal > .v-expand {
  61. -webkit-box-sizing: border-box;
  62. -moz-box-sizing: border-box;
  63. box-sizing: border-box;
  64. width: 100%;
  65. height: 100%;
  66. }
  67. .v-slot,
  68. .v-spacing {
  69. display: inline-block;
  70. white-space: normal;
  71. vertical-align: top;
  72. }
  73. /* Clear any floats inside the slot, to prevent unwanted collapsing */
  74. .v-vertical > .v-slot:after {
  75. display: inline-block;
  76. clear: both;
  77. width: 0;
  78. height: 0;
  79. overflow: hidden;
  80. line-height:0;
  81. }
  82. .v-vertical > .v-slot,
  83. .v-vertical > .v-expand > .v-slot {
  84. display: block;
  85. clear: both;
  86. }
  87. .v-horizontal > .v-slot,
  88. .v-horizontal > .v-expand > .v-slot {
  89. height: 100%;
  90. }
  91. /* Workaround for IE8+IE9 bug where clicking inside an input area which is inside a div with negative margin causes cursor position to jump to wrong position. See #11152 */
  92. .v-horizontal > .v-expand > .v-slot {
  93. position: relative;
  94. }
  95. .v-vertical > .v-spacing,
  96. .v-vertical > .v-expand > .v-spacing {
  97. width: 0;
  98. display: block;
  99. clear: both;
  100. }
  101. .v-horizontal > .v-spacing,
  102. .v-horizontal > .v-expand > .v-spacing {
  103. height: 0;
  104. }
  105. .v-align-middle:before,
  106. .v-align-bottom:before,
  107. .v-expand > .v-align-middle:before,
  108. .v-expand > .v-align-bottom:before {
  109. content: "";
  110. display: inline-block;
  111. height: 100%;
  112. vertical-align: middle;
  113. width: 0;
  114. }
  115. .v-align-middle,
  116. .v-align-bottom {
  117. white-space: nowrap;
  118. }
  119. .v-align-middle > .v-widget,
  120. .v-align-right > .v-widget,
  121. .v-align-center > .v-widget,
  122. .v-align-bottom > .v-widget {
  123. display: inline-block;
  124. }
  125. .v-align-middle,
  126. .v-align-middle > .v-widget {
  127. vertical-align: middle;
  128. }
  129. .v-align-bottom,
  130. .v-align-bottom > .v-widget {
  131. vertical-align: bottom;
  132. }
  133. .v-align-center {
  134. text-align: center;
  135. }
  136. .v-align-center > .v-widget {
  137. margin-left: auto;
  138. margin-right: auto;
  139. }
  140. .v-align-right {
  141. text-align: right;
  142. }
  143. .v-align-right > .v-widget {
  144. margin-left: auto;
  145. }
  146. .v-has-caption,
  147. .v-has-caption > .v-caption {
  148. display: inline-block; /* Force natural width to zero */
  149. }
  150. .v-caption {
  151. overflow: visible;
  152. vertical-align: middle;
  153. }
  154. .v-caption-on-left,
  155. .v-caption-on-right {
  156. white-space: nowrap;
  157. }
  158. .v-caption-on-top > .v-caption,
  159. .v-caption-on-bottom > .v-caption {
  160. display: block;
  161. }
  162. .v-caption-on-left > .v-caption {
  163. padding-right: .5em;
  164. }
  165. .v-caption-on-right > .v-caption {
  166. vertical-align:top;
  167. }
  168. .v-caption-on-left > .v-widget,
  169. .v-caption-on-right > .v-widget {
  170. display: inline-block;
  171. vertical-align: middle;
  172. }
  173. .v-has-caption.v-has-width > .v-widget {
  174. width: 100% !important;
  175. }
  176. .v-has-caption.v-has-height > .v-widget {
  177. height: 100% !important;
  178. }
  179. .v-errorindicator {
  180. vertical-align: middle;
  181. }
  182. }