| 1 |
/* Styles for the COLMAP landing page: hero, feature cards, and the interactive |
| 2 |
install selector. Colors are derived from pydata-sphinx-theme CSS variables so |
| 3 |
everything adapts automatically to light and dark mode. */ |
| 4 |
|
| 5 |
/* ------------------------------------------------------------------ Hero --- */ |
| 6 |
|
| 7 |
/* Center and enlarge the page title so it reads as a hero wordmark. The |
| 8 |
`.. rst-class:: hero__title` directive normalizes to the class `hero-title` |
| 9 |
and applies it to the wrapping <section>, so we scope to its direct-child |
| 10 |
<h1> only (never the whole section, which contains the rest of the page). */ |
| 11 |
section.hero-title > h1 { |
| 12 |
text-align: center; |
| 13 |
font-size: 3rem; |
| 14 |
font-weight: 800; |
| 15 |
letter-spacing: 0.06em; |
| 16 |
margin: 2rem 0 0.25rem; |
| 17 |
} |
| 18 |
|
| 19 |
/* Hide the anchor "#" link on the hero title. */ |
| 20 |
section.hero-title > h1 > a.headerlink { |
| 21 |
display: none; |
| 22 |
} |
| 23 |
|
| 24 |
.hero { |
| 25 |
text-align: center; |
| 26 |
padding: 0.5rem 1rem 1rem; |
| 27 |
max-width: 900px; |
| 28 |
margin: 0 auto; |
| 29 |
} |
| 30 |
|
| 31 |
/* Hero figure (reuses the existing sparse-reconstruction screenshot). */ |
| 32 |
.hero-figure { |
| 33 |
max-width: 900px; |
| 34 |
margin: 0.5rem auto 1rem; |
| 35 |
text-align: center; |
| 36 |
} |
| 37 |
|
| 38 |
.hero-figure img.hero__image { |
| 39 |
width: 100%; |
| 40 |
border-radius: 0.75rem; |
| 41 |
border: 1px solid var(--pst-color-border); |
| 42 |
} |
| 43 |
|
| 44 |
.hero-figure figcaption, |
| 45 |
.hero-figure .caption { |
| 46 |
font-size: 0.85rem; |
| 47 |
color: var(--pst-color-text-muted); |
| 48 |
margin-top: 0.5rem; |
| 49 |
} |
| 50 |
|
| 51 |
.hero__logo { |
| 52 |
width: 84px; |
| 53 |
height: 84px; |
| 54 |
margin-bottom: 1rem; |
| 55 |
} |
| 56 |
|
| 57 |
.hero__title { |
| 58 |
font-size: 3rem; |
| 59 |
font-weight: 800; |
| 60 |
letter-spacing: 0.06em; |
| 61 |
margin: 0 0 0.25rem; |
| 62 |
line-height: 1.1; |
| 63 |
} |
| 64 |
|
| 65 |
.hero__tagline { |
| 66 |
font-size: 1.35rem; |
| 67 |
font-weight: 600; |
| 68 |
color: var(--pst-color-primary); |
| 69 |
margin: 0 0 1rem; |
| 70 |
} |
| 71 |
|
| 72 |
.hero__desc { |
| 73 |
font-size: 1.05rem; |
| 74 |
color: var(--pst-color-text-muted); |
| 75 |
max-width: 680px; |
| 76 |
margin: 0 auto 1.75rem; |
| 77 |
} |
| 78 |
|
| 79 |
.hero__cta { |
| 80 |
display: flex; |
| 81 |
flex-wrap: wrap; |
| 82 |
gap: 0.75rem; |
| 83 |
justify-content: center; |
| 84 |
margin-bottom: 2rem; |
| 85 |
} |
| 86 |
|
| 87 |
.hero__cta a { |
| 88 |
display: inline-block; |
| 89 |
padding: 0.6rem 1.4rem; |
| 90 |
border-radius: 0.5rem; |
| 91 |
font-weight: 600; |
| 92 |
text-decoration: none; |
| 93 |
border: 1px solid var(--pst-color-primary); |
| 94 |
transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease; |
| 95 |
} |
| 96 |
|
| 97 |
.hero__cta a:hover { |
| 98 |
transform: translateY(-1px); |
| 99 |
text-decoration: none; |
| 100 |
} |
| 101 |
|
| 102 |
.hero__cta a.hero__cta--primary { |
| 103 |
background: var(--pst-color-primary); |
| 104 |
color: #fff; |
| 105 |
} |
| 106 |
|
| 107 |
.hero__cta a.hero__cta--primary:hover { |
| 108 |
background: var(--pst-color-primary-highlight, var(--pst-color-primary)); |
| 109 |
} |
| 110 |
|
| 111 |
.hero__cta a.hero__cta--secondary { |
| 112 |
background: transparent; |
| 113 |
color: var(--pst-color-primary); |
| 114 |
} |
| 115 |
|
| 116 |
.hero__cta a.hero__cta--secondary:hover { |
| 117 |
background: var(--pst-color-surface); |
| 118 |
} |
| 119 |
|
| 120 |
.hero__image { |
| 121 |
width: 100%; |
| 122 |
border-radius: 0.75rem; |
| 123 |
border: 1px solid var(--pst-color-border); |
| 124 |
margin-top: 0.5rem; |
| 125 |
} |
| 126 |
|
| 127 |
.hero__image-caption { |
| 128 |
font-size: 0.85rem; |
| 129 |
color: var(--pst-color-text-muted); |
| 130 |
margin-top: 0.5rem; |
| 131 |
} |
| 132 |
|
| 133 |
/* Section headings on the landing page. */ |
| 134 |
.landing-section-title { |
| 135 |
text-align: center; |
| 136 |
font-size: 1.9rem; |
| 137 |
font-weight: 700; |
| 138 |
margin: 3rem 0 0.5rem; |
| 139 |
} |
| 140 |
|
| 141 |
.landing-section-subtitle { |
| 142 |
text-align: center; |
| 143 |
color: var(--pst-color-text-muted); |
| 144 |
margin: 0 auto 1.5rem; |
| 145 |
max-width: 640px; |
| 146 |
} |
| 147 |
|
| 148 |
/* ------------------------------------------------------ Install selector --- */ |
| 149 |
|
| 150 |
.cis { |
| 151 |
max-width: 780px; |
| 152 |
margin: 0 auto 1rem; |
| 153 |
border: 1px solid var(--pst-color-border); |
| 154 |
border-radius: 0.75rem; |
| 155 |
padding: 1.25rem 1.5rem 1.5rem; |
| 156 |
background: var(--pst-color-surface); |
| 157 |
} |
| 158 |
|
| 159 |
.cis__row { |
| 160 |
display: flex; |
| 161 |
align-items: flex-start; |
| 162 |
gap: 1rem; |
| 163 |
padding: 0.5rem 0; |
| 164 |
} |
| 165 |
|
| 166 |
.cis__row + .cis__row { |
| 167 |
border-top: 1px solid var(--pst-color-border); |
| 168 |
} |
| 169 |
|
| 170 |
.cis__label { |
| 171 |
flex: 0 0 92px; |
| 172 |
padding-top: 0.4rem; |
| 173 |
font-size: 0.8rem; |
| 174 |
font-weight: 700; |
| 175 |
text-transform: uppercase; |
| 176 |
letter-spacing: 0.04em; |
| 177 |
color: var(--pst-color-text-muted); |
| 178 |
} |
| 179 |
|
| 180 |
.cis__options { |
| 181 |
display: flex; |
| 182 |
flex-wrap: wrap; |
| 183 |
gap: 0.5rem; |
| 184 |
} |
| 185 |
|
| 186 |
.cis__btn { |
| 187 |
cursor: pointer; |
| 188 |
padding: 0.4rem 0.95rem; |
| 189 |
border-radius: 2rem; |
| 190 |
border: 1px solid var(--pst-color-border); |
| 191 |
background: var(--pst-color-background); |
| 192 |
color: var(--pst-color-text-base); |
| 193 |
font-size: 0.92rem; |
| 194 |
font-weight: 500; |
| 195 |
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; |
| 196 |
} |
| 197 |
|
| 198 |
.cis__btn:hover:not(.cis__btn--disabled):not(.cis__btn--active) { |
| 199 |
border-color: var(--pst-color-primary); |
| 200 |
color: var(--pst-color-primary); |
| 201 |
} |
| 202 |
|
| 203 |
.cis__btn--active { |
| 204 |
background: var(--pst-color-primary); |
| 205 |
border-color: var(--pst-color-primary); |
| 206 |
color: #fff; |
| 207 |
} |
| 208 |
|
| 209 |
.cis__btn--disabled { |
| 210 |
opacity: 0.4; |
| 211 |
cursor: not-allowed; |
| 212 |
} |
| 213 |
|
| 214 |
.cis__output { |
| 215 |
margin-top: 1rem; |
| 216 |
} |
| 217 |
|
| 218 |
.cis__cmd { |
| 219 |
display: flex; |
| 220 |
align-items: center; |
| 221 |
justify-content: space-between; |
| 222 |
gap: 1rem; |
| 223 |
background: var(--pst-color-on-background, var(--pst-color-background)); |
| 224 |
border: 1px solid var(--pst-color-border); |
| 225 |
border-radius: 0.5rem; |
| 226 |
padding: 0.75rem 1rem; |
| 227 |
} |
| 228 |
|
| 229 |
.cis__cmd code { |
| 230 |
background: transparent; |
| 231 |
border: none; |
| 232 |
padding: 0; |
| 233 |
font-size: 0.95rem; |
| 234 |
color: var(--pst-color-text-base); |
| 235 |
overflow-x: auto; |
| 236 |
white-space: nowrap; |
| 237 |
} |
| 238 |
|
| 239 |
.cis__prompt { |
| 240 |
color: var(--pst-color-text-muted); |
| 241 |
user-select: none; |
| 242 |
margin-right: 0.4rem; |
| 243 |
} |
| 244 |
|
| 245 |
.cis__copy { |
| 246 |
flex: 0 0 auto; |
| 247 |
cursor: pointer; |
| 248 |
padding: 0.35rem 0.85rem; |
| 249 |
border-radius: 0.4rem; |
| 250 |
border: 1px solid var(--pst-color-primary); |
| 251 |
background: transparent; |
| 252 |
color: var(--pst-color-primary); |
| 253 |
font-size: 0.85rem; |
| 254 |
font-weight: 600; |
| 255 |
} |
| 256 |
|
| 257 |
.cis__copy:hover { |
| 258 |
background: var(--pst-color-primary); |
| 259 |
color: #fff; |
| 260 |
} |
| 261 |
|
| 262 |
.cis__link { |
| 263 |
display: inline-block; |
| 264 |
padding: 0.55rem 1.2rem; |
| 265 |
border-radius: 0.5rem; |
| 266 |
background: var(--pst-color-primary); |
| 267 |
color: #fff !important; |
| 268 |
font-weight: 600; |
| 269 |
text-decoration: none; |
| 270 |
} |
| 271 |
|
| 272 |
.cis__link:hover { |
| 273 |
text-decoration: none; |
| 274 |
filter: brightness(1.08); |
| 275 |
} |
| 276 |
|
| 277 |
.cis__note { |
| 278 |
margin: 0.75rem 0 0; |
| 279 |
font-size: 0.88rem; |
| 280 |
color: var(--pst-color-text-muted); |
| 281 |
} |
| 282 |
|
| 283 |
@media (max-width: 500px) { |
| 284 |
.cis__row { |
| 285 |
flex-direction: column; |
| 286 |
gap: 0.4rem; |
| 287 |
} |
| 288 |
.cis__label { |
| 289 |
flex: none; |
| 290 |
padding-top: 0; |
| 291 |
} |
| 292 |
.hero__title { |
| 293 |
font-size: 2.25rem; |
| 294 |
} |
| 295 |
} |