mirror of
https://github.com/jgthms/bulma
synced 2026-03-19 11:54:30 -07:00
Bulma v9 website (#3249)
* Add Bulma v9 * Add vendor dependencies * Fix native * Fix sponsors * Add style attribute
This commit is contained in:
44
docs/_sass/components/anchors.scss
Normal file
44
docs/_sass/components/anchors.scss
Normal file
@@ -0,0 +1,44 @@
|
||||
.bd-anchors {
|
||||
padding: var(--docs-side-padding);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
||||
&.bd-is-empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-anchors-title {
|
||||
color: $text-light;
|
||||
font-size: 0.75em;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.bd-anchors-list {
|
||||
padding: 0.25em 0 0.75em;
|
||||
|
||||
li {
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
font-size: 0.875em;
|
||||
|
||||
&.is-past a:not(:hover) {
|
||||
background-color: $border-light;
|
||||
color: $text-light;
|
||||
}
|
||||
|
||||
&.is-current a {
|
||||
background-color: var(--primary);
|
||||
color: var(--primary-invert);
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
@extend %bd-category-link;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--primary-invert);
|
||||
color: var(--primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
60
docs/_sass/components/banner.scss
Normal file
60
docs/_sass/components/banner.scss
Normal file
@@ -0,0 +1,60 @@
|
||||
.bd-banner {
|
||||
--background-color: #{$primary-light};
|
||||
--color: #{$primary-dark};
|
||||
|
||||
background-color: var(--background-color);
|
||||
color: var(--color);
|
||||
padding: 0.5em;
|
||||
|
||||
&.bd-is-bleeding {
|
||||
--background-color: var(--bleeding-light);
|
||||
--color: var(--bleeding-dark);
|
||||
}
|
||||
|
||||
&.bd-is-sponsor {
|
||||
--background-color: var(--sponsor-light);
|
||||
--color: var(--sponsor);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-banner-body {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
min-height: 2.5rem;
|
||||
}
|
||||
|
||||
.bd-banner-title {
|
||||
display: flex;
|
||||
margin-right: auto;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
strong {
|
||||
color: inherit;
|
||||
font-weight: $weight-semibold;
|
||||
}
|
||||
}
|
||||
|
||||
@include tablet() {
|
||||
.bd-banner-title {
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include desktop() {
|
||||
.bd-banner {
|
||||
padding: 0.5rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include widescreen() {
|
||||
.bd-banner {
|
||||
padding: 0.5rem 4rem;
|
||||
}
|
||||
}
|
||||
23
docs/_sass/components/book.scss
Normal file
23
docs/_sass/components/book.scss
Normal file
@@ -0,0 +1,23 @@
|
||||
.bd-book-cover {
|
||||
@extend %block;
|
||||
@extend %center;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
box-shadow: 0 0.5em 1em rgba(black, 0.1);
|
||||
display: inline-block;
|
||||
transition-duration: $speed * 2;
|
||||
transition-property: box-shadow, transform;
|
||||
vertical-align: top;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 1em 2em rgba(black, 0.1);
|
||||
transform: translateY(-0.5em);
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
82
docs/_sass/components/call.scss
Normal file
82
docs/_sass/components/call.scss
Normal file
@@ -0,0 +1,82 @@
|
||||
.bd-call {
|
||||
--background-color: var(--primary-light);
|
||||
--color: var(--primary-dark);
|
||||
--color-dark: var(--primary-dark);
|
||||
--margin: 1.5rem;
|
||||
--spacing: 1em;
|
||||
|
||||
align-items: center;
|
||||
display: flex;
|
||||
font-size: var(--font-size);
|
||||
justify-content: center;
|
||||
margin: var(--margin);
|
||||
|
||||
&.bd-is-twitter {
|
||||
--background-color: var(--twitter-light);
|
||||
--color: var(--twitter);
|
||||
--color-dark: var(--twitter-dark);
|
||||
}
|
||||
|
||||
&.bd-is-extensions {
|
||||
--background-color: var(--extensions-light);
|
||||
--color: var(--extensions);
|
||||
--color-dark: var(--extensions-dark);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-call-body {
|
||||
align-items: center;
|
||||
background-color: var(--background-color);
|
||||
border-radius: $radius-large;
|
||||
color: var(--color);
|
||||
justify-content: center;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: var(--container-width);
|
||||
padding: var(--spacing);
|
||||
|
||||
strong {
|
||||
color: var(--color-dark);
|
||||
font-weight: $weight-semibold;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-call-text {
|
||||
margin-left: var(--spacing);
|
||||
margin-right: calc(2 * var(--spacing));
|
||||
}
|
||||
|
||||
.bd-call-button {
|
||||
.button {
|
||||
font-size: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
@include mobile {
|
||||
.bd-call-body {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bd-call-text {
|
||||
margin-bottom: var(--spacing);
|
||||
}
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
.bd-call-body {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@include desktop {
|
||||
.bd-call {
|
||||
--margin: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include widescreen {
|
||||
.bd-call {
|
||||
--font-size: 1.125rem;
|
||||
--margin: 3rem;
|
||||
}
|
||||
}
|
||||
112
docs/_sass/components/carbon.scss
Normal file
112
docs/_sass/components/carbon.scss
Normal file
@@ -0,0 +1,112 @@
|
||||
$carbon-spacing: 1rem;
|
||||
$carbon-shadow-size: 0.75rem;
|
||||
$carbon-image-height: 100px;
|
||||
$carbon-image-width: 130px;
|
||||
|
||||
#carboncontainer {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
max-width: $carbon-width;
|
||||
min-height: $carbon-min-height;
|
||||
min-width: 280px;
|
||||
}
|
||||
|
||||
#carbon {
|
||||
border-radius: 0.125em;
|
||||
flex-grow: 1;
|
||||
min-height: $carbon-height;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(black, 0.02);
|
||||
box-shadow: 0 0 0 $carbon-shadow-size rgba(black, 0.02);
|
||||
}
|
||||
|
||||
@include tablet() {
|
||||
width: $carbon-width;
|
||||
}
|
||||
}
|
||||
|
||||
#carbonads {
|
||||
font-size: 14px;
|
||||
text-align: left;
|
||||
|
||||
a,
|
||||
span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.carbon-wrap {
|
||||
min-height: $carbon-height;
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
.carbon-img::after {
|
||||
background-color: rgba(#000, 0.05);
|
||||
content: '';
|
||||
display: block;
|
||||
height: $carbon-height;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: $carbon-spacing;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.carbon-img {
|
||||
bottom: 0;
|
||||
float: left;
|
||||
left: 0;
|
||||
min-height: $carbon-height;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: calc(#{$carbon-image-width} + #{$carbon-spacing});
|
||||
|
||||
img {
|
||||
display: block;
|
||||
height: $carbon-image-height;
|
||||
width: $carbon-image-width;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
& + .carbon-text {
|
||||
color: $link;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
.carbon-text {
|
||||
display: block;
|
||||
color: $text-strong;
|
||||
line-height: $carbon-line-height;
|
||||
min-height: $carbon-height;
|
||||
padding: 0 0 $carbon-poweredby-height
|
||||
calc(#{$carbon-image-width} + #{$carbon-spacing});
|
||||
|
||||
&:hover {
|
||||
color: $link;
|
||||
}
|
||||
}
|
||||
|
||||
.carbon-poweredby {
|
||||
bottom: 0;
|
||||
color: $border-hover;
|
||||
display: inline;
|
||||
font-size: $size-small;
|
||||
line-height: $carbon-poweredby-height;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
194
docs/_sass/components/categories.scss
Normal file
194
docs/_sass/components/categories.scss
Normal file
@@ -0,0 +1,194 @@
|
||||
%bd-category-link {
|
||||
--highlight-background-color: var(--primary);
|
||||
--highlight-color: var(--primary-invert);
|
||||
|
||||
align-items: center;
|
||||
border-radius: $radius;
|
||||
color: $text-strong;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
line-height: var(--height);
|
||||
padding: 0.375em 0.75em;
|
||||
transition-duration: $speed;
|
||||
transition-property: background-color, color;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--primary-invert);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
&.bd-is-focused {
|
||||
box-shadow: inset 0 0 0 2px $scheme-main-bis, 0 0 0 2px var(--primary);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-highlight {
|
||||
background-color: var(--highlight-background-color);
|
||||
border-radius: $radius-small;
|
||||
box-shadow: 0 0 0 2px var(--highlight-background-color);
|
||||
color: var(--highlight-color);
|
||||
}
|
||||
|
||||
.bd-categories {
|
||||
--height: 1.25;
|
||||
|
||||
padding: var(--docs-side-padding);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
||||
&.bd-has-query {
|
||||
.bd-category:not(.bd-has-match) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bd-category-list {
|
||||
display: block;
|
||||
|
||||
a:not(.bd-is-match) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.bd-has-no-results {
|
||||
.bd-category-group {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bd-categories-no-results {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bd-category {
|
||||
&.is-current {
|
||||
.bd-category-name {
|
||||
--highlight-background-color: var(--primary-dark);
|
||||
--highlight-color: var(--primary-light);
|
||||
|
||||
background-color: var(--primary-light);
|
||||
color: var(--primary-dark);
|
||||
|
||||
&.is-active {
|
||||
background-color: var(--primary);
|
||||
color: var(--primary-invert);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-category-list {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-open {
|
||||
.bd-category-list {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bd-category-group {
|
||||
color: $grey-light;
|
||||
font-size: 0.625em;
|
||||
font-weight: $weight-semibold;
|
||||
letter-spacing: 0.2em;
|
||||
margin-bottom: calc(var(--docs-side-padding) / 2);
|
||||
margin-top: var(--docs-side-padding);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.bd-category-header {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bd-category-name {
|
||||
@extend %bd-category-link;
|
||||
font-weight: $weight-semibold;
|
||||
}
|
||||
|
||||
.bd-category-toggle {
|
||||
@extend %reset;
|
||||
|
||||
border-radius: $radius;
|
||||
color: var(--primary);
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
height: calc(1em * var(--height));
|
||||
margin-left: auto;
|
||||
position: absolute;
|
||||
right: 0.5em;
|
||||
top: 0.5em;
|
||||
width: calc(1em * var(--height));
|
||||
|
||||
&:hover {
|
||||
background-color: var(--primary);
|
||||
color: var(--primary-invert);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-category-list {
|
||||
display: none;
|
||||
padding: 0.25em 0.75em 0.75em;
|
||||
|
||||
li {
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
font-size: 0.875em;
|
||||
|
||||
a {
|
||||
@extend %bd-category-link;
|
||||
}
|
||||
|
||||
&.is-current {
|
||||
a {
|
||||
--highlight-background-color: var(--primary-invert);
|
||||
--highlight-color: var(--primary-dark);
|
||||
|
||||
background-color: var(--primary);
|
||||
color: var(--primary-invert);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bd-categories-no-results {
|
||||
display: none;
|
||||
|
||||
.bd-key {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-categories-filter {
|
||||
margin-bottom: 1em;
|
||||
position: relative;
|
||||
|
||||
.input:focus {
|
||||
border-color: $primary;
|
||||
box-shadow: 0 0 0 0.125em rgba($primary, 0.25);
|
||||
}
|
||||
|
||||
.bd-key {
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-key {
|
||||
align-items: center;
|
||||
background: rgba(black, 0.1);
|
||||
border-radius: 0.25em;
|
||||
color: rgba(black, 0.5);
|
||||
display: none;
|
||||
font-family: monospace;
|
||||
font-size: 0.625rem;
|
||||
height: 2em;
|
||||
justify-content: center;
|
||||
min-width: 2em;
|
||||
padding: 0 0.25em;
|
||||
pointer-events: none;
|
||||
text-align: center;
|
||||
z-index: 2;
|
||||
}
|
||||
191
docs/_sass/components/code.scss
Normal file
191
docs/_sass/components/code.scss
Normal file
@@ -0,0 +1,191 @@
|
||||
.bd-example {
|
||||
@extend %block;
|
||||
}
|
||||
|
||||
.bd-copy,
|
||||
.bd-show {
|
||||
background-color: var(--hl-color);
|
||||
border: none;
|
||||
border-radius: 0.5em !important;
|
||||
color: var(--hl-background);
|
||||
font-size: 1em;
|
||||
font-weight: $weight-semibold;
|
||||
|
||||
&:focus {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-copy {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
right: calc(1.25em - 0.5em - 1px);
|
||||
top: calc(1.25em - 0.5em - 1px);
|
||||
|
||||
.highlight:hover & {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-show {
|
||||
bottom: -1.25em;
|
||||
height: 2.5em;
|
||||
left: calc(50% - 4.5em);
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 9em;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.bd-snippet {
|
||||
@extend %block;
|
||||
--snippet-spacing: #{$block-spacing};
|
||||
|
||||
font-size: 1rem;
|
||||
grid-gap: calc(2 * var(--snippet-spacing));
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bd-snippet-title {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.bd-snippet-tag {
|
||||
align-items: center;
|
||||
background: var(--hl-color);
|
||||
border-radius: 0.5em;
|
||||
color: var(--hl-background);
|
||||
display: inline-flex;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.5em;
|
||||
font-weight: $weight-semibold;
|
||||
height: $block-spacing;
|
||||
padding: 0 1em;
|
||||
vertical-align: top;
|
||||
|
||||
&.bd-is-html {
|
||||
background: var(--hl-background);
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
color: var(--hl-color);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-snippet-preview,
|
||||
.bd-snippet-code {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bd-snippet-preview {
|
||||
padding-bottom: var(--snippet-spacing);
|
||||
padding-top: var(--snippet-spacing);
|
||||
|
||||
img {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
&.bd-is-mwb {
|
||||
@extend %center;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-snippet-code {
|
||||
font-size: 0.875em;
|
||||
// overflow: auto;
|
||||
// padding-top: var(--snippet-spacing);
|
||||
|
||||
.highlight {
|
||||
border-top-left-radius: 0;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
&.bd-is-hovering {
|
||||
&::before {
|
||||
background: var(--hl-color);
|
||||
color: var(--hl-background);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Vertical
|
||||
|
||||
.bd-snippet.bd-is-vertical {
|
||||
}
|
||||
|
||||
// Horizontal
|
||||
|
||||
.bd-snippet.bd-is-horizontal {
|
||||
}
|
||||
|
||||
// Fullwidth
|
||||
|
||||
.bd-snippet.bd-is-fullwidth {
|
||||
box-shadow: inset 0 0 0 1px red;
|
||||
margin-left: calc(-1 * var(--docs-outer));
|
||||
margin-right: calc(-1 * var(--docs-outer));
|
||||
|
||||
.bd-snippet-title {
|
||||
margin-left: var(--docs-outer);
|
||||
}
|
||||
}
|
||||
|
||||
// Clipped
|
||||
|
||||
.bd-snippet.bd-is-clipped {
|
||||
.bd-snippet-code {
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-snippet-code.bd-is-more {
|
||||
.highlight:not(:last-child) {
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-snippet-code.bd-is-more.bd-is-more-clipped {
|
||||
.highlight {
|
||||
height: calc(8 * var(--snippet-spacing));
|
||||
overflow: hidden;
|
||||
|
||||
pre {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bd-show {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
&::before {
|
||||
background: linear-gradient(0deg, var(--hl-background), transparent);
|
||||
bottom: 0;
|
||||
content: '';
|
||||
display: block;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
.bd-snippet.bd-is-vertical {
|
||||
align-items: flex-start;
|
||||
display: grid;
|
||||
grid-template-columns: calc(50% - var(--snippet-spacing)) calc(
|
||||
50% - var(--snippet-spacing)
|
||||
);
|
||||
}
|
||||
|
||||
.bd-snippet.bd-is-size-1-2 {
|
||||
grid-template-columns: calc(33% - var(--snippet-spacing)) calc(
|
||||
67% - var(--snippet-spacing)
|
||||
);
|
||||
}
|
||||
|
||||
.bd-snippet-preview {
|
||||
padding-bottom: var(--snippet-spacing);
|
||||
}
|
||||
}
|
||||
67
docs/_sass/components/content.scss
Normal file
67
docs/_sass/components/content.scss
Normal file
@@ -0,0 +1,67 @@
|
||||
.bd-content {
|
||||
hr:first-child {
|
||||
display: none;
|
||||
|
||||
& + .bd-anchor-title {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
& + .bd-anchor-title .bd-anchor-link {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight,
|
||||
.bd-highlight-full {
|
||||
@extend %block;
|
||||
}
|
||||
|
||||
// .bd-highlight-full {
|
||||
// overflow: auto;
|
||||
// }
|
||||
}
|
||||
|
||||
.bd-anchor-title {
|
||||
--spacing: 3em;
|
||||
|
||||
position: relative;
|
||||
|
||||
&:not(:first-child) {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
&.title {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
@include until($widescreen) {
|
||||
padding-left: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-anchor-link {
|
||||
position: absolute;
|
||||
right: calc(100% + 1rem);
|
||||
top: 0;
|
||||
|
||||
@include until($widescreen) {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-icon-size .icon {
|
||||
background-color: $yellow;
|
||||
}
|
||||
|
||||
@include widescreen {
|
||||
.bd-content {
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include from(1800px) {
|
||||
.bd-content {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
50
docs/_sass/components/drawing.scss
Normal file
50
docs/_sass/components/drawing.scss
Normal file
@@ -0,0 +1,50 @@
|
||||
.bd-has-drawing {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bd-drawing {
|
||||
display: none;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
|
||||
&.bd-is-try-it-out {
|
||||
bottom: 100%;
|
||||
right: 100%;
|
||||
}
|
||||
|
||||
&.bd-is-love-letters {
|
||||
bottom: 110%;
|
||||
right: 10%;
|
||||
}
|
||||
|
||||
&.bd-is-crazy {
|
||||
right: 100%;
|
||||
top: 110%;
|
||||
}
|
||||
|
||||
&.bd-is-customize {
|
||||
right: -10%;
|
||||
top: 105%;
|
||||
}
|
||||
|
||||
&.bd-is-opinion-free {
|
||||
right: 100%;
|
||||
top: 110%;
|
||||
}
|
||||
|
||||
&.bd-is-join-us {
|
||||
bottom: 80%;
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
&.bd-is-spam-free {
|
||||
bottom: 100%;
|
||||
right: 95%;
|
||||
}
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
.bd-drawing {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
41
docs/_sass/components/features.scss
Normal file
41
docs/_sass/components/features.scss
Normal file
@@ -0,0 +1,41 @@
|
||||
.bd-features {
|
||||
padding: var(--docs-side-padding);
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.bd-features-title {
|
||||
color: $text-light;
|
||||
font-size: 0.75em;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.bd-features-list {
|
||||
padding: 0.25em 0 0;
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
font-size: 0.875em;
|
||||
justify-content: space-between;
|
||||
// padding: 0 0.75em;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-feature-label {
|
||||
color: $text-light;
|
||||
// padding: 0.375em 0;
|
||||
}
|
||||
|
||||
.bd-feature-since,
|
||||
.bd-feature-yes,
|
||||
.bd-feature-no {
|
||||
// padding: 0.375em 0.75em;
|
||||
}
|
||||
|
||||
.bd-feature-no {
|
||||
color: $text-light;
|
||||
}
|
||||
|
||||
.bd-feature-yes {
|
||||
color: var(--primary);
|
||||
font-weight: $weight-bold;
|
||||
}
|
||||
157
docs/_sass/components/hero.scss
Normal file
157
docs/_sass/components/hero.scss
Normal file
@@ -0,0 +1,157 @@
|
||||
.bd-hero {
|
||||
--color: #{$text-light};
|
||||
--color-strong: #{$text-strong};
|
||||
--icon-dimensions: 1.125em;
|
||||
--icon-spacing: 0.25em;
|
||||
|
||||
background-color: var(--background-color);
|
||||
|
||||
&.bd-is-basic {
|
||||
.title {
|
||||
font-weight: $weight-semibold;
|
||||
}
|
||||
}
|
||||
|
||||
&.bd-is-primary {
|
||||
--background-color: var(--primary-light);
|
||||
--color-strong: var(--primary-dark);
|
||||
--color-icon: var(--primary);
|
||||
}
|
||||
|
||||
&.bd-is-bleeding {
|
||||
--background-color: var(--bleeding-light);
|
||||
--color-strong: var(--bleeding-dark);
|
||||
--color-icon: var(--bleeding);
|
||||
}
|
||||
|
||||
&.bd-is-link {
|
||||
--background-color: var(--link-light);
|
||||
--color-strong: var(--link-dark);
|
||||
--color-icon: var(--link);
|
||||
}
|
||||
|
||||
&.bd-is-love {
|
||||
--background-color: var(--love-light);
|
||||
--color-strong: var(--love);
|
||||
--color-icon: var(--love);
|
||||
}
|
||||
|
||||
&.bd-is-expo {
|
||||
--background-color: var(--expo-light);
|
||||
--color-strong: var(--expo-dark);
|
||||
--color-icon: var(--expo);
|
||||
}
|
||||
|
||||
&.bd-is-sponsor {
|
||||
--background-color: var(--sponsor-light);
|
||||
--color-strong: var(--sponsor-dark);
|
||||
--color: var(--sponsor);
|
||||
--color-icon: var(--sponsor);
|
||||
}
|
||||
|
||||
&.bd-is-videos {
|
||||
--background-color: var(--videos-light);
|
||||
--color-strong: var(--videos-dark);
|
||||
--color: var(--videos);
|
||||
--color-icon: var(--videos);
|
||||
}
|
||||
|
||||
&.bd-is-extensions {
|
||||
--background-color: var(--extensions-light);
|
||||
--color-strong: var(--extensions-dark);
|
||||
--color: var(--extensions);
|
||||
--color-icon: var(--extensions);
|
||||
}
|
||||
|
||||
&.bd-is-success {
|
||||
--background-color: var(--success-light);
|
||||
--color-strong: var(--success-dark);
|
||||
--color: var(--success);
|
||||
--color-icon: var(--success);
|
||||
}
|
||||
|
||||
&.bd-is-bootstrap {
|
||||
--background-color: var(--bootstrap-light);
|
||||
--color-strong: var(--bootstrap-dark);
|
||||
--color: var(--bootstrap);
|
||||
--color-icon: var(--bootstrap);
|
||||
}
|
||||
}
|
||||
|
||||
$grid-gap: 1.5;
|
||||
|
||||
.bd-hero-body {
|
||||
align-items: center;
|
||||
display: grid;
|
||||
grid-gap: $grid-gap * 1rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(#{$carbon-width}, 1fr));
|
||||
}
|
||||
|
||||
.bd-hero-heading {
|
||||
.title {
|
||||
color: var(--color-strong);
|
||||
display: flex;
|
||||
font-weight: $weight-normal;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
color: currentColor;
|
||||
font-weight: $weight-semibold;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: $weight-semibold;
|
||||
}
|
||||
|
||||
.icon {
|
||||
color: var(--color-icon);
|
||||
height: var(--icon-dimensions);
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
margin-right: var(--icon-spacing);
|
||||
width: var(--icon-dimensions);
|
||||
}
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: var(--color);
|
||||
|
||||
strong {
|
||||
color: currentColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$breakpoint: ($carbon-width * 2) + (16px * 3 * $grid-gap);
|
||||
|
||||
@include from($breakpoint) {
|
||||
.bd-hero-carbon {
|
||||
justify-self: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
@include desktop {
|
||||
.bd-hero {
|
||||
--icon-spacing: 0.5em;
|
||||
|
||||
.hero-body {
|
||||
padding: 6rem;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-hero-heading {
|
||||
.title .icon {
|
||||
margin-left: calc(-1 * (var(--icon-dimensions) + var(--icon-spacing)));
|
||||
margin-right: var(--icon-spacing);
|
||||
}
|
||||
}
|
||||
}
|
||||
266
docs/_sass/components/highlight.scss
Normal file
266
docs/_sass/components/highlight.scss
Normal file
@@ -0,0 +1,266 @@
|
||||
// .bd-highlight-full {
|
||||
// @extend %block;
|
||||
// }
|
||||
|
||||
.highlight {
|
||||
background-color: var(--hl-gray-09);
|
||||
border-radius: $radius-large;
|
||||
color: var(--hl-gray-01);
|
||||
font-size: 0.75em;
|
||||
position: relative;
|
||||
|
||||
&.bd-is-hovering {
|
||||
box-shadow: inset 0 0 0 2px var(--hl-orange);
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: transparent;
|
||||
color: currentColor;
|
||||
font-size: 1em;
|
||||
line-height: 1.375;
|
||||
margin: 0 !important;
|
||||
padding: 1.25em 1.5em;
|
||||
// white-space: pre-wrap;
|
||||
// white-space: break-spaces;
|
||||
white-space: pre;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.c {
|
||||
color: var(--hl-gray-01);
|
||||
}
|
||||
|
||||
.err,
|
||||
.g {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.k {
|
||||
color: var(--hl-cyan);
|
||||
}
|
||||
|
||||
.l,
|
||||
.n {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.o {
|
||||
color: var(--hl-cyan);
|
||||
}
|
||||
|
||||
.x {
|
||||
color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.p {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.cm {
|
||||
color: var(--hl-gray-01);
|
||||
}
|
||||
|
||||
.cp {
|
||||
color: var(--hl-cyan);
|
||||
}
|
||||
|
||||
.c1 {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.cs {
|
||||
color: var(--hl-cyan);
|
||||
}
|
||||
|
||||
.gd {
|
||||
color: var(--hl-green);
|
||||
}
|
||||
|
||||
.ge {
|
||||
color: var(--hl-gray-02);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.gr {
|
||||
color: var(--hl-orange);
|
||||
}
|
||||
|
||||
.gh {
|
||||
color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.gi {
|
||||
color: var(--hl-cyan);
|
||||
}
|
||||
|
||||
.go,
|
||||
.gp {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.gs {
|
||||
color: var(--hl-gray-02);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.gu {
|
||||
color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.gt {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.kc {
|
||||
color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.kd {
|
||||
color: var(--hl-blue);
|
||||
}
|
||||
|
||||
.kn,
|
||||
.kp {
|
||||
color: var(--hl-cyan);
|
||||
}
|
||||
|
||||
.kr {
|
||||
color: var(--hl-blue);
|
||||
}
|
||||
|
||||
.kt {
|
||||
color: var(--hl-orange);
|
||||
}
|
||||
|
||||
.ld {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.m,
|
||||
.s {
|
||||
color: var(--hl-green);
|
||||
}
|
||||
|
||||
.na {
|
||||
color: var(--hl-yellow);
|
||||
}
|
||||
|
||||
.nb {
|
||||
color: var(--hl-orange);
|
||||
}
|
||||
|
||||
.nc {
|
||||
color: var(--hl-yellow);
|
||||
}
|
||||
|
||||
.no {
|
||||
color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.nd {
|
||||
color: var(--hl-blue);
|
||||
}
|
||||
|
||||
.ni,
|
||||
.ne {
|
||||
color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.nf {
|
||||
color: var(--hl-blue);
|
||||
}
|
||||
|
||||
.nl,
|
||||
.nn,
|
||||
.nx,
|
||||
.py {
|
||||
color: var(--hl-rose);
|
||||
}
|
||||
|
||||
.nt,
|
||||
.nv {
|
||||
color: var(--hl-blue);
|
||||
}
|
||||
|
||||
.ow {
|
||||
color: var(--hl-cyan);
|
||||
}
|
||||
|
||||
.w {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.mf,
|
||||
.mh,
|
||||
.mi,
|
||||
.mo {
|
||||
color: var(--hl-green);
|
||||
}
|
||||
|
||||
.sb {
|
||||
color: var(--hl-gray-01);
|
||||
}
|
||||
|
||||
.sc {
|
||||
color: var(--hl-green);
|
||||
}
|
||||
|
||||
.sd {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.s2 {
|
||||
color: var(--hl-green);
|
||||
}
|
||||
|
||||
.se {
|
||||
color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.sh {
|
||||
color: var(--hl-gray-02);
|
||||
}
|
||||
|
||||
.si,
|
||||
.sx {
|
||||
color: var(--hl-yellow);
|
||||
}
|
||||
|
||||
.sr {
|
||||
color: var(--hl-orange);
|
||||
}
|
||||
|
||||
.s1,
|
||||
.ss {
|
||||
color: var(--hl-green);
|
||||
}
|
||||
|
||||
.bp,
|
||||
.vc,
|
||||
.vg,
|
||||
.vi {
|
||||
color: var(--hl-blue);
|
||||
}
|
||||
|
||||
.il {
|
||||
color: var(--hl-green);
|
||||
}
|
||||
}
|
||||
|
||||
.content .highlight {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
text-align: left;
|
||||
|
||||
&:not(:first-child) {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.content li .highlight {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
47
docs/_sass/components/klmn.scss
Normal file
47
docs/_sass/components/klmn.scss
Normal file
@@ -0,0 +1,47 @@
|
||||
.bd-klmn {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.bd-klmn-gaps {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.bd-klmn-label {
|
||||
margin: 0.25rem auto 0.25rem 0;
|
||||
}
|
||||
|
||||
.bd-klmn-value,
|
||||
.bd-klmn-gap {
|
||||
background-color: var(--hl-gray-09);
|
||||
border-radius: $radius;
|
||||
color: var(--hl-orange);
|
||||
font-family: $family-monospace;
|
||||
font-size: 0.75rem;
|
||||
margin: 0.25rem 0 0.25rem 0.5rem;
|
||||
padding: 0.375em 0.75em;
|
||||
text-align: center;
|
||||
vertical-align: middle !important;
|
||||
white-space: nowrap;
|
||||
|
||||
&.bd-is-selected {
|
||||
background-color: var(--hl-orange);
|
||||
color: var(--hl-gray-09);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-klmn-value {
|
||||
background-color: var(--hl-orange);
|
||||
color: var(--hl-gray-09);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.bd-klmn-columns:last-child {
|
||||
.bd-notification {
|
||||
font-size: 0.75rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
41
docs/_sass/components/links.scss
Normal file
41
docs/_sass/components/links.scss
Normal file
@@ -0,0 +1,41 @@
|
||||
.bd-links {
|
||||
display: grid;
|
||||
grid-gap: 0;
|
||||
grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
|
||||
}
|
||||
|
||||
.bd-link {
|
||||
border-radius: $radius-large;
|
||||
color: $text-light;
|
||||
display: flex;
|
||||
font-size: 1.25em;
|
||||
padding: 1em;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--primary-light);
|
||||
color: var(--primary-dark);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-link-title {
|
||||
}
|
||||
|
||||
.bd-link-icon {
|
||||
color: var(--primary);
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
height: 1.5em;
|
||||
margin-right: 0.5em;
|
||||
width: 1.5em;
|
||||
}
|
||||
|
||||
.bd-link-title {
|
||||
color: $text-strong;
|
||||
display: block;
|
||||
font-weight: $weight-semibold;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.bd-link-subtitle {
|
||||
font-size: 0.75em;
|
||||
}
|
||||
131
docs/_sass/components/native.scss
Normal file
131
docs/_sass/components/native.scss
Normal file
@@ -0,0 +1,131 @@
|
||||
.native-js {
|
||||
border-radius: 1.5em;
|
||||
display: none;
|
||||
font-size: 1rem;
|
||||
margin: var(--newsletter-border-size);
|
||||
margin-top: 0;
|
||||
opacity: 0;
|
||||
position: relative;
|
||||
visibility: hidden;
|
||||
|
||||
&::before {
|
||||
@include overlay;
|
||||
|
||||
background-color: #000;
|
||||
bottom: 0;
|
||||
content: '';
|
||||
display: block;
|
||||
left: 0;
|
||||
opacity: 0.02;
|
||||
pointer-events: none;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.native-show {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.native-flex {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 2em;
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
.native-cta {
|
||||
box-shadow: 0 1rem 2rem 0 rgba($scheme-invert, 0.1);
|
||||
transform: translateY(-0.25rem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.native-img {
|
||||
border-radius: 3px;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
height: 50px;
|
||||
width: 125px;
|
||||
}
|
||||
|
||||
.native-details {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.native-main {
|
||||
align-items: center;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 1;
|
||||
max-width: 640px;
|
||||
}
|
||||
|
||||
.native-company {
|
||||
display: block;
|
||||
font-size: 0.625em;
|
||||
letter-spacing: 2px;
|
||||
margin-bottom: 4px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.native-desc {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.native-cta {
|
||||
border: none;
|
||||
box-shadow: 0 0.5rem 1rem 0 rgba($scheme-invert, 0.2);
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
font-weight: $weight-semibold;
|
||||
height: auto;
|
||||
padding: 0.5em 1em;
|
||||
transition-duration: $speed * 2;
|
||||
transition-property: box-shadow, transform;
|
||||
will-change: box-shadow, transform;
|
||||
}
|
||||
|
||||
$native-bp: 600px;
|
||||
|
||||
@include until($native-bp) {
|
||||
.native-flex {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.native-main {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.native-details {
|
||||
margin: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
@include from($native-bp) {
|
||||
.native-flex {
|
||||
display: flex;
|
||||
padding: 4em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.native-main {
|
||||
display: flex;
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
.native-details {
|
||||
margin-left: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
@include widescreen {
|
||||
.native-js {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
382
docs/_sass/components/navbar.scss
Normal file
382
docs/_sass/components/navbar.scss
Normal file
@@ -0,0 +1,382 @@
|
||||
.bd-navbar {
|
||||
.navbar-brand img {
|
||||
height: 28px;
|
||||
max-height: 2em;
|
||||
width: 112px;
|
||||
}
|
||||
|
||||
.navbar-start {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.navbar-item,
|
||||
.navbar-link {
|
||||
padding: 0.5em 0.75em;
|
||||
}
|
||||
|
||||
.button.is-sponsor.is-light {
|
||||
color: var(--sponsor);
|
||||
}
|
||||
|
||||
.bd-navbar-search-icon {
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
width: 3.25rem;
|
||||
}
|
||||
|
||||
.navbar-item.has-dropdown {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar-burger {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-item {
|
||||
transition-duration: $speed;
|
||||
transition-property: background-color, box-shadow, color;
|
||||
|
||||
> .icon {
|
||||
margin-left: -0.25em;
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.is-active {
|
||||
border-radius: $radius;
|
||||
color: var(--color-dark) !important;
|
||||
}
|
||||
|
||||
&:hover:not(.is-active) {
|
||||
background-color: var(--color-light) !important;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
background-color: transparent !important;
|
||||
box-shadow: inset 0 0 0 2px var(--color-light) !important;
|
||||
}
|
||||
|
||||
&.bd-navbar-item-documentation {
|
||||
--color-light: var(--primary-light);
|
||||
--color-dark: var(--primary-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-videos {
|
||||
--color-light: var(--videos-light);
|
||||
--color-dark: var(--videos-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-expo {
|
||||
--color-light: var(--expo-light);
|
||||
--color-dark: var(--expo-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-love {
|
||||
--color-light: var(--love-light);
|
||||
--color-dark: var(--love-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-backers {
|
||||
--color-light: var(--patreon-light);
|
||||
--color-dark: var(--patreon-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-bulma-book {
|
||||
--color-light: var(--bleeding-light);
|
||||
--color-dark: var(--bleeding-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-blog {
|
||||
--color-light: var(--rss-light);
|
||||
--color-dark: var(--rss-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-extensions {
|
||||
--color-light: var(--extensions-light);
|
||||
--color-dark: var(--extensions-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-bulma-start {
|
||||
--color-light: var(--success-light);
|
||||
--color-dark: var(--success-dark);
|
||||
}
|
||||
|
||||
&.bd-navbar-item-made-with-bulma {
|
||||
--color-light: var(--expo-light);
|
||||
--color-dark: var(--expo-dark);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-ellipsis {
|
||||
align-items: center;
|
||||
border-radius: $radius;
|
||||
color: $link;
|
||||
height: 2.25em;
|
||||
justify-content: center;
|
||||
padding: 0 !important;
|
||||
width: 2.25em;
|
||||
|
||||
&::after {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-search-icon {
|
||||
@extend %reset;
|
||||
color: var(--search);
|
||||
cursor: pointer;
|
||||
margin-left: auto;
|
||||
|
||||
&:hover {
|
||||
background-color: bulmaRgba(black, 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-search {
|
||||
.algolia-autocomplete,
|
||||
.control {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.control {
|
||||
> .icon.is-left {
|
||||
color: var(--search) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.input {
|
||||
background-color: $white-ter;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
|
||||
&:hover {
|
||||
background-color: $white-bis;
|
||||
border-color: $border;
|
||||
box-shadow: 0 0 0 1px $border;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background-color: transparent;
|
||||
border-color: var(--search);
|
||||
box-shadow: 0 0 0 1px var(--search);
|
||||
|
||||
& ~ .icon {
|
||||
color: var(--search) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.algolia-docsearch-suggestion--category-header {
|
||||
color: var(--search-dark);
|
||||
border-bottom-color: $border;
|
||||
}
|
||||
|
||||
/* Category (eg. Downloads) */
|
||||
.algolia-docsearch-suggestion--subcategory-column {
|
||||
color: $text-light;
|
||||
}
|
||||
|
||||
/* Title (eg. Bootstrap CDN) */
|
||||
.algolia-docsearch-suggestion--title {
|
||||
color: $text-strong;
|
||||
}
|
||||
|
||||
/* Description description (eg. Bootstrap currently works...) */
|
||||
.algolia-docsearch-suggestion--text {
|
||||
color: $text;
|
||||
}
|
||||
|
||||
/* Highlighted text */
|
||||
.algolia-docsearch-suggestion--highlight {
|
||||
background-color: var(--search-light);
|
||||
color: var(--search-dark);
|
||||
}
|
||||
|
||||
.algolia-autocomplete
|
||||
.ds-dropdown-menu
|
||||
.ds-suggestion.ds-cursor
|
||||
.algolia-docsearch-suggestion.suggestion-layout-simple,
|
||||
.algolia-autocomplete
|
||||
.ds-dropdown-menu
|
||||
.ds-suggestion.ds-cursor
|
||||
.algolia-docsearch-suggestion:not(.suggestion-layout-simple)
|
||||
.algolia-docsearch-suggestion--content {
|
||||
background-color: var(--search-light);
|
||||
}
|
||||
|
||||
.algolia-autocomplete
|
||||
.algolia-docsearch-suggestion--category-header
|
||||
.algolia-docsearch-suggestion--category-header-lvl0
|
||||
.algolia-docsearch-suggestion--highlight,
|
||||
.algolia-autocomplete
|
||||
.algolia-docsearch-suggestion--category-header
|
||||
.algolia-docsearch-suggestion--category-header-lvl1
|
||||
.algolia-docsearch-suggestion--highlight,
|
||||
.algolia-autocomplete
|
||||
.algolia-docsearch-suggestion--text
|
||||
.algolia-docsearch-suggestion--highlight {
|
||||
box-shadow: inset 0 -2px 0 0 var(--search);
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-mobile-sponsor-icon {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.bd-navbar-start.bd-is-original {
|
||||
.bd-navbar-item-more:not(.bd-is-visible) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bd-navbar-dropdown .navbar-item.bd-is-hidden {
|
||||
&,
|
||||
& + .navbar-divider {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar.bd-is-clone {
|
||||
bottom: 0;
|
||||
pointer-events: none;
|
||||
position: fixed;
|
||||
visibility: hidden;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 450px) and (max-width: $tablet - 1px) {
|
||||
.bd-navbar-mobile-sponsor-icon {
|
||||
display: flex !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include until($navbar-breakpoint) {
|
||||
.bd-navbar {
|
||||
.navbar-start {
|
||||
> .bd-navbar-item:not(.has-dropdown) {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-end {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-item {
|
||||
.navbar-link:not(.is-arrowless) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-item-more {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include from($navbar-breakpoint) {
|
||||
.bd-navbar {
|
||||
.navbar-menu,
|
||||
.navbar-start,
|
||||
.navbar-end {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-mobile-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bd-navbar-dropdown {
|
||||
left: auto;
|
||||
right: 0;
|
||||
width: 16rem;
|
||||
z-index: 200;
|
||||
|
||||
.navbar-item {
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include touch() {
|
||||
.bd-search {
|
||||
background-color: $scheme-main;
|
||||
box-shadow: 0 0.5em 1em rgba(black, 0.05);
|
||||
display: none;
|
||||
left: 0;
|
||||
padding: $navbar-padding-vertical;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: $navbar-height;
|
||||
z-index: 100;
|
||||
|
||||
&.bd-is-visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.algolia-autocomplete {
|
||||
.ds-dropdown-menu {
|
||||
left: 0px !important;
|
||||
min-width: 0px;
|
||||
right: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include desktop() {
|
||||
.bd-navbar {
|
||||
padding: 1rem 2rem;
|
||||
|
||||
.navbar-brand .navbar-item:first-child {
|
||||
margin-left: -0.75em;
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.navbar-start {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-search-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bd-search {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
// margin-left: 0.5rem;
|
||||
width: 16rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include widescreen() {
|
||||
.bd-navbar {
|
||||
font-size: 1.125rem;
|
||||
padding: 2rem 4rem;
|
||||
|
||||
.navbar-brand img {
|
||||
height: 36px;
|
||||
width: 144px;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-navbar-dropdown {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@include fullhd() {
|
||||
.bd-search {
|
||||
width: 16rem;
|
||||
}
|
||||
}
|
||||
37
docs/_sass/components/notification.scss
Normal file
37
docs/_sass/components/notification.scss
Normal file
@@ -0,0 +1,37 @@
|
||||
.bd-notification {
|
||||
background-color: $background;
|
||||
border-radius: $radius;
|
||||
color: $text-light;
|
||||
font-weight: $weight-semibold;
|
||||
padding: 1.25rem 0;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
|
||||
.title,
|
||||
.subtitle,
|
||||
.content,
|
||||
strong {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
code,
|
||||
pre {
|
||||
background-color: rgba($scheme-invert, 0.2);
|
||||
border-radius: $radius;
|
||||
color: $scheme-main;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
// Colors
|
||||
@each $name, $pair in $colors {
|
||||
$color: nth($pair, 1);
|
||||
$color-invert: nth($pair, 2);
|
||||
&.is-#{$name} {
|
||||
background-color: $color;
|
||||
color: $color-invert;
|
||||
}
|
||||
}
|
||||
}
|
||||
135
docs/_sass/components/options.scss
Normal file
135
docs/_sass/components/options.scss
Normal file
@@ -0,0 +1,135 @@
|
||||
.bd-options {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.bd-option {
|
||||
.media-content {
|
||||
overflow-x: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-option-or {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
|
||||
&::before {
|
||||
background-color: $scheme-main-ter;
|
||||
content: '';
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
p {
|
||||
@extend %center;
|
||||
|
||||
background-color: $scheme-main-ter;
|
||||
border-radius: $radius-rounded;
|
||||
font-size: 0.75em;
|
||||
font-weight: $weight-semibold;
|
||||
height: 3.5rem;
|
||||
position: relative;
|
||||
text-transform: uppercase;
|
||||
width: 3.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-option-item {
|
||||
border-top: 2px solid $scheme-main-ter;
|
||||
margin-top: $block-spacing;
|
||||
padding-top: $block-spacing;
|
||||
|
||||
.bd-fat-button.is-pulled-right {
|
||||
font-size: 0.75em;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bd-fat-button.is-primary {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.highlight pre {
|
||||
white-space: pre-wrap;
|
||||
white-space: break-spaces;
|
||||
}
|
||||
}
|
||||
|
||||
@include until($widescreen) {
|
||||
.bd-options {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.bd-option-or {
|
||||
margin: $block-spacing 0;
|
||||
|
||||
&::before {
|
||||
height: 2px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: calc(50% - 1px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include widescreen {
|
||||
.bd-options {
|
||||
grid-template-columns: calc(50% - 4rem) 8rem calc(50% - 4rem);
|
||||
}
|
||||
|
||||
.bd-option-or {
|
||||
&::before {
|
||||
bottom: 0;
|
||||
left: calc(50% - 1px);
|
||||
top: 0;
|
||||
width: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bd-tabs {
|
||||
@extend %block;
|
||||
}
|
||||
|
||||
.bd-tabs-nav {
|
||||
display: flex;
|
||||
|
||||
button {
|
||||
@extend %reset;
|
||||
|
||||
background-color: $scheme-main-ter;
|
||||
border-radius: 0.375em 0.375em 0 0;
|
||||
color: $text-light;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
font-family: $family-monospace;
|
||||
font-size: 0.75em;
|
||||
padding: 0.5em 0.75em;
|
||||
|
||||
&:not(.bd-is-active) {
|
||||
&:hover {
|
||||
color: var(--hl-background);
|
||||
}
|
||||
}
|
||||
|
||||
&.bd-is-active {
|
||||
background-color: var(--hl-background);
|
||||
color: var(--hl-color);
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bd-tabs-item {
|
||||
display: none;
|
||||
|
||||
.highlight {
|
||||
border-top-left-radius: 0;
|
||||
}
|
||||
|
||||
&.bd-is-active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
48
docs/_sass/components/pagination.scss
Normal file
48
docs/_sass/components/pagination.scss
Normal file
@@ -0,0 +1,48 @@
|
||||
.bd-pagination {
|
||||
padding: 0 3rem;
|
||||
}
|
||||
|
||||
.bd-pagination-links,
|
||||
.bd-pagination-body {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.bd-pagination-body {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: var(--container-width-desktop);
|
||||
}
|
||||
|
||||
.bd-docs-pagination {
|
||||
.button {
|
||||
span {
|
||||
line-height: 1.25;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
em {
|
||||
display: block;
|
||||
font-size: 0.75em;
|
||||
font-style: normal;
|
||||
font-weight: $weight-normal;
|
||||
opacity: 0.5;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-pagination-prev {
|
||||
span {
|
||||
margin-left: 1em;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-pagination-next {
|
||||
margin-left: auto;
|
||||
|
||||
span {
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
22
docs/_sass/components/screenshots.scss
Normal file
22
docs/_sass/components/screenshots.scss
Normal file
@@ -0,0 +1,22 @@
|
||||
.bd-screenshots {
|
||||
display: grid;
|
||||
grid-gap: $block-spacing;
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
.bd-screenshot {
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 1em 1em rgba(black, 0.1);
|
||||
transform: translateY(-0.5em);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
.bd-screenshots {
|
||||
grid-template-columns: repeat(auto-fill, minmax(336px, 1fr));
|
||||
margin: 0 auto;
|
||||
max-width: var(--container-width);
|
||||
}
|
||||
}
|
||||
175
docs/_sass/components/variables.scss
Normal file
175
docs/_sass/components/variables.scss
Normal file
@@ -0,0 +1,175 @@
|
||||
.bd-vars {
|
||||
--bd-var-name-width: 100%;
|
||||
--bd-var-computed-type-width: 50%;
|
||||
--bd-var-type-width: 50%;
|
||||
--bd-var-computed-value-width: 50%;
|
||||
--bd-var-value-width: 50%;
|
||||
|
||||
background-color: var(--hl-background);
|
||||
border-radius: $radius-large;
|
||||
color: var(--hl-color);
|
||||
padding: 3.25em;
|
||||
padding-top: 2em;
|
||||
|
||||
.bd-anchor-title {
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-var {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
font-family: $family-monospace;
|
||||
font-size: 0.75em;
|
||||
line-height: 1.375;
|
||||
|
||||
.highlight {
|
||||
background: none;
|
||||
font-size: 1em;
|
||||
overflow: visible;
|
||||
|
||||
pre {
|
||||
overflow: visible;
|
||||
padding: 0;
|
||||
white-space: pre-wrap;
|
||||
white-space: break-spaces;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-copy {
|
||||
font-size: 0.5em !important;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
&.bd-is-body {
|
||||
border-radius: $radius;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(white, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
&.bd-is-head {
|
||||
border-bottom: 2px solid rgba(white, 0.1);
|
||||
border-radius: 0;
|
||||
margin-bottom: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
|
||||
%bd-var-item {
|
||||
color: var(--hl-gray-02) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bd-var-name {
|
||||
@extend %bd-var-item;
|
||||
color: var(--hl-gray-01);
|
||||
width: var(--bd-var-name-width);
|
||||
}
|
||||
|
||||
.bd-var-type {
|
||||
@extend %bd-var-item;
|
||||
color: var(--bd-var-type-color, var(--hl-gray-02));
|
||||
width: var(--bd-var-type-width);
|
||||
}
|
||||
|
||||
.bd-var-value {
|
||||
@extend %bd-var-item;
|
||||
color: var(--hl-green);
|
||||
width: var(--bd-var-value-width);
|
||||
}
|
||||
|
||||
.bd-var-computed-value {
|
||||
@extend %bd-var-item;
|
||||
color: var(--hl-yellow);
|
||||
width: var(--bd-var-computed-value-width);
|
||||
}
|
||||
|
||||
.bd-var-computed-type {
|
||||
@extend %bd-var-item;
|
||||
color: var(--bd-var-type-color, var(--hl-purple));
|
||||
width: var(--bd-var-computed-type-width);
|
||||
}
|
||||
|
||||
.bd-var {
|
||||
.bd-is-boolean {
|
||||
--bd-var-type-color: var(--hl-lavender);
|
||||
}
|
||||
|
||||
.bd-is-color {
|
||||
--bd-var-type-color: var(--hl-orange);
|
||||
}
|
||||
|
||||
.bd-is-compound {
|
||||
--bd-var-type-color: var(--hl-lavender);
|
||||
}
|
||||
|
||||
.bd-is-font-weight {
|
||||
--bd-var-type-color: var(--hl-lavender);
|
||||
}
|
||||
|
||||
.bd-is-function {
|
||||
--bd-var-type-color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.bd-is-size {
|
||||
--bd-var-type-color: var(--hl-pink);
|
||||
}
|
||||
|
||||
.bd-is-shadow {
|
||||
--bd-var-type-color: var(--hl-lavender);
|
||||
}
|
||||
|
||||
.bd-is-string {
|
||||
--bd-var-type-color: var(--hl-yellow);
|
||||
}
|
||||
|
||||
.bd-is-variable {
|
||||
--bd-var-type-color: var(--hl-green);
|
||||
}
|
||||
}
|
||||
|
||||
@include touch {
|
||||
%bd-var-item {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
.bd-vars {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.bd-var {
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include desktop {
|
||||
%bd-var-item {
|
||||
padding: 0.25em 1em;
|
||||
}
|
||||
|
||||
.bd-var.bd-is-head {
|
||||
.bd-var-name {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.bd-var-computed-type {
|
||||
padding-left: 2em;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-var.bd-is-body {
|
||||
margin-left: -1em;
|
||||
margin-right: -1em;
|
||||
}
|
||||
|
||||
.bd-vars {
|
||||
--bd-var-name-width: 40%;
|
||||
--bd-var-computed-type-width: 10%;
|
||||
--bd-var-type-width: 10%;
|
||||
--bd-var-computed-value-width: 20%;
|
||||
--bd-var-value-width: 20%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user