Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 1 | /** |
| 2 | * This defines flexible table cells |
| 3 | * for views. |
| 4 | */ |
| 5 | |
| 6 | dl.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; |
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 29 | padding: $item-padding; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 30 | margin: 0; |
| 31 | } |
| 32 | > dd { |
| 33 | text-align: left; |
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 34 | padding: $item-padding; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 35 | 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; |
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 43 | text-overflow: ellipsis; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 44 | } |
| 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 | } |