Spaces:
Running
Running
File size: 3,382 Bytes
72c67b6 c7e3bfd 72c67b6 cfc5919 65f95a5 284c9b4 cfc5919 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | /* Laptop Advisor — custom styles layered on top of Bootstrap 5.
Kept intentionally small; Bootstrap handles the RTL/LTR flip via its
logical properties, so we avoid hard-coded left/right where possible. */
:root {
--la-accent: #0d6efd;
--la-accent-soft: #e7f1ff;
}
body {
background-color: #f6f8fb;
}
.brand-mark {
font-size: 1.4rem;
line-height: 1;
}
/* Accessibility: skip-to-content link */
.skip-link {
position: absolute;
inset-inline-start: 1rem;
top: .5rem;
z-index: 2000;
background: #fff;
padding: .5rem .9rem;
border-radius: .4rem;
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}
/* Landing hero */
.hero {
padding-block: 4rem;
}
.hero h1 {
font-weight: 700;
}
/* Entry-point cards on the landing page */
.entry-card {
display: block;
height: 100%;
border: 1px solid #e3e8ef;
border-radius: 1rem;
background: #fff;
padding: 2rem;
text-decoration: none;
color: inherit;
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.entry-card:hover,
.entry-card:focus-visible {
transform: translateY(-4px);
box-shadow: 0 .75rem 1.5rem rgba(13, 110, 253, .12);
border-color: var(--la-accent);
}
.entry-card .entry-icon {
font-size: 2.5rem;
line-height: 1;
margin-bottom: 1rem;
}
.entry-card.entry-card--advisor {
background: linear-gradient(160deg, var(--la-accent-soft), #fff);
}
/* Catalog cards */
.laptop-card {
transition: transform .15s ease, box-shadow .15s ease;
}
.laptop-card:hover {
transform: translateY(-3px);
box-shadow: 0 .75rem 1.5rem rgba(13, 110, 253, .12) !important;
}
.laptop-card__media img {
max-height: 100%;
max-width: 100%;
}
/* Score bars: subtle highlight for an emphasized row (e.g. the chosen use case) */
.score-row--highlight {
background: var(--la-accent-soft);
border-radius: .4rem;
padding: .35rem .5rem;
margin-inline: -.5rem;
}
/* Plotly charts: keep them inside their card and responsive */
.chart-wrap {
width: 100%;
overflow-x: auto;
}
.chart-wrap .plotly-graph-div {
width: 100% !important;
}
/* Sticky compare bar on the catalog */
.compare-bar {
position: fixed;
inset-inline: 0;
bottom: 0;
z-index: 1030;
}
/* Compare table */
.compare-table .compare-rowhead {
position: sticky;
inset-inline-start: 0;
background: #fff;
min-width: 8rem;
z-index: 1;
}
.compare-table .compare-col {
min-width: 11rem;
}
/* "Our pick" highlighted column */
.compare-col--pick {
background: var(--la-accent-soft) !important;
}
.compare-table th.compare-col--pick {
border-top: 3px solid var(--la-accent);
}
/* Advisor chat */
.advisor-log {
max-height: 60vh;
overflow-y: auto;
padding: .5rem;
background: #f0f3f8;
border-radius: .75rem;
}
.advisor-bubble {
display: inline-block;
max-width: min(90%, 42rem);
padding: .6rem .9rem;
border-radius: 1rem;
line-height: 1.5;
white-space: pre-wrap;
}
.advisor-msg--user .advisor-bubble {
border-bottom-right-radius: .25rem;
}
.advisor-msg--bot .advisor-bubble {
border-bottom-left-radius: .25rem;
}
/* HTMX loading indicator */
.htmx-indicator {
opacity: 0;
transition: opacity .2s ease;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
opacity: 1;
}
|