This commit is contained in:
Jeremy Thomas 2022-01-16 00:00:43 +00:00
parent 5aa114d445
commit 6b70094da8
24 changed files with 542 additions and 138 deletions

View File

@ -0,0 +1,23 @@
<div
{% if include.unsplash %}
class="bd-logos-item"
style="background-image: url(https://source.unsplash.com/{{ include.unsplash }}/480x480)"
{% else %}
class="bd-logos-item is-transparent"
{% endif %}
>
<img src="{{ site.url }}/assets/{{ include.asset }}.svg">
<div class="bd-logos-download">
<div class="has-text-centered">
<div class="buttons are-centered">
<a class="button is-primary is-light is-small" href="{{ site.url }}/assets/{{ include.asset }}.png">
PNG
</a>
<a class="button is-primary is-light is-small" href="{{ site.url }}/assets/{{ include.asset }}.svg">
SVG
</a>
</div>
</div>
</div>
</div>

View File

@ -1,26 +1,26 @@
document.addEventListener('DOMContentLoaded', () => {
document.addEventListener("DOMContentLoaded", () => {
// Search
const setSearchToggle = () => {
const icon = document.getElementById('searchIcon');
const search = document.getElementById('search');
const input = document.getElementById('algoliaSearch');
const icon = document.getElementById("searchIcon");
const search = document.getElementById("search");
const input = document.getElementById("algoliaSearch");
if (!icon) {
return;
}
icon.addEventListener('click', (event) => {
search.classList.toggle('bd-is-visible');
icon.addEventListener("click", (event) => {
search.classList.toggle("bd-is-visible");
if (search.classList.contains('bd-is-visible')) {
if (search.classList.contains("bd-is-visible")) {
algoliaSearch.focus();
}
});
window.addEventListener('keydown', (event) => {
if (event.key === 'Escape') {
return search.classList.remove('bd-is-visible');
window.addEventListener("keydown", (event) => {
if (event.key === "Escape") {
return search.classList.remove("bd-is-visible");
}
});
};
@ -30,7 +30,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Navbar
const setNavbarVisibility = () => {
const navbar = document.getElementById('navbar');
const navbar = document.getElementById("navbar");
if (!navbar) {
return;
@ -38,11 +38,11 @@ document.addEventListener('DOMContentLoaded', () => {
const cs = getComputedStyle(navbar);
const paddingX = parseFloat(cs.paddingLeft) + parseFloat(cs.paddingRight);
const brand = navbar.querySelector('.navbar-brand');
const end = navbar.querySelector('.navbar-end');
const search = navbar.querySelector('.bd-search');
const original = document.getElementById('navbarStartOriginal');
const clone = document.getElementById('navbarStartClone');
const brand = navbar.querySelector(".navbar-brand");
const end = navbar.querySelector(".navbar-end");
const search = navbar.querySelector(".bd-search");
const original = document.getElementById("navbarStartOriginal");
const clone = document.getElementById("navbarStartClone");
const rest =
navbar.clientWidth -
@ -53,16 +53,16 @@ document.addEventListener('DOMContentLoaded', () => {
const space = original.clientWidth;
const all = document.querySelectorAll(
'#navbarStartClone > .bd-navbar-item'
"#navbarStartClone > .bd-navbar-item"
);
const base = document.querySelectorAll(
'#navbarStartClone > .bd-navbar-item-base'
"#navbarStartClone > .bd-navbar-item-base"
);
const more = document.querySelectorAll(
'#navbarStartOriginal > .bd-navbar-item-more'
"#navbarStartOriginal > .bd-navbar-item-more"
);
const dropdown = document.querySelectorAll(
'#navbarStartOriginal .bd-navbar-dropdown > .navbar-item'
"#navbarStartOriginal .bd-navbar-dropdown > .navbar-item"
);
let count = 0;
@ -86,17 +86,17 @@ document.addEventListener('DOMContentLoaded', () => {
if (howManyMore > 0) {
for (let i = 0; i < howManyMore; i++) {
more[i].classList.add('bd-is-visible');
dropdown[i].classList.add('bd-is-hidden');
more[i].classList.add("bd-is-visible");
dropdown[i].classList.add("bd-is-hidden");
}
}
for (let j = howManyMore; j < more.length; j++) {
more[j].classList.remove('bd-is-visible');
more[j].classList.remove("bd-is-visible");
}
for (let k = howManyMore; k < dropdown.length; k++) {
dropdown[k].classList.remove('bd-is-hidden');
dropdown[k].classList.remove("bd-is-hidden");
}
};
@ -104,35 +104,35 @@ document.addEventListener('DOMContentLoaded', () => {
// Cookies
const cookieBookModalName = 'bulma_closed_book_modal';
const cookieBookModalName = "bulma_closed_book_modal";
const cookieBookModal = Cookies.getJSON(cookieBookModalName) || false;
// Dropdowns
const $dropdowns = getAll('.dropdown:not(.is-hoverable)');
const $dropdowns = getAll(".dropdown:not(.is-hoverable)");
if ($dropdowns.length > 0) {
$dropdowns.forEach(($el) => {
$el.addEventListener('click', (event) => {
$el.addEventListener("click", (event) => {
event.stopPropagation();
$el.classList.toggle('is-active');
$el.classList.toggle("is-active");
});
});
document.addEventListener('click', (event) => {
document.addEventListener("click", (event) => {
closeDropdowns();
});
}
function closeDropdowns() {
$dropdowns.forEach(($el) => {
$el.classList.remove('is-active');
$el.classList.remove("is-active");
});
}
// Toggles
const $burgers = getAll('.navbar-burger');
const $burgers = getAll(".navbar-burger");
if ($burgers.length > 0) {
$burgers.forEach(($el) => {
@ -140,11 +140,11 @@ document.addEventListener('DOMContentLoaded', () => {
return;
}
$el.addEventListener('click', () => {
$el.addEventListener("click", () => {
const target = $el.dataset.target;
const $target = document.getElementById(target);
$el.classList.toggle('is-active');
$target.classList.toggle('is-active');
$el.classList.toggle("is-active");
$target.classList.toggle("is-active");
});
});
}
@ -152,15 +152,15 @@ document.addEventListener('DOMContentLoaded', () => {
// Modals
const rootEl = document.documentElement;
const $modals = getAll('.modal');
const $modalButtons = getAll('.modal-button');
const $modals = getAll(".modal");
const $modalButtons = getAll(".modal-button");
const $modalCloses = getAll(
'.modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button'
".modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button"
);
if ($modalButtons.length > 0) {
$modalButtons.forEach(($el) => {
$el.addEventListener('click', () => {
$el.addEventListener("click", () => {
const target = $el.dataset.target;
openModal(target);
});
@ -169,7 +169,7 @@ document.addEventListener('DOMContentLoaded', () => {
if ($modalCloses.length > 0) {
$modalCloses.forEach(($el) => {
$el.addEventListener('click', () => {
$el.addEventListener("click", () => {
closeModals();
});
});
@ -177,18 +177,18 @@ document.addEventListener('DOMContentLoaded', () => {
function openModal(target) {
const $target = document.getElementById(target);
rootEl.classList.add('is-clipped');
$target.classList.add('is-active');
rootEl.classList.add("is-clipped");
$target.classList.add("is-active");
}
function closeModals() {
rootEl.classList.remove('is-clipped');
rootEl.classList.remove("is-clipped");
$modals.forEach(($el) => {
$el.classList.remove('is-active');
$el.classList.remove("is-active");
});
}
document.addEventListener('keydown', (event) => {
document.addEventListener("keydown", (event) => {
const e = event || window.event;
if (e.keyCode === 27) {
@ -199,7 +199,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Clipboard
const $highlights = getAll('.highlight');
const $highlights = getAll(".highlight");
let itemsProcessed = 0;
if ($highlights.length > 0) {
@ -207,19 +207,19 @@ document.addEventListener('DOMContentLoaded', () => {
const copyEl = '<button class="button bd-copy">Copy</button>';
const expandEl =
'<button class="button is-small bd-expand">Expand</button>';
$el.insertAdjacentHTML('beforeend', copyEl);
$el.insertAdjacentHTML("beforeend", copyEl);
const $parent = $el.parentNode;
if ($parent && $parent.classList.contains('bd-is-more')) {
if ($parent && $parent.classList.contains("bd-is-more")) {
const showEl =
'<button class="button is-small bd-show"><span class="icon"><i class="fas fa-code"></i></span><strong>Show code</strong></button>';
$parent.insertAdjacentHTML('afterbegin', showEl);
$parent.insertAdjacentHTML("afterbegin", showEl);
} else if (
$el.firstElementChild.scrollHeight > 480 &&
$el.firstElementChild.clientHeight <= 480
) {
$el.insertAdjacentHTML('beforeend', expandEl);
$el.insertAdjacentHTML("beforeend", expandEl);
}
itemsProcessed++;
@ -232,47 +232,49 @@ document.addEventListener('DOMContentLoaded', () => {
function addHighlightControls() {
const $highlightButtons = getAll(
'.highlight .bd-copy, .highlight .bd-expand'
".highlight .bd-copy, .highlight .bd-expand"
);
$highlightButtons.forEach(($el) => {
$el.addEventListener('mouseenter', () => {
$el.parentNode.classList.add('bd-is-hovering');
$el.parentNode.parentNode.classList.add('bd-is-hovering');
$el.addEventListener("mouseenter", () => {
$el.parentNode.classList.add("bd-is-hovering");
$el.parentNode.parentNode.classList.add("bd-is-hovering");
});
$el.addEventListener('mouseleave', () => {
$el.parentNode.classList.remove('bd-is-hovering');
$el.parentNode.parentNode.classList.remove('bd-is-hovering');
$el.addEventListener("mouseleave", () => {
$el.parentNode.classList.remove("bd-is-hovering");
$el.parentNode.parentNode.classList.remove("bd-is-hovering");
});
});
const $highlightExpands = getAll('.bd-snippet .bd-expand');
const $highlightExpands = getAll(".bd-snippet .bd-expand");
$highlightExpands.forEach(($el) => {
$el.addEventListener('click', () => {
$el.parentNode.firstElementChild.style.maxHeight = 'none';
$el.addEventListener("click", () => {
$el.parentNode.firstElementChild.style.maxHeight = "none";
});
});
const $highlightShows = getAll('.bd-snippet .bd-show');
const $highlightShows = getAll(".bd-snippet .bd-show");
$highlightShows.forEach(($el) => {
$el.addEventListener('click', () => {
const text = $el.querySelector('strong').textContent;
const newText = text === 'Show code' ? 'Hide code' : 'Show code';
$el.querySelector('strong').textContent = newText;
$el.parentNode.classList.toggle('bd-is-more-clipped');
$el.addEventListener("click", () => {
const text = $el.querySelector("strong").textContent;
const newText = text === "Show code" ? "Hide code" : "Show code";
$el.querySelector("strong").textContent = newText;
$el.parentNode.classList.toggle("bd-is-more-clipped");
});
});
}
setTimeout(() => {
new Clipboard('.bd-copy', {
new Clipboard(".bd-copy", {
target: (trigger) => {
return trigger.previousElementSibling.firstElementChild;
},
});
new Clipboard(".bd-clipboard");
}, 100);
// Events
@ -287,7 +289,7 @@ document.addEventListener('DOMContentLoaded', () => {
}, 10);
}
window.addEventListener('resize', handleResize);
window.addEventListener("resize", handleResize);
// Utils

135
docs/_sass/pages/brand.scss Normal file
View File

@ -0,0 +1,135 @@
.bd-brand {
padding: 3rem;
}
.bd-logos {
--size: 15rem;
> * {
align-items: center;
border-radius: 2em;
display: flex;
}
}
.bd-logos-label {
margin-bottom: 0 !important;
}
%bd-logos-tile {
grid-column: span 2;
justify-content: center;
height: var(--size);
width: var(--size);
}
.bd-logos-color {
@extend %bd-logos-tile;
}
.bd-logos-codes {
align-items: stretch !important;
flex-direction: column;
flex-grow: 1;
grid-column: span 4;
}
.bd-logos-code {
align-items: center;
display: flex;
flex-grow: 1;
grid-column: span 2;
p:first-child {
color: $text-light;
}
p:nth-child(2) {
flex-grow: 1;
margin-right: 1em;
text-align: right;
}
p:last-child {
}
}
.bd-logos-item {
@extend %bd-logos-tile;
background-size: cover;
position: relative;
&.is-transparent {
background-color: $border-light;
background-image: repeating-linear-gradient(
45deg,
transparent,
transparent 10px,
hsla(0, 0%, 100%, 0.4) 0,
hsla(0, 0%, 100%, 0.4) 20px
),
repeating-linear-gradient(
-45deg,
transparent,
transparent 10px,
hsla(0, 0%, 100%, 0.4) 0,
hsla(0, 0%, 100%, 0.4) 20px
);
grid-column: span 2;
}
&:hover {
.bd-logos-download {
opacity: 1;
}
}
}
.bd-logos-download {
@extend %overlay;
@extend %center;
background-color: rgba($black, 0.8);
border-radius: 2em;
opacity: 0;
transition-duration: $speed * 2;
transition-property: opacity;
.title {
color: $link-invert !important;
}
}
@include touch {
.bd-logos {
> * {
justify-content: center;
margin-bottom: 1.5rem !important;
margin-left: auto;
margin-right: auto;
}
}
.bd-logos-label {
justify-content: center;
}
}
@include desktop {
.bd-logos {
display: grid;
grid-gap: 1rem;
grid-template-columns: repeat(7, calc(var(--size) / 2));
grid-template-rows: repeat(4, var(--size));
margin-left: auto;
margin-right: auto;
max-width: 936px;
> * {
align-items: center;
border-radius: 2em;
display: flex;
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,3 @@
<svg width="42" height="64" viewBox="0 0 42 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 44L3.81818 16L19.0909 0L38.1818 20L26.7273 32L42 48L19.0909 64L0 44Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,3 @@
<svg width="42" height="64" viewBox="0 0 42 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 44L3.81818 16L19.0909 0L38.1818 20L26.7273 32L42 48L19.0909 64L0 44Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 240 B

BIN
docs/assets/Bulma Icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1,3 @@
<svg width="42" height="64" viewBox="0 0 42 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 44L3.81818 16L19.0909 0L38.1818 20L26.7273 32L42 48L19.0909 64L0 44Z" fill="#00D1B2"/>
</svg>

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,4 @@
<svg width="160" height="40" viewBox="0 0 160 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.000183105 27.5L2.50018 10L12.5002 0L25.0002 12.5L17.5002 20L27.5002 30L12.5002 40L0.000183105 27.5Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M42.1277 33.1427V6.89771C42.1277 6.38627 42.3565 5.9825 42.8141 5.68641C43.2717 5.39031 43.8101 5.24226 44.4292 5.24226H52.2219C57.6324 5.24226 60.3376 7.61101 60.3376 12.3486C60.3376 15.6326 59.1936 17.7725 56.9056 18.7685C58.2784 19.3069 59.3148 20.0673 60.0146 21.0498C60.7145 22.0323 61.0644 23.4657 61.0644 25.3499V26.1978C61.0644 29.1857 60.3377 31.3593 58.8841 32.7187C57.4305 34.0781 55.4655 34.7577 52.9891 34.7577H44.4292C43.7562 34.7577 43.2044 34.5962 42.7737 34.2732C42.343 33.9502 42.1277 33.5734 42.1277 33.1427V33.1427ZM47.3363 30.1548H51.8989C54.5099 30.1548 55.8154 28.6878 55.8154 25.7537V25.1077C55.8154 23.6003 55.4857 22.5101 54.8262 21.8371C54.1667 21.1642 53.1909 20.8277 51.8989 20.8277H47.3363V30.1548ZM47.3363 16.7093H51.8585C52.9083 16.7093 53.7091 16.3997 54.2609 15.7806C54.8127 15.1615 55.0887 14.3136 55.0887 13.2369C55.0887 12.1871 54.7993 11.3594 54.2206 10.7537C53.6418 10.148 52.841 9.84522 51.8181 9.84522H47.3363V16.7093ZM64.6983 25.7537V6.85734C64.6983 6.31897 64.9541 5.91521 65.4655 5.64603C65.9769 5.37685 66.5961 5.24226 67.3228 5.24226C68.0496 5.24226 68.6687 5.37685 69.1802 5.64603C69.6916 5.91521 69.9473 6.31897 69.9473 6.85734V25.7537C69.9473 28.8493 71.4278 30.397 74.3888 30.397C77.3498 30.397 78.8302 28.8493 78.8302 25.7537V6.85734C78.8302 6.31897 79.086 5.91521 79.5974 5.64603C80.1088 5.37685 80.7279 5.24226 81.4547 5.24226C82.1815 5.24226 82.8006 5.37685 83.3121 5.64603C83.8235 5.91521 84.0792 6.31897 84.0792 6.85734V25.7537C84.0792 28.93 83.1977 31.2651 81.4345 32.7591C79.6714 34.253 77.3229 35 74.3888 35C71.4547 35 69.1062 34.2598 67.343 32.7793C65.5799 31.2988 64.6983 28.9569 64.6983 25.7537V25.7537ZM88.8033 33.1023V6.85734C88.8033 6.31897 89.059 5.91521 89.5705 5.64603C90.0819 5.37685 90.701 5.24226 91.4278 5.24226C92.1546 5.24226 92.7737 5.37685 93.2851 5.64603C93.7966 5.91521 94.0523 6.31897 94.0523 6.85734V30.1548H103.904C104.389 30.1548 104.772 30.3836 105.055 30.8412C105.338 31.2988 105.479 31.8371 105.479 32.4563C105.479 33.0754 105.338 33.6137 105.055 34.0713C104.772 34.5289 104.389 34.7577 103.904 34.7577H91.1048C90.4857 34.7577 89.9473 34.6097 89.4897 34.3136C89.0321 34.0175 88.8033 33.6137 88.8033 33.1023V33.1023ZM108.346 33.1023V7.86676C108.346 6.97846 108.595 6.31898 109.093 5.88829C109.591 5.4576 110.217 5.24226 110.97 5.24226C111.966 5.24226 112.733 5.41723 113.272 5.76716C113.81 6.11709 114.402 6.87079 115.048 8.02826L120.015 17.0727L124.981 8.02826C125.627 6.87079 126.226 6.11709 126.778 5.76716C127.33 5.41723 128.103 5.24226 129.099 5.24226C129.853 5.24226 130.479 5.4576 130.977 5.88829C131.475 6.31898 131.724 6.97846 131.724 7.86676V33.1023C131.724 33.6137 131.461 34.0175 130.937 34.3136C130.412 34.6097 129.799 34.7577 129.099 34.7577C128.373 34.7577 127.754 34.6097 127.242 34.3136C126.731 34.0175 126.475 33.6137 126.475 33.1023V15.7402L121.751 24.1386C121.374 24.8385 120.782 25.1884 119.974 25.1884C119.194 25.1884 118.615 24.8385 118.238 24.1386L113.595 15.4172V33.1023C113.595 33.6137 113.332 34.0175 112.807 34.3136C112.282 34.6097 111.67 34.7577 110.97 34.7577C110.243 34.7577 109.624 34.6097 109.113 34.3136C108.601 34.0175 108.346 33.6137 108.346 33.1023V33.1023ZM134.51 32.5774C134.51 32.5236 134.537 32.389 134.591 32.1736L142.383 6.77658C142.545 6.2113 142.942 5.77389 143.575 5.46433C144.207 5.15478 144.927 5 145.735 5C146.542 5 147.269 5.15478 147.915 5.46433C148.561 5.77389 148.965 6.2113 149.126 6.77658L156.919 32.1736C156.973 32.389 157 32.5236 157 32.5774C157 33.1696 156.636 33.681 155.91 34.1117C155.183 34.5424 154.443 34.7577 153.689 34.7577C152.693 34.7577 152.101 34.4078 151.912 33.7079L150.378 28.3378H141.132L139.597 33.7079C139.409 34.4078 138.817 34.7577 137.821 34.7577C137.04 34.7577 136.293 34.5491 135.58 34.1319C134.867 33.7147 134.51 33.1965 134.51 32.5774V32.5774ZM142.222 24.2194H149.247L145.735 11.8237L142.222 24.2194Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1,4 @@
<svg width="160" height="40" viewBox="0 0 160 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.000183105 27.5L2.50018 10L12.5002 0L25.0002 12.5L17.5002 20L27.5002 30L12.5002 40L0.000183105 27.5Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M42.1277 33.1427V6.89771C42.1277 6.38627 42.3565 5.9825 42.8141 5.68641C43.2717 5.39031 43.8101 5.24226 44.4292 5.24226H52.2219C57.6324 5.24226 60.3376 7.61101 60.3376 12.3486C60.3376 15.6326 59.1936 17.7725 56.9056 18.7685C58.2784 19.3069 59.3148 20.0673 60.0146 21.0498C60.7145 22.0323 61.0644 23.4657 61.0644 25.3499V26.1978C61.0644 29.1857 60.3377 31.3593 58.8841 32.7187C57.4305 34.0781 55.4655 34.7577 52.9891 34.7577H44.4292C43.7562 34.7577 43.2044 34.5962 42.7737 34.2732C42.343 33.9502 42.1277 33.5734 42.1277 33.1427V33.1427ZM47.3363 30.1548H51.8989C54.5099 30.1548 55.8154 28.6878 55.8154 25.7537V25.1077C55.8154 23.6003 55.4857 22.5101 54.8262 21.8371C54.1667 21.1642 53.1909 20.8277 51.8989 20.8277H47.3363V30.1548ZM47.3363 16.7093H51.8585C52.9083 16.7093 53.7091 16.3997 54.2609 15.7806C54.8127 15.1615 55.0887 14.3136 55.0887 13.2369C55.0887 12.1871 54.7993 11.3594 54.2206 10.7537C53.6418 10.148 52.841 9.84522 51.8181 9.84522H47.3363V16.7093ZM64.6983 25.7537V6.85734C64.6983 6.31897 64.9541 5.91521 65.4655 5.64603C65.9769 5.37685 66.5961 5.24226 67.3228 5.24226C68.0496 5.24226 68.6687 5.37685 69.1802 5.64603C69.6916 5.91521 69.9473 6.31897 69.9473 6.85734V25.7537C69.9473 28.8493 71.4278 30.397 74.3888 30.397C77.3498 30.397 78.8302 28.8493 78.8302 25.7537V6.85734C78.8302 6.31897 79.086 5.91521 79.5974 5.64603C80.1088 5.37685 80.7279 5.24226 81.4547 5.24226C82.1815 5.24226 82.8006 5.37685 83.3121 5.64603C83.8235 5.91521 84.0792 6.31897 84.0792 6.85734V25.7537C84.0792 28.93 83.1977 31.2651 81.4345 32.7591C79.6714 34.253 77.3229 35 74.3888 35C71.4547 35 69.1062 34.2598 67.343 32.7793C65.5799 31.2988 64.6983 28.9569 64.6983 25.7537V25.7537ZM88.8033 33.1023V6.85734C88.8033 6.31897 89.059 5.91521 89.5705 5.64603C90.0819 5.37685 90.701 5.24226 91.4278 5.24226C92.1546 5.24226 92.7737 5.37685 93.2851 5.64603C93.7966 5.91521 94.0523 6.31897 94.0523 6.85734V30.1548H103.904C104.389 30.1548 104.772 30.3836 105.055 30.8412C105.338 31.2988 105.479 31.8371 105.479 32.4563C105.479 33.0754 105.338 33.6137 105.055 34.0713C104.772 34.5289 104.389 34.7577 103.904 34.7577H91.1048C90.4857 34.7577 89.9473 34.6097 89.4897 34.3136C89.0321 34.0175 88.8033 33.6137 88.8033 33.1023V33.1023ZM108.346 33.1023V7.86676C108.346 6.97846 108.595 6.31898 109.093 5.88829C109.591 5.4576 110.217 5.24226 110.97 5.24226C111.966 5.24226 112.733 5.41723 113.272 5.76716C113.81 6.11709 114.402 6.87079 115.048 8.02826L120.015 17.0727L124.981 8.02826C125.627 6.87079 126.226 6.11709 126.778 5.76716C127.33 5.41723 128.103 5.24226 129.099 5.24226C129.853 5.24226 130.479 5.4576 130.977 5.88829C131.475 6.31898 131.724 6.97846 131.724 7.86676V33.1023C131.724 33.6137 131.461 34.0175 130.937 34.3136C130.412 34.6097 129.799 34.7577 129.099 34.7577C128.373 34.7577 127.754 34.6097 127.242 34.3136C126.731 34.0175 126.475 33.6137 126.475 33.1023V15.7402L121.751 24.1386C121.374 24.8385 120.782 25.1884 119.974 25.1884C119.194 25.1884 118.615 24.8385 118.238 24.1386L113.595 15.4172V33.1023C113.595 33.6137 113.332 34.0175 112.807 34.3136C112.282 34.6097 111.67 34.7577 110.97 34.7577C110.243 34.7577 109.624 34.6097 109.113 34.3136C108.601 34.0175 108.346 33.6137 108.346 33.1023V33.1023ZM134.51 32.5774C134.51 32.5236 134.537 32.389 134.591 32.1736L142.383 6.77658C142.545 6.2113 142.942 5.77389 143.575 5.46433C144.207 5.15478 144.927 5 145.735 5C146.542 5 147.269 5.15478 147.915 5.46433C148.561 5.77389 148.965 6.2113 149.126 6.77658L156.919 32.1736C156.973 32.389 157 32.5236 157 32.5774C157 33.1696 156.636 33.681 155.91 34.1117C155.183 34.5424 154.443 34.7577 153.689 34.7577C152.693 34.7577 152.101 34.4078 151.912 33.7079L150.378 28.3378H141.132L139.597 33.7079C139.409 34.4078 138.817 34.7577 137.821 34.7577C137.04 34.7577 136.293 34.5491 135.58 34.1319C134.867 33.7147 134.51 33.1965 134.51 32.5774V32.5774ZM142.222 24.2194H149.247L145.735 11.8237L142.222 24.2194Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
docs/assets/Bulma Logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,4 @@
<svg width="160" height="40" viewBox="0 0 160 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.000183105 27.5L2.50018 10L12.5002 0L25.0002 12.5L17.5002 20L27.5002 30L12.5002 40L0.000183105 27.5Z" fill="#00D1B2"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M42.1277 33.1427V6.89771C42.1277 6.38627 42.3565 5.9825 42.8141 5.68641C43.2717 5.39031 43.8101 5.24226 44.4292 5.24226H52.2219C57.6324 5.24226 60.3376 7.61101 60.3376 12.3486C60.3376 15.6326 59.1936 17.7725 56.9056 18.7685C58.2784 19.3069 59.3148 20.0673 60.0146 21.0498C60.7145 22.0323 61.0644 23.4657 61.0644 25.3499V26.1978C61.0644 29.1857 60.3377 31.3593 58.8841 32.7187C57.4305 34.0781 55.4655 34.7577 52.9891 34.7577H44.4292C43.7562 34.7577 43.2044 34.5962 42.7737 34.2732C42.343 33.9502 42.1277 33.5734 42.1277 33.1427V33.1427ZM47.3363 30.1548H51.8989C54.5099 30.1548 55.8154 28.6878 55.8154 25.7537V25.1077C55.8154 23.6003 55.4857 22.5101 54.8262 21.8371C54.1667 21.1642 53.1909 20.8277 51.8989 20.8277H47.3363V30.1548ZM47.3363 16.7093H51.8585C52.9083 16.7093 53.7091 16.3997 54.2609 15.7806C54.8127 15.1615 55.0887 14.3136 55.0887 13.2369C55.0887 12.1871 54.7993 11.3594 54.2206 10.7537C53.6418 10.148 52.841 9.84522 51.8181 9.84522H47.3363V16.7093ZM64.6983 25.7537V6.85734C64.6983 6.31897 64.9541 5.91521 65.4655 5.64603C65.9769 5.37685 66.5961 5.24226 67.3228 5.24226C68.0496 5.24226 68.6687 5.37685 69.1802 5.64603C69.6916 5.91521 69.9473 6.31897 69.9473 6.85734V25.7537C69.9473 28.8493 71.4278 30.397 74.3888 30.397C77.3498 30.397 78.8302 28.8493 78.8302 25.7537V6.85734C78.8302 6.31897 79.086 5.91521 79.5974 5.64603C80.1088 5.37685 80.7279 5.24226 81.4547 5.24226C82.1815 5.24226 82.8006 5.37685 83.3121 5.64603C83.8235 5.91521 84.0792 6.31897 84.0792 6.85734V25.7537C84.0792 28.93 83.1977 31.2651 81.4345 32.7591C79.6714 34.253 77.3229 35 74.3888 35C71.4547 35 69.1062 34.2598 67.343 32.7793C65.5799 31.2988 64.6983 28.9569 64.6983 25.7537V25.7537ZM88.8033 33.1023V6.85734C88.8033 6.31897 89.059 5.91521 89.5705 5.64603C90.0819 5.37685 90.701 5.24226 91.4278 5.24226C92.1546 5.24226 92.7737 5.37685 93.2851 5.64603C93.7966 5.91521 94.0523 6.31897 94.0523 6.85734V30.1548H103.904C104.389 30.1548 104.772 30.3836 105.055 30.8412C105.338 31.2988 105.479 31.8371 105.479 32.4563C105.479 33.0754 105.338 33.6137 105.055 34.0713C104.772 34.5289 104.389 34.7577 103.904 34.7577H91.1048C90.4857 34.7577 89.9473 34.6097 89.4897 34.3136C89.0321 34.0175 88.8033 33.6137 88.8033 33.1023V33.1023ZM108.346 33.1023V7.86676C108.346 6.97846 108.595 6.31898 109.093 5.88829C109.591 5.4576 110.217 5.24226 110.97 5.24226C111.966 5.24226 112.733 5.41723 113.272 5.76716C113.81 6.11709 114.402 6.87079 115.048 8.02826L120.015 17.0727L124.981 8.02826C125.627 6.87079 126.226 6.11709 126.778 5.76716C127.33 5.41723 128.103 5.24226 129.099 5.24226C129.853 5.24226 130.479 5.4576 130.977 5.88829C131.475 6.31898 131.724 6.97846 131.724 7.86676V33.1023C131.724 33.6137 131.461 34.0175 130.937 34.3136C130.412 34.6097 129.799 34.7577 129.099 34.7577C128.373 34.7577 127.754 34.6097 127.242 34.3136C126.731 34.0175 126.475 33.6137 126.475 33.1023V15.7402L121.751 24.1386C121.374 24.8385 120.782 25.1884 119.974 25.1884C119.194 25.1884 118.615 24.8385 118.238 24.1386L113.595 15.4172V33.1023C113.595 33.6137 113.332 34.0175 112.807 34.3136C112.282 34.6097 111.67 34.7577 110.97 34.7577C110.243 34.7577 109.624 34.6097 109.113 34.3136C108.601 34.0175 108.346 33.6137 108.346 33.1023V33.1023ZM134.51 32.5774C134.51 32.5236 134.537 32.389 134.591 32.1736L142.383 6.77658C142.545 6.2113 142.942 5.77389 143.575 5.46433C144.207 5.15478 144.927 5 145.735 5C146.542 5 147.269 5.15478 147.915 5.46433C148.561 5.77389 148.965 6.2113 149.126 6.77658L156.919 32.1736C156.973 32.389 157 32.5236 157 32.5774C157 33.1696 156.636 33.681 155.91 34.1117C155.183 34.5424 154.443 34.7577 153.689 34.7577C152.693 34.7577 152.101 34.4078 151.912 33.7079L150.378 28.3378H141.132L139.597 33.7079C139.409 34.4078 138.817 34.7577 137.821 34.7577C137.04 34.7577 136.293 34.5491 135.58 34.1319C134.867 33.7147 134.51 33.1965 134.51 32.5774V32.5774ZM142.222 24.2194H149.247L145.735 11.8237L142.222 24.2194Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,3 @@
<svg width="124" height="32" viewBox="0 0 124 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.734863 30.0188V2.02423C0.734863 1.47869 0.978917 1.04801 1.46703 0.732167C1.95514 0.416329 2.52939 0.258412 3.18978 0.258412H11.502C17.2733 0.258412 20.1588 2.78508 20.1588 7.83849C20.1588 11.3414 18.9386 13.624 16.498 14.6864C17.9623 15.2607 19.0678 16.0718 19.8143 17.1198C20.5608 18.1678 20.9341 19.6967 20.9341 21.7066V22.611C20.9341 25.7981 20.1588 28.1166 18.6084 29.5666C17.0579 31.0166 14.9619 31.7416 12.3203 31.7416H3.18978C2.47196 31.7416 1.88336 31.5693 1.42396 31.2248C0.96456 30.8802 0.734863 30.4782 0.734863 30.0188V30.0188ZM6.29072 26.8318H11.1575C13.9426 26.8318 15.3351 25.267 15.3351 22.1373V21.4482C15.3351 19.8403 14.9834 18.6774 14.28 17.9596C13.5765 17.2418 12.5357 16.8829 11.1575 16.8829H6.29072V26.8318ZM6.29072 12.4899H11.1144C12.2342 12.4899 13.0884 12.1597 13.677 11.4993C14.2656 10.8389 14.5599 9.93451 14.5599 8.786C14.5599 7.66621 14.2512 6.78332 13.6339 6.13728C13.0166 5.49125 12.1624 5.16824 11.0713 5.16824H6.29072V12.4899ZM24.8102 22.1373V1.98116C24.8102 1.40691 25.083 0.976224 25.6285 0.689098C26.1741 0.401973 26.8345 0.258412 27.6097 0.258412C28.3849 0.258412 29.0453 0.401973 29.5909 0.689098C30.1364 0.976224 30.4092 1.40691 30.4092 1.98116V22.1373C30.4092 25.4392 31.9883 27.0902 35.1467 27.0902C38.3051 27.0902 39.8843 25.4392 39.8843 22.1373V1.98116C39.8843 1.40691 40.157 0.976224 40.7026 0.689098C41.2481 0.401973 41.9085 0.258412 42.6837 0.258412C43.459 0.258412 44.1193 0.401973 44.6649 0.689098C45.2104 0.976224 45.4832 1.40691 45.4832 1.98116V22.1373C45.4832 25.5254 44.5429 28.0161 42.6622 29.6097C40.7815 31.2032 38.2764 32 35.1467 32C32.017 32 29.5119 31.2104 27.6312 29.6312C25.7506 28.052 24.8102 25.5541 24.8102 22.1373V22.1373ZM50.5222 29.9758V1.98116C50.5222 1.40691 50.795 0.976224 51.3405 0.689098C51.8861 0.401973 52.5464 0.258412 53.3217 0.258412C54.0969 0.258412 54.7573 0.401973 55.3028 0.689098C55.8484 0.976224 56.1211 1.40691 56.1211 1.98116V26.8318H66.6299C67.1467 26.8318 67.5559 27.0758 67.8573 27.5639C68.1588 28.052 68.3096 28.6263 68.3096 29.2867C68.3096 29.9471 68.1588 30.5213 67.8573 31.0094C67.5559 31.4975 67.1467 31.7416 66.6299 31.7416H52.9771C52.3167 31.7416 51.7425 31.5837 51.2544 31.2678C50.7663 30.952 50.5222 30.5213 50.5222 29.9758V29.9758ZM71.3674 29.9758V3.05787C71.3674 2.11036 71.633 1.40691 72.1642 0.94751C72.6954 0.488109 73.3629 0.258412 74.1669 0.258412C75.2293 0.258412 76.0476 0.445041 76.6218 0.818304C77.1961 1.19157 77.8277 1.99551 78.5168 3.23015L83.8143 12.8775L89.1117 3.23015C89.8008 1.99551 90.4397 1.19157 91.0283 0.818304C91.6169 0.445041 92.4424 0.258412 93.5047 0.258412C94.3087 0.258412 94.9762 0.488109 95.5074 0.94751C96.0386 1.40691 96.3042 2.11036 96.3042 3.05787V29.9758C96.3042 30.5213 96.0242 30.952 95.4643 31.2678C94.9044 31.5837 94.2512 31.7416 93.5047 31.7416C92.7295 31.7416 92.0691 31.5837 91.5236 31.2678C90.978 30.952 90.7053 30.5213 90.7053 29.9758V11.4563L85.6662 20.4145C85.2642 21.1611 84.6326 21.5343 83.7712 21.5343C82.9385 21.5343 82.3212 21.1611 81.9192 20.4145L76.9664 11.1117V29.9758C76.9664 30.5213 76.6864 30.952 76.1265 31.2678C75.5666 31.5837 74.9134 31.7416 74.1669 31.7416C73.3917 31.7416 72.7313 31.5837 72.1857 31.2678C71.6402 30.952 71.3674 30.5213 71.3674 29.9758V29.9758ZM99.2759 29.4159C99.2759 29.3585 99.3046 29.2149 99.3621 28.9852L107.674 1.89502C107.847 1.29206 108.27 0.825484 108.945 0.495289C109.62 0.165095 110.388 0 111.249 0C112.11 0 112.886 0.165095 113.575 0.495289C114.264 0.825484 114.694 1.29206 114.867 1.89502L123.179 28.9852C123.236 29.2149 123.265 29.3585 123.265 29.4159C123.265 30.0476 122.878 30.5931 122.102 31.0525C121.327 31.5119 120.537 31.7416 119.734 31.7416C118.671 31.7416 118.039 31.3683 117.839 30.6218L116.202 24.8937H106.339L104.703 30.6218C104.502 31.3683 103.87 31.7416 102.808 31.7416C101.975 31.7416 101.178 31.5191 100.417 31.074C99.6564 30.629 99.2759 30.0763 99.2759 29.4159V29.4159ZM107.502 20.5007H114.996L111.249 7.2786L107.502 20.5007Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,3 @@
<svg width="124" height="32" viewBox="0 0 124 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.734863 30.0188V2.02423C0.734863 1.47869 0.978917 1.04801 1.46703 0.732167C1.95514 0.416329 2.52939 0.258412 3.18978 0.258412H11.502C17.2733 0.258412 20.1588 2.78508 20.1588 7.83849C20.1588 11.3414 18.9386 13.624 16.498 14.6864C17.9623 15.2607 19.0678 16.0718 19.8143 17.1198C20.5608 18.1678 20.9341 19.6967 20.9341 21.7066V22.611C20.9341 25.7981 20.1588 28.1166 18.6084 29.5666C17.0579 31.0166 14.9619 31.7416 12.3203 31.7416H3.18978C2.47196 31.7416 1.88336 31.5693 1.42396 31.2248C0.96456 30.8802 0.734863 30.4782 0.734863 30.0188V30.0188ZM6.29072 26.8318H11.1575C13.9426 26.8318 15.3351 25.267 15.3351 22.1373V21.4482C15.3351 19.8403 14.9834 18.6774 14.28 17.9596C13.5765 17.2418 12.5357 16.8829 11.1575 16.8829H6.29072V26.8318ZM6.29072 12.4899H11.1144C12.2342 12.4899 13.0884 12.1597 13.677 11.4993C14.2656 10.8389 14.5599 9.93451 14.5599 8.786C14.5599 7.66621 14.2512 6.78332 13.6339 6.13728C13.0166 5.49125 12.1624 5.16824 11.0713 5.16824H6.29072V12.4899ZM24.8102 22.1373V1.98116C24.8102 1.40691 25.083 0.976224 25.6285 0.689098C26.1741 0.401973 26.8345 0.258412 27.6097 0.258412C28.3849 0.258412 29.0453 0.401973 29.5909 0.689098C30.1364 0.976224 30.4092 1.40691 30.4092 1.98116V22.1373C30.4092 25.4392 31.9883 27.0902 35.1467 27.0902C38.3051 27.0902 39.8843 25.4392 39.8843 22.1373V1.98116C39.8843 1.40691 40.157 0.976224 40.7026 0.689098C41.2481 0.401973 41.9085 0.258412 42.6837 0.258412C43.459 0.258412 44.1193 0.401973 44.6649 0.689098C45.2104 0.976224 45.4832 1.40691 45.4832 1.98116V22.1373C45.4832 25.5254 44.5429 28.0161 42.6622 29.6097C40.7815 31.2032 38.2764 32 35.1467 32C32.017 32 29.5119 31.2104 27.6312 29.6312C25.7506 28.052 24.8102 25.5541 24.8102 22.1373V22.1373ZM50.5222 29.9758V1.98116C50.5222 1.40691 50.795 0.976224 51.3405 0.689098C51.8861 0.401973 52.5464 0.258412 53.3217 0.258412C54.0969 0.258412 54.7573 0.401973 55.3028 0.689098C55.8484 0.976224 56.1211 1.40691 56.1211 1.98116V26.8318H66.6299C67.1467 26.8318 67.5559 27.0758 67.8573 27.5639C68.1588 28.052 68.3096 28.6263 68.3096 29.2867C68.3096 29.9471 68.1588 30.5213 67.8573 31.0094C67.5559 31.4975 67.1467 31.7416 66.6299 31.7416H52.9771C52.3167 31.7416 51.7425 31.5837 51.2544 31.2678C50.7663 30.952 50.5222 30.5213 50.5222 29.9758V29.9758ZM71.3674 29.9758V3.05787C71.3674 2.11036 71.633 1.40691 72.1642 0.94751C72.6954 0.488109 73.3629 0.258412 74.1669 0.258412C75.2293 0.258412 76.0476 0.445041 76.6218 0.818304C77.1961 1.19157 77.8277 1.99551 78.5168 3.23015L83.8143 12.8775L89.1117 3.23015C89.8008 1.99551 90.4397 1.19157 91.0283 0.818304C91.6169 0.445041 92.4424 0.258412 93.5047 0.258412C94.3087 0.258412 94.9762 0.488109 95.5074 0.94751C96.0386 1.40691 96.3042 2.11036 96.3042 3.05787V29.9758C96.3042 30.5213 96.0242 30.952 95.4643 31.2678C94.9044 31.5837 94.2512 31.7416 93.5047 31.7416C92.7295 31.7416 92.0691 31.5837 91.5236 31.2678C90.978 30.952 90.7053 30.5213 90.7053 29.9758V11.4563L85.6662 20.4145C85.2642 21.1611 84.6326 21.5343 83.7712 21.5343C82.9385 21.5343 82.3212 21.1611 81.9192 20.4145L76.9664 11.1117V29.9758C76.9664 30.5213 76.6864 30.952 76.1265 31.2678C75.5666 31.5837 74.9134 31.7416 74.1669 31.7416C73.3917 31.7416 72.7313 31.5837 72.1857 31.2678C71.6402 30.952 71.3674 30.5213 71.3674 29.9758V29.9758ZM99.2759 29.4159C99.2759 29.3585 99.3046 29.2149 99.3621 28.9852L107.674 1.89502C107.847 1.29206 108.27 0.825484 108.945 0.495289C109.62 0.165095 110.388 0 111.249 0C112.11 0 112.886 0.165095 113.575 0.495289C114.264 0.825484 114.694 1.29206 114.867 1.89502L123.179 28.9852C123.236 29.2149 123.265 29.3585 123.265 29.4159C123.265 30.0476 122.878 30.5931 122.102 31.0525C121.327 31.5119 120.537 31.7416 119.734 31.7416C118.671 31.7416 118.039 31.3683 117.839 30.6218L116.202 24.8937H106.339L104.703 30.6218C104.502 31.3683 103.87 31.7416 102.808 31.7416C101.975 31.7416 101.178 31.5191 100.417 31.074C99.6564 30.629 99.2759 30.0763 99.2759 29.4159V29.4159ZM107.502 20.5007H114.996L111.249 7.2786L107.502 20.5007Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

109
docs/brand.html Normal file
View File

@ -0,0 +1,109 @@
---
title: "Brand assets of Bulma"
layout: default
route: brand
breadcrumb:
- home
- brand
---
{% include global/navbar.html id="Brand" %}
{%
include components/hero.html
color="primary"
icon="fas fa-copyright"
title="The Bulma **Brand**"
subtitle="Download the official Bulma logo"
%}
<div class="bd-brand">
<div class="bd-logos">
<p class="bd-logos-label title is-5">
Color
</p>
<div class="bd-logos-color has-background-primary"></div>
<div class="bd-logos-codes">
<div class="bd-logos-code">
<p>Hex</p>
<p><strong>#00D1B2</strong></p>
<button class="bd-clipboard button is-primary is-small is-light" data-clipboard-text="#00D1B2">Copy</button>
</div>
<div class="bd-logos-code">
<p>RGB</p>
<p><strong>rgb(0, 209, 178)</strong></p>
<button class="bd-clipboard button is-primary is-small is-light" data-clipboard-text="rgb(0, 209, 178)">Copy</button>
</div>
<div class="bd-logos-code">
<p>HSL</p>
<p><strong>hsl(171, 100%, 41%)</strong></p>
<button class="bd-clipboard button is-primary is-small is-light" data-clipboard-text="hsl(171, 100%, 41%)">Copy</button>
</div>
</div>
<p class="bd-logos-label title is-5">
Icon
</p>
{%
include components/logos-item.html
asset="Bulma Icon"
%}
{%
include components/logos-item.html
unsplash="fxvpCFZgTe4"
asset="Bulma Icon Black"
%}
{%
include components/logos-item.html
unsplash="4TKFpJPnyU8"
asset="Bulma Icon White"
%}
<p class="bd-logos-label title is-5">
Wordmark
</p>
{%
include components/logos-item.html
asset="Bulma Wordmark"
%}
{%
include components/logos-item.html
unsplash="KjWMGF0PYuE"
asset="Bulma Wordmark"
%}
{%
include components/logos-item.html
unsplash="qsnfSvCdec4"
asset="Bulma Wordmark White"
%}
<p class="bd-logos-label title is-5">
Logo
</p>
{%
include components/logos-item.html
asset="Bulma Logo"
%}
{%
include components/logos-item.html
unsplash="8tA3ZSY9Iic"
asset="Bulma Logo Black"
%}
{%
include components/logos-item.html
unsplash="RMypptC8-B0"
asset="Bulma Logo White"
%}
</div>
</div>

View File

@ -234,6 +234,7 @@ $navbar-breakpoint: $tablet;
@import "./_sass/pages/extensions";
@import "./_sass/pages/made-with-bulma";
@import "./_sass/pages/bootstrap";
@import "./_sass/pages/brand";
@import "./_sass/index/hello";
@import "./_sass/index/focus";

View File

@ -213,7 +213,7 @@ fieldset[disabled] .bulma-control-extend {
.image.is-3by5 .has-ratio, .image.is-9by16 img,
.image.is-9by16 .has-ratio, .image.is-1by2 img,
.image.is-1by2 .has-ratio, .image.is-1by3 img,
.image.is-1by3 .has-ratio, .modal, .modal-background, .is-overlay, .hero-video, .bd-docs-overlay {
.image.is-1by3 .has-ratio, .modal, .modal-background, .is-overlay, .hero-video, .bd-docs-overlay, .bd-logos-download {
bottom: 0;
left: 0;
position: absolute;
@ -16883,7 +16883,7 @@ a.has-text-bootstrap-dark:hover, a.has-text-bootstrap-dark:focus {
padding: 3rem 1.5rem 6rem;
}
.bd-option-or p, .bd-snippet-preview.bd-is-mwb, .bd-book-cover, .bd-fortyfour-image, .bd-fortyfour-cta, .bd-side-sponsor, .bd-backers-platform, .bd-backers-platform .bd-backers-platform-logo, .bd-backers-heading, .bd-single-carbon, .bd-single-image, .bd-snippet-mwb, .bd-partner-sponsor, .bd-columns-tool, .bd-footer-sponsor, .bd-footer-donation-action, .bd-footer-star-figure {
.bd-option-or p, .bd-snippet-preview.bd-is-mwb, .bd-book-cover, .bd-fortyfour-image, .bd-fortyfour-cta, .bd-side-sponsor, .bd-backers-platform, .bd-backers-platform .bd-backers-platform-logo, .bd-backers-heading, .bd-single-carbon, .bd-single-image, .bd-snippet-mwb, .bd-logos-download, .bd-partner-sponsor, .bd-columns-tool, .bd-footer-sponsor, .bd-footer-donation-action, .bd-footer-star-figure {
align-items: center;
display: flex;
justify-content: center;
@ -20828,6 +20828,111 @@ a.has-text-bootstrap-dark:hover, a.has-text-bootstrap-dark:focus {
}
}
.bd-brand {
padding: 3rem;
}
.bd-logos {
--size: 15rem;
}
.bd-logos > * {
align-items: center;
border-radius: 2em;
display: flex;
}
.bd-logos-label {
margin-bottom: 0 !important;
}
.bd-logos-color, .bd-logos-item {
grid-column: span 2;
justify-content: center;
height: var(--size);
width: var(--size);
}
.bd-logos-codes {
align-items: stretch !important;
flex-direction: column;
flex-grow: 1;
grid-column: span 4;
}
.bd-logos-code {
align-items: center;
display: flex;
flex-grow: 1;
grid-column: span 2;
}
.bd-logos-code p:first-child {
color: #7a7a7a;
}
.bd-logos-code p:nth-child(2) {
flex-grow: 1;
margin-right: 1em;
text-align: right;
}
.bd-logos-item {
background-size: cover;
position: relative;
}
.bd-logos-item.is-transparent {
background-color: #ededed;
background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.4) 20px), repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.4) 20px);
grid-column: span 2;
}
.bd-logos-item:hover .bd-logos-download {
opacity: 1;
}
.bd-logos-download {
background-color: rgba(10, 10, 10, 0.8);
border-radius: 2em;
opacity: 0;
transition-duration: 172ms;
transition-property: opacity;
}
.bd-logos-download .title {
color: #fff !important;
}
@media screen and (max-width: 1023px) {
.bd-logos > * {
justify-content: center;
margin-bottom: 1.5rem !important;
margin-left: auto;
margin-right: auto;
}
.bd-logos-label {
justify-content: center;
}
}
@media screen and (min-width: 1024px) {
.bd-logos {
display: grid;
grid-gap: 1rem;
grid-template-columns: repeat(7, calc(var(--size) / 2));
grid-template-rows: repeat(4, var(--size));
margin-left: auto;
margin-right: auto;
max-width: 936px;
}
.bd-logos > * {
align-items: center;
border-radius: 2em;
display: flex;
}
}
.bd-hello-body {
display: grid;
grid-gap: var(--bd-index-gap);

File diff suppressed because one or more lines are too long

View File

@ -1,28 +1,28 @@
'use strict';
"use strict";
document.addEventListener('DOMContentLoaded', function () {
document.addEventListener("DOMContentLoaded", function () {
// Search
var setSearchToggle = function setSearchToggle() {
var icon = document.getElementById('searchIcon');
var search = document.getElementById('search');
var input = document.getElementById('algoliaSearch');
var icon = document.getElementById("searchIcon");
var search = document.getElementById("search");
var input = document.getElementById("algoliaSearch");
if (!icon) {
return;
}
icon.addEventListener('click', function (event) {
search.classList.toggle('bd-is-visible');
icon.addEventListener("click", function (event) {
search.classList.toggle("bd-is-visible");
if (search.classList.contains('bd-is-visible')) {
if (search.classList.contains("bd-is-visible")) {
algoliaSearch.focus();
}
});
window.addEventListener('keydown', function (event) {
if (event.key === 'Escape') {
return search.classList.remove('bd-is-visible');
window.addEventListener("keydown", function (event) {
if (event.key === "Escape") {
return search.classList.remove("bd-is-visible");
}
});
};
@ -32,7 +32,7 @@ document.addEventListener('DOMContentLoaded', function () {
// Navbar
var setNavbarVisibility = function setNavbarVisibility() {
var navbar = document.getElementById('navbar');
var navbar = document.getElementById("navbar");
if (!navbar) {
return;
@ -40,19 +40,19 @@ document.addEventListener('DOMContentLoaded', function () {
var cs = getComputedStyle(navbar);
var paddingX = parseFloat(cs.paddingLeft) + parseFloat(cs.paddingRight);
var brand = navbar.querySelector('.navbar-brand');
var end = navbar.querySelector('.navbar-end');
var search = navbar.querySelector('.bd-search');
var original = document.getElementById('navbarStartOriginal');
var clone = document.getElementById('navbarStartClone');
var brand = navbar.querySelector(".navbar-brand");
var end = navbar.querySelector(".navbar-end");
var search = navbar.querySelector(".bd-search");
var original = document.getElementById("navbarStartOriginal");
var clone = document.getElementById("navbarStartClone");
var rest = navbar.clientWidth - paddingX - brand.clientWidth - end.clientWidth - search.clientWidth;
var space = original.clientWidth;
var all = document.querySelectorAll('#navbarStartClone > .bd-navbar-item');
var base = document.querySelectorAll('#navbarStartClone > .bd-navbar-item-base');
var more = document.querySelectorAll('#navbarStartOriginal > .bd-navbar-item-more');
var dropdown = document.querySelectorAll('#navbarStartOriginal .bd-navbar-dropdown > .navbar-item');
var all = document.querySelectorAll("#navbarStartClone > .bd-navbar-item");
var base = document.querySelectorAll("#navbarStartClone > .bd-navbar-item-base");
var more = document.querySelectorAll("#navbarStartOriginal > .bd-navbar-item-more");
var dropdown = document.querySelectorAll("#navbarStartOriginal .bd-navbar-dropdown > .navbar-item");
var count = 0;
var totalWidth = 0;
@ -96,17 +96,17 @@ document.addEventListener('DOMContentLoaded', function () {
if (howManyMore > 0) {
for (var i = 0; i < howManyMore; i++) {
more[i].classList.add('bd-is-visible');
dropdown[i].classList.add('bd-is-hidden');
more[i].classList.add("bd-is-visible");
dropdown[i].classList.add("bd-is-hidden");
}
}
for (var j = howManyMore; j < more.length; j++) {
more[j].classList.remove('bd-is-visible');
more[j].classList.remove("bd-is-visible");
}
for (var k = howManyMore; k < dropdown.length; k++) {
dropdown[k].classList.remove('bd-is-hidden');
dropdown[k].classList.remove("bd-is-hidden");
}
};
@ -114,35 +114,35 @@ document.addEventListener('DOMContentLoaded', function () {
// Cookies
var cookieBookModalName = 'bulma_closed_book_modal';
var cookieBookModalName = "bulma_closed_book_modal";
var cookieBookModal = Cookies.getJSON(cookieBookModalName) || false;
// Dropdowns
var $dropdowns = getAll('.dropdown:not(.is-hoverable)');
var $dropdowns = getAll(".dropdown:not(.is-hoverable)");
if ($dropdowns.length > 0) {
$dropdowns.forEach(function ($el) {
$el.addEventListener('click', function (event) {
$el.addEventListener("click", function (event) {
event.stopPropagation();
$el.classList.toggle('is-active');
$el.classList.toggle("is-active");
});
});
document.addEventListener('click', function (event) {
document.addEventListener("click", function (event) {
closeDropdowns();
});
}
function closeDropdowns() {
$dropdowns.forEach(function ($el) {
$el.classList.remove('is-active');
$el.classList.remove("is-active");
});
}
// Toggles
var $burgers = getAll('.navbar-burger');
var $burgers = getAll(".navbar-burger");
if ($burgers.length > 0) {
$burgers.forEach(function ($el) {
@ -150,11 +150,11 @@ document.addEventListener('DOMContentLoaded', function () {
return;
}
$el.addEventListener('click', function () {
$el.addEventListener("click", function () {
var target = $el.dataset.target;
var $target = document.getElementById(target);
$el.classList.toggle('is-active');
$target.classList.toggle('is-active');
$el.classList.toggle("is-active");
$target.classList.toggle("is-active");
});
});
}
@ -162,13 +162,13 @@ document.addEventListener('DOMContentLoaded', function () {
// Modals
var rootEl = document.documentElement;
var $modals = getAll('.modal');
var $modalButtons = getAll('.modal-button');
var $modalCloses = getAll('.modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button');
var $modals = getAll(".modal");
var $modalButtons = getAll(".modal-button");
var $modalCloses = getAll(".modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button");
if ($modalButtons.length > 0) {
$modalButtons.forEach(function ($el) {
$el.addEventListener('click', function () {
$el.addEventListener("click", function () {
var target = $el.dataset.target;
openModal(target);
});
@ -177,7 +177,7 @@ document.addEventListener('DOMContentLoaded', function () {
if ($modalCloses.length > 0) {
$modalCloses.forEach(function ($el) {
$el.addEventListener('click', function () {
$el.addEventListener("click", function () {
closeModals();
});
});
@ -185,18 +185,18 @@ document.addEventListener('DOMContentLoaded', function () {
function openModal(target) {
var $target = document.getElementById(target);
rootEl.classList.add('is-clipped');
$target.classList.add('is-active');
rootEl.classList.add("is-clipped");
$target.classList.add("is-active");
}
function closeModals() {
rootEl.classList.remove('is-clipped');
rootEl.classList.remove("is-clipped");
$modals.forEach(function ($el) {
$el.classList.remove('is-active');
$el.classList.remove("is-active");
});
}
document.addEventListener('keydown', function (event) {
document.addEventListener("keydown", function (event) {
var e = event || window.event;
if (e.keyCode === 27) {
@ -207,22 +207,22 @@ document.addEventListener('DOMContentLoaded', function () {
// Clipboard
var $highlights = getAll('.highlight');
var $highlights = getAll(".highlight");
var itemsProcessed = 0;
if ($highlights.length > 0) {
$highlights.forEach(function ($el) {
var copyEl = '<button class="button bd-copy">Copy</button>';
var expandEl = '<button class="button is-small bd-expand">Expand</button>';
$el.insertAdjacentHTML('beforeend', copyEl);
$el.insertAdjacentHTML("beforeend", copyEl);
var $parent = $el.parentNode;
if ($parent && $parent.classList.contains('bd-is-more')) {
if ($parent && $parent.classList.contains("bd-is-more")) {
var showEl = '<button class="button is-small bd-show"><span class="icon"><i class="fas fa-code"></i></span><strong>Show code</strong></button>';
$parent.insertAdjacentHTML('afterbegin', showEl);
$parent.insertAdjacentHTML("afterbegin", showEl);
} else if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
$el.insertAdjacentHTML('beforeend', expandEl);
$el.insertAdjacentHTML("beforeend", expandEl);
}
itemsProcessed++;
@ -234,46 +234,48 @@ document.addEventListener('DOMContentLoaded', function () {
}
function addHighlightControls() {
var $highlightButtons = getAll('.highlight .bd-copy, .highlight .bd-expand');
var $highlightButtons = getAll(".highlight .bd-copy, .highlight .bd-expand");
$highlightButtons.forEach(function ($el) {
$el.addEventListener('mouseenter', function () {
$el.parentNode.classList.add('bd-is-hovering');
$el.parentNode.parentNode.classList.add('bd-is-hovering');
$el.addEventListener("mouseenter", function () {
$el.parentNode.classList.add("bd-is-hovering");
$el.parentNode.parentNode.classList.add("bd-is-hovering");
});
$el.addEventListener('mouseleave', function () {
$el.parentNode.classList.remove('bd-is-hovering');
$el.parentNode.parentNode.classList.remove('bd-is-hovering');
$el.addEventListener("mouseleave", function () {
$el.parentNode.classList.remove("bd-is-hovering");
$el.parentNode.parentNode.classList.remove("bd-is-hovering");
});
});
var $highlightExpands = getAll('.bd-snippet .bd-expand');
var $highlightExpands = getAll(".bd-snippet .bd-expand");
$highlightExpands.forEach(function ($el) {
$el.addEventListener('click', function () {
$el.parentNode.firstElementChild.style.maxHeight = 'none';
$el.addEventListener("click", function () {
$el.parentNode.firstElementChild.style.maxHeight = "none";
});
});
var $highlightShows = getAll('.bd-snippet .bd-show');
var $highlightShows = getAll(".bd-snippet .bd-show");
$highlightShows.forEach(function ($el) {
$el.addEventListener('click', function () {
var text = $el.querySelector('strong').textContent;
var newText = text === 'Show code' ? 'Hide code' : 'Show code';
$el.querySelector('strong').textContent = newText;
$el.parentNode.classList.toggle('bd-is-more-clipped');
$el.addEventListener("click", function () {
var text = $el.querySelector("strong").textContent;
var newText = text === "Show code" ? "Hide code" : "Show code";
$el.querySelector("strong").textContent = newText;
$el.parentNode.classList.toggle("bd-is-more-clipped");
});
});
}
setTimeout(function () {
new Clipboard('.bd-copy', {
new Clipboard(".bd-copy", {
target: function target(trigger) {
return trigger.previousElementSibling.firstElementChild;
}
});
new Clipboard(".bd-clipboard");
}, 100);
// Events
@ -288,7 +290,7 @@ document.addEventListener('DOMContentLoaded', function () {
}, 10);
}
window.addEventListener('resize', handleResize);
window.addEventListener("resize", handleResize);
// Utils