Skip to content

Commit 01f062a

Browse files
committed
remove unused styles and show shorten logo for service pages
1 parent 9aac093 commit 01f062a

File tree

2 files changed

+7
-34
lines changed

2 files changed

+7
-34
lines changed

apps/web/src/lib/components/GitbutlerLogoLink.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{#if !markOnly}
1616
<span class="logo-text">GitButler</span>
1717
{/if}
18-
<div class="logo-mark">
18+
<div class="logo-mark" class:mark-only={markOnly}>
1919
<svg
2020
width="100%"
2121
height="100%"
@@ -42,11 +42,13 @@
4242
font-family: var(--fontfamily-accent);
4343
}
4444
45-
.logo-mark,
46-
.logo-ghost {
45+
.logo-mark {
4746
display: flex;
4847
width: 28px;
4948
height: 100%;
50-
margin-top: 5px;
49+
50+
&:not(.mark-only) {
51+
margin-top: 5px;
52+
}
5153
}
5254
</style>

apps/web/src/lib/components/Navigation.svelte

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{#if markOnly}
1414
<GitbutlerLogoLink markOnly />
1515
{:else}
16-
<GitbutlerLogoLink />
16+
<GitbutlerLogoLink markOnly />
1717
<HeaderAuthSection />
1818
{/if}
1919
</nav>
@@ -26,33 +26,4 @@
2626
padding-bottom: 24px;
2727
gap: 16px;
2828
}
29-
30-
.logo {
31-
display: flex;
32-
align-items: center;
33-
overflow: hidden;
34-
gap: 12px;
35-
}
36-
37-
.logo-mark {
38-
display: flex;
39-
width: 28px;
40-
height: 100%;
41-
margin-top: 5px;
42-
}
43-
44-
.logo-text {
45-
font-size: 44px;
46-
line-height: 1;
47-
font-family: var(--fontfamily-accent);
48-
}
49-
50-
/* MODIFIERS */
51-
:global(.navigation .hidden-on-desktop) {
52-
display: none;
53-
54-
@media (--mobile-viewport) {
55-
display: block;
56-
}
57-
}
5829
</style>

0 commit comments

Comments
 (0)