mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
Compare commits
2 Commits
dependabot
...
dev-build
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7693deabc9 | ||
|
|
6177b98ca2 |
18
package.json
18
package.json
@@ -7,21 +7,19 @@
|
|||||||
"dev": "pnpm run start",
|
"dev": "pnpm run start",
|
||||||
"start": "gulp start",
|
"start": "gulp start",
|
||||||
"build": "gulp build",
|
"build": "gulp build",
|
||||||
"build-docs": "mkdir public && touch public/index.html && echo 'ok'",
|
|
||||||
"preview": "gulp build --preview",
|
"preview": "gulp build --preview",
|
||||||
"svg-optimize": "svgo -f svg/brand --pretty",
|
|
||||||
"unused-files": "node .build/unused-files.js",
|
"unused-files": "node .build/unused-files.js",
|
||||||
"release": "release-it",
|
"release": "release-it",
|
||||||
"svg-icons": "node .build/import-icons.js",
|
"svg-icons": "node .build/import-icons.js",
|
||||||
"bundlewatch": "bundlewatch",
|
"bundlewatch": "bundlewatch",
|
||||||
"storybook": "start-storybook -p 6006",
|
"import-icons": "git checkout dev && BRANCH_NAME=\"dev-tabler-icons-`pnpm info @tabler/icons version`\" && git branch $BRANCH_NAME && git checkout $BRANCH_NAME && ncu -u @tabler/icons && pnpm install && pnpm run svg-icons && git add . && git commit -am \"update icons to v`pnpm info @tabler/icons version`\" && git push origin $BRANCH_NAME && git checkout dev",
|
||||||
"changelog": "node .build/changelog.js",
|
"import-illustrations": "node .build/import-illustrations.js",
|
||||||
"icons": "git checkout dev && BRANCH_NAME=\"dev-tabler-icons-`pnpm info @tabler/icons version`\" && git branch $BRANCH_NAME && git checkout $BRANCH_NAME && ncu -u @tabler/icons && pnpm install && pnpm run svg-icons && git add . && git commit -am \"update icons to v`pnpm info @tabler/icons version`\" && git push origin $BRANCH_NAME && git checkout dev",
|
|
||||||
"download-images": "node .build/download-images.js",
|
"download-images": "node .build/download-images.js",
|
||||||
|
"optimize": "pnpm run optimize-images && pnpm run optimize-svg",
|
||||||
"optimize-images": "for i in ./src/static/photos/*.jpg; do convert \"$i\" -quality 80% \"${i%.jpg}.jpg\"; done",
|
"optimize-images": "for i in ./src/static/photos/*.jpg; do convert \"$i\" -quality 80% \"${i%.jpg}.jpg\"; done",
|
||||||
|
"optimize-svg": "svgo -f svg/brand --pretty",
|
||||||
"format:check": "prettier --check src/**/*.{js,scss} --cache",
|
"format:check": "prettier --check src/**/*.{js,scss} --cache",
|
||||||
"format:write": "prettier --write src/**/*.{js,scss} --cache",
|
"format:write": "prettier --write src/**/*.{js,scss} --cache",
|
||||||
"illustrations": "node .build/import-illustrations.js",
|
|
||||||
"build:html": "eleventy",
|
"build:html": "eleventy",
|
||||||
"watch:html": "eleventy --watch --incremental"
|
"watch:html": "eleventy --watch --incremental"
|
||||||
},
|
},
|
||||||
@@ -105,6 +103,14 @@
|
|||||||
"path": "./dist/css/tabler-socials.min.css",
|
"path": "./dist/css/tabler-socials.min.css",
|
||||||
"maxSize": "2 kB"
|
"maxSize": "2 kB"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "./dist/css/tabler-marketing.css",
|
||||||
|
"maxSize": "9 kB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./dist/css/tabler-marketing.min.css",
|
||||||
|
"maxSize": "8 kB"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/tabler-vendors.css",
|
"path": "./dist/css/tabler-vendors.css",
|
||||||
"maxSize": "7.5 kB"
|
"maxSize": "7.5 kB"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ if (!!params.theme) {
|
|||||||
selectedTheme = storedTheme ? storedTheme : defaultTheme
|
selectedTheme = storedTheme ? storedTheme : defaultTheme
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selectedTheme === 'dark') {
|
if (selectedTheme === "dark") {
|
||||||
document.body.setAttribute("data-bs-theme", selectedTheme)
|
document.body.setAttribute("data-bs-theme", selectedTheme)
|
||||||
} else {
|
} else {
|
||||||
document.body.removeAttribute("data-bs-theme")
|
document.body.removeAttribute("data-bs-theme")
|
||||||
|
|||||||
@@ -38,9 +38,7 @@ const parseUrl = () => {
|
|||||||
// Toggle form controls
|
// Toggle form controls
|
||||||
const toggleFormControls = (form) => {
|
const toggleFormControls = (form) => {
|
||||||
for (const [key, params] of Object.entries(items)) {
|
for (const [key, params] of Object.entries(items)) {
|
||||||
const elem = form.querySelector(
|
const elem = form.querySelector(`[name="settings-${key}"][value="${config[key]}"]`)
|
||||||
`[name="settings-${key}"][value="${config[key]}"]`,
|
|
||||||
)
|
|
||||||
|
|
||||||
if (elem) {
|
if (elem) {
|
||||||
elem.checked = true
|
elem.checked = true
|
||||||
|
|||||||
@@ -60,13 +60,7 @@
|
|||||||
// Override bootstrap core
|
// Override bootstrap core
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin button-outline-variant(
|
@mixin button-outline-variant($color: null, $color-hover: null, $active-background: null, $active-border: null, $active-color: null) {
|
||||||
$color: null,
|
|
||||||
$color-hover: null,
|
|
||||||
$active-background: null,
|
|
||||||
$active-border: null,
|
|
||||||
$active-color: null
|
|
||||||
) {
|
|
||||||
// Override bootstrap core
|
// Override bootstrap core
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,5 +73,4 @@
|
|||||||
|
|
||||||
@import "debug";
|
@import "debug";
|
||||||
|
|
||||||
|
|
||||||
@import "debug";
|
@import "debug";
|
||||||
@@ -1,8 +1,4 @@
|
|||||||
$negative-spacers-extra: if(
|
$negative-spacers-extra: if($enable-negative-margins, negativify-map(map-merge($spacers, $spacers-extra)), null);
|
||||||
$enable-negative-margins,
|
|
||||||
negativify-map(map-merge($spacers, $spacers-extra)),
|
|
||||||
null
|
|
||||||
);
|
|
||||||
|
|
||||||
$utilities: (
|
$utilities: (
|
||||||
// Margin utilities
|
// Margin utilities
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
$border-values: (
|
$border-values: (
|
||||||
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style)
|
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color-translucent),
|
||||||
var(--#{$prefix}border-color-translucent),
|
wide: $border-width-wide var(--#{$prefix}border-style) var(--#{$prefix}border-color-translucent),
|
||||||
wide: $border-width-wide var(--#{$prefix}border-style)
|
|
||||||
var(--#{$prefix}border-color-translucent),
|
|
||||||
0: 0,
|
0: 0,
|
||||||
);
|
);
|
||||||
|
|
||||||
$utilities-border-colors: map-loop((
|
$utilities-border-colors: map-loop(
|
||||||
|
(
|
||||||
"red": red,
|
"red": red,
|
||||||
"green": green,
|
"green": green,
|
||||||
), rgba-css-var, "$key", "border") !default;
|
),
|
||||||
|
rgba-css-var,
|
||||||
|
"$key",
|
||||||
|
"border"
|
||||||
|
) !default;
|
||||||
|
|
||||||
//Utilities
|
//Utilities
|
||||||
$utilities: (
|
$utilities: (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
$darken-dark: color.adjust($dark, $lightness: -2%) !default;
|
$darken-dark: color.adjust($dark, $lightness: -2%) !default;
|
||||||
$lighten-dark: color.adjust($dark, $lightness: 2%) !default;
|
$lighten-dark: color.adjust($dark, $lightness: 2%) !default;
|
||||||
$border-color-dark: color.adjust($dark, $lightness: 8%) !default;
|
$border-color-dark: color.adjust($dark, $lightness: 8%) !default;
|
||||||
$border-color-translucent-dark: rgba(72, 110, 149, .14) !default;
|
$border-color-translucent-dark: rgba(72, 110, 149, 0.14) !default;
|
||||||
$border-dark-color-dark: color.adjust($dark, $lightness: 4%) !default;
|
$border-dark-color-dark: color.adjust($dark, $lightness: 4%) !default;
|
||||||
$border-active-color-dark: color.adjust($dark, $lightness: 12%) !default;
|
$border-active-color-dark: color.adjust($dark, $lightness: 12%) !default;
|
||||||
|
|
||||||
@@ -16,4 +16,3 @@ $body-emphasis-color-dark: $white !default;
|
|||||||
|
|
||||||
$code-color-dark: var(--#{$prefix}gray-300) !default;
|
$code-color-dark: var(--#{$prefix}gray-300) !default;
|
||||||
$text-secondary-dark: rgba(153, 159, 164, 1) !default;
|
$text-secondary-dark: rgba(153, 159, 164, 1) !default;
|
||||||
|
|
||||||
@@ -53,9 +53,9 @@ $line-height-700: 3rem !default;
|
|||||||
|
|
||||||
$font-size-base: 0.875rem !default;
|
$font-size-base: 0.875rem !default;
|
||||||
|
|
||||||
$spacing-wide: .04em !default;
|
$spacing-wide: 0.04em !default;
|
||||||
$spacing-normal: 0 !default;
|
$spacing-normal: 0 !default;
|
||||||
$spacing-tight: -.04em !default;
|
$spacing-tight: -0.04em !default;
|
||||||
|
|
||||||
$body-letter-spacing: 0 !default;
|
$body-letter-spacing: 0 !default;
|
||||||
|
|
||||||
@@ -69,12 +69,12 @@ $headings-font-weight: var(--#{$prefix}font-weight-bold) !default;
|
|||||||
$headings-margin-bottom: var(--#{$prefix}spacer) !default;
|
$headings-margin-bottom: var(--#{$prefix}spacer) !default;
|
||||||
|
|
||||||
$font-weights: (
|
$font-weights: (
|
||||||
'light': $font-weight-light,
|
"light": $font-weight-light,
|
||||||
'normal': $font-weight-normal,
|
"normal": $font-weight-normal,
|
||||||
'medium': $font-weight-medium,
|
"medium": $font-weight-medium,
|
||||||
'bold': $font-weight-bold,
|
"bold": $font-weight-bold,
|
||||||
'black': $font-weight-black,
|
"black": $font-weight-black,
|
||||||
'headings': $headings-font-weight,
|
"headings": $headings-font-weight,
|
||||||
) !default;
|
) !default;
|
||||||
|
|
||||||
$line-height-base: divide(1.25rem, $font-size-base) !default;
|
$line-height-base: divide(1.25rem, $font-size-base) !default;
|
||||||
@@ -330,52 +330,52 @@ $kbd-border-radius: var(--#{$prefix}border-radius) !default;
|
|||||||
|
|
||||||
// Avatars
|
// Avatars
|
||||||
$avatar-size: 2.5rem !default;
|
$avatar-size: 2.5rem !default;
|
||||||
$avatar-status-size: .75rem !default;
|
$avatar-status-size: 0.75rem !default;
|
||||||
$avatar-font-size: 1rem !default;
|
$avatar-font-size: 1rem !default;
|
||||||
$avatar-icon-size: 1.5rem !default;
|
$avatar-icon-size: 1.5rem !default;
|
||||||
$avatar-bg: var(--#{$prefix}bg-surface-secondary) !default;
|
$avatar-bg: var(--#{$prefix}bg-surface-secondary) !default;
|
||||||
$avatar-sizes: (
|
$avatar-sizes: (
|
||||||
"xxs": (
|
"xxs": (
|
||||||
size: 1rem,
|
size: 1rem,
|
||||||
font-size: .5rem,
|
font-size: 0.5rem,
|
||||||
icon-size: .75rem,
|
icon-size: 0.75rem,
|
||||||
status-size: .25rem
|
status-size: 0.25rem,
|
||||||
),
|
),
|
||||||
"xs": (
|
"xs": (
|
||||||
size: 1.25rem,
|
size: 1.25rem,
|
||||||
font-size: $h6-font-size,
|
font-size: $h6-font-size,
|
||||||
icon-size: .75rem,
|
icon-size: 0.75rem,
|
||||||
status-size: .375rem
|
status-size: 0.375rem,
|
||||||
),
|
),
|
||||||
"sm": (
|
"sm": (
|
||||||
size: 2rem,
|
size: 2rem,
|
||||||
font-size: $h5-font-size,
|
font-size: $h5-font-size,
|
||||||
icon-size: 1.5rem,
|
icon-size: 1.5rem,
|
||||||
status-size: .5rem
|
status-size: 0.5rem,
|
||||||
),
|
),
|
||||||
"md": (
|
"md": (
|
||||||
size: 2.5rem,
|
size: 2.5rem,
|
||||||
font-size: $h4-font-size,
|
font-size: $h4-font-size,
|
||||||
icon-size: 1.5rem,
|
icon-size: 1.5rem,
|
||||||
status-size: .75rem
|
status-size: 0.75rem,
|
||||||
),
|
),
|
||||||
"lg": (
|
"lg": (
|
||||||
size: 3rem,
|
size: 3rem,
|
||||||
font-size: $h2-font-size,
|
font-size: $h2-font-size,
|
||||||
icon-size: 2rem,
|
icon-size: 2rem,
|
||||||
status-size: .75rem
|
status-size: 0.75rem,
|
||||||
),
|
),
|
||||||
"xl": (
|
"xl": (
|
||||||
size: 5rem,
|
size: 5rem,
|
||||||
font-size: 2rem,
|
font-size: 2rem,
|
||||||
icon-size: 3rem,
|
icon-size: 3rem,
|
||||||
status-size: 1rem
|
status-size: 1rem,
|
||||||
),
|
),
|
||||||
"2xl": (
|
"2xl": (
|
||||||
size: 7rem,
|
size: 7rem,
|
||||||
font-size: 3rem,
|
font-size: 3rem,
|
||||||
icon-size: 5rem,
|
icon-size: 5rem,
|
||||||
status-size: 1rem
|
status-size: 1rem,
|
||||||
),
|
),
|
||||||
) !default;
|
) !default;
|
||||||
$avatar-border-radius: var(--#{$prefix}border-radius) !default;
|
$avatar-border-radius: var(--#{$prefix}border-radius) !default;
|
||||||
@@ -598,7 +598,7 @@ $input-box-shadow: var(--#{$prefix}box-shadow-input) !default;
|
|||||||
$btn-border-radius-sm: var(--#{$prefix}border-radius-sm) !default;
|
$btn-border-radius-sm: var(--#{$prefix}border-radius-sm) !default;
|
||||||
$btn-border-radius-lg: var(--#{$prefix}border-radius-lg) !default;
|
$btn-border-radius-lg: var(--#{$prefix}border-radius-lg) !default;
|
||||||
|
|
||||||
$btn-disabled-opacity: .4 !default;
|
$btn-disabled-opacity: 0.4 !default;
|
||||||
$btn-padding-x: 1rem !default;
|
$btn-padding-x: 1rem !default;
|
||||||
$btn-font-weight: var(--#{$prefix}font-weight-medium) !default;
|
$btn-font-weight: var(--#{$prefix}font-weight-medium) !default;
|
||||||
$btn-border-color: var(--#{$prefix}border-color) !default;
|
$btn-border-color: var(--#{$prefix}border-color) !default;
|
||||||
|
|||||||
@@ -76,10 +76,8 @@ $demo-icon-size: 4rem;
|
|||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
border-right: var(--#{$prefix}border-width) var(--#{$prefix}border-style)
|
border-right: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color);
|
||||||
var(--#{$prefix}border-color);
|
border-bottom: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color);
|
||||||
border-bottom: var(--#{$prefix}border-width) var(--#{$prefix}border-style)
|
|
||||||
var(--#{$prefix}border-color);
|
|
||||||
color: inherit;
|
color: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
@@ -113,8 +111,7 @@ $demo-icon-size: 4rem;
|
|||||||
height: 3rem;
|
height: 3rem;
|
||||||
width: 3rem;
|
width: 3rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style)
|
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color);
|
||||||
var(--#{$prefix}border-color);
|
|
||||||
box-shadow: $box-shadow;
|
box-shadow: $box-shadow;
|
||||||
|
|
||||||
&-light {
|
&-light {
|
||||||
@@ -134,10 +131,6 @@ $demo-icon-size: 4rem;
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-colored {
|
&-colored {
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(135deg, var(--#{$prefix}primary) 50%, $light 50%);
|
||||||
135deg,
|
|
||||||
var(--#{$prefix}primary) 50%,
|
|
||||||
$light 50%
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user