fix(web): restore travel detail child component styles
This commit is contained in:
289
web/src/assets/styles/components/travel-request-detail-hero.css
Normal file
289
web/src/assets/styles/components/travel-request-detail-hero.css
Normal file
@@ -0,0 +1,289 @@
|
||||
.hero-banner {
|
||||
display: grid;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.hero-banner-main {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr);
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
min-height: 104px;
|
||||
}
|
||||
|
||||
.applicant-card {
|
||||
display: grid;
|
||||
grid-template-columns: 88px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.portrait {
|
||||
width: 88px;
|
||||
height: 88px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 999px;
|
||||
background: #f8fafc;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
|
||||
}
|
||||
|
||||
.portrait img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.applicant-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.applicant-name-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.applicant-card h2 {
|
||||
color: #0f172a;
|
||||
font-size: 20px;
|
||||
font-weight: 900;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.identity-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 24px;
|
||||
padding: 0 9px;
|
||||
border-radius: 4px;
|
||||
background: var(--theme-primary-soft);
|
||||
border: 1px solid rgba(var(--theme-primary-rgb), .16);
|
||||
color: var(--theme-primary-active);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.applicant-profile-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
gap: 12px 28px;
|
||||
}
|
||||
|
||||
.applicant-profile-meta__org {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.applicant-profile-meta__role {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.applicant-meta-item {
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: #475569;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.applicant-profile-meta__role .applicant-meta-item + .applicant-meta-item {
|
||||
margin-left: 16px;
|
||||
}
|
||||
|
||||
.applicant-profile-meta__role .applicant-meta-item + .applicant-meta-item::before {
|
||||
content: "/";
|
||||
position: absolute;
|
||||
left: -10px;
|
||||
color: #cbd5e1;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.applicant-meta-item--sub strong {
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.applicant-meta-item em {
|
||||
font-style: normal;
|
||||
color: #64748b;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.applicant-meta-item strong {
|
||||
color: #0f172a;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.hero-fact-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(0, 1fr));
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.hero-fact {
|
||||
display: grid;
|
||||
align-content: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
min-height: 92px;
|
||||
padding: 8px 22px;
|
||||
background: transparent;
|
||||
border-left: 1px solid #eaf0f6;
|
||||
}
|
||||
|
||||
.hero-fact:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.hero-fact-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .03em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.hero-fact-label i {
|
||||
font-size: 15px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.hero-fact strong {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
color: #0f172a;
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
line-height: 1.4;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hero-fact:first-child strong {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.hero-fact strong.amount {
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.hero-fact strong.status {
|
||||
color: #f97316;
|
||||
}
|
||||
|
||||
@media (max-width: 1320px) {
|
||||
.hero-banner-main {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 16px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.hero-fact-grid {
|
||||
grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(0, 1fr));
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.hero-fact {
|
||||
min-width: 0;
|
||||
padding-inline: 16px;
|
||||
}
|
||||
|
||||
.hero-fact strong {
|
||||
white-space: nowrap;
|
||||
word-break: normal;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.hero-banner-main,
|
||||
.hero-fact-grid,
|
||||
.applicant-card {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.applicant-card {
|
||||
grid-template-columns: 60px minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.portrait {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.applicant-copy {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.applicant-card h2 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.applicant-profile-meta {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.applicant-profile-meta__role {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.applicant-profile-meta__role .applicant-meta-item + .applicant-meta-item {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.applicant-profile-meta__role .applicant-meta-item + .applicant-meta-item::before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.hero-fact-grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0;
|
||||
overflow: hidden;
|
||||
border-top: 1px solid #edf2f7;
|
||||
}
|
||||
|
||||
.hero-fact {
|
||||
min-width: 0;
|
||||
min-height: 78px;
|
||||
padding: 14px 12px 12px;
|
||||
border-left: 0;
|
||||
border-bottom: 1px solid #edf2f7;
|
||||
}
|
||||
|
||||
.hero-fact:nth-child(2n) {
|
||||
border-left: 1px solid #edf2f7;
|
||||
}
|
||||
|
||||
.hero-fact:last-child:nth-child(odd) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.hero-fact:nth-last-child(-n + 2) {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.hero-fact strong {
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user