mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Make the marketing hero, browser and shapes read tokens that exist (#2928)
This commit is contained in:
1 parent
a883531302
commit
9d04e14ab1
5 files changed
+16
-15
No files matched your search
@@ -4,14 +4,5 @@
|
||||
# also on a listed name that no longer dangles, so fixing one means deleting
|
||||
# its line.
|
||||
#
|
||||
# Everything below is a real bug waiting to be fixed, not an accepted exception.
|
||||
|
||||
# tabler-marketing.css: `.shape-*` backgrounds, borders and headings reach for
|
||||
# tokens that only ever existed in the marketing prototype.
|
||||
--tblr-black-lt
|
||||
--tblr-border-color-dark
|
||||
--tblr-border-color-light
|
||||
--tblr-border-radius-circle
|
||||
--tblr-font-weight-black
|
||||
--tblr-gray-dark-lt
|
||||
--tblr-gray-lt
|
||||
# The list is empty: every var() in the css resolves. An entry added here is a
|
||||
# bug waiting to be fixed, not an accepted exception.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tabler/core": patch
|
||||
---
|
||||
|
||||
Fixed the marketing hero, browser and shape components reading custom properties nothing defined.
|
||||
@@ -28,6 +28,11 @@
|
||||
--white: #{$white};
|
||||
--white-lt: color-mix(in oklab, var(--white) 10%, transparent);
|
||||
--black: #{$black};
|
||||
// `.shape-*` runs over `$colors`, which carries these three on top of the
|
||||
// theme colors; the `-lt` tint below is generated for the theme colors only.
|
||||
--black-lt: color-mix(in oklab, var(--black) 10%, transparent);
|
||||
--gray-lt: color-mix(in oklab, var(--gray) 10%, transparent);
|
||||
--gray-dark-lt: color-mix(in oklab, var(--gray-dark) 10%, transparent);
|
||||
--dark: #{$dark};
|
||||
--light: #{$light};
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
.browser-header {
|
||||
padding: 0.25rem 1rem;
|
||||
background: var(--border-color-light) linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.03));
|
||||
background: var(--bg-surface-tertiary) linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.03));
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
@include border-radius(calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0 0);
|
||||
}
|
||||
@@ -44,8 +44,8 @@
|
||||
height: 0.75rem;
|
||||
margin-inline-end: 0.5rem;
|
||||
background: var(--border-color);
|
||||
border: 1px solid var(--border-color-dark);
|
||||
@include border-radius(var(--border-radius-circle));
|
||||
border: 1px solid var(--border-active-color);
|
||||
@include border-radius(var(--border-radius-pill));
|
||||
}
|
||||
|
||||
.browser-input {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
.hero-title {
|
||||
font-size: 3rem;
|
||||
font-weight: var(--font-weight-black);
|
||||
font-weight: var(--font-weight-bold);
|
||||
line-height: $headings-line-height;
|
||||
letter-spacing: $spacing-tight;
|
||||
|
||||
|
||||
Reference in new issue
Block a user