components.scss
5 years ago
layout.scss
5 years ago
notices.scss
5 years ago
utility.scss
5 years ago
utility.scss
113 lines
| 1 | .presto-flow > * + * { |
| 2 | margin-top: var(--presto-flow-space, 2em); |
| 3 | } |
| 4 | .presto-loading { |
| 5 | display: flex; |
| 6 | align-items: center; |
| 7 | justify-content: center; |
| 8 | min-height: 100px; |
| 9 | } |
| 10 | |
| 11 | table.presto-table { |
| 12 | width: 100%; |
| 13 | border-collapse: collapse; |
| 14 | |
| 15 | td { |
| 16 | h2, |
| 17 | h3 { |
| 18 | margin: 0 0 8px 0; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | &.is-clickable { |
| 23 | td { |
| 24 | cursor: pointer; |
| 25 | transition: background-color 0.25s ease; |
| 26 | } |
| 27 | |
| 28 | tr:hover td { |
| 29 | background-color: #f3f3f3; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | th, |
| 34 | td { |
| 35 | text-align: left; |
| 36 | padding: 0.65rem; |
| 37 | border-top: 1px solid rgb(226, 228, 231); |
| 38 | } |
| 39 | |
| 40 | tr:first-child td { |
| 41 | border-top: none; |
| 42 | } |
| 43 | |
| 44 | th { |
| 45 | color: #757575; |
| 46 | background-color: #f7f7f7; |
| 47 | border: none; |
| 48 | font-size: 10px; |
| 49 | font-weight: bold; |
| 50 | text-transform: uppercase; |
| 51 | letter-spacing: 1px; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | /* |
| 56 | Max width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically. |
| 57 | */ |
| 58 | @media only screen and (max-width: 760px), |
| 59 | (min-device-width: 768px) and (max-device-width: 1024px) { |
| 60 | table.presto-table { |
| 61 | display: block; |
| 62 | |
| 63 | /* Force table to not be like tables anymore */ |
| 64 | thead, |
| 65 | tbody, |
| 66 | th, |
| 67 | td, |
| 68 | tr { |
| 69 | display: block; |
| 70 | } |
| 71 | |
| 72 | /* Hide table headers (but not display: none;, for accessibility) */ |
| 73 | thead tr { |
| 74 | position: absolute; |
| 75 | top: -9999px; |
| 76 | left: -9999px; |
| 77 | } |
| 78 | |
| 79 | tr { |
| 80 | margin: 0 0 1rem 0; |
| 81 | } |
| 82 | |
| 83 | tr:nth-child(odd) { |
| 84 | background: #f3f3f3; |
| 85 | } |
| 86 | |
| 87 | td { |
| 88 | /* Behave like a "row" */ |
| 89 | border: none; |
| 90 | border-bottom: 1px solid #fff; |
| 91 | position: relative; |
| 92 | padding: 10px; |
| 93 | padding-left: 50%; |
| 94 | } |
| 95 | |
| 96 | td:before { |
| 97 | /* Now like a table header */ |
| 98 | position: absolute; |
| 99 | /* Top/left values mimic padding */ |
| 100 | top: 10px; |
| 101 | left: 10px; |
| 102 | width: 45%; |
| 103 | padding-right: 10px; |
| 104 | white-space: nowrap; |
| 105 | } |
| 106 | |
| 107 | td:before { |
| 108 | content: attr(data-title); |
| 109 | font-weight: bold; |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 |