Skip to content

Commit cb4795e

Browse files
mbastianclaude
andcommitted
Align Gephi plugins page styling with rest of site
- Style the plugins search input with Bootstrap's form-control class and give it a white background instead of blending into the page - Give plugin cards a shadow + white background like the site's other card UI, and stretch them to equal height so grid rows line up - Add spacing between icons and headings on the plugin detail page - Use the branded title font for individual plugin page headings Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 037bab9 commit cb4795e

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

‎src/components/plugins/PluginsFilters.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export const PluginsFilters: FC<{ plugins: Plugin[] }> = ({ plugins }) => {
142142
<legend>Search</legend>
143143
<input
144144
type="search"
145+
className="form-control"
145146
value={query || ""}
146147
onChange={(e) => {
147148
setQuery(e.target.value);

‎src/pages/desktop/plugins/[id].astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const topVersionIsLatestGephi = !!topVersionTag && topVersionTag === latestGephi
5959

6060
<div class="banner-contents">
6161
<div class="banner-texts gap-3">
62-
<h1 class="fs-2">{plugin.name}</h1>
62+
<h1 class="fs-2 gephi-font">{plugin.name}</h1>
6363

6464
<p class="fs-4">{plugin.short_description}</p>
6565
<p class="fs-5 opacity-75">last updated on {plugin.last_update}</p>

‎src/styles/_plugins.scss‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,23 @@
4242
@extend .col-xl-4;
4343
@extend .col-xxl-3;
4444
padding: $spacer-2;
45+
display: flex;
4546

4647
.card {
48+
@extend .shadow;
4749
@extend .text-dark;
50+
background: $white;
4851
border: none;
52+
padding: $spacer-3;
4953
text-decoration: none;
5054
display: flex;
5155
flex-direction: column;
5256
gap: $spacer-1;
57+
height: 100%;
58+
width: 100%;
5359
}
5460

5561
.plugin-image {
56-
@extend .border;
5762
margin-bottom: $spacer-2;
5863
background: white;
5964
max-width: 100%;
@@ -76,6 +81,7 @@
7681
.plugin-description {
7782
@extend .fs-5;
7883
margin: 0;
84+
flex-grow: 1;
7985
}
8086
}
8187
}
@@ -129,6 +135,10 @@
129135
}
130136

131137
.plugin-page {
138+
h2 svg {
139+
margin-right: $spacer-2;
140+
}
141+
132142
.older-versions {
133143
summary {
134144
display: inline-flex;

‎src/styles/_variables-set.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ $h2-font-size: 2.5rem !default;
4545
$body-bg: $light !default;
4646
$primary: $custom-purple !default;
4747
$form-check-input-bg: white !default;
48+
$input-bg: white !default;
4849
$enable-rounded: false !default;

0 commit comments

Comments
 (0)