summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/tests-responsive
diff options
context:
space:
mode:
authorJonatan Kronqvist <jonatan@vaadin.com>2014-03-18 10:21:16 +0200
committerVaadin Code Review <review@vaadin.com>2014-03-25 10:47:53 +0000
commit9dc242295d685670ae780db623c270322e34570d (patch)
treef505ee6b559fba866111cd1a9633a9b6830e0cd4 /WebContent/VAADIN/themes/tests-responsive
parenta14eccdb97f486a6b451b671f1a0ab433629dec9 (diff)
downloadvaadin-framework-9dc242295d685670ae780db623c270322e34570d.tar.gz
vaadin-framework-9dc242295d685670ae780db623c270322e34570d.zip
Integrate the Responsive add-on #12394
Also fixes https://github.com/vaadin/responsive/issues/10 Change-Id: Id22d071529c91d6462f1dceaf169c9d4be69d86f
Diffstat (limited to 'WebContent/VAADIN/themes/tests-responsive')
-rw-r--r--WebContent/VAADIN/themes/tests-responsive/styles.css92
1 files changed, 92 insertions, 0 deletions
diff --git a/WebContent/VAADIN/themes/tests-responsive/styles.css b/WebContent/VAADIN/themes/tests-responsive/styles.css
new file mode 100644
index 0000000000..4bfc6dd768
--- /dev/null
+++ b/WebContent/VAADIN/themes/tests-responsive/styles.css
@@ -0,0 +1,92 @@
+@import url(../reindeer/legacy-styles.css);
+
+.grid {
+ overflow: visible;
+}
+
+/* Style the items in the grid */
+.grid > .v-label {
+ outline: 1px dotted rgba(0, 0, 0, .3);
+ text-align: center;
+ padding: 2em 0;
+ font-size: 16px;
+ font-weight: bold;
+}
+
+/* We want the items in the grid to stay between 100px and 200px, if possible */
+.first[width-range~="-200px"] .v-label {
+ width: 100%;
+}
+
+.first[width-range~="201px-400px"] > .v-label {
+ width: 50%;
+}
+
+.first[width-range~="401px-600px"] > .v-label {
+ width: 33.3333%;
+}
+
+.first[width-range~="601-800"] > .v-label {
+ width: 25%;
+}
+
+.first[width-range~="801-1000px"] > .v-label {
+ width: 20%;
+}
+
+.first[width-range~="1001px-"] > .v-label {
+ width: 16.6667%;
+}
+
+.second[width-range~="0-100px"] .v-label {
+ width: 100%;
+}
+
+.second[width-range~="101px-200px"] > .v-label {
+ width: 50%;
+}
+
+.second[width-range~="201px-300px"] > .v-label {
+ width: 33.3333%;
+}
+
+.second[width-range~="301px-400px"] > .v-label {
+ width: 25%;
+}
+
+.second[width-range~="401px-500px"] > .v-label {
+ width: 20%;
+}
+
+.second[width-range~="501px-"] > .v-label {
+ width: 16.6667%;
+}
+
+.description {
+ padding: 1em;
+ line-height: 1.5;
+}
+
+.description[width-range="-100px"] {
+ font-size: 10px;
+}
+
+.description[width-range="101px-200px"] {
+ font-size: 12px;
+}
+
+.description[width-range="200px-350px"] {
+ font-size: 14px;
+}
+
+.description[width-range="351px-500px"] {
+ font-size: 18px;
+}
+
+.description[width-range="501px-700px"] {
+ font-size: 24px;
+}
+
+.description[width-range="701px-"] {
+ font-size: 30px;
+}