-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #644 from tnir/tnir-bootstrap-4-643
Replace bootstrap-sass 3 to bootstrap 4.6.1
- Loading branch information
Showing
37 changed files
with
277 additions
and
277 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
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 |
---|---|---|
@@ -1,24 +1,36 @@ | ||
$theme-colors: ( | ||
// for .btn-primary. This color is applied to $link-color so tweak is followed. | ||
// - Discussion: https://github.com/rubygems/bundler-site/pull/644#issuecomment-1178722939 | ||
"primary": #12AEE2 | ||
); | ||
|
||
// navbar | ||
$navbar-default-bg: #fff; | ||
$navbar-default-border: #fff; | ||
$navbar-padding-y: 0; | ||
|
||
$navbar-light-brand-color: #06456A; | ||
$navbar-light-color: #000; | ||
|
||
// Transition workaround for skipping improvement from Bootstrap 3.4.1 to Bootstrap 4.6.1 | ||
// - Discussion: https://github.com/rubygems/bundler-site/pull/644#issuecomment-1178722939 | ||
// - Color adapted from https://github.com/twbs/bootstrap/blob/v3.4.1/less/variables.less#L389 | ||
$_navbar-default-toggle-icon-bar-bg: #888; | ||
$navbar-light-toggler-icon-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><path stroke='#{$_navbar-default-toggle-icon-bar-bg}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>"); | ||
// /Transition workaround | ||
|
||
$navbar-default-link-color: #000; | ||
$navbar-default-link-hover-color: #777; | ||
$navbar-nav-link-padding-x: 0.875rem; | ||
|
||
$navbar-default-brand-color: #06456A; | ||
$navbar-default-brand-hover-color: $navbar-default-brand-color; | ||
// font-size: 1.25rem ($font-size-lg) is too large for .navbar-toggler | ||
// - Discussion: https://github.com/rubygems/bundler-site/pull/644#issuecomment-1177959921 | ||
$navbar-toggler-font-size: 1rem; | ||
|
||
$btn-primary-bg: #12AEE2; | ||
$btn-primary-border: transparent; | ||
// .btn does not need border | ||
$btn-border-width: 0; | ||
|
||
$font-family-sans-serif: "SancoaleSlab"; | ||
$font-size-base: 16px; | ||
$font-family-sans-serif: "SancoaleSlab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | ||
|
||
$pre-bg: #373737; | ||
$pre-color: #fff; | ||
$pre-border-color: #373737; | ||
// for contributors | ||
$card-border-width: 0; | ||
|
||
$thumbnail-padding: 25px; | ||
$thumbnail-border: #fff; | ||
$thumbnail-caption-color: $navbar-default-brand-color; | ||
$thumbnail-caption-padding: 0px; | ||
// Transition workaround for unifying link color and button (btn-primary) in Boostrap 4.6.1 | ||
$link-color: #337ab7; | ||
// /Transition workaround |
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
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
.navbar-brand { | ||
font-size: 32px; | ||
margin: -3px 0; | ||
} | ||
|
||
.navbar { | ||
|
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 @@ | ||
// https://getbootstrap.com/docs/5.1/utilities/colors/#opacity | ||
// See also | ||
// https://github.com/twbs/bootstrap/blob/v5.1.3/scss/_utilities.scss#L27-L39 | ||
// https://github.com/twbs/bootstrap/blob/v5.1.3/scss/mixins/_utilities.scss#L64-L72 | ||
.text-opacity-50 { | ||
--bs-text-opacity: 0.5; | ||
color: rgba($body-color, var(--bs-text-opacity)); | ||
} | ||
|
||
// Transition workaround for skipping improvement from Bootstrap 3.4.1 to Bootstrap 4.6.1 | ||
// - Discussion: https://github.com/rubygems/bundler-site/pull/644#issuecomment-1178722939 | ||
.text-opacity-40 { | ||
--bs-text-opacity: 0.4; | ||
color: rgba($body-color, var(--bs-text-opacity)); | ||
} | ||
// /Transition workaround |
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
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
Oops, something went wrong.