summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/tests-responsive/styles.css
blob: 4bfc6dd7682cdf7751f193b45421ab4d1c04d361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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;
}