Files
ghatreh_user/src/layouts/desktop/styles/desktop-page-common.less
T
2026-06-29 22:43:28 +03:30

166 lines
3.1 KiB
Plaintext

html.app-layout--desktop {
.dpage {
max-width: 1180px;
margin: 0 auto;
padding: 28px 36px 48px;
box-sizing: border-box;
}
.dpage-topbar {
display: flex;
align-items: flex-start;
gap: 16px;
margin-bottom: 24px;
padding-bottom: 24px;
border-bottom: 1px solid rgba(15, 23, 42, 0.06);
&--sticky {
position: sticky;
top: 0;
z-index: 30;
margin: -4px 0 20px;
padding: 12px 0 20px;
background: #f6f7f9;
}
&__back {
display: inline-flex;
align-items: center;
gap: 8px;
border: none;
background: transparent;
color: #6b7280;
font-size: 13px;
font-weight: 500;
font-family: inherit;
cursor: pointer;
padding: 8px 0;
flex-shrink: 0;
&:hover {
color: #111827;
}
}
&__meta {
flex: 1;
min-width: 0;
}
&__eyebrow {
font-size: 12px;
font-weight: 500;
color: #9ca3af;
margin: 0 0 4px;
}
&__title {
font-size: 26px;
font-weight: 700;
letter-spacing: -0.03em;
color: #111827;
line-height: 1.2;
margin: 0;
}
&__subtitle {
font-size: 14px;
color: #6b7280;
margin: 6px 0 0;
line-height: 1.5;
}
}
/* Hide mobile fixed headers on desktop inner pages */
.fund-info-page-root,
.cart-page-root,
.gift-card-page-root,
.earn-money-page-root,
.physical-receive-page-root,
.product-detail-page-root,
.dinner-page,
.cart-page,
.gift-card-page,
.earn-money-page,
.physical-receive-page,
.product-detail-page,
.about-page-root,
.rules-page-root {
> .wrap-fix,
> div > .wrap-fix,
.transaction-list {
display: none !important;
}
}
.products-page .grid-cols-2 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media screen and (min-width: 1100px) {
.products-page .grid-cols-2 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.dpage-surface {
background: #fff;
border: 1px solid rgba(15, 23, 42, 0.06);
border-radius: 16px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dhome-topbar {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
margin-bottom: 28px;
padding-bottom: 24px;
border-bottom: 1px solid rgba(15, 23, 42, 0.06);
&__eyebrow {
font-size: 12px;
font-weight: 500;
color: #9ca3af;
margin: 0 0 4px;
}
&__title {
font-size: 26px;
font-weight: 600;
letter-spacing: -0.03em;
color: #111827;
line-height: 1.2;
margin: 0;
}
&__actions {
display: flex;
align-items: center;
gap: 8px;
}
}
.dhome-btn-ghost {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border: none;
border-radius: 8px;
background: transparent;
font-family: inherit;
font-size: 13px;
font-weight: 500;
color: #6b7280;
cursor: pointer;
transition: color 0.15s ease, background 0.15s ease;
&:hover {
color: #111827;
background: rgba(15, 23, 42, 0.04);
}
}
}