mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-30 01:29:07 -05:00
1450 lines
30 KiB
SCSS
1450 lines
30 KiB
SCSS
/*-- scss:defaults --*/
|
|
|
|
// =============================================================================
|
|
// HARDWARE KITS STYLES
|
|
// =============================================================================
|
|
// Uses shared base styles from _brand/ with teal accent color
|
|
// =============================================================================
|
|
|
|
// Brand colors (from _brand/tokens.scss)
|
|
$brand-crimson: #A51C30;
|
|
$kits-accent: #148F77; // Teal - hardware/practical
|
|
$textbook-accent: #1B4F72; // Navy - academic
|
|
|
|
// Set the accent color for this project (used by base.scss)
|
|
$accent-color: $kits-accent;
|
|
|
|
// Override Bootstrap/Quarto primary colors
|
|
$primary: $kits-accent;
|
|
$secondary: $textbook-accent;
|
|
$link-color: $kits-accent;
|
|
|
|
// Typography
|
|
$font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
$font-family-monospace: 'JetBrains Mono', 'Fira Code', monospace;
|
|
|
|
// Callout colors (unified theme with teal primary)
|
|
$callout-primary: $kits-accent;
|
|
$callout-info: #4f7396;
|
|
$callout-success: #4a7c59;
|
|
$callout-caution: #b8860b;
|
|
$callout-secondary: #64748b;
|
|
|
|
// Light background tints for callouts
|
|
$callout-primary-bg: rgba($callout-primary, 0.08);
|
|
$callout-info-bg: rgba($callout-info, 0.08);
|
|
$callout-success-bg: rgba($callout-success, 0.08);
|
|
$callout-caution-bg: rgba($callout-caution, 0.08);
|
|
$callout-secondary-bg: rgba($callout-secondary, 0.08);
|
|
|
|
/*-- scss:rules --*/
|
|
|
|
// =============================================================================
|
|
// CALLOUT STYLING (matching book exactly, with teal accent)
|
|
// =============================================================================
|
|
|
|
.callout {
|
|
margin: 1.25rem 0 !important;
|
|
border-radius: 0.5rem !important;
|
|
border-left-width: 5px !important;
|
|
font-size: 0.9rem !important;
|
|
box-shadow: 0 2px 8px rgba(20, 143, 119, 0.1) !important;
|
|
|
|
.callout-header {
|
|
padding: 0.5rem 0.85rem !important;
|
|
font-weight: 400 !important;
|
|
font-size: 0.9rem !important;
|
|
line-height: 1.3 !important;
|
|
}
|
|
|
|
.callout-title-container {
|
|
font-weight: bold !important;
|
|
}
|
|
|
|
.callout-body {
|
|
padding: 0.75rem 0.85rem !important;
|
|
line-height: 1.5 !important;
|
|
}
|
|
}
|
|
|
|
.callout-note,
|
|
.callout.callout-style-default.callout-note {
|
|
border-left-color: $callout-info !important;
|
|
|
|
.callout-icon .bi,
|
|
.callout-icon i {
|
|
color: $callout-info !important;
|
|
}
|
|
|
|
.callout-header {
|
|
background-color: $callout-info-bg !important;
|
|
}
|
|
}
|
|
|
|
.callout-tip,
|
|
.callout.callout-style-default.callout-tip {
|
|
border-left-color: $callout-success !important;
|
|
|
|
.callout-icon .bi,
|
|
.callout-icon i {
|
|
color: $callout-success !important;
|
|
}
|
|
|
|
.callout-header {
|
|
background-color: $callout-success-bg !important;
|
|
}
|
|
}
|
|
|
|
.callout-important,
|
|
.callout.callout-style-default.callout-important {
|
|
border-left-color: $callout-primary !important;
|
|
|
|
.callout-icon .bi,
|
|
.callout-icon i {
|
|
color: $callout-primary !important;
|
|
}
|
|
|
|
.callout-header {
|
|
background-color: $callout-primary-bg !important;
|
|
}
|
|
}
|
|
|
|
.callout-caution,
|
|
.callout-warning,
|
|
.callout.callout-style-default.callout-caution,
|
|
.callout.callout-style-default.callout-warning {
|
|
border-left-color: $callout-caution !important;
|
|
|
|
.callout-icon .bi,
|
|
.callout-icon i {
|
|
color: $callout-caution !important;
|
|
}
|
|
|
|
.callout-header {
|
|
background-color: $callout-caution-bg !important;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LINK STYLES
|
|
// =============================================================================
|
|
|
|
a {
|
|
color: $kits-accent;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: darken($kits-accent, 15%);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
&:visited {
|
|
color: darken($kits-accent, 10%);
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// DARK MODE TOGGLE
|
|
// =============================================================================
|
|
|
|
.quarto-color-scheme-toggle {
|
|
color: #6c757d !important;
|
|
|
|
&:hover {
|
|
color: $kits-accent !important;
|
|
}
|
|
}
|
|
|
|
// Moon icon in light mode (indicates "switch to dark mode")
|
|
.quarto-color-scheme-toggle:not(.alternate) .bi::before {
|
|
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234a5568" class="bi bi-moon-stars-fill" viewBox="0 0 16 16"><path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"/><path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"/></svg>') !important;
|
|
background-size: contain !important;
|
|
background-repeat: no-repeat !important;
|
|
background-position: center !important;
|
|
content: "" !important;
|
|
display: inline-block !important;
|
|
width: 1em !important;
|
|
height: 1em !important;
|
|
}
|
|
|
|
// =============================================================================
|
|
// NAVIGATION STYLES
|
|
// =============================================================================
|
|
|
|
.navbar-nav .nav-link {
|
|
color: #6c757d !important;
|
|
font-weight: 400;
|
|
|
|
&:hover {
|
|
color: $kits-accent !important;
|
|
}
|
|
|
|
&.active:not(.dropdown-toggle) {
|
|
color: $kits-accent !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
&:visited {
|
|
color: #6c757d !important;
|
|
}
|
|
|
|
&.dropdown-toggle {
|
|
color: #6c757d !important;
|
|
|
|
&:visited, &:focus, &.active {
|
|
color: #6c757d !important;
|
|
font-weight: 400 !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// SIDEBAR STYLES
|
|
// =============================================================================
|
|
|
|
.sidebar-navigation .sidebar-item a {
|
|
color: #495057;
|
|
font-weight: 400;
|
|
display: block;
|
|
padding: 2px 6px;
|
|
margin: 0.5px 0;
|
|
border-radius: 3px;
|
|
transition: all 0.15s ease;
|
|
|
|
&:hover {
|
|
color: $kits-accent;
|
|
background-color: rgba($kits-accent, 0.08);
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
&.active,
|
|
&[aria-current="page"] {
|
|
color: $kits-accent;
|
|
font-weight: 500;
|
|
background-color: rgba($kits-accent, 0.12);
|
|
}
|
|
}
|
|
|
|
.sidebar-navigation .sidebar-item a[data-bs-toggle="collapse"] {
|
|
font-weight: 500;
|
|
color: #2c3e50;
|
|
font-size: 0.9rem;
|
|
letter-spacing: 0.01em;
|
|
|
|
&:hover {
|
|
color: $kits-accent;
|
|
background-color: rgba($kits-accent, 0.08);
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transform: translateX(2px);
|
|
}
|
|
}
|
|
|
|
// Sidebar title styling
|
|
.sidebar-title {
|
|
font-weight: 600;
|
|
color: $kits-accent;
|
|
border-bottom: 2px solid $kits-accent;
|
|
padding-bottom: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
// =============================================================================
|
|
// HEADER STYLES (matching book with teal accent)
|
|
// =============================================================================
|
|
|
|
.content h2,
|
|
main h2,
|
|
article h2,
|
|
#quarto-content h2 {
|
|
border-left: 5px solid $kits-accent;
|
|
border-bottom: 1px solid rgba($kits-accent, 0.3);
|
|
padding-left: 16px;
|
|
padding-bottom: 8px;
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.content h3,
|
|
main h3,
|
|
article h3,
|
|
#quarto-content h3 {
|
|
border-left: 4px solid $kits-accent;
|
|
border-bottom: 1px solid rgba($kits-accent, 0.25);
|
|
padding-left: 14px;
|
|
padding-bottom: 6px;
|
|
margin-top: 1.5rem;
|
|
margin-bottom: 0.75rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.content h4,
|
|
main h4,
|
|
article h4,
|
|
#quarto-content h4 {
|
|
border-left: 3px solid $kits-accent;
|
|
border-bottom: 1px solid rgba($kits-accent, 0.2);
|
|
padding-left: 12px;
|
|
padding-bottom: 4px;
|
|
margin-top: 1.25rem;
|
|
margin-bottom: 0.5rem;
|
|
color: #34495e;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.content h5,
|
|
main h5,
|
|
article h5,
|
|
#quarto-content h5 {
|
|
border-left: 2px solid $kits-accent;
|
|
border-bottom: 1px solid rgba($kits-accent, 0.15);
|
|
padding-left: 10px;
|
|
padding-bottom: 3px;
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.4rem;
|
|
color: #5a6c7d;
|
|
font-weight: 500;
|
|
}
|
|
|
|
// =============================================================================
|
|
// TABLE OF CONTENTS (Right sidebar)
|
|
// =============================================================================
|
|
|
|
.table-of-contents,
|
|
#TOC,
|
|
.quarto-toc,
|
|
nav[role="doc-toc"] {
|
|
font-size: 0.85rem;
|
|
line-height: 1.6;
|
|
border-left: 3px solid $kits-accent;
|
|
padding-left: 1.5rem;
|
|
margin-left: 0.5rem;
|
|
|
|
h2, h3, h4, h5, h6 {
|
|
border-left: none !important;
|
|
padding-left: 0 !important;
|
|
}
|
|
|
|
a,
|
|
.nav-link {
|
|
color: #495057;
|
|
font-weight: 400;
|
|
text-decoration: none;
|
|
display: block;
|
|
padding: 0.2rem 0;
|
|
transition: all 0.15s ease;
|
|
border: none !important;
|
|
|
|
&:hover {
|
|
color: $kits-accent;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
|
|
> ul > li > a {
|
|
font-weight: 500;
|
|
color: #2c3e50;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
ul ul a {
|
|
font-size: 0.8rem;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.active,
|
|
.nav-link.active {
|
|
color: $kits-accent !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// BUTTON STYLES
|
|
// =============================================================================
|
|
|
|
.btn-primary {
|
|
background-color: $kits-accent;
|
|
border-color: $kits-accent;
|
|
|
|
&:hover {
|
|
background-color: darken($kits-accent, 15%);
|
|
border-color: darken($kits-accent, 15%);
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// TABLE STYLES
|
|
// =============================================================================
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 1.5rem 0;
|
|
font-size: 0.9rem;
|
|
|
|
th {
|
|
background-color: #f8f9fa;
|
|
font-weight: 600;
|
|
text-align: left;
|
|
padding: 12px 16px;
|
|
border-bottom: 2px solid #e9ecef;
|
|
}
|
|
|
|
td {
|
|
text-align: left;
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid #e9ecef;
|
|
vertical-align: top;
|
|
}
|
|
|
|
tbody tr:nth-child(even) {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background-color: #e9ecef;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// FIGURE STYLES
|
|
// =============================================================================
|
|
|
|
figure {
|
|
margin-top: 2rem !important;
|
|
margin-bottom: 1.5rem !important;
|
|
}
|
|
|
|
.figure-caption,
|
|
.caption,
|
|
figure figcaption {
|
|
margin-top: 1rem !important;
|
|
font-size: 0.9rem !important;
|
|
color: #666 !important;
|
|
line-height: 1.4 !important;
|
|
text-align: left !important;
|
|
}
|
|
|
|
// Image styling for hardware photos
|
|
.quarto-figure img {
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
// =============================================================================
|
|
// KITS-SPECIFIC STYLING
|
|
// =============================================================================
|
|
|
|
// Hardware info boxes
|
|
.hardware-info {
|
|
background: linear-gradient(135deg, rgba($kits-accent, 0.05) 0%, rgba($kits-accent, 0.02) 100%);
|
|
border: 1px solid rgba($kits-accent, 0.2);
|
|
border-left: 4px solid $kits-accent;
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - ABSTRACT SECTION (matching Book style)
|
|
// =============================================================================
|
|
|
|
.abstract-section {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 2.5rem;
|
|
margin: 1.5rem 0 2.5rem 0;
|
|
}
|
|
|
|
.abstract-content {
|
|
flex: 1;
|
|
|
|
p {
|
|
font-size: 1rem;
|
|
line-height: 1.7;
|
|
color: #374151;
|
|
margin: 0;
|
|
text-align: justify;
|
|
}
|
|
}
|
|
|
|
.kits-card {
|
|
flex-shrink: 0;
|
|
width: 200px;
|
|
background: #ffffff;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
padding: 1rem;
|
|
text-align: center;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
|
|
}
|
|
}
|
|
|
|
.kits-image {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 8px;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.kits-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.kits-title {
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 0 0 0.25rem 0;
|
|
}
|
|
|
|
.kits-subtitle {
|
|
font-size: 0.8rem;
|
|
color: #64748b;
|
|
margin: 0;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.abstract-section {
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.kits-card {
|
|
width: 100%;
|
|
max-width: 250px;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - HERO SECTION (legacy - can be removed if not used)
|
|
// =============================================================================
|
|
|
|
.kits-hero {
|
|
background: linear-gradient(135deg, #0f4c40 0%, #148F77 50%, #1abc9c 100%);
|
|
border-radius: 1rem;
|
|
padding: 3rem 2.5rem;
|
|
margin: -1rem -0.5rem 2.5rem -0.5rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 32px rgba(20, 143, 119, 0.25);
|
|
}
|
|
|
|
.hero-content {
|
|
position: relative;
|
|
z-index: 2;
|
|
max-width: 700px;
|
|
}
|
|
|
|
.hero-badge {
|
|
display: inline-block;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 2rem;
|
|
padding: 0.4rem 1rem;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin-bottom: 1rem;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 2.75rem;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
margin: 0 0 1rem 0;
|
|
line-height: 1.2;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1.15rem;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
line-height: 1.6;
|
|
margin: 0 0 1.5rem 0;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.hero-stats {
|
|
display: flex;
|
|
gap: 2rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
line-height: 1;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.hero-cta {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.cta-primary {
|
|
display: inline-block;
|
|
background: #ffffff;
|
|
color: #0f4c40;
|
|
padding: 0.875rem 2rem;
|
|
border-radius: 0.5rem;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
|
&:hover {
|
|
background: #f8f9fa;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
|
|
text-decoration: none;
|
|
color: #0f4c40;
|
|
}
|
|
}
|
|
|
|
.cta-secondary {
|
|
display: inline-block;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
color: #ffffff;
|
|
padding: 0.875rem 2rem;
|
|
border-radius: 0.5rem;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
transition: all 0.2s ease;
|
|
|
|
&:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
text-decoration: none;
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
|
|
.hero-visual {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 40%;
|
|
opacity: 0.15;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.circuit-pattern {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: -10%;
|
|
transform: translateY(-50%);
|
|
width: 400px;
|
|
height: 400px;
|
|
background-image:
|
|
radial-gradient(circle at 20% 20%, #fff 2px, transparent 2px),
|
|
radial-gradient(circle at 80% 40%, #fff 2px, transparent 2px),
|
|
radial-gradient(circle at 40% 80%, #fff 2px, transparent 2px),
|
|
radial-gradient(circle at 60% 60%, #fff 3px, transparent 3px),
|
|
linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.3) 49%, rgba(255,255,255,0.3) 51%, transparent 51%),
|
|
linear-gradient(0deg, transparent 49%, rgba(255,255,255,0.3) 49%, rgba(255,255,255,0.3) 51%, transparent 51%);
|
|
background-size: 80px 80px;
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - SECTION STYLING
|
|
// =============================================================================
|
|
|
|
.section-title {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
color: #1e293b;
|
|
text-align: center;
|
|
margin: 0 0 0.5rem 0;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.section-subtitle {
|
|
text-align: center;
|
|
color: #64748b;
|
|
font-size: 1rem;
|
|
margin: 0 0 2rem 0;
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - WHY SECTION
|
|
// =============================================================================
|
|
|
|
.why-section {
|
|
margin: 3rem 0;
|
|
}
|
|
|
|
.why-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.why-card {
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
text-align: center;
|
|
transition: all 0.2s ease;
|
|
|
|
&:hover {
|
|
border-color: $kits-accent;
|
|
box-shadow: 0 4px 12px rgba(20, 143, 119, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.why-icon {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 0 0 0.5rem 0;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
p {
|
|
font-size: 0.85rem;
|
|
color: #64748b;
|
|
margin: 0;
|
|
line-height: 1.5;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - PLATFORMS SECTION
|
|
// =============================================================================
|
|
|
|
.platforms-section {
|
|
margin: 3rem 0;
|
|
}
|
|
|
|
.platform-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.platform-card {
|
|
background: #ffffff;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
text-decoration: none;
|
|
transition: all 0.25s ease;
|
|
display: block;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.platform-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.platform-badge {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
padding: 0.25rem 0.6rem;
|
|
border-radius: 1rem;
|
|
background: #e2e8f0;
|
|
color: #64748b;
|
|
}
|
|
|
|
.platform-price {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
}
|
|
|
|
.platform-icon {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0.75rem;
|
|
text-align: center;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 0 0 0.5rem 0;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
p {
|
|
font-size: 0.85rem;
|
|
color: #64748b;
|
|
line-height: 1.5;
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
.platform-specs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.spec {
|
|
font-size: 0.7rem;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 0.25rem;
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
}
|
|
|
|
// Platform-specific accent colors
|
|
&.arduino {
|
|
&:hover {
|
|
border-color: #00979D;
|
|
}
|
|
.platform-badge {
|
|
background: rgba(0, 151, 157, 0.1);
|
|
color: #00979D;
|
|
}
|
|
}
|
|
|
|
&.seeed {
|
|
&:hover {
|
|
border-color: #91C83E;
|
|
}
|
|
.platform-badge {
|
|
background: rgba(145, 200, 62, 0.15);
|
|
color: #6b9b2d;
|
|
}
|
|
}
|
|
|
|
&.grove {
|
|
&:hover {
|
|
border-color: #4CAF50;
|
|
}
|
|
.platform-badge {
|
|
background: rgba(76, 175, 80, 0.1);
|
|
color: #388E3C;
|
|
}
|
|
}
|
|
|
|
&.raspi {
|
|
&:hover {
|
|
border-color: #C51A4A;
|
|
}
|
|
.platform-badge {
|
|
background: rgba(197, 26, 74, 0.1);
|
|
color: #C51A4A;
|
|
}
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - CAPABILITIES SECTION
|
|
// =============================================================================
|
|
|
|
.capabilities-section {
|
|
margin: 3rem 0;
|
|
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
|
border-radius: 1rem;
|
|
padding: 2.5rem;
|
|
}
|
|
|
|
.capability-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.capability-card {
|
|
background: #ffffff;
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
text-align: center;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
|
|
.capability-icon {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 0 0 0.5rem 0;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
p {
|
|
font-size: 0.8rem;
|
|
color: #64748b;
|
|
margin: 0 0 1rem 0;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.capability-platforms {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.platform-dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
cursor: help;
|
|
|
|
&.arduino { background: #00979D; }
|
|
&.seeed { background: #91C83E; }
|
|
&.grove { background: #4CAF50; }
|
|
&.raspi { background: #C51A4A; }
|
|
|
|
&.inactive {
|
|
background: #e2e8f0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - LEARNING PATH SECTION
|
|
// =============================================================================
|
|
|
|
.path-section {
|
|
margin: 3rem 0;
|
|
}
|
|
|
|
.path-steps {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
gap: 0;
|
|
}
|
|
|
|
.path-step {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
flex: 1;
|
|
max-width: 250px;
|
|
|
|
.step-number {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: linear-gradient(135deg, $kits-accent 0%, darken($kits-accent, 10%) 100%);
|
|
color: #ffffff;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
box-shadow: 0 4px 12px rgba(20, 143, 119, 0.3);
|
|
}
|
|
|
|
.step-content {
|
|
h3 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 0 0 0.5rem 0;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
p {
|
|
font-size: 0.85rem;
|
|
color: #64748b;
|
|
margin: 0 0 0.75rem 0;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
a {
|
|
font-size: 0.85rem;
|
|
color: $kits-accent;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.path-connector {
|
|
width: 60px;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, $kits-accent 0%, rgba(20, 143, 119, 0.3) 100%);
|
|
margin-top: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - ECOSYSTEM SECTION
|
|
// =============================================================================
|
|
|
|
.ecosystem-section {
|
|
margin: 3rem 0;
|
|
}
|
|
|
|
.ecosystem-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.ecosystem-card {
|
|
background: #ffffff;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.ecosystem-icon {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 0 0 0.5rem 0;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
p {
|
|
font-size: 0.9rem;
|
|
color: #64748b;
|
|
margin: 0;
|
|
}
|
|
|
|
&.textbook:hover {
|
|
border-color: #A51C30;
|
|
}
|
|
|
|
&.kits {
|
|
border-color: $kits-accent;
|
|
background: rgba(20, 143, 119, 0.03);
|
|
}
|
|
|
|
&.kits.current {
|
|
cursor: default;
|
|
|
|
&:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
&.tinytorch:hover {
|
|
border-color: #f97316;
|
|
}
|
|
|
|
.current-badge {
|
|
position: absolute;
|
|
top: -0.75rem;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: $kits-accent;
|
|
color: #ffffff;
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 1rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - CREDITS SECTION
|
|
// =============================================================================
|
|
|
|
.credits-section {
|
|
margin: 3rem 0 1rem 0;
|
|
text-align: center;
|
|
padding: 1.5rem;
|
|
background: #f8fafc;
|
|
border-radius: 0.75rem;
|
|
|
|
p {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
color: #64748b;
|
|
|
|
a {
|
|
color: $kits-accent;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - CAROUSEL STYLES
|
|
// =============================================================================
|
|
|
|
#hardwareCarousel {
|
|
.carousel-inner {
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
.carousel-item {
|
|
padding: 30px 60px;
|
|
|
|
img {
|
|
max-height: 280px;
|
|
object-fit: contain;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
// Hide default Bootstrap caption - we'll use our own below
|
|
.carousel-caption {
|
|
display: none;
|
|
}
|
|
|
|
.carousel-control-prev,
|
|
.carousel-control-next {
|
|
width: 50px;
|
|
opacity: 0.7;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.carousel-control-prev-icon,
|
|
.carousel-control-next-icon {
|
|
background-color: rgba($kits-accent, 0.85);
|
|
border-radius: 50%;
|
|
width: 36px;
|
|
height: 36px;
|
|
background-size: 50%;
|
|
}
|
|
|
|
.carousel-indicators {
|
|
bottom: 10px;
|
|
|
|
button {
|
|
background-color: $kits-accent;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
margin: 0 5px;
|
|
opacity: 0.5;
|
|
|
|
&.active {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Caption bar below the carousel
|
|
.carousel-caption-bar {
|
|
background: $kits-accent;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 24px 30px;
|
|
border-radius: 8px;
|
|
margin-top: 0;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
h5 {
|
|
font-weight: 800;
|
|
margin: 0 0 6px 0;
|
|
font-size: 1.4rem;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
color: white !important;
|
|
letter-spacing: 0.03em;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
font-size: 1.05rem;
|
|
font-weight: 500;
|
|
color: white !important;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - PLATFORM CARDS (index page)
|
|
// =============================================================================
|
|
|
|
.platform-card {
|
|
border: 2px solid #e9ecef;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
height: 100%;
|
|
|
|
&:hover {
|
|
border-color: $kits-accent;
|
|
box-shadow: 0 4px 12px rgba($kits-accent, 0.15);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
img {
|
|
max-height: 150px;
|
|
object-fit: contain;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
h4 {
|
|
color: $kits-accent;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 8px;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.price {
|
|
font-weight: 600;
|
|
color: #495057;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// LANDING PAGE - CAPABILITY ITEMS (index page)
|
|
// =============================================================================
|
|
|
|
.capability-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin: 25px 0;
|
|
}
|
|
|
|
// Ecosystem links on index page
|
|
.ecosystem-link {
|
|
border-color: $kits-accent !important;
|
|
|
|
h5 {
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
h5 a {
|
|
color: $kits-accent;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ecosystem-current {
|
|
h5 {
|
|
color: $kits-accent;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
}
|
|
|
|
.capability-item {
|
|
background: linear-gradient(135deg, rgba($kits-accent, 0.05) 0%, rgba($kits-accent, 0.02) 100%);
|
|
border-left: 4px solid $kits-accent;
|
|
padding: 20px;
|
|
border-radius: 0 8px 8px 0;
|
|
|
|
h4 {
|
|
color: $kits-accent;
|
|
font-size: 1rem;
|
|
margin-bottom: 8px;
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 0;
|
|
font-size: 0.9rem;
|
|
color: #495057;
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// MOBILE RESPONSIVE STYLES
|
|
// =============================================================================
|
|
|
|
@media (max-width: 1024px) {
|
|
.why-grid,
|
|
.platform-grid,
|
|
.capability-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.path-steps {
|
|
flex-wrap: wrap;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.path-connector {
|
|
display: none;
|
|
}
|
|
|
|
.ecosystem-grid {
|
|
grid-template-columns: 1fr;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.kits-hero {
|
|
padding: 2rem 1.5rem;
|
|
margin: -0.5rem -0.25rem 2rem -0.25rem;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.hero-stats {
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.hero-visual {
|
|
display: none;
|
|
}
|
|
|
|
.why-grid,
|
|
.platform-grid,
|
|
.capability-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.capabilities-section {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.navbar {
|
|
padding: 0.5rem 0.75rem !important;
|
|
min-height: 60px !important;
|
|
}
|
|
|
|
.navbar-brand {
|
|
font-size: 1rem !important;
|
|
font-weight: 500 !important;
|
|
|
|
img {
|
|
height: 32px !important;
|
|
width: auto !important;
|
|
margin-right: 0.5rem !important;
|
|
}
|
|
}
|
|
|
|
.navbar-toggler {
|
|
padding: 0.5rem !important;
|
|
border: none !important;
|
|
min-width: 44px !important;
|
|
min-height: 44px !important;
|
|
}
|
|
|
|
.navbar-nav .nav-link {
|
|
padding: 0.75rem 1rem !important;
|
|
font-size: 1rem !important;
|
|
}
|
|
|
|
.sidebar {
|
|
font-size: 0.9rem;
|
|
|
|
.sidebar-item a {
|
|
padding: 0.5rem 0.75rem !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.navbar {
|
|
padding: 0.25rem 0.5rem !important;
|
|
}
|
|
|
|
.content {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
table,
|
|
.table-responsive {
|
|
overflow-x: auto !important;
|
|
display: block !important;
|
|
}
|
|
}
|