Skip to content

Commit a1ffa1f

Browse files
hellcpSorixelle
authored andcommitted
Make the sidebar Rebble branded
Signed-off-by: Stasia Michalska <hel@lcp.world>
1 parent 97a39c6 commit a1ffa1f

File tree

7 files changed

+222
-8
lines changed

7 files changed

+222
-8
lines changed

source/_includes/icons/rebble.svg

Lines changed: 31 additions & 0 deletions
Loading

source/_layouts/sidebar_narrow.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="sidebar__wrapper{% unless page.sidebar_only or layout.sidebar_only %} sidebar__wrapper--sectionmenu{% endunless %}">
2020
<div class="sidebar sidebar--narrow">
2121
<a href="/" class="sidebar__header">
22-
<span>pebble</span>
22+
{% include icons/rebble.svg %}<span>Rebble</span>
2323
</a>
2424
<ul class="mainmenu">
2525
{% include mainmenu.html %}

source/_layouts/sidebar_wide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="sidebar__wrapper">
2020
<div class="sidebar sidebar--wide">
2121
<a href="/" class="sidebar__header">
22-
<span>pebble</span><span>|</span><span>developer</span>
22+
{% include icons/rebble.svg %}<span>Rebble</span><span>|</span><span>developer</span>
2323
</a>
2424
<ul class="mainmenu">
2525
{% include mainmenu.html %}
@@ -29,7 +29,7 @@
2929
&middot;
3030
<a href="{{ site.links.legal.cookies }}" target="_blank">Cookie Policy</a>
3131
</div>
32-
<a href="{{ site.links.devportal }}" target="_blank" class="sidebar__footer">Publish your app <i class="fa fa-angle-right fa-fw"></i></a>
32+
<a href="{{ site.links.devportal }}" target="_blank" class="sidebar__footer">Publish your app <img src="{{ '/images/menu/rocket.svg' | prepend: site.asset_path }}" alt=""/></a>
3333
</div>
3434
</div>
3535
<div class="content content--narrow">

source/_sass/colors.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ $color-sdk: $lightblue;
8888
$color-appstore: $gray-03;
8989
$color-blog: $orange-02;
9090
$color-examples: #2c67ce;
91+
$color-devportal: #00c3fd;
9192

9293
$modifier-color-names: 'guides', 'docs', 'community', 'more', 'getting-started',
9394
'sdk', 'appstore', 'blog';

source/_sass/elements/sidebar.scss

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ $sidebar-hide-at: xs;
7070
color: $white;
7171
}
7272

73+
svg {
74+
display: inline-block;
75+
vertical-align: bottom;
76+
}
77+
7378
span {
7479
display: inline-block;
7580
}
@@ -131,10 +136,10 @@ $sidebar-hide-at: xs;
131136
}
132137

133138
.sidebar__footer {
134-
background-color: $color-appstore;
135-
border-right: 1px solid color.adjust($color-appstore, $lightness: -10%, $space: hsl);
139+
background-color: $color-devportal;
140+
border-right: 1px solid color.adjust($color-devportal, $lightness: -10%, $space: hsl);
136141
bottom: 0;
137-
color: $white;
142+
color: $black;
138143
font-weight: bold;
139144
height: 3 * $base-line-height;
140145
left: 0;
@@ -143,11 +148,18 @@ $sidebar-hide-at: xs;
143148
right: 0;
144149
text-align: center;
145150
text-transform: uppercase;
151+
transition-duration: 0.5s;
152+
transition-property: background, color;
153+
display: flex;
154+
align-items: center;
155+
justify-content: center;
156+
gap: 0.25rem;
146157

147158
&:hover,
148159
&.active {
149-
background-color: color.adjust($color-appstore, $lightness: -10%, $space: hsl);
150-
border-color: color.adjust($color-appstore, $lightness: -20%, $space: hsl);
160+
background-color: color.adjust($color-devportal, $lightness: -40%, $space: hsl);
161+
background-image: url('/assets/images/menu/devportal-background.svg');
162+
border-color: color.adjust($color-devportal, $lightness: -50%, $space: hsl);
151163
color: $white;
152164
}
153165
}
Lines changed: 158 additions & 0 deletions
Loading
Lines changed: 12 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)