summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni@jounikoivuviita.com>2012-04-16 18:21:16 +0300
committerJouni Koivuviita <jouni@jounikoivuviita.com>2012-04-16 18:21:16 +0300
commitcd9354d880f9b5c57220bde5cf2e549b746a4be2 (patch)
treee8e6fa40bf2a091616b0b75c071eff3f652a273d /WebContent/VAADIN/themes
parentb84b5e9a1ae2716582bcd84e46c51a0a9974150b (diff)
downloadvaadin-framework-cd9354d880f9b5c57220bde5cf2e549b746a4be2.tar.gz
vaadin-framework-cd9354d880f9b5c57220bde5cf2e549b746a4be2.zip
BoxLayout now respects the current layout specs, dividing unused space equally if no expand ratios are used for a layout with a defined size. Captions are also now placed on the right side of the component if no icon or caption text is set for the component
Diffstat (limited to 'WebContent/VAADIN/themes')
-rw-r--r--WebContent/VAADIN/themes/base/boxlayout/boxlayout.css21
1 files changed, 17 insertions, 4 deletions
diff --git a/WebContent/VAADIN/themes/base/boxlayout/boxlayout.css b/WebContent/VAADIN/themes/base/boxlayout/boxlayout.css
index b2514d2382..e522989769 100644
--- a/WebContent/VAADIN/themes/base/boxlayout/boxlayout.css
+++ b/WebContent/VAADIN/themes/base/boxlayout/boxlayout.css
@@ -1,3 +1,11 @@
+/*
+TODO
+- separate styles to proper places
+- decide a good class name structure for core layouts (e.g. 'v-layout', 'v-vertical', 'v-grid' etc.)
+- use !important in carefully selected places to prevent accidental layout breakage by custom theming (e.g. alignments should be forced)
+
+*/
+
.v-boxlayout.v-margin-top {padding-top: 18px;}
.v-boxlayout.v-margin-right {padding-right: 18px;}
.v-boxlayout.v-margin-bottom {padding-bottom: 18px;}
@@ -13,7 +21,7 @@
}
.v-boxlayout.v-horizontal {
- white-space: nowrap;
+ white-space: nowrap !important;
}
.v-boxlayout > .v-expand {
@@ -104,6 +112,7 @@
}
.v-caption {
+ display: inline-block; /* Force default width to zero */
overflow: visible;
vertical-align: middle;
}
@@ -113,9 +122,9 @@
white-space: nowrap;
}
-.v-caption-on-left > .v-caption,
-.v-caption-on-right > .v-caption {
- display: inline-block;
+.v-caption-on-top > .v-caption,
+.v-caption-on-bottom > .v-caption {
+ display: block;
}
.v-caption-on-left > .v-caption {
@@ -140,4 +149,8 @@
.v-has-caption.v-has-height > .v-paintable {
height: 100% !important;
+}
+
+.v-errorindicator {
+ vertical-align: middle;
} \ No newline at end of file