forked from admin/miem_workers
feat: show onboarding tips beside Workers fields
This commit is contained in:
1 parent
39894a6712
commit
c92523f235
15 files changed
+362
-100
No files matched your search
+63
-7
@@ -990,15 +990,71 @@
|
||||
|
||||
.users__history-table .table__cell:nth-child(2) { min-width: 100px; white-space: nowrap; }
|
||||
|
||||
.guide__panel { box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
|
||||
.guide__panel > :not([data-guide-step]) { flex-shrink: 0; }
|
||||
.guide__panel .guide__step { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
||||
.guide__progress { margin-block: 16px; color: #374151; font-variant-numeric: tabular-nums; }
|
||||
.guide__heading { margin-block: 20px 12px; font-size: 18px; }
|
||||
.guide {
|
||||
margin-block: 16px;
|
||||
padding: clamp(12px, 2vw, 20px);
|
||||
border: 1px solid #99d5ce;
|
||||
border-radius: 12px;
|
||||
background: #f0fdfa;
|
||||
color: #164e49;
|
||||
scroll-margin-block: 16px;
|
||||
}
|
||||
.guide__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px 20px;
|
||||
}
|
||||
.guide__progress { margin: 0 0 4px; color: #35615b; font-size: 13px; font-variant-numeric: tabular-nums; }
|
||||
.guide__heading { margin: 0; font-size: 18px; }
|
||||
.guide--page .guide__heading { margin-block: 20px 12px; }
|
||||
.guide__heading:focus-visible { outline: 2px solid #0f766e; outline-offset: 4px; border-radius: 2px; }
|
||||
.guide__intro { max-width: 66ch; margin: 8px 0 0; line-height: 1.5; }
|
||||
.guide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
||||
.guide__actions .button { min-height: 44px; }
|
||||
.guide__field { display: grid; justify-items: start; min-width: 0; }
|
||||
.guide__tip {
|
||||
position: relative;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
max-width: 44ch;
|
||||
margin-block: 7px 2px;
|
||||
padding: 7px 10px;
|
||||
border-radius: 8px;
|
||||
background: #e0f5f1;
|
||||
color: #164e49;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
text-align: start;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.guide__tip::before {
|
||||
position: absolute;
|
||||
inset-block-start: -4px;
|
||||
inset-inline-start: 13px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: inherit;
|
||||
content: "";
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.council__candidate-count .guide__tip { padding-inline: 6px; }
|
||||
.council__search:has(.guide__tip) > .directory__field { align-self: start; }
|
||||
@media (min-width: 701px) {
|
||||
.council__candidate-summary:has(.guide__tip) {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) 18px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 420px) {
|
||||
.council__counts:has(.guide__tip) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
.directory__checkbox:has(.guide__tip) { flex-wrap: wrap; }
|
||||
.directory__checkbox .guide__tip { flex-basis: 100%; }
|
||||
.guide__fields { margin-block: 16px; }
|
||||
.guide__fields dt { margin-block-start: 14px; font-weight: 600; }
|
||||
.guide__fields dd { margin: 4px 0 0; overflow-wrap: anywhere; }
|
||||
.guide__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-block-start: 24px; }
|
||||
.guide--page { max-width: 75ch; }
|
||||
.guide--page .guide__step + .guide__step { margin-block-start: 32px; }
|
||||
.guide .columns-modal__header { flex-wrap: wrap; }
|
||||
Reference in new issue
Block a user