blob: 01c06327123825df3f5eba33e7a61c477f3a11e5 [file] [log] [blame]
Michael Davis51946552017-05-01 10:30:38 -05001
2// Table Header
3.table-header {
4 width: 100%;
5 color: $black;
6 line-height: 30px;
Michael Davis9486f542017-05-30 15:35:31 -05007 padding: .8em 0 0;
8 margin-bottom: .8em;
9 border-bottom: 1px solid $medgrey;
10 font-size: 1.25em;
Michael Davis51946552017-05-01 10:30:38 -050011 @include mediaQuery(medium) {
Michael Davis9486f542017-05-30 15:35:31 -050012 margin: 1.8em 0;
Michael Davis51946552017-05-01 10:30:38 -050013 }
14}
15
Michael Davis51946552017-05-01 10:30:38 -050016// Table
17.table {
18 width: 100%;
19}
20
Gunnar Mills84e114a2018-11-14 13:44:41 -060021.table__body {
22 width: 100%;
23}
24
Michael Davis51946552017-05-01 10:30:38 -050025.table__row {
26 display: flex;
27 width: 100%;
Michael Davis9486f542017-05-30 15:35:31 -050028 max-width: calc(100vw - 10px);
Michael Davis51946552017-05-01 10:30:38 -050029 flex-wrap: wrap;
Michael Davis9486f542017-05-30 15:35:31 -050030 font-weight: 400;
31 position: relative;
32 &.disabled {
33 background-color: $disabled-row;
34 color: $disabled-row-txt;
Michael Davis51946552017-05-01 10:30:38 -050035 }
36}
37
Michael Davis9486f542017-05-30 15:35:31 -050038.table__row-save {
39 position: absolute;
40 top: 0;
41 left: 0;
42 width: 100%;
43 height:100%;
44 background: $darkbg__primary;
45 z-index:200;
46 color: $white;
47 padding: .8em 1em;
48 text-align: center;
49 font-size: 1.5em;
50 font-weight: bold;
51}
52
Michael Davis51946552017-05-01 10:30:38 -050053.table__cell {
54 flex: 0 0 100%;
Michael Davis9486f542017-05-30 15:35:31 -050055 line-height: 2.8em;
56 padding: .5em 1em;
Michael Davis51946552017-05-01 10:30:38 -050057 white-space: nowrap;
58 overflow: hidden;
59 text-overflow: ellipsis;
Michael Davis9486f542017-05-30 15:35:31 -050060 border-bottom: 1px solid $medgrey;
Michael Davis51946552017-05-01 10:30:38 -050061 @include mediaQuery(small) {
62 flex: 1;
Michael Davis51946552017-05-01 10:30:38 -050063 }
Michael Davis9486f542017-05-30 15:35:31 -050064 //
65 //@include mediaQuery(large) {
66 // padding: 15px 30px;
67 //}
Michael Davis51946552017-05-01 10:30:38 -050068}
69
70.table__cell-label {
71 display: inline-block;
72 font-weight: 700;
73 min-width: 50%;
74 padding-right: 15px;
75
76 @include mediaQuery(small) {
77 display: none;
78 }
79}
80
81// Table Head
82.table__head {
Gunnar Mills84e114a2018-11-14 13:44:41 -060083 width: 100%;
Michael Davis51946552017-05-01 10:30:38 -050084 .table__row {
85 display: none;
86 font-weight: 700;
87 border-bottom: 1px solid $medgrey;
88 background-color: $darkbg__primary;
89 color: $white;
90
91 @include mediaQuery(small) {
92 display: flex;
93 }
94
95 .table__cell {
96 @include fastTransition-all();
97 position: relative;
Michael Davis9486f542017-05-30 15:35:31 -050098 border: 0;
Michael Davis51946552017-05-01 10:30:38 -050099 &:last-child {
100 border: 0;
101 }
102 }
103 }
104}
105
Michael Davis9486f542017-05-30 15:35:31 -0500106.table__row-uploading {
107 color: $darkgrey;
108 font-weight: 700;
109 @include indeterminate-bar;
110}
111
Michael Davise1ae08c2017-08-25 10:58:22 -0500112//sortable heading
Michael Davis6dc5f182017-06-26 13:07:27 -0500113.sort-heading {
Michael Davise1ae08c2017-08-25 10:58:22 -0500114 position: relative;
115 color: $lightblue;
116 &::after {
117 content: '\025be';
118 position: absolute;
119 right: -20px;
120 top: -1px;
121 font-size: 1.3em;
122 }
123 &::before {
124 content: '\025be';
125 position: absolute;
126 right: -20px;
127 top: -10px;
128 font-size: 1.3em;
129 transform: rotate(180deg);
130 }
131 &.sort-up {
132 &::before {
133 color: $darkbg__accent;
134 }
135 }
136 &.sort-down {
137 &::after {
138 color: $darkbg__accent;
139 }
140 }
Michael Davis6dc5f182017-06-26 13:07:27 -0500141}