generated from nmfs-opensci/NOAA-quarto-simple
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme.scss
More file actions
89 lines (75 loc) · 1.61 KB
/
theme.scss
File metadata and controls
89 lines (75 loc) · 1.61 KB
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
/*-- scss:defaults --*/
@import 'https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible&display=swap';
$font-family: "Atkinson Hyperlegible", sans-serif;
/* === Two-column layout === */
.page-columns {
max-width: none !important;
margin: 0;
}
.page-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 340px;
gap: 1.5rem;
width: 100%;
}
/* Main content behaves normally */
.main-content {
min-width: 0;
}
/* Right-hand scrollable sidebar */
.media-sidebar {
position: sticky;
top: 1rem;
height: calc(100vh - 2rem);
overflow-y: auto;
padding-right: 0.5rem;
}
/* Nice scrollbar on desktop */
.media-sidebar::-webkit-scrollbar {
width: 8px;
}
.media-sidebar::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 6px;
}
/* === Media cards === */
.media-card {
display: flex;
flex-direction: column; /* stack image above text */
gap: 0.6rem;
margin-bottom: 1.25rem;
background: #f8f9fa;
border-radius: 12px;
overflow: hidden; /* makes image respect rounded corners */
transition: 0.2s;
}
.media-card:hover {
background: #eef1f4;
transform: translateY(-2px);
}
/* Full-width thumbnail */
.media-card img {
width: 100%;
height: auto;
aspect-ratio: 16 / 9; /* keeps thumbnails consistent */
object-fit: cover;
display: block;
}
/* Text block */
.media-card a {
padding: 0.75rem;
text-decoration: none;
color: inherit;
line-height: 1.25;
font-size: 0.95rem;
}
/* Mobile fallback */
@media (max-width: 900px) {
.page-layout {
grid-template-columns: 1fr;
}
.media-sidebar {
height: auto;
position: relative;
}
}