blob: 910d275fcdf4d8864a58d835aeeef611a3bb879a [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;
Akronfc8dbae2019-02-15 13:16:20 +010029 padding: $item-padding;
Akron2f979122018-07-25 17:00:23 +020030 margin: 0;
31 }
32 > dd {
33 text-align: left;
Akronfc8dbae2019-02-15 13:16:20 +010034 padding: $item-padding;
Akron2f979122018-07-25 17:00:23 +020035 margin: 0;
36 width: 100%;
37 max-width: none;
38 max-height: 6em;
39 margin-left: $border-size;
40 white-space: normal;
41 overflow-y: auto;
42 overflow-x: hidden;
Akronfc8dbae2019-02-15 13:16:20 +010043 text-overflow: ellipsis;
Akron2f979122018-07-25 17:00:23 +020044 }
45 }
46}
47
48
49@media (min-width:640px) {
50 dl.flex > div {
51 width: 50%; // 2*
52 }
53}
54
55@media (min-width:800px) {
56 dl.flex > div {
57 width: 33.3333333333333%; // 3*
58 }
59}
60
61@media (min-width:1200px) {
62 dl.flex > div {
63 width: 25%; // 4*
64 }
65}
66
67@media (min-width:1680px) {
68 dl.flex > div {
69 width: 20%; // 5*
70 }
71}