Fix sidebar

This commit is contained in:
Jeremy Thomas 2024-03-21 17:36:39 +00:00
parent 3d5f7a6ad3
commit bdd96cae8c
10 changed files with 62 additions and 22 deletions

View File

@ -1,8 +1,7 @@
<img <img
src="{{ site.url }}/images/{{ include.path }}.{{ include.extension }}" src="{{ site.url }}/assets/images/{{ include.path }}.{{ include.extension }}"
srcset="{{ site.url }}/images/{{ include.path }}.{{ include.extension }} 1x, srcset="{{ site.url }}/assets/images/{{ include.path }}.{{ include.extension }} 1x,
{{ site.url }}/images/{{ include.path }}@2x.{{ include.extension }} 2x, {{ site.url }}/assets/images/{{ include.path }}@2x.{{ include.extension }} 2x"
{{ site.url }}/images/{{ include.path }}@3x.{{ include.extension }} 3x"
alt="{{ include.alt }}" alt="{{ include.alt }}"
width="{{ include.width }}" width="{{ include.width }}"
height="{{ include.height }}"> height="{{ include.height }}">

View File

@ -1,6 +1,8 @@
<h3 class="bd-menu-heading js-menu-heading"> <h3 class="bd-menu-heading js-menu-heading">
{% if include.icon %}
<span class="icon"> <span class="icon">
<i class="{{ include.icon }}"></i> <i class="{{ include.icon }}"></i>
</span> </span>
{% endif %}
<strong>{{ include.label }}</strong> <strong>{{ include.label }}</strong>
</h3> </h3>

View File

@ -62,4 +62,18 @@
{% include docs/menu-heading.html icon="fa-brands fa-css3" label="CSS Helpers" %} {% include docs/menu-heading.html icon="fa-brands fa-css3" label="CSS Helpers" %}
{% include docs/menu-list.html category_id="helpers" %} {% include docs/menu-list.html category_id="helpers" %}
</div> </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> </div>

View File

@ -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>

View File

@ -170,3 +170,13 @@
font-weight: inherit; font-weight: inherit;
line-height: 1.25rem; line-height: 1.25rem;
} }
.bd-side-sponsor {
display: flex;
margin: 0.5rem;
margin-top: 0;
img {
border-radius: 0.75rem;
}
}

View File

@ -63,16 +63,9 @@ $delay: 0.2s;
animation-delay: $delay * 2; animation-delay: $delay * 2;
animation-name: anim-slow-intro; animation-name: anim-slow-intro;
align-self: center; align-self: center;
background-color: cv.getVar("scheme-main"); background-color: cv.getVar("success-soft");
border-color: cv.getVar("success-80"); border: none;
box-shadow: 0px 0.25em 0.5em 0px color: cv.getVar("success");
hsla(
cv.getVar("success-h"),
cv.getVar("success-s"),
cv.getVar("success-l"),
0.08
);
color: cv.getVar("success-40");
font-size: calc(var(--scale) * 1.25em); font-size: calc(var(--scale) * 1.25em);
transform-origin: center; transform-origin: center;

View File

@ -34941,10 +34941,9 @@ has-background-moon.is-hoverable:active {
animation-delay: 0.4s; animation-delay: 0.4s;
animation-name: anim-slow-intro; animation-name: anim-slow-intro;
align-self: center; align-self: center;
background-color: var(--bulma-scheme-main); background-color: var(--bulma-success-soft);
border-color: var(--bulma-success-80); border: none;
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);
color: var(--bulma-success-40);
font-size: calc(var(--scale) * 1.25em); font-size: calc(var(--scale) * 1.25em);
transform-origin: center; transform-origin: center;
} }
@ -36854,6 +36853,15 @@ has-background-moon.is-hoverable:active {
line-height: 1.25rem; 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 { .bd-notification {
--bulma-notification-h: var(--bulma-scheme-h); --bulma-notification-h: var(--bulma-scheme-h);
--bulma-notification-s: var(--bulma-scheme-s); --bulma-notification-s: var(--bulma-scheme-s);

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB