Bulma v9 website (#3249)

* Add Bulma v9

* Add vendor dependencies

* Fix native

* Fix sponsors

* Add style attribute
This commit is contained in:
Jeremy Thomas
2021-01-27 23:30:42 +00:00
committed by GitHub
parent c5edaea84f
commit 08ef4df2c0
1963 changed files with 157468 additions and 9452 deletions

73
docs/_sass/global/cc.scss Normal file
View File

@@ -0,0 +1,73 @@
.cpck-window {
background-color: $white;
box-shadow: 0 0 1em rgba(black, 0.1);
padding: 1em 1.5em;
position: fixed;
z-index: 10;
}
.cpck-invisible {
display: none !important;
}
.cpck-link {
border-bottom: 1px solid $link;
padding-bottom: 2px;
&:hover {
border-bottom-width: 2px;
}
&:active {
background-color: $link-light;
}
}
.cpck-compliance {
margin-top: 1em;
}
.cpck-btn {
border: 2px solid $success;
border-radius: $radius;
color: $success;
display: inline-block;
font-weight: $weight-bold;
padding: 0.5em 1em;
vertical-align: top;
span {
margin-left: -0.125em;
margin-right: 0.5em;
}
&:hover {
background-color: $success-light;
color: $success-dark;
}
&:active,
&:focus {
background-color: darken($success-light, 5%);
border-color: $success-dark;
color: darken($success-dark, 5%);
outline: none;
}
}
@include mobile {
.cpck-window {
bottom: 0;
left: 0;
right: 0;
}
}
@include tablet {
.cpck-window {
border-radius: $radius;
bottom: 1em;
right: 1em;
width: 20rem;
}
}

View File

@@ -0,0 +1,302 @@
.bd-footer-title {
color: $text-light;
font-size: $size-5;
line-height: 1.25;
margin-bottom: 0.5rem;
transition-duration: $speed;
transition-property: color;
strong {
color: currentColor;
font-weight: $weight-semibold;
}
}
.bd-footer-subtitle {
color: $border-hover;
margin-top: -0.5rem;
transition-duration: $speed;
transition-property: color;
}
.bd-footer-iframe {
display: flex;
flex-wrap: wrap;
margin-bottom: -10px;
min-height: 30px;
iframe {
height: 30px;
margin-bottom: 10px;
}
.fb-like {
margin-left: 10px;
}
&.is-github {
iframe {
width: 100%;
}
}
}
.bd-footer-tsp {
color: $border-hover;
margin-top: 1.5rem;
}
%bd-footer-box {
@extend %bd-box;
text-align: center;
.bd-footer-title {
font-size: 1.5rem;
}
}
// Support
.bd-footer-support {
@extend %bd-footer-box;
border-top: 2px solid $scheme-main-ter;
box-shadow: none;
padding: 3rem;
.bd-footer-title {
margin-bottom: 1.5rem;
}
}
.bd-footer-donations {
justify-content: center;
}
.bd-footer-donation {
flex: none;
}
.bd-footer-donation-items {
display: flex;
flex-wrap: wrap;
justify-content: center;
.bd-footer-sponsor {
width: 12rem;
}
}
.bd-footer-sponsor a {
@extend %center;
height: 70px;
}
@include tablet {
.bd-footer-donation {
padding: 0.75rem 1.5rem;
}
}
.bd-footer-donation-title {
color: $border-hover;
margin-bottom: 0.5rem;
strong {
color: currentColor;
}
}
.bd-footer-donation-action {
@extend %center;
height: 70px;
.bd-github-button {
margin-right: 0.5rem;
}
.bd-github-button,
.bd-patreon-button {
flex-shrink: 0;
}
.paypal-form {
height: 30px;
img {
display: block;
}
}
}
// Stars
$star-figure-height: 156px;
.bd-footer-stars {
margin-top: 2.5rem;
@include tablet {
align-items: stretch;
display: flex;
justify-content: space-between;
}
}
.bd-footer-star {
@extend %bd-footer-box;
transition-duration: $speed;
transition-property: box-shadow, transform;
will-change: box-shadow, transform;
@include mobile {
&:not(:last-child) {
margin-bottom: 1.5rem;
}
}
@include tablet {
width: calc(33.3333% - 2rem);
}
&:hover {
box-shadow: 0 3rem 3rem -1.25rem rgba($scheme-invert, 0.1);
transform: translateY(-0.5rem);
.bd-footer-title,
.bd-footer-subtitle {
color: $link;
}
}
&.bd-is-expo,
&.bd-is-love {
padding-bottom: $star-figure-height;
.bd-footer-title {
align-items: center;
display: flex;
justify-content: center;
.icon {
margin-right: 0.25em;
}
}
}
&.bd-is-expo {
background-image: url('/images/footer/expo-examples.png');
background-repeat: repeat-x;
background-position: bottom center;
background-size: 352px $star-figure-height;
}
&.bd-is-love {
background-image: url('/images/footer/love.png');
background-repeat: no-repeat;
background-position: bottom center;
background-size: 440px 180px;
}
}
.bd-footer-star-header {
padding: 1.5rem;
}
.bd-footer-star-figure {
@extend %center;
height: $star-figure-height;
margin-top: -1rem;
}
// Links
.bd-footer-links {
margin-top: 6rem;
padding-bottom: 6rem;
a {
color: currentColor;
&:hover {
color: $link;
}
}
}
.bd-footer-link-title {
color: $text-strong;
font-size: 1.25rem;
font-weight: $weight-semibold;
&:not(:first-child) {
margin-top: 1.5em;
}
}
.bd-footer-link {
margin-top: 0.5rem;
&.bd-is-more {
font-size: 0.875rem;
a:not(:hover) {
color: $border-hover;
}
}
&.bd-has-subtitle {
a {
align-items: center;
display: flex;
justify-content: space-between;
strong {
flex-grow: 1;
flex-shrink: 1;
font-weight: unset;
}
em {
display: block;
font-size: 0.875rem;
font-style: normal;
}
&:not(:hover) {
em {
color: $border-hover;
}
}
@include mobile {
flex-wrap: wrap;
margin-top: 1rem;
em {
width: 100%;
}
}
@include tablet {
em {
margin-left: 1rem;
text-align: right;
}
}
}
}
}
.bd-footer-link-icon {
flex-grow: 0;
flex-shrink: 0;
margin-right: 0.5em;
text-align: center;
width: 1em;
}

View File

@@ -0,0 +1,182 @@
:root {
--newsletter-strip-size: 16px;
--newsletter-border-size: #{$block-spacing};
}
#newsletter {
background: $scheme-main-bis;
padding: var(--newsletter-border-size);
padding-top: 0;
.bd-drawing {
display: none;
}
}
.bd-newsletter-heading {
> .icon {
font-size: $title-size;
height: 1.125em;
width: 1.125em;
}
.title,
.subtitle {
font-weight: $weight-normal;
strong {
color: inherit;
font-weight: $weight-semibold;
}
small {
color: $text-light;
display: block;
font-size: 0.75em;
}
}
.subtitle {
color: $text-light;
}
.bd-fat-button {
font-weight: $weight-normal;
strong {
font-weight: $weight-semibold;
}
}
}
.bd-newsletter-fields {
display: grid;
grid-gap: $block-spacing / 2;
grid-template-columns: minmax(20em, 1fr) auto;
}
.bd-newsletter-box {
background-color: $scheme-main;
background-image: url('/images/hab/newsletter-strip.png');
background-repeat: repeat-x;
background-size: 96px var(--newsletter-strip-size);
border-radius: 1.5em;
box-shadow: 0 0 0 1px $scheme-main-ter;
.icon {
align-self: flex-start;
}
form .input {
&:not(:focus):not(:hover) {
border-color: $border;
}
}
}
@include mobile {
.bd-newsletter-box {
padding-top: calc(#{$block-spacing} + var(--newsletter-strip-size));
}
.bd-newsletter-fields {
grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
}
}
@include touch {
.bd-newsletter-heading {
margin-bottom: var(--bd-index-vertical);
.icon {
float: left;
margin-right: $block-spacing / 2;
}
.subtitle {
margin: ($block-spacing / 2) 0 !important;
}
form {
margin-top: $block-spacing;
}
}
}
@include tablet {
.bd-newsletter-box {
padding-top: calc(var(--bd-index-vertical) + var(--newsletter-strip-size));
}
}
@include desktop {
.bd-newsletter-heading {
display: grid;
// prettier-ignore
grid-template-columns:
($block-spacing * 2)
($block-spacing * 2)
1fr
1fr
($block-spacing * 2)
($block-spacing * 2);
> .icon {
grid-column: 2;
}
.title {
grid-column: 3;
max-width: 9em;
}
.subtitle {
grid-column: 4;
max-width: 10em;
}
form {
grid-column: 4;
}
}
}
@include widescreen {
:root {
--newsletter-border-size: #{$bd-edge-width / 2};
}
#newsletter {
.bd-drawing {
display: block;
}
}
.bd-newsletter-heading {
// prettier-ignore
grid-template-columns:
($block-spacing * 3)
($block-spacing * 3)
1fr
1fr
($block-spacing * 3)
($block-spacing * 3);
}
.bd-newsletter-box {
box-shadow: 0 1em 2em rgba(black, 0.05);
}
}
@include from(1780px) {
.bd-newsletter-heading {
// prettier-ignore
grid-template-columns:
minmax(#{$block-spacing * 2}, 1fr)
($block-spacing * 3)
calc(var(--container-width) / 2)
calc(var(--container-width) / 2)
($block-spacing * 3)
minmax(#{$block-spacing * 2}, 1fr);
}
}

View File

@@ -0,0 +1,309 @@
.bd-footer-title {
color: $text-light;
font-size: $size-5;
line-height: 1.25;
margin-bottom: 0.5rem;
transition-duration: $speed;
transition-property: color;
strong {
color: currentColor;
font-weight: $weight-semibold;
}
}
.bd-footer-subtitle {
color: $border-hover;
margin-top: -0.5rem;
transition-duration: $speed;
transition-property: color;
}
.bd-footer-iframe {
display: flex;
flex-wrap: wrap;
margin-bottom: -10px;
min-height: 30px;
iframe {
height: 30px;
margin-bottom: 10px;
}
.fb-like {
margin-left: 10px;
}
&.is-github {
iframe {
width: 100%;
}
}
}
.bd-footer-tsp {
color: $border-hover;
margin-top: $block-spacing;
}
%bd-footer-box {
@extend %bd-box;
text-align: center;
.bd-footer-title {
font-size: $size-4;
}
}
// Support
.bd-footer-support {
@extend %bd-footer-box;
background-color: $scheme-main-bis;
box-shadow: none;
padding: 3rem;
.bd-footer-title {
margin-bottom: $block-spacing;
}
}
.bd-footer-donations {
justify-content: center;
}
.bd-footer-donation {
flex: none;
}
.bd-footer-donation-items {
display: flex;
flex-wrap: wrap;
justify-content: center;
.bd-footer-sponsor {
width: 12rem;
}
}
.bd-footer-sponsor {
@extend %center;
height: 70px;
}
@include tablet {
.bd-footer-donation {
padding: 0.75rem $block-spacing;
}
}
@include desktop {
.bd-footer-support {
padding-bottom: 6rem;
padding-top: 6rem;
}
}
.bd-footer-donation-title {
color: $border-hover;
margin-bottom: 0.5rem;
strong {
color: currentColor;
}
}
.bd-footer-donation-action {
@extend %center;
height: 70px;
.bd-github-button {
margin-right: 0.5rem;
}
.bd-github-button,
.bd-patreon-button {
flex-shrink: 0;
}
.paypal-form {
height: 30px;
img {
display: block;
}
}
}
// Stars
$star-figure-height: 156px;
.bd-footer-stars {
margin-top: 2.5rem;
@include tablet {
align-items: stretch;
display: flex;
justify-content: space-between;
}
}
.bd-footer-star {
@extend %bd-footer-box;
transition-duration: $speed;
transition-property: box-shadow, transform;
will-change: box-shadow, transform;
@include mobile {
&:not(:last-child) {
margin-bottom: 1.5rem;
}
}
@include tablet {
width: calc(33.3333% - 2rem);
}
&:hover {
box-shadow: 0 3rem 3rem -1.25rem rgba($scheme-invert, 0.1);
transform: translateY(-0.5rem);
.bd-footer-title,
.bd-footer-subtitle {
color: $link;
}
}
&.bd-is-expo,
&.bd-is-love {
padding-bottom: $star-figure-height;
.bd-footer-title {
align-items: center;
display: flex;
justify-content: center;
.icon {
margin-right: 0.25em;
}
}
}
&.bd-is-expo {
background-image: url('/images/footer/expo-examples.png');
background-repeat: repeat-x;
background-position: bottom center;
background-size: 352px $star-figure-height;
}
&.bd-is-love {
background-image: url('/images/footer/love.png');
background-repeat: no-repeat;
background-position: bottom center;
background-size: 440px 180px;
}
}
.bd-footer-star-header {
padding: 1.5rem;
}
.bd-footer-star-figure {
@extend %center;
height: $star-figure-height;
margin-top: -1rem;
}
// Links
.bd-footer-links {
margin-top: 6rem;
padding-bottom: 6rem;
a {
color: currentColor;
&:hover {
color: $link;
}
}
}
.bd-footer-link-title {
color: $text-strong;
font-size: 1.25rem;
font-weight: $weight-semibold;
&:not(:first-child) {
margin-top: 1.5em;
}
}
.bd-footer-link {
margin-top: 0.5rem;
&.bd-is-more {
font-size: 0.875rem;
a:not(:hover) {
color: $border-hover;
}
}
&.bd-has-subtitle {
a {
align-items: center;
display: flex;
justify-content: space-between;
strong {
flex-grow: 1;
flex-shrink: 1;
font-weight: unset;
}
em {
display: block;
font-size: 0.875rem;
font-style: normal;
}
&:not(:hover) {
em {
color: $border-hover;
}
}
@include mobile {
flex-wrap: wrap;
margin-top: 1rem;
em {
width: 100%;
}
}
@include tablet {
em {
margin-left: 1rem;
text-align: right;
}
}
}
}
}
.bd-footer-link-icon {
flex-grow: 0;
flex-shrink: 0;
margin-right: 0.5em;
text-align: center;
width: 1em;
}