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