Skip to content

Commit bdd96ca

Browse files
committed
Fix sidebar
1 parent 3d5f7a6 commit bdd96ca

File tree

10 files changed

+62
-22
lines changed

10 files changed

+62
-22
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<img
2-
src="{{ site.url }}/images/{{ include.path }}.{{ include.extension }}"
3-
srcset="{{ site.url }}/images/{{ include.path }}.{{ include.extension }} 1x,
4-
{{ site.url }}/images/{{ include.path }}@2x.{{ include.extension }} 2x,
5-
{{ site.url }}/images/{{ include.path }}@3x.{{ include.extension }} 3x"
2+
src="{{ site.url }}/assets/images/{{ include.path }}.{{ include.extension }}"
3+
srcset="{{ site.url }}/assets/images/{{ include.path }}.{{ include.extension }} 1x,
4+
{{ site.url }}/assets/images/{{ include.path }}@2x.{{ include.extension }} 2x"
65
alt="{{ include.alt }}"
76
width="{{ include.width }}"
87
height="{{ include.height }}">

docs/_includes/docs/menu-heading.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<h3 class="bd-menu-heading js-menu-heading">
2-
<span class="icon">
3-
<i class="{{ include.icon }}"></i>
4-
</span>
2+
{% if include.icon %}
3+
<span class="icon">
4+
<i class="{{ include.icon }}"></i>
5+
</span>
6+
{% endif %}
57
<strong>{{ include.label }}</strong>
68
</h3>

docs/_includes/docs/menu.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,18 @@
6262
{% include docs/menu-heading.html icon="fa-brands fa-css3" label="CSS Helpers" %}
6363
{% include docs/menu-list.html category_id="helpers" %}
6464
</div>
65+
66+
<div class="bd-menu-section is-sponsr">
67+
{% include docs/menu-heading.html label="Sponsor" %}
68+
<a class="bd-side-sponsor" href="https://password.link/" target="_blank">
69+
{%
70+
include docs/elements/responsive-image.html
71+
path="amis/passwordlink"
72+
extension="png"
73+
alt="Password.link"
74+
width="332"
75+
height="96"
76+
%}
77+
</a>
78+
</div>
6579
</div>

docs/_includes/docs/side-sponsr.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div class="bd-side-sponsrs">
2+
<p class="bd-side-sponsor-label">Sponsors</p>
3+
4+
<a class="bd-side-sponsor" href="https://password.link/" target="_blank">
5+
{%
6+
include docs/elements/responsive-image.html
7+
path="amis/passwordlink"
8+
extension="png"
9+
alt="Password.link"
10+
width="332"
11+
height="96"
12+
%}
13+
</a>
14+
</div>

docs/_sass/docs/menu.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,13 @@
170170
font-weight: inherit;
171171
line-height: 1.25rem;
172172
}
173+
174+
.bd-side-sponsor {
175+
display: flex;
176+
margin: 0.5rem;
177+
margin-top: 0;
178+
179+
img {
180+
border-radius: 0.75rem;
181+
}
182+
}

docs/_sass/home/intro.scss

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,9 @@ $delay: 0.2s;
6363
animation-delay: $delay * 2;
6464
animation-name: anim-slow-intro;
6565
align-self: center;
66-
background-color: cv.getVar("scheme-main");
67-
border-color: cv.getVar("success-80");
68-
box-shadow: 0px 0.25em 0.5em 0px
69-
hsla(
70-
cv.getVar("success-h"),
71-
cv.getVar("success-s"),
72-
cv.getVar("success-l"),
73-
0.08
74-
);
75-
color: cv.getVar("success-40");
66+
background-color: cv.getVar("success-soft");
67+
border: none;
68+
color: cv.getVar("success");
7669
font-size: calc(var(--scale) * 1.25em);
7770
transform-origin: center;
7871

docs/assets/css/website.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34941,10 +34941,9 @@ has-background-moon.is-hoverable:active {
3494134941
animation-delay: 0.4s;
3494234942
animation-name: anim-slow-intro;
3494334943
align-self: center;
34944-
background-color: var(--bulma-scheme-main);
34945-
border-color: var(--bulma-success-80);
34946-
box-shadow: 0px 0.25em 0.5em 0px hsla(var(--bulma-success-h), var(--bulma-success-s), var(--bulma-success-l), 0.08);
34947-
color: var(--bulma-success-40);
34944+
background-color: var(--bulma-success-soft);
34945+
border: none;
34946+
color: var(--bulma-success);
3494834947
font-size: calc(var(--scale) * 1.25em);
3494934948
transform-origin: center;
3495034949
}
@@ -36854,6 +36853,15 @@ has-background-moon.is-hoverable:active {
3685436853
line-height: 1.25rem;
3685536854
}
3685636855

36856+
.bd-side-sponsor {
36857+
display: flex;
36858+
margin: 0.5rem;
36859+
margin-top: 0;
36860+
}
36861+
.bd-side-sponsor img {
36862+
border-radius: 0.75rem;
36863+
}
36864+
3685736865
.bd-notification {
3685836866
--bulma-notification-h: var(--bulma-scheme-h);
3685936867
--bulma-notification-s: var(--bulma-scheme-s);

docs/assets/css/website.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
7.63 KB
Loading
7.63 KB
Loading

0 commit comments

Comments
 (0)