Add allowCreate prop and create event to TagsSelect component Integrate inline creation for tags, skills, and methods in admin forms
587 lines
8.7 KiB
CSS
587 lines
8.7 KiB
CSS
:root {
|
|
color: #17211b;
|
|
background: #f6f4ee;
|
|
font-family:
|
|
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
min-width: 320px;
|
|
margin: 0;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
.app-shell {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
padding: 16px clamp(16px, 4vw, 48px);
|
|
border-bottom: 1px solid #d7d2c4;
|
|
background: rgba(246, 244, 238, 0.94);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.brand {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: #1d3b2b;
|
|
}
|
|
|
|
.nav-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.nav-tabs a {
|
|
min-width: max-content;
|
|
padding: 8px 12px;
|
|
border-radius: 8px;
|
|
color: #4e5c52;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nav-tabs a.router-link-active {
|
|
background: #1f6f50;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.page {
|
|
width: min(1180px, calc(100% - 32px));
|
|
margin: 0 auto;
|
|
padding: 28px 0 56px;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.page-title {
|
|
margin: 0;
|
|
font-size: clamp(28px, 4vw, 40px);
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.page-subtitle {
|
|
margin: 8px 0 0;
|
|
color: #657067;
|
|
}
|
|
|
|
.toolbar {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(150px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
padding: 16px;
|
|
border: 1px solid #d7d2c4;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.field label {
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
color: #566156;
|
|
}
|
|
|
|
.field input,
|
|
.field select {
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 8px 10px;
|
|
border: 1px solid #c7c0b2;
|
|
border-radius: 8px;
|
|
background: #fffdfa;
|
|
color: #17211b;
|
|
}
|
|
|
|
.tags-select {
|
|
position: relative;
|
|
}
|
|
|
|
.tags-select__trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 6px 10px;
|
|
border: 1px solid #c7c0b2;
|
|
border-radius: 8px;
|
|
background: #fffdfa;
|
|
color: #17211b;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tags-select__trigger.open {
|
|
border-color: #1f6f50;
|
|
box-shadow: 0 0 0 3px rgba(31, 111, 80, 0.12);
|
|
}
|
|
|
|
.tags-select__selected {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.tags-select__tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
min-height: 26px;
|
|
padding: 3px 7px;
|
|
border-color: #9fc9a5;
|
|
border: 1px solid #9fc9a5;
|
|
border-radius: 999px;
|
|
background: #edf7ef;
|
|
color: #1f5c40;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.tags-select__remove {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 18px;
|
|
min-height: 18px;
|
|
border-radius: 999px;
|
|
color: #4e5c52;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tags-select__remove:hover {
|
|
background: rgba(31, 111, 80, 0.12);
|
|
}
|
|
|
|
.tags-select__placeholder {
|
|
color: #8a8275;
|
|
}
|
|
|
|
.tags-select__arrow {
|
|
flex: 0 0 auto;
|
|
color: #657067;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tags-select__dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
z-index: 40;
|
|
display: grid;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-width: 220px;
|
|
padding: 8px;
|
|
border: 1px solid #d7d2c4;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
box-shadow: 0 12px 28px rgba(23, 33, 27, 0.16);
|
|
}
|
|
|
|
.tags-select__search {
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 8px 10px;
|
|
border: 1px solid #c7c0b2;
|
|
border-radius: 8px;
|
|
background: #fffdfa;
|
|
color: #17211b;
|
|
}
|
|
|
|
.tags-select__options {
|
|
display: grid;
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.tags-select__option {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 8px 10px;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: #17211b;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tags-select__option:hover,
|
|
.tags-select__option.selected {
|
|
background: #edf7ef;
|
|
color: #1f5c40;
|
|
}
|
|
|
|
.tags-select__option.selected {
|
|
font-weight: 800;
|
|
}
|
|
|
|
.tags-select__create {
|
|
border-top: 1px solid #ebe6da;
|
|
border-radius: 0;
|
|
color: #1f6f50;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.tags-select__create:hover {
|
|
background: #edf7ef;
|
|
}
|
|
|
|
.tags-select__option:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.tags-select__state {
|
|
flex: 0 0 auto;
|
|
color: #1f6f50;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.tags-select__empty {
|
|
margin: 0;
|
|
padding: 8px 10px;
|
|
color: #657067;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.segmented {
|
|
display: inline-flex;
|
|
width: fit-content;
|
|
padding: 3px;
|
|
border: 1px solid #c7c0b2;
|
|
border-radius: 8px;
|
|
background: #f1eee5;
|
|
}
|
|
|
|
.segmented button {
|
|
min-width: 52px;
|
|
min-height: 32px;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: #566156;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.segmented button.active {
|
|
background: #ffffff;
|
|
color: #1f6f50;
|
|
font-weight: 800;
|
|
box-shadow: 0 1px 4px rgba(31, 111, 80, 0.16);
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.entity-card,
|
|
.detail-section {
|
|
border: 1px solid #d7d2c4;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.entity-card {
|
|
display: grid;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.entity-card h2,
|
|
.entity-card h3,
|
|
.detail-section h2 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.meta-line {
|
|
margin: 0;
|
|
color: #657067;
|
|
}
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 28px;
|
|
padding: 4px 8px;
|
|
border: 1px solid #cddfce;
|
|
border-radius: 999px;
|
|
background: #edf7ef;
|
|
color: #1f5c40;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.detail-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 14px;
|
|
}
|
|
|
|
.detail-section {
|
|
padding: 18px;
|
|
}
|
|
|
|
.detail-section h2 {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.row-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.row-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid #ebe6da;
|
|
}
|
|
|
|
.row-list li:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.appearance-list li {
|
|
display: grid;
|
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
align-items: start;
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.appearance-name {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.appearance-summary {
|
|
display: grid;
|
|
gap: 4px;
|
|
width: 100%;
|
|
margin: 0;
|
|
color: #657067;
|
|
text-align: left;
|
|
}
|
|
|
|
.appearance-summary div {
|
|
display: grid;
|
|
grid-template-columns: 72px minmax(0, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.appearance-summary dt,
|
|
.appearance-summary dd {
|
|
margin: 0;
|
|
}
|
|
|
|
.appearance-summary dt {
|
|
color: #566156;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.link-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 36px;
|
|
width: fit-content;
|
|
padding: 7px 12px;
|
|
border-radius: 8px;
|
|
background: #a83f39;
|
|
color: #ffffff;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.status {
|
|
padding: 18px;
|
|
border: 1px solid #d7d2c4;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
color: #657067;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.tabs button {
|
|
min-height: 40px;
|
|
padding: 8px 14px;
|
|
border: 1px solid #c7c0b2;
|
|
border-radius: 8px;
|
|
background: #fffdfa;
|
|
color: #566156;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tabs button.active {
|
|
border-color: #1f6f50;
|
|
background: #1f6f50;
|
|
color: #ffffff;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.admin-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(320px, 420px) 1fr;
|
|
gap: 14px;
|
|
align-items: start;
|
|
}
|
|
|
|
.form-actions,
|
|
.row-actions,
|
|
.check-row,
|
|
.inline-row,
|
|
.appearance-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-actions,
|
|
.check-row {
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.row-actions {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.row-actions button,
|
|
.plain-button,
|
|
.inline-row button,
|
|
.appearance-row button {
|
|
min-height: 34px;
|
|
padding: 6px 10px;
|
|
border: 1px solid #c7c0b2;
|
|
border-radius: 8px;
|
|
background: #fffdfa;
|
|
color: #4e5c52;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.plain-button {
|
|
width: fit-content;
|
|
}
|
|
|
|
.inline-row {
|
|
align-items: center;
|
|
}
|
|
|
|
.inline-row select {
|
|
flex: 1;
|
|
}
|
|
|
|
.inline-row input {
|
|
width: 90px;
|
|
}
|
|
|
|
.appearance-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
padding: 12px;
|
|
border: 1px solid #ebe6da;
|
|
border-radius: 8px;
|
|
background: #faf8f1;
|
|
}
|
|
|
|
.appearance-row input {
|
|
min-width: 64px;
|
|
}
|
|
|
|
button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.topbar {
|
|
align-items: start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.page-header {
|
|
align-items: start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.toolbar,
|
|
.detail-grid,
|
|
.admin-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.appearance-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.appearance-list li {
|
|
align-items: start;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.appearance-list {
|
|
overflow-x: auto;
|
|
}
|
|
}
|