mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
center fallbacks
This commit is contained in:
8 files changed
+73
-31
No files matched your search
@@ -37,10 +37,7 @@ const groups = toolGroups.map((group) => {
|
||||
#navbar-fine {
|
||||
--icon-size: 1.5rem;
|
||||
--padding: var(--space-4);
|
||||
--content-inset: max(
|
||||
var(--page-padding),
|
||||
(100% - var(--page-width)) / 2
|
||||
);
|
||||
--content-inset: max(var(--page-padding), (100% - var(--page-width)) / 2);
|
||||
|
||||
display: none;
|
||||
|
||||
@@ -146,6 +143,15 @@ const groups = toolGroups.map((group) => {
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
|
||||
.entry[data-disabled="true"] {
|
||||
opacity: calc(1 / 4);
|
||||
cursor: not-allowed;
|
||||
|
||||
.tool {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.tool {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -340,21 +346,23 @@ const groups = toolGroups.map((group) => {
|
||||
|
||||
<div class="tools">
|
||||
{group.tools.map((tool, index) => (
|
||||
<LinkI18nWrapper {locale} href={`/${tool.slug ?? tool.id}`}>
|
||||
<div class="tool" style={`--index: ${index + 1}`}>
|
||||
<div
|
||||
class="thumbnail"
|
||||
style={`background-image: url(${alias(
|
||||
"api",
|
||||
`/tools/${tool.id}/banners/thumbnail.webp`,
|
||||
)})`}
|
||||
/>
|
||||
<div class="entry" data-disabled={String(tool.disabled ?? false)}>
|
||||
<LinkI18nWrapper {locale} href={`/${tool.slug ?? tool.id}`}>
|
||||
<div class="tool" style={`--index: ${index + 1}`}>
|
||||
<div
|
||||
class="thumbnail"
|
||||
style={`background-image: url(${alias(
|
||||
"api",
|
||||
`/tools/${tool.id}/banners/thumbnail.webp`,
|
||||
)})`}
|
||||
/>
|
||||
|
||||
<Text size="major" weight="medium" className="name">
|
||||
{strings.tools[tool.id as keyof typeof strings.tools]}
|
||||
</Text>
|
||||
</div>
|
||||
</LinkI18nWrapper>
|
||||
<Text size="major" weight="medium" className="name">
|
||||
{strings.tools[tool.id as keyof typeof strings.tools]}
|
||||
</Text>
|
||||
</div>
|
||||
</LinkI18nWrapper>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user