|
2 | 2 | @import 'mixins';
|
3 | 3 | @import 'job-overlay';
|
4 | 4 |
|
5 |
| -.jm-dashboard { |
| 5 | +.jm-dashboard-table { |
| 6 | + container-name: jm-dashboard-table; |
6 | 7 | container-type: inline-size;
|
7 |
| - |
8 | 8 | --jm-dashboard-company-logo-size: calc(var(--jm-ui-icon-size) + 2 * var(--jm-ui-space-xs));
|
| 9 | + |
| 10 | + &.jm-dashboard-table--large { |
| 11 | + container-name: jm-dashboard-table-large; |
| 12 | + } |
9 | 13 | }
|
10 | 14 |
|
11 | 15 | .jm-dashboard-job, .jm-dashboard-header {
|
|
42 | 46 | .jm-dashboard-job-column {
|
43 | 47 | flex: 1 1 calc(50% - var(--jm-ui-space-sm));
|
44 | 48 | min-width: 0;
|
45 |
| -} |
46 |
| - |
47 |
| -.jm-dashboard small { |
48 |
| - font-size: var(--jm-ui-font-size-s); |
49 |
| -} |
50 |
| - |
51 |
| -.jm-dashboard .job_title { |
52 |
| - flex: 1 1 200%; |
| 49 | + line-height: 1.2; |
| 50 | + small { |
| 51 | + white-space: nowrap; |
| 52 | + } |
53 | 53 | }
|
54 | 54 |
|
55 | 55 | .jm-dashboard-job-column.company {
|
|
80 | 80 | width: var(--jm-ui-icon-size-s);
|
81 | 81 | height: var(--jm-ui-icon-size-s);
|
82 | 82 | }
|
83 |
| - |
84 |
| - .job-status-rejected { |
85 |
| - color: var(--jm-ui-error-color); |
86 |
| - } |
87 | 83 | }
|
88 | 84 |
|
89 | 85 | .jm-dashboard img.company_logo {
|
|
92 | 88 | object-fit: contain;
|
93 | 89 | }
|
94 | 90 |
|
95 |
| - |
96 | 91 | .jm-dashboard-job-column.actions {
|
97 |
| - flex: 0.5 1 100%; |
98 | 92 | text-align: right;
|
99 | 93 | display: flex;
|
100 | 94 | justify-content: flex-end;
|
101 | 95 | align-items: center;
|
102 |
| - gap: var(--jm-ui-space-m); |
| 96 | + gap: var(--jm-ui-space-s); |
103 | 97 | }
|
104 | 98 |
|
105 | 99 | .jm-dashboard-job-column a.job-title {
|
106 | 100 | font-weight: 600;
|
107 | 101 | font-size: var(--jm-ui-font-size);
|
108 |
| - line-height: 1.2; |
109 | 102 | text-decoration: unset;
|
110 | 103 | }
|
111 | 104 |
|
112 | 105 | .jm-dashboard-job-column a.job-title:hover {
|
113 | 106 | text-decoration: underline;
|
114 | 107 | }
|
115 | 108 |
|
| 109 | +.jm-dashboard-job-column-label { |
| 110 | + text-transform: uppercase; |
| 111 | + font-size: var(--jm-ui-font-size-s); |
| 112 | + font-weight: 200; |
| 113 | + color: fadeCurrentColor( 70% ); |
| 114 | +} |
| 115 | + |
| 116 | +.jm-dashboard-job .jm-dashboard-job-column-label { |
| 117 | + display: none; |
| 118 | +} |
| 119 | + |
| 120 | +.jm-dashboard small { |
| 121 | + font-size: var(--jm-ui-font-size-s); |
| 122 | +} |
| 123 | + |
| 124 | +.jm-dashboard-table .job_title { |
| 125 | + flex: 1 1 200%; |
| 126 | +} |
| 127 | + |
| 128 | +.jm-dashboard-table--large .job_title { |
| 129 | + flex: 1 1 150%; |
| 130 | +} |
| 131 | + |
116 | 132 | .jm-dashboard-action {
|
117 | 133 | display: block;
|
118 | 134 | text-decoration: none;
|
|
126 | 142 | color: inherit;
|
127 | 143 | }
|
128 | 144 |
|
129 |
| -.job-dashboard-action-delete { |
| 145 | +.jm-dashboard .job-dashboard-action-delete { |
130 | 146 | color: var(--jm-ui-danger-color);
|
131 | 147 | }
|
132 | 148 |
|
133 |
| -@container (width < 540px) |
134 |
| -{ |
| 149 | +.jm-dashboard .job-manager-pagination { |
| 150 | + ul.page-numbers { |
| 151 | + display: flex; |
| 152 | + flex-wrap: wrap; |
| 153 | + align-items: center; |
| 154 | + justify-content: center; |
| 155 | + font-size: var(--jm-ui-font-size); |
| 156 | + border: unset; |
| 157 | + gap: 12px; |
| 158 | + } |
| 159 | + li { |
| 160 | + min-width: 32px; |
| 161 | + text-align: center; |
| 162 | + border: 1px solid var(--jm-ui-border-light); |
| 163 | + border-radius: 2px; |
| 164 | + |
| 165 | + } |
| 166 | +} |
| 167 | + |
| 168 | +@mixin jm-dashboard-job-mobile { |
| 169 | + .jm-dashboard-job-column:where(:not(.job_title):not(.actions):not(.company)) .jm-dashboard-job-column-label { |
| 170 | + display: block; |
| 171 | + } |
135 | 172 | .jm-dashboard-job {
|
136 | 173 | flex-wrap: wrap;
|
137 | 174 | align-items: flex-start;
|
|
149 | 186 | flex-basis: calc( 100% - var(--jm-dashboard-company-logo-size) - var(--jm-ui-space-sm) );
|
150 | 187 | order: -1;
|
151 | 188 | }
|
| 189 | + |
| 190 | +} |
| 191 | + |
| 192 | +@container jm-dashboard-table-large (width < 940px) |
| 193 | +{ |
| 194 | + .jm-dashboard-job-column.job_title { |
| 195 | + flex-basis: 100%; |
| 196 | + } |
| 197 | +} |
| 198 | + |
| 199 | +@container jm-dashboard-table (width < 540px) |
| 200 | +{ |
| 201 | + @include jm-dashboard-job-mobile; |
| 202 | +} |
| 203 | +@container jm-dashboard-table-large (width < 780px) |
| 204 | +{ |
| 205 | + @include jm-dashboard-job-mobile; |
| 206 | +} |
| 207 | + |
| 208 | +@container jm-dashboard-table-large (540px < width < 780px) |
| 209 | +{ |
| 210 | + .jm-dashboard-job-column { |
| 211 | + flex: 1 1 calc(33% - 2 * var(--jm-ui-space-sm)); |
| 212 | + } |
152 | 213 | }
|
0 commit comments