| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 1 | @import "lengths"; | 
 | 2 | @import "mixins"; | 
 | 3 |  | 
| Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 4 | /** | 
 | 5 |  * This defines flexible table cells | 
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 6 |  * for views (including media queries). | 
| Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 7 |  */ | 
 | 8 |  | 
 | 9 | dl.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; | 
| Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 32 |       padding: $item-padding; | 
| Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 33 |       margin: 0; | 
 | 34 |     } | 
 | 35 |     > dd { | 
 | 36 |       text-align: left; | 
| Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 37 |       padding: $item-padding; | 
| Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 38 |       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; | 
| Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 46 |       text-overflow: ellipsis; | 
| Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 47 |     } | 
 | 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 | } |