mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-19 20:03:51 +01:00
perfect navbars
This commit is contained in:
3 files changed
+14
-9
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"navbar": {
|
"navbar": {
|
||||||
|
"home": "Home",
|
||||||
"settings": "Settings"
|
"settings": "Settings"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -47,9 +47,6 @@ export const filtered = Object.values(tools).filter(
|
|||||||
position: relative;
|
position: relative;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
padding: var(--padding);
|
|
||||||
padding-top: calc(var(--padding) + var(--space-3));
|
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -62,9 +59,16 @@ export const filtered = Object.values(tools).filter(
|
|||||||
width: var(--min-content-width);
|
width: var(--min-content-width);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
padding: calc(var(--padding) + 2 * var(--space-2)) var(--padding);
|
||||||
|
|
||||||
|
border-right: 0 solid var(--gray-4);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding-right: calc(2 * var(--padding));
|
padding: calc(var(--padding) + 2 * var(--space-2))
|
||||||
|
calc(4 * var(--padding));
|
||||||
|
|
||||||
|
border-right: var(--space-0) solid var(--gray-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
@@ -120,7 +124,7 @@ export const filtered = Object.values(tools).filter(
|
|||||||
width: var(--icon-size);
|
width: var(--icon-size);
|
||||||
height: var(--icon-size);
|
height: var(--icon-size);
|
||||||
|
|
||||||
filter: saturate(0.5);
|
filter: opacity(0.75);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
|
||||||
@@ -129,7 +133,7 @@ export const filtered = Object.values(tools).filter(
|
|||||||
.expander:hover & {
|
.expander:hover & {
|
||||||
width: calc(2 * var(--icon-size));
|
width: calc(2 * var(--icon-size));
|
||||||
|
|
||||||
filter: saturate(1);
|
filter: opacity(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -161,7 +165,7 @@ export const filtered = Object.values(tools).filter(
|
|||||||
<LinkI18nWrapper {locale} href="/">
|
<LinkI18nWrapper {locale} href="/">
|
||||||
<div class="named-link">
|
<div class="named-link">
|
||||||
<Logo className="icon" />
|
<Logo className="icon" />
|
||||||
<Text className="name">{strings.common.name}</Text>
|
<Text className="name">{strings.navbar.home}</Text>
|
||||||
</div>
|
</div>
|
||||||
</LinkI18nWrapper>
|
</LinkI18nWrapper>
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const strings = await api.strings(locale);
|
|||||||
background-color: var(--black-a9);
|
background-color: var(--black-a9);
|
||||||
backdrop-filter: var(--blur-tint);
|
backdrop-filter: var(--blur-tint);
|
||||||
|
|
||||||
border-top: var(--space-0) solid var(--white-a4);
|
border-top: var(--space-0) solid var(--white-a1);
|
||||||
|
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ const strings = await api.strings(locale);
|
|||||||
|
|
||||||
&[data-visible="false"] {
|
&[data-visible="false"] {
|
||||||
transform: translateY(100%);
|
transform: translateY(100%);
|
||||||
border-top: 0 solid var(--white-a3);
|
border-top: 0 solid var(--white-a1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.control {
|
.control {
|
||||||
|
|||||||
Reference in new issue
Block a user