blob: 52594c20cec081e433878e2ec4c1bf1957a684a1 [file] [log] [blame]
Akron2f979122018-07-25 17:00:23 +02001/**
2 * This defines flexible table cells
3 * for views.
4 */
5
6dl.flex {
7 display: flex;
8 flex-direction: row;
9 flex-wrap: wrap;
10 justify-content: flex-start;
11 align-items: stretch;
12 width: auto;
13 padding-bottom: 0;
14
15 > div {
16 display: flex;
17 flex-direction: row;
18 text-align: center;
19 width: 100%;
20 border-width: $border-size / 2;
21 border-style: solid;
22 align-items: stretch;
23 > * {
24 @include cell-info;
25 }
26 > dt {
27 text-align: left;
28 width: 12.5em;
29 margin: 0;
30 }
31 > dd {
32 text-align: left;
33 padding: 2px;
34 margin: 0;
35 width: 100%;
36 max-width: none;
37 max-height: 6em;
38 margin-left: $border-size;
39 white-space: normal;
40 overflow-y: auto;
41 overflow-x: hidden;
42 }
43 }
44}
45
46
47@media (min-width:640px) {
48 dl.flex > div {
49 width: 50%; // 2*
50 }
51}
52
53@media (min-width:800px) {
54 dl.flex > div {
55 width: 33.3333333333333%; // 3*
56 }
57}
58
59@media (min-width:1200px) {
60 dl.flex > div {
61 width: 25%; // 4*
62 }
63}
64
65@media (min-width:1680px) {
66 dl.flex > div {
67 width: 20%; // 5*
68 }
69}