diff options
author | Marc Englund <marc@vaadin.com> | 2012-09-28 17:05:09 +0300 |
---|---|---|
committer | Marc Englund <marc@vaadin.com> | 2012-09-28 17:05:09 +0300 |
commit | d68d89de07ff79ec8629e3aa8c8310f1aa4a237d (patch) | |
tree | ba7f2dac03d0639a9f791503534479790d7713d5 /WebContent/VAADIN/themes/base/formlayout | |
parent | a499ccaa61a8aa72a1ca4334e5ba3becc6ecfb79 (diff) | |
download | vaadin-framework-d68d89de07ff79ec8629e3aa8c8310f1aa4a237d.tar.gz vaadin-framework-d68d89de07ff79ec8629e3aa8c8310f1aa4a237d.zip |
Sass restructure: base theme with renameable components
Diffstat (limited to 'WebContent/VAADIN/themes/base/formlayout')
-rw-r--r-- | WebContent/VAADIN/themes/base/formlayout/formlayout.scss | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/WebContent/VAADIN/themes/base/formlayout/formlayout.scss b/WebContent/VAADIN/themes/base/formlayout/formlayout.scss index a45840ebab..48a1bf0fde 100644 --- a/WebContent/VAADIN/themes/base/formlayout/formlayout.scss +++ b/WebContent/VAADIN/themes/base/formlayout/formlayout.scss @@ -1,55 +1,55 @@ -@mixin base-formlayout { +@mixin base-formlayout($name : v-formlayout) { -.v-formlayout.v-has-width > table { +.#{$name}.v-has-width > table { width: 100%; } -.v-formlayout.v-has-height > table { +.#{$name}.v-has-height > table { height: 100%; } -.v-formlayout-cell .v-errorindicator { +.#{$name}-cell .v-errorindicator { display: block; } -.v-formlayout-error-indicator { +.#{$name}-error-indicator { /* fix width so layout is not jumpy when error disappears */ width: 12px; } -.v-formlayout-captioncell { +.#{$name}-captioncell { text-align:right; white-space: nowrap; } -.v-formlayout-errorcell, .v-formlayout-captioncell { +.#{$name}-errorcell, .#{$name}-captioncell { width: 1px; /* Don't use any extra space */ } -.v-formlayout-captioncell .v-caption { +.#{$name}-captioncell .v-caption { overflow: visible; } -.v-formlayout-spacing .v-formlayout-row .v-formlayout-captioncell, -.v-formlayout-spacing .v-formlayout-row .v-formlayout-contentcell, -.v-formlayout-spacing .v-formlayout-row .v-formlayout-errorcell { +.#{$name}-spacing .#{$name}-row .#{$name}-captioncell, +.#{$name}-spacing .#{$name}-row .#{$name}-contentcell, +.#{$name}-spacing .#{$name}-row .#{$name}-errorcell { padding-top: 6px; } -.v-formlayout-spacing .v-formlayout-firstrow .v-formlayout-captioncell, -.v-formlayout-spacing .v-formlayout-firstrow .v-formlayout-contentcell, -.v-formlayout-spacing .v-formlayout-firstrow .v-formlayout-errorcell { +.#{$name}-spacing .#{$name}-firstrow .#{$name}-captioncell, +.#{$name}-spacing .#{$name}-firstrow .#{$name}-contentcell, +.#{$name}-spacing .#{$name}-firstrow .#{$name}-errorcell { padding-top: 0; } -.v-formlayout-margin-top .v-formlayout-firstrow .v-formlayout-captioncell, -.v-formlayout-margin-top .v-formlayout-firstrow .v-formlayout-contentcell, -.v-formlayout-margin-top .v-formlayout-firstrow .v-formlayout-errorcell { +.#{$name}-margin-top .#{$name}-firstrow .#{$name}-captioncell, +.#{$name}-margin-top .#{$name}-firstrow .#{$name}-contentcell, +.#{$name}-margin-top .#{$name}-firstrow .#{$name}-errorcell { padding-top: 12px; } -.v-formlayout-margin-bottom .v-formlayout-lastrow .v-formlayout-captioncell, -.v-formlayout-margin-bottom .v-formlayout-lastrow .v-formlayout-contentcell, -.v-formlayout-margin-bottom .v-formlayout-lastrow .v-formlayout-errorcell { +.#{$name}-margin-bottom .#{$name}-lastrow .#{$name}-captioncell, +.#{$name}-margin-bottom .#{$name}-lastrow .#{$name}-contentcell, +.#{$name}-margin-bottom .#{$name}-lastrow .#{$name}-errorcell { padding-bottom: 12px; } -.v-formlayout-margin-left .v-formlayout-captioncell { +.#{$name}-margin-left .#{$name}-captioncell { padding-left: 12px; } -.v-formlayout-margin-right .v-formlayout-contentcell { +.#{$name}-margin-right .#{$name}-contentcell { padding-right: 12px; } -.v-formlayout-captioncell .v-caption .v-required-field-indicator { +.#{$name}-captioncell .v-caption .v-required-field-indicator { float: none; } |