Skip to content

Commit

Permalink
Add v1 banner
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Dec 12, 2023
1 parent 3a03ea1 commit 7f20009
Show file tree
Hide file tree
Showing 15 changed files with 3,587 additions and 9,133 deletions.
80 changes: 77 additions & 3 deletions docs/_includes/global/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,79 @@
{% include footer/support.html %}
{% include footer/support.html %} {% include global/native.html %} {% include
footer/main.html %}

{% include global/native.html %}
<div class="v1-modal modal">
<div class="bd-book-modal-background"></div>
<h3 class="v1-modal-title title">
<span class="v1-modal-emoji">🎉</span>
Bulma v1 is coming soon!
</h3>

{% include footer/main.html %}
<ul class="v1-tags">
<li class="v1-tag" style="background-color: #2a2e37; color: #fff">
<span class="icon" style="color: #8158f5">
<i class="fas fa-moon"></i>
</span>
Dark Mode
</li>
<li class="v1-tag">
<span class="icon has-text-danger">
<i class="fas fa-th-large"></i>
</span>
Smart Grid
</li>
<li class="v1-tag">
<span class="icon has-text-link">
<i class="fab fa-css3"></i>
</span>
CSS Variables
</li>
<li class="v1-tag">
<span class="icon has-text-amazon">
<i class="fas fa-tint"></i>
</span>
Auto-Color
</li>
<li class="v1-tag">
<span class="icon has-text-success">
<i class="fas fa-paint-brush"></i>
</span>
Themes
</li>
<li class="v1-tag">
<span class="icon has-text-rss">
<i class="fas fa-spinner"></i>
</span>
Skeleton Loaders
</li>
<li class="v1-tag">
<span class="icon has-text-info">
<i class="fas fa-palette"></i>
</span>
Auto-Palettes
</li>
<li class="v1-tag">
<span class="icon has-text-sass">
<i class="fas fa-bullseye"></i>
</span>
Dart Sass Support
</li>
<li class="v1-tag">
<span class="icon has-text-primary">
<i class="fas fa-info-circle"></i>
</span>
Improved Accessibility
</li>
<li class="v1-tag">
<span class="icon has-text-fortyfour">
<i class="fas fa-swatchbook"></i>
</span>
HSLA
</li>
<li class="v1-tag is-last">and much more…</li>
</ul>

<button
class="bd-book-modal-close modal-close is-large"
aria-label="close"
></button>
</div>
73 changes: 73 additions & 0 deletions docs/_includes/global/v1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<div class="v1-banner">
<h3 class="v1-title">
<span class="v1-emoji">🎉</span>
Bulma v1 is coming soon!
</h3>

<div class="v1-features">
<ul class="v1-tags">
<li class="v1-tag" style="background-color: #2a2e37; color: #fff">
<span class="icon" style="color: #8158f5">
<i class="fas fa-moon"></i>
</span>
Dark Mode
</li>
<li class="v1-tag">
<span class="icon has-text-danger">
<i class="fas fa-th-large"></i>
</span>
Smart Grid
</li>
<li class="v1-tag">
<span class="icon has-text-link">
<i class="fab fa-css3"></i>
</span>
CSS Variables
</li>
<li class="v1-tag">
<span class="icon has-text-amazon">
<i class="fas fa-tint"></i>
</span>
Auto-Color
</li>
<li class="v1-tag">
<span class="icon has-text-success">
<i class="fas fa-paint-brush"></i>
</span>
Themes
</li>
<li class="v1-tag">
<span class="icon has-text-rss">
<i class="fas fa-spinner"></i>
</span>
Skeleton Loaders
</li>
<li class="v1-tag">
<span class="icon has-text-info">
<i class="fas fa-palette"></i>
</span>
Auto-Palettes
</li>
<li class="v1-tag">
<span class="icon has-text-sass">
<i class="fas fa-bullseye"></i>
</span>
Dart Sass Support
</li>
<li class="v1-tag">
<span class="icon has-text-primary">
<i class="fas fa-info-circle"></i>
</span>
Improved Accessibility
</li>
<li class="v1-tag">
<span class="icon has-text-fortyfour">
<i class="fas fa-swatchbook"></i>
</span>
HSLA
</li>
</ul>
</div>

<div class="v1-more">and much more…</div>
</div>
6 changes: 2 additions & 4 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
<body
class="layout-{{ page.layout }}{% if page.doc-tab %} page-{{ page.doc-tab}}{% endif %}"
>
{% include global/deprecated.html %}
{{ content }}
{% include global/footer.html %}
{% include global/scripts.html %}
{% include global/v1.html %} {% include global/deprecated.html %} {{ content
}} {% include global/footer.html %} {% include global/scripts.html %}
</body>
</html>
96 changes: 96 additions & 0 deletions docs/_sass/components/v1.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
.v1-banner {
display: flex;
}

.v1-modal {
font-family: "Inter", $family-sans-serif;
z-index: 100;
}

.v1-banner,
.v1-modal {
background: conic-gradient(
from 180deg at 50% 50%,
#040435 0deg,
#430677 60.00000178813934deg,
#b61bbd 97.50000357627869deg,
#fe5c65 149.9999964237213deg,
#ff896f 179.72567439079285deg,
#fc8433 209.51215267181396deg,
#fd8d4d 226.2606167793274deg,
#f45b10 244.58197116851807deg,
#ad267d 279.1821026802063deg,
#4b1acd 300.7368063926697deg,
#004e9c 319.7864770889282deg,
#003773 338.803768157959deg,
#040435 360deg
);
}

.v1-banner {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
gap: 1rem;
flex-wrap: wrap;
}

.v1-emoji {
display: block;
}

.v1-title {
color: #fff;
display: flex;
align-items: center;
gap: 0.5em;
font-weight: 800;
line-height: 112.5%;
text-align: center;
font-size: 1.25rem;
white-space: nowrap;
}

.v1-features {
display: flex;
align-items: center;
overflow: hidden;
-webkit-mask-image: linear-gradient(to left, transparent 0%, black 10%);
mask-image: linear-gradient(to left, transparent 0%, black 10%);
}

.v1-tags {
align-items: center;
display: flex;
justify-content: flex-start;
gap: 1em;
}

.v1-tag {
background-color: white;
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04),
0px 2px 4px 0px rgba(0, 0, 0, 0.04), 0px 4px 8px 0px rgba(0, 0, 0, 0.04);
display: flex;
font-size: 1em;
font-weight: 500;
line-height: 1.25;
padding: 0.5em 0.75em 0.5em 0.5em;
align-items: center;
border-radius: 0.5em;
white-space: nowrap;
}

.v1-more {
background: none;
box-shadow: none;
color: white;
white-space: nowrap;
font-weight: 500;
}

@include tablet {
.v1-banner {
flex-wrap: nowrap;
}
}
12 changes: 7 additions & 5 deletions docs/_sass/global/newsletter.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

:root {
--newsletter-strip-size: 16px;
--newsletter-border-size: #{$block-spacing};
Expand Down Expand Up @@ -51,13 +53,13 @@

.bd-newsletter-fields {
display: grid;
grid-gap: $block-spacing / 2;
grid-gap: math.div($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-image: url("/images/hab/newsletter-strip.png");
background-repeat: repeat-x;
background-size: 96px var(--newsletter-strip-size);
border-radius: 1.5em;
Expand Down Expand Up @@ -90,11 +92,11 @@

.icon {
float: left;
margin-right: $block-spacing / 2;
margin-right: math.div($block-spacing, 2);
}

.subtitle {
margin: ($block-spacing / 2) 0 !important;
margin: (math.div($block-spacing, 2)) 0 !important;
}

form {
Expand Down Expand Up @@ -143,7 +145,7 @@

@include widescreen {
:root {
--newsletter-border-size: #{$bd-edge-width / 2};
--newsletter-border-size: #{math.div($bd-edge-width, 2)};
}

#newsletter {
Expand Down
4 changes: 3 additions & 1 deletion docs/_sass/index/best.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
@use "sass:math";

$best-item-width: 520;
$best-screenshot-width: 504;
$best-count: 6;
$best-more-count: 6;
$best-total-count: $best-count + (2 * $best-more-count);
$best-total-width: $best-item-width * $best-total-count;
$best-speed: 100; // px per second
$best-duration: $best-total-width / $best-speed * 1s;
$best-duration: math.div($best-total-width, $best-speed) * 1s;
$best-padding: $block-spacing;
$best-height: 386px;

Expand Down
4 changes: 3 additions & 1 deletion docs/_sass/index/focus-animations.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

@keyframes bdGrow {
from {
transform: scale(0);
Expand Down Expand Up @@ -49,7 +51,7 @@ $focus-delay: 0;
transform-origin: center center;
}

$delay-subtitle: $delay / 2;
$delay-subtitle: math.div($delay, 2);

// Titles
.bd-focus-item {
Expand Down
6 changes: 4 additions & 2 deletions docs/_sass/index/heading.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

.bd-heading {
> .icon {
font-size: $title-size;
Expand Down Expand Up @@ -40,11 +42,11 @@

.icon {
float: left;
margin-right: $block-spacing / 2;
margin-right: math.div($block-spacing, 2);
}

.subtitle {
margin: ($block-spacing / 2) 0 !important;
margin: (math.div($block-spacing, 2)) 0 !important;
}

form {
Expand Down
4 changes: 3 additions & 1 deletion docs/_sass/index/sponsors.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

$bd-sponsor-padding: $block-spacing;
$bd-sponsor-width: 12rem;

Expand Down Expand Up @@ -31,7 +33,7 @@ $bd-sponsor-width: 12rem;
@extend %center;
@extend %link-before-background;

padding: $bd-sponsor-padding ($bd-sponsor-padding / 2);
padding: $bd-sponsor-padding (math.div($bd-sponsor-padding, 2));

strong,
img {
Expand Down
4 changes: 2 additions & 2 deletions docs/_sass/pages/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
left: 0;

&:not(:hover) {
left: $bd-edge-offset -$bd-edge-width;
left: $bd-edge-offset - $bd-edge-width;

.bd-categories-filter,
.bd-categories-no-results {
Expand Down Expand Up @@ -227,7 +227,7 @@
right: 0;

&:not(:hover) {
right: $bd-edge-offset -$bd-edge-width;
right: $bd-edge-offset - $bd-edge-width;

.bd-features,
.bd-anchors {
Expand Down
Loading

0 comments on commit 7f20009

Please sign in to comment.