-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2377a74
commit 2b532ae
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "custom_bootstrap", | ||
"version": "1.0.0", | ||
"description": "Extends Bootstrap with no rounded and themed popovers and tooltips.", | ||
"license": "MIT", | ||
"author": "[email protected]", | ||
"type": "commonjs", | ||
"dependencies": { | ||
"bootstrap": "^5.3", | ||
"jquery": "^3.7" | ||
}, | ||
"scripts": { | ||
"watch": "sass --watch scss/bootstrap.scss:public/css/bootstrap.css --no-source-map", | ||
"build": "sass scss/bootstrap.scss:public/css/bootstrap.css --no-source-map" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// custom variables | ||
$enable-rounded: false; | ||
$tooltip-opacity: 1.0; | ||
|
||
/**! compression tag for ftp-deployment */ | ||
@import "../node_modules/bootstrap/scss/bootstrap"; | ||
|
||
$separator: --; | ||
|
||
/** Themed tooltips */ | ||
@each $key, $value in $theme-colors { | ||
.tooltip-#{$key} { | ||
#{$separator}#{$prefix}tooltip-bg: var(--#{$prefix}#{$key}); | ||
#{$separator}#{$prefix}tooltip-color: color-contrast($value); | ||
} | ||
} | ||
|
||
/* Themed popovers */ | ||
@each $key, $value in $theme-colors { | ||
.popover-#{$key} { | ||
#{$separator}#{$prefix}popover-border-color: var(--#{$prefix}#{$key}); | ||
#{$separator}#{$prefix}popover-header-bg: var(--#{$prefix}#{$key}); | ||
#{$separator}#{$prefix}popover-header-color: color-contrast($value); | ||
} | ||
} | ||
|
||
/** special border for themed popover */ | ||
html[data-bs-theme=dark] .popover-dark { | ||
--bs-popover-border-color: var(--bs-dark-border-subtle); | ||
} | ||
|
||
html[data-bs-theme=light] .popover-light { | ||
--bs-popover-border-color: var(--bs-light-border-subtle); | ||
} |