Skip to content

Commit

Permalink
Fix sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Mar 21, 2024
1 parent 3d5f7a6 commit bdd96ca
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 22 deletions.
7 changes: 3 additions & 4 deletions docs/_includes/docs/elements/responsive-image.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<img
src="{{ site.url }}/images/{{ include.path }}.{{ include.extension }}"
srcset="{{ site.url }}/images/{{ include.path }}.{{ include.extension }} 1x,
{{ site.url }}/images/{{ include.path }}@2x.{{ include.extension }} 2x,
{{ site.url }}/images/{{ include.path }}@3x.{{ include.extension }} 3x"
src="{{ site.url }}/assets/images/{{ include.path }}.{{ include.extension }}"
srcset="{{ site.url }}/assets/images/{{ include.path }}.{{ include.extension }} 1x,
{{ site.url }}/assets/images/{{ include.path }}@2x.{{ include.extension }} 2x"
alt="{{ include.alt }}"
width="{{ include.width }}"
height="{{ include.height }}">
8 changes: 5 additions & 3 deletions docs/_includes/docs/menu-heading.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<h3 class="bd-menu-heading js-menu-heading">
<span class="icon">
<i class="{{ include.icon }}"></i>
</span>
{% if include.icon %}
<span class="icon">
<i class="{{ include.icon }}"></i>
</span>
{% endif %}
<strong>{{ include.label }}</strong>
</h3>
14 changes: 14 additions & 0 deletions docs/_includes/docs/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,18 @@
{% include docs/menu-heading.html icon="fa-brands fa-css3" label="CSS Helpers" %}
{% include docs/menu-list.html category_id="helpers" %}
</div>

<div class="bd-menu-section is-sponsr">
{% include docs/menu-heading.html label="Sponsor" %}
<a class="bd-side-sponsor" href="https://password.link/" target="_blank">
{%
include docs/elements/responsive-image.html
path="amis/passwordlink"
extension="png"
alt="Password.link"
width="332"
height="96"
%}
</a>
</div>
</div>
14 changes: 14 additions & 0 deletions docs/_includes/docs/side-sponsr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="bd-side-sponsrs">
<p class="bd-side-sponsor-label">Sponsors</p>

<a class="bd-side-sponsor" href="https://password.link/" target="_blank">
{%
include docs/elements/responsive-image.html
path="amis/passwordlink"
extension="png"
alt="Password.link"
width="332"
height="96"
%}
</a>
</div>
10 changes: 10 additions & 0 deletions docs/_sass/docs/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,13 @@
font-weight: inherit;
line-height: 1.25rem;
}

.bd-side-sponsor {
display: flex;
margin: 0.5rem;
margin-top: 0;

img {
border-radius: 0.75rem;
}
}
13 changes: 3 additions & 10 deletions docs/_sass/home/intro.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,9 @@ $delay: 0.2s;
animation-delay: $delay * 2;
animation-name: anim-slow-intro;
align-self: center;
background-color: cv.getVar("scheme-main");
border-color: cv.getVar("success-80");
box-shadow: 0px 0.25em 0.5em 0px
hsla(
cv.getVar("success-h"),
cv.getVar("success-s"),
cv.getVar("success-l"),
0.08
);
color: cv.getVar("success-40");
background-color: cv.getVar("success-soft");
border: none;
color: cv.getVar("success");
font-size: calc(var(--scale) * 1.25em);
transform-origin: center;

Expand Down
16 changes: 12 additions & 4 deletions docs/assets/css/website.css
Original file line number Diff line number Diff line change
Expand Up @@ -34941,10 +34941,9 @@ has-background-moon.is-hoverable:active {
animation-delay: 0.4s;
animation-name: anim-slow-intro;
align-self: center;
background-color: var(--bulma-scheme-main);
border-color: var(--bulma-success-80);
box-shadow: 0px 0.25em 0.5em 0px hsla(var(--bulma-success-h), var(--bulma-success-s), var(--bulma-success-l), 0.08);
color: var(--bulma-success-40);
background-color: var(--bulma-success-soft);
border: none;
color: var(--bulma-success);
font-size: calc(var(--scale) * 1.25em);
transform-origin: center;
}
Expand Down Expand Up @@ -36854,6 +36853,15 @@ has-background-moon.is-hoverable:active {
line-height: 1.25rem;
}

.bd-side-sponsor {
display: flex;
margin: 0.5rem;
margin-top: 0;
}
.bd-side-sponsor img {
border-radius: 0.75rem;
}

.bd-notification {
--bulma-notification-h: var(--bulma-scheme-h);
--bulma-notification-s: var(--bulma-scheme-s);
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/website.min.css

Large diffs are not rendered by default.

Binary file added docs/assets/images/amis/passwordlink.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/amis/passwordlink@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bdd96ca

Please sign in to comment.