diff --git a/include/thirdparty/Bootstrap4/less/LICENSE b/include/thirdparty/Bootstrap4/less/LICENSE new file mode 100644 index 0000000..9b560c5 --- /dev/null +++ b/include/thirdparty/Bootstrap4/less/LICENSE @@ -0,0 +1,40 @@ +https://github.com/seanCodes/bootstrap-less-port/tree/v1.0.0 - + +Bootstrap 4.1.3 - requires Less v2.6.0 or above to compile. + +// Required Files +@import "include/thirdparty/Bootstrap4/less/_functions"; +@import "include/thirdparty/Bootstrap4/less/_variables"; +@import "include/thirdparty/Bootstrap4/less/_mixins"; + +// Optional Files +@import "include/thirdparty/Bootstrap4/less/_reboot"; +@import "include/thirdparty/Bootstrap4/less/_utilities"; +@import "include/thirdparty/Bootstrap4/less/_type"; +@import "include/thirdparty/Bootstrap4/less/_grid"; + +or all : +@import "include/thirdparty/Bootstrap4/less/bootstrap"; +------------------------------------------------------------------- + +MIT License + +Copyright (c) 2017 Sean Juarez + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/include/thirdparty/Bootstrap4/less/_alert.less b/include/thirdparty/Bootstrap4/less/_alert.less new file mode 100644 index 0000000..78c12a0 --- /dev/null +++ b/include/thirdparty/Bootstrap4/less/_alert.less @@ -0,0 +1,61 @@ +// +// Base styles +// + +.alert { + position: relative; + padding: @alert-padding-y @alert-padding-x; + margin-bottom: @alert-margin-bottom; + border: @alert-border-width solid transparent; + #border-radius(@alert-border-radius); +} + +// Headings for larger alerts +.alert-heading { + // Specified to prevent conflicts of changing @headings-color + color: inherit; +} + +// Provide class for links that match alerts +.alert-link { + font-weight: @alert-link-font-weight; +} + + +// Dismissible alerts +// +// Expand the right padding and account for the close button's positioning. + +.alert-dismissible { + padding-right: (@close-font-size + @alert-padding-x * 2); + + // Adjust close link position + .close { + position: absolute; + top: 0; + right: 0; + padding: @alert-padding-y @alert-padding-x; + color: inherit; + } +} + + +// Alternate styles +// +// Generate contextual modifier classes for colorizing the alert. + +//@each $color, $value in $theme-colors { +// .alert-#{$color} { +// @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level)); +// } +//} +#each-theme-color-alert(@i) when (@i =< length(@theme-colors)) { + @item: extract(@theme-colors, @i); + @color: extract(@item, 1); + + .alert-@{color} { + #alert-variant(theme-color-level(@color, @alert-bg-level), theme-color-level(@color, @alert-border-level), theme-color-level(@color, @alert-color-level)); + } + + #each-theme-color-alert((@i + 1)); +} #each-theme-color-alert(1); diff --git a/include/thirdparty/Bootstrap4/less/_badge.less b/include/thirdparty/Bootstrap4/less/_badge.less new file mode 100644 index 0000000..dde8d4f --- /dev/null +++ b/include/thirdparty/Bootstrap4/less/_badge.less @@ -0,0 +1,58 @@ +// Base class +// +// Requires one of the contextual, color modifier classes for `color` and +// `background-color`. + +.badge { + display: inline-block; + padding: @badge-padding-y @badge-padding-x; + font-size: @badge-font-size; + font-weight: @badge-font-weight; + line-height: 1; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + #border-radius(@badge-border-radius); + + // Empty badges collapse automatically + &:empty { + display: none; + } +} + +// Quick fix for badges in buttons +.btn .badge { + position: relative; + top: -1px; +} + +// Pill badges +// +// Make them extra rounded with a modifier to replace v3's badges. + +.badge-pill { + padding-right: @badge-pill-padding-x; + padding-left: @badge-pill-padding-x; + #border-radius(@badge-pill-border-radius); +} + +// Colors +// +// Contextual variations (linked badges get darker on :hover). + +//@each $color, $value in $theme-colors { +// .badge-${color} { +// @include badge-variant($value); +// } +//} +#each-theme-color-badge(@i: 1) when (@i =< length(@theme-colors)) { + @item: extract(@theme-colors, @i); + @color: extract(@item, 1); + @value: extract(@item, 2); + + .badge-@{color} { + #badge-variant(@value); + } + + #each-theme-color-badge((@i + 1)); +} #each-theme-color-badge(); diff --git a/include/thirdparty/Bootstrap4/less/_breadcrumb.less b/include/thirdparty/Bootstrap4/less/_breadcrumb.less new file mode 100644 index 0000000..8f21aaf --- /dev/null +++ b/include/thirdparty/Bootstrap4/less/_breadcrumb.less @@ -0,0 +1,40 @@ +.breadcrumb { + display: flex; + flex-wrap: wrap; + padding: @breadcrumb-padding-y @breadcrumb-padding-x; + margin-bottom: @breadcrumb-margin-bottom; + list-style: none; + background-color: @breadcrumb-bg; + #border-radius(@breadcrumb-border-radius); +} + +.breadcrumb-item { + // The separator between breadcrumbs (by default, a forward-slash: "/") + + .breadcrumb-item { + padding-left: @breadcrumb-item-padding; + + &::before { + display: inline-block; // Suppress underlining of the separator in modern browsers + padding-right: @breadcrumb-item-padding; + color: @breadcrumb-divider-color; + content: @breadcrumb-divider; + } + } + + // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built + // without `