Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 0e3fbe2

Browse files
authored
Merge pull request #48 from starknet-io/toolbar-refactor2
Refactored toolbar
2 parents e797661 + 5f4b29f commit 0e3fbe2

File tree

9 files changed

+45
-13
lines changed

9 files changed

+45
-13
lines changed

build/ui-bundle.zip

950 Bytes
Binary file not shown.

src/css/breadcrumbs.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.breadcrumbs {
22
display: none;
33
flex: 1 1;
4-
padding: 0 0.5rem 0 0.75rem;
4+
padding-right: 0.5rem;
55
line-height: var(--nav-line-height);
66
color: var(--breadcrumbs-font-color);
77
}
@@ -29,7 +29,7 @@ a + .breadcrumbs {
2929
margin: 0;
3030
}
3131

32-
.breadcrumbs li::after {
32+
.breadcrumbs li::before {
3333
content: "/";
3434
padding: 0 0.5rem;
3535
}

src/css/extensions/custom-dark.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@
8787
} */
8888

8989
.pencil {
90-
/*
91-
background-image: url(../img/pencil-filled.svg);
92-
*/
90+
fill: var(--color-athens-white);
91+
}
92+
93+
.heart {
9394
fill: var(--color-athens-white);
9495
}
9596

src/css/extensions/custom.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,17 @@
246246
background-repeat: no-repeat;
247247
height: 1rem;
248248
width: 1rem;
249+
padding: 0 0.75rem;
250+
vertical-align: text-bottom;
251+
}
252+
253+
.heart {
254+
background-image: url(../img/heart.svg);
255+
background-repeat: no-repeat;
256+
height: 1rem;
257+
width: 1rem;
249258
padding: 0 1em;
250-
vertical-align: middle;
259+
vertical-align: text-bottom;
251260
}
252261

253262
.navbar-end .navbar-item .navbar-dropdown {
@@ -274,7 +283,7 @@
274283
}
275284

276285
.edit-this-page:hover a {
277-
color: var(--color-ultramarine-blue);
286+
/* color: var(--color-ultramarine-blue); */
278287
text-decoration: none;
279288
}
280289

src/css/toolbar.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
@media screen and (min-width: 1024px) {
6767
.home-link {
6868
margin: calc(var(--toolbar-height) / 4);
69+
margin-right: 0
6970
}
7071
.edit-this-page {
7172
display: block;

src/img/heart.svg

Lines changed: 18 additions & 0 deletions
Loading

src/js/vendor/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
for (var i = 0; i < images.length; i++) {
17-
if (!(images[i].classList.contains('copy-icon') || images[i].classList.contains('pencil') || hasParentClass(images[i],'overview-box'))){
17+
if (!(images[i].classList.contains('copy-icon') || images[i].classList.contains('pencil') || images[i].classList.contains('heart') || hasParentClass(images[i],'overview-box'))){
1818
images[i].setAttribute('data-zoomable', 'true')
1919
}
2020
}

src/partials/breadcrumbs.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<nav class="breadcrumbs" aria-label="breadcrumbs">
22
{{#if page.breadcrumbs}}
33
<ul>
4-
{{#with page.componentVersion}}
4+
{{!-- {{#with page.componentVersion}}
55
{{#if (and ./title (ne ./title @root.page.breadcrumbs.0.content))}}
66
<li><a href="{{{relativize ./url}}}">{{{./title}}}</a></li>
77
{{/if}}
8-
{{/with}}
8+
{{/with}} --}}
99
{{#each page.breadcrumbs}}
1010
<li>
1111
{{~#if (and ./url (eq ./urlType 'internal'))~}}

src/partials/toolbar.hbs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class="toolbar" role="navigation">
22
{{!-- {{> nav-toggle}} --}}
3-
<div class="components-versions desktop-only">
3+
{{!-- <div class="components-versions desktop-only"> --}}
44
{{!-- {{> top-components}}
55
<span></span>
66
{{> page-versions}} --}}
7-
</div>
7+
{{!-- </div> --}}
88
<span></span>
99
<span></span>
1010
{{#with site.homeUrl}}
@@ -18,6 +18,9 @@
1818
</div>
1919
{{/if}}
2020
<div class="edit-this-page">
21-
<a href="{{page.editUrl}}"><img class="pencil">Edit this Page</a>
21+
<a href='https://github.com/starknet-io/starknet-docs/issues/new?assignees=landauraz&title=Feedback for "{{page.title}}"' target="_blank"><img class="heart">Share feedback</a>
22+
</div>
23+
<div class="edit-this-page">
24+
<a href="{{page.editUrl}}" target="_blank"><img class="pencil">Edit content</a>
2225
</div>
2326
</div>

0 commit comments

Comments
 (0)