Skip to content

Commit b78a831

Browse files
refactor(core): cleanup and consistency with themeing
1 parent 2d4837d commit b78a831

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

src/assets/styles/markdown.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
.expressive-code {
131131
--ec-frm-tooltipSuccessBg: var(--ks-button-background-primary);
132132
--ec-frm-frameBoxShdCssVal: 0.1rem 0.1rem 0.15rem var(--ks-shadows-light);
133+
--code-background: var(--ks-background-primary);
133134
margin-bottom: 2rem;
134135

135136
pre[data-language] {

src/components/common/PluginsBox.astro

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const plugins = pluginMetadata
5252
<a href="/plugins" class="btn btn-md btn-primary">See All Plugins</a
5353
>
5454
</div>
55-
<div class="plugin-logos-grid" data-usal="fade-up">
55+
<div class="plugin-logos-grid">
5656
{
5757
plugins.map((plugin) => (
5858
<a href={plugin.link}>
@@ -86,24 +86,28 @@ const plugins = pluginMetadata
8686
display: flex;
8787
flex-direction: row-reverse;
8888
gap: 4rem;
89+
align-items: center;
8990
}
9091
}
9192

9293
.plugin-logos-grid {
9394
display: grid;
94-
grid-template-columns: repeat(5, 1fr);
95+
grid-template-columns: repeat(5, minmax(0, 1fr));
9596
flex: 1;
97+
min-width: 0;
9698
margin: clamp(1rem, 3vw, 2rem);
9799

98100
@include media-breakpoint-up(xl) {
99101
margin: 0;
100102
}
101103

102104
a {
103-
aspect-ratio: 1;
105+
aspect-ratio: 1 / 1;
104106
padding: clamp(0.6rem, 1vw, 0.8rem);
105-
display: grid;
106-
place-items: center;
107+
display: flex;
108+
align-items: center;
109+
justify-content: center;
110+
overflow: hidden;
107111

108112
&:nth-child(even) {
109113
background: var(--ks-background-secondary);
@@ -112,12 +116,15 @@ const plugins = pluginMetadata
112116
}
113117

114118
img {
115-
width: 70%;
116-
height: 70%;
119+
max-width: 100%;
120+
max-height: 100%;
121+
width: auto;
122+
height: auto;
123+
object-fit: contain;
117124
transition: transform 0.2s;
118125

119126
&:hover {
120-
transform: scale(1.2);
127+
transform: scale(1.1);
121128
}
122129
}
123130
}

0 commit comments

Comments
 (0)