|
1 | 1 | @import "@primer/css/support/variables/layout.scss"; |
2 | 2 | @import "@primer/css/support/mixins/layout.scss"; |
3 | 3 |
|
| 4 | +.headerTitleText { |
| 5 | + font-size: var(--h3-size, 1.25rem); |
| 6 | + font-weight: var(--base-text-weight-semibold, 600); |
| 7 | + line-height: var(--heading-lineHeight); |
| 8 | +} |
| 9 | + |
| 10 | +.noArticlesContainer { |
| 11 | + width: 100%; |
| 12 | + text-align: left; |
| 13 | +} |
| 14 | + |
| 15 | +.noArticlesText { |
| 16 | + color: var(--fgColor-muted, var(--color-fg-muted, #656d76)); |
| 17 | +} |
| 18 | + |
| 19 | +.articleCardBox { |
| 20 | + display: flex; |
| 21 | + flex-direction: column; |
| 22 | + padding: 1.5rem; |
| 23 | + min-height: 7.5rem; |
| 24 | + box-shadow: |
| 25 | + 0 0.0625rem 0.1875rem 0 rgba(31, 35, 40, 0.08), |
| 26 | + 0 0.0625rem 0 0 rgba(31, 35, 40, 0.06); |
| 27 | +} |
| 28 | + |
| 29 | +.cardHeader { |
| 30 | + display: flex; |
| 31 | + flex-direction: column; |
| 32 | +} |
| 33 | + |
| 34 | +.cardTitle { |
| 35 | + margin: 0 0 0.5rem 0; |
| 36 | + font-size: 1.1rem; |
| 37 | + font-weight: var(--base-text-weight-semibold, 600); |
| 38 | +} |
| 39 | + |
| 40 | +.cardTitleLink { |
| 41 | + color: var(--fgColor-accent); |
| 42 | + text-decoration: none; |
| 43 | + |
| 44 | + &:hover { |
| 45 | + text-decoration: underline; |
| 46 | + } |
| 47 | +} |
| 48 | + |
| 49 | +.cardIntro { |
| 50 | + margin: 0; |
| 51 | + color: var(--fgColor-muted); |
| 52 | + font-size: 0.9rem; |
| 53 | + line-height: 1.4; |
| 54 | +} |
| 55 | + |
| 56 | +.tagsContainer { |
| 57 | + margin-bottom: 0.5rem; |
| 58 | +} |
| 59 | + |
| 60 | +.filterHeader { |
| 61 | + display: flex; |
| 62 | + flex-direction: column; |
| 63 | + align-items: stretch; |
| 64 | + border-bottom: 1px solid var(--borderColor-default); |
| 65 | + padding-bottom: 1rem; |
| 66 | + margin-top: 3rem; |
| 67 | + margin-bottom: 1rem; |
| 68 | + gap: 0.75rem; |
| 69 | + |
| 70 | + // Medium screens: horizontal layout with tighter spacing |
| 71 | + @include breakpoint(md) { |
| 72 | + flex-direction: row; |
| 73 | + align-items: center; |
| 74 | + gap: 0.75rem; |
| 75 | + } |
| 76 | + |
| 77 | + // Large screens: horizontal layout with normal spacing |
| 78 | + @include breakpoint(lg) { |
| 79 | + gap: 1rem; |
| 80 | + } |
| 81 | +} |
| 82 | + |
| 83 | +.titleAndDropdownRow { |
| 84 | + display: flex; |
| 85 | + flex-direction: row; |
| 86 | + align-items: center; |
| 87 | + gap: 0.75rem; |
| 88 | + flex-shrink: 0; |
| 89 | + |
| 90 | + // Medium screens and up: maintain tight spacing, don't grow |
| 91 | + @include breakpoint(md) { |
| 92 | + gap: 1rem; |
| 93 | + flex-shrink: 0; |
| 94 | + flex-grow: 0; |
| 95 | + } |
| 96 | +} |
| 97 | + |
| 98 | +.headerTitle { |
| 99 | + flex-shrink: 0; |
| 100 | + margin: 0; |
| 101 | + font-size: 1.5rem; |
| 102 | + font-weight: 600; |
| 103 | + text-align: left; |
| 104 | + width: auto; |
| 105 | + |
| 106 | + // All screen sizes: keep title compact |
| 107 | + @include breakpoint(md) { |
| 108 | + flex-shrink: 0; |
| 109 | + width: auto; |
| 110 | + } |
| 111 | +} |
| 112 | + |
| 113 | +.categoryDropdown { |
| 114 | + min-width: 12rem; |
| 115 | + flex: 1; |
| 116 | + |
| 117 | + button { |
| 118 | + width: fit-content; |
| 119 | + text-align: left !important; |
| 120 | + |
| 121 | + span { |
| 122 | + justify-content: start !important; |
| 123 | + } |
| 124 | + |
| 125 | + // Medium screens: full width but constrained by container |
| 126 | + @include breakpoint(md) { |
| 127 | + width: 100%; |
| 128 | + } |
| 129 | + } |
| 130 | + |
| 131 | + // Medium screens: smaller min-width and constrained max-width |
| 132 | + @include breakpoint(md) { |
| 133 | + min-width: 20rem; |
| 134 | + max-width: 30%; |
| 135 | + } |
| 136 | + |
| 137 | + // Large screens: larger sizing |
| 138 | + @include breakpoint(lg) { |
| 139 | + min-width: 20rem; |
| 140 | + max-width: 40%; |
| 141 | + } |
| 142 | +} |
| 143 | + |
| 144 | +.searchContainer { |
| 145 | + margin-left: 0; |
| 146 | + width: auto; |
| 147 | + |
| 148 | + // Medium screens: flexible width with spacing |
| 149 | + @include breakpoint(md) { |
| 150 | + flex: 0 1 25%; |
| 151 | + min-width: 12.5rem; |
| 152 | + margin-left: auto; |
| 153 | + } |
| 154 | + |
| 155 | + // Large screens: larger width with auto margin |
| 156 | + @include breakpoint(lg) { |
| 157 | + width: 30%; |
| 158 | + flex: 0 0 30%; |
| 159 | + margin-left: auto; |
| 160 | + } |
| 161 | +} |
| 162 | + |
4 | 163 | .articleGrid { |
5 | 164 | display: grid; |
6 | 165 | gap: 1.5rem; |
|
25 | 184 | height: 100%; |
26 | 185 | } |
27 | 186 |
|
28 | | -.cardContent { |
| 187 | +.paginationContainer { |
29 | 188 | display: flex; |
30 | 189 | flex-direction: column; |
31 | | - height: 100%; |
| 190 | + justify-content: center; |
| 191 | + align-items: center; |
| 192 | + margin-top: 1rem; |
| 193 | + padding-top: 1rem; |
| 194 | + gap: 0.75rem; |
| 195 | + |
| 196 | + // Medium screens and up: horizontal layout with space between |
| 197 | + @include breakpoint(md) { |
| 198 | + flex-direction: row; |
| 199 | + justify-content: space-between; |
| 200 | + gap: 0; |
| 201 | + } |
32 | 202 | } |
33 | 203 |
|
34 | | -.cardFooter { |
35 | | - margin-top: auto; |
| 204 | +.showingResults { |
| 205 | + color: var(--fgColor-muted, var(--color-fg-muted, #656d76)); |
| 206 | + font-size: 0.875rem; |
36 | 207 | } |
0 commit comments