From b026c351060a22508d25c1a752a4ab380066cbbb Mon Sep 17 00:00:00 2001 From: koenemann Date: Fri, 1 Dec 2017 08:06:28 +0100 Subject: [PATCH] Adding BS4 resources manually --- gulpfile.js | 2 +- src/sass/bootstrap4/_alert.scss | 51 + src/sass/bootstrap4/_badge.scss | 47 + src/sass/bootstrap4/_breadcrumb.scss | 38 + src/sass/bootstrap4/_button-group.scss | 212 +++++ src/sass/bootstrap4/_buttons.scss | 137 +++ src/sass/bootstrap4/_card.scss | 270 ++++++ src/sass/bootstrap4/_carousel.scss | 191 ++++ src/sass/bootstrap4/_close.scss | 29 + src/sass/bootstrap4/_code.scss | 62 ++ src/sass/bootstrap4/_custom-forms.scss | 288 ++++++ src/sass/bootstrap4/_dropdown.scss | 131 +++ src/sass/bootstrap4/_forms.scss | 358 +++++++ src/sass/bootstrap4/_functions.scss | 86 ++ src/sass/bootstrap4/_grid.scss | 52 ++ src/sass/bootstrap4/_images.scss | 42 + src/sass/bootstrap4/_input-group.scss | 209 +++++ src/sass/bootstrap4/_jumbotron.scss | 16 + src/sass/bootstrap4/_list-group.scss | 114 +++ src/sass/bootstrap4/_media.scss | 8 + src/sass/bootstrap4/_mixins.scss | 42 + src/sass/bootstrap4/_modal.scss | 168 ++++ src/sass/bootstrap4/_nav.scss | 118 +++ src/sass/bootstrap4/_navbar.scss | 306 ++++++ src/sass/bootstrap4/_pagination.scss | 64 ++ src/sass/bootstrap4/_popover.scss | 194 ++++ src/sass/bootstrap4/_print.scss | 110 +++ src/sass/bootstrap4/_progress.scss | 33 + src/sass/bootstrap4/_reboot.scss | 504 ++++++++++ src/sass/bootstrap4/_root.scss | 19 + src/sass/bootstrap4/_tables.scss | 180 ++++ src/sass/bootstrap4/_tooltip.scss | 107 +++ src/sass/bootstrap4/_transitions.scss | 36 + src/sass/bootstrap4/_type.scss | 125 +++ src/sass/bootstrap4/_utilities.scss | 14 + src/sass/bootstrap4/_variables.scss | 877 ++++++++++++++++++ src/sass/bootstrap4/bootstrap-grid.scss | 35 + src/sass/bootstrap4/bootstrap-reboot.scss | 12 + src/sass/bootstrap4/bootstrap.scss | 42 + src/sass/bootstrap4/mixins/_alert.scss | 13 + .../mixins/_background-variant.scss | 20 + src/sass/bootstrap4/mixins/_badge.scss | 12 + .../bootstrap4/mixins/_border-radius.scss | 35 + src/sass/bootstrap4/mixins/_box-shadow.scss | 5 + src/sass/bootstrap4/mixins/_breakpoints.scss | 121 +++ src/sass/bootstrap4/mixins/_buttons.scss | 99 ++ src/sass/bootstrap4/mixins/_caret.scss | 65 ++ src/sass/bootstrap4/mixins/_clearfix.scss | 7 + src/sass/bootstrap4/mixins/_float.scss | 11 + src/sass/bootstrap4/mixins/_forms.scss | 121 +++ src/sass/bootstrap4/mixins/_gradients.scss | 45 + .../bootstrap4/mixins/_grid-framework.scss | 69 ++ src/sass/bootstrap4/mixins/_grid.scss | 52 ++ src/sass/bootstrap4/mixins/_hover.scss | 61 ++ src/sass/bootstrap4/mixins/_image.scss | 36 + src/sass/bootstrap4/mixins/_list-group.scss | 24 + src/sass/bootstrap4/mixins/_lists.scss | 7 + src/sass/bootstrap4/mixins/_nav-divider.scss | 10 + src/sass/bootstrap4/mixins/_navbar-align.scss | 10 + src/sass/bootstrap4/mixins/_pagination.scss | 22 + src/sass/bootstrap4/mixins/_reset-text.scss | 17 + src/sass/bootstrap4/mixins/_resize.scss | 6 + .../bootstrap4/mixins/_screen-reader.scss | 35 + src/sass/bootstrap4/mixins/_size.scss | 6 + src/sass/bootstrap4/mixins/_table-row.scss | 30 + .../bootstrap4/mixins/_text-emphasis.scss | 14 + src/sass/bootstrap4/mixins/_text-hide.scss | 9 + .../bootstrap4/mixins/_text-truncate.scss | 8 + src/sass/bootstrap4/mixins/_transition.scss | 9 + src/sass/bootstrap4/mixins/_visibility.scss | 7 + src/sass/bootstrap4/utilities/_align.scss | 8 + .../bootstrap4/utilities/_background.scss | 19 + src/sass/bootstrap4/utilities/_borders.scss | 54 ++ src/sass/bootstrap4/utilities/_clearfix.scss | 3 + src/sass/bootstrap4/utilities/_display.scss | 56 ++ src/sass/bootstrap4/utilities/_embed.scss | 52 ++ src/sass/bootstrap4/utilities/_flex.scss | 46 + src/sass/bootstrap4/utilities/_float.scss | 9 + src/sass/bootstrap4/utilities/_position.scss | 36 + .../bootstrap4/utilities/_screenreaders.scss | 11 + src/sass/bootstrap4/utilities/_sizing.scss | 12 + src/sass/bootstrap4/utilities/_spacing.scss | 51 + src/sass/bootstrap4/utilities/_text.scss | 52 ++ .../bootstrap4/utilities/_visibility.scss | 11 + 84 files changed, 6734 insertions(+), 1 deletion(-) create mode 100755 src/sass/bootstrap4/_alert.scss create mode 100755 src/sass/bootstrap4/_badge.scss create mode 100755 src/sass/bootstrap4/_breadcrumb.scss create mode 100755 src/sass/bootstrap4/_button-group.scss create mode 100755 src/sass/bootstrap4/_buttons.scss create mode 100755 src/sass/bootstrap4/_card.scss create mode 100755 src/sass/bootstrap4/_carousel.scss create mode 100755 src/sass/bootstrap4/_close.scss create mode 100755 src/sass/bootstrap4/_code.scss create mode 100755 src/sass/bootstrap4/_custom-forms.scss create mode 100755 src/sass/bootstrap4/_dropdown.scss create mode 100755 src/sass/bootstrap4/_forms.scss create mode 100755 src/sass/bootstrap4/_functions.scss create mode 100755 src/sass/bootstrap4/_grid.scss create mode 100755 src/sass/bootstrap4/_images.scss create mode 100755 src/sass/bootstrap4/_input-group.scss create mode 100755 src/sass/bootstrap4/_jumbotron.scss create mode 100755 src/sass/bootstrap4/_list-group.scss create mode 100755 src/sass/bootstrap4/_media.scss create mode 100755 src/sass/bootstrap4/_mixins.scss create mode 100755 src/sass/bootstrap4/_modal.scss create mode 100755 src/sass/bootstrap4/_nav.scss create mode 100755 src/sass/bootstrap4/_navbar.scss create mode 100755 src/sass/bootstrap4/_pagination.scss create mode 100755 src/sass/bootstrap4/_popover.scss create mode 100755 src/sass/bootstrap4/_print.scss create mode 100755 src/sass/bootstrap4/_progress.scss create mode 100755 src/sass/bootstrap4/_reboot.scss create mode 100755 src/sass/bootstrap4/_root.scss create mode 100755 src/sass/bootstrap4/_tables.scss create mode 100755 src/sass/bootstrap4/_tooltip.scss create mode 100755 src/sass/bootstrap4/_transitions.scss create mode 100755 src/sass/bootstrap4/_type.scss create mode 100755 src/sass/bootstrap4/_utilities.scss create mode 100755 src/sass/bootstrap4/_variables.scss create mode 100755 src/sass/bootstrap4/bootstrap-grid.scss create mode 100755 src/sass/bootstrap4/bootstrap-reboot.scss create mode 100755 src/sass/bootstrap4/bootstrap.scss create mode 100755 src/sass/bootstrap4/mixins/_alert.scss create mode 100755 src/sass/bootstrap4/mixins/_background-variant.scss create mode 100755 src/sass/bootstrap4/mixins/_badge.scss create mode 100755 src/sass/bootstrap4/mixins/_border-radius.scss create mode 100755 src/sass/bootstrap4/mixins/_box-shadow.scss create mode 100755 src/sass/bootstrap4/mixins/_breakpoints.scss create mode 100755 src/sass/bootstrap4/mixins/_buttons.scss create mode 100755 src/sass/bootstrap4/mixins/_caret.scss create mode 100755 src/sass/bootstrap4/mixins/_clearfix.scss create mode 100755 src/sass/bootstrap4/mixins/_float.scss create mode 100755 src/sass/bootstrap4/mixins/_forms.scss create mode 100755 src/sass/bootstrap4/mixins/_gradients.scss create mode 100755 src/sass/bootstrap4/mixins/_grid-framework.scss create mode 100755 src/sass/bootstrap4/mixins/_grid.scss create mode 100755 src/sass/bootstrap4/mixins/_hover.scss create mode 100755 src/sass/bootstrap4/mixins/_image.scss create mode 100755 src/sass/bootstrap4/mixins/_list-group.scss create mode 100755 src/sass/bootstrap4/mixins/_lists.scss create mode 100755 src/sass/bootstrap4/mixins/_nav-divider.scss create mode 100755 src/sass/bootstrap4/mixins/_navbar-align.scss create mode 100755 src/sass/bootstrap4/mixins/_pagination.scss create mode 100755 src/sass/bootstrap4/mixins/_reset-text.scss create mode 100755 src/sass/bootstrap4/mixins/_resize.scss create mode 100755 src/sass/bootstrap4/mixins/_screen-reader.scss create mode 100755 src/sass/bootstrap4/mixins/_size.scss create mode 100755 src/sass/bootstrap4/mixins/_table-row.scss create mode 100755 src/sass/bootstrap4/mixins/_text-emphasis.scss create mode 100755 src/sass/bootstrap4/mixins/_text-hide.scss create mode 100755 src/sass/bootstrap4/mixins/_text-truncate.scss create mode 100755 src/sass/bootstrap4/mixins/_transition.scss create mode 100755 src/sass/bootstrap4/mixins/_visibility.scss create mode 100755 src/sass/bootstrap4/utilities/_align.scss create mode 100755 src/sass/bootstrap4/utilities/_background.scss create mode 100755 src/sass/bootstrap4/utilities/_borders.scss create mode 100755 src/sass/bootstrap4/utilities/_clearfix.scss create mode 100755 src/sass/bootstrap4/utilities/_display.scss create mode 100755 src/sass/bootstrap4/utilities/_embed.scss create mode 100755 src/sass/bootstrap4/utilities/_flex.scss create mode 100755 src/sass/bootstrap4/utilities/_float.scss create mode 100755 src/sass/bootstrap4/utilities/_position.scss create mode 100755 src/sass/bootstrap4/utilities/_screenreaders.scss create mode 100755 src/sass/bootstrap4/utilities/_sizing.scss create mode 100755 src/sass/bootstrap4/utilities/_spacing.scss create mode 100755 src/sass/bootstrap4/utilities/_text.scss create mode 100755 src/sass/bootstrap4/utilities/_visibility.scss diff --git a/gulpfile.js b/gulpfile.js index 68ec13b..fcac45a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -224,7 +224,7 @@ gulp.task('clean-source', function () { // Copy all needed dependency assets files from bower_component assets to themes /js, /scss and /fonts folder. Run this task after bower install or bower update ////////////////// All Bootstrap SASS Assets ///////////////////////// -gulp.task('copy-assets', ['clean-source'], function() { +gulp.task('copy-assets' function() { ////////////////// All Bootstrap 4 Assets ///////////////////////// // Copy all JS files diff --git a/src/sass/bootstrap4/_alert.scss b/src/sass/bootstrap4/_alert.scss new file mode 100755 index 0000000..c2d5c81 --- /dev/null +++ b/src/sass/bootstrap4/_alert.scss @@ -0,0 +1,51 @@ +// +// Base styles +// + +.alert { + position: relative; + padding: $alert-padding-y $alert-padding-x; + margin-bottom: $alert-margin-bottom; + border: $alert-border-width solid transparent; + @include 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, -10), theme-color-level($color, -9), theme-color-level($color, 6)); + } +} diff --git a/src/sass/bootstrap4/_badge.scss b/src/sass/bootstrap4/_badge.scss new file mode 100755 index 0000000..b87a1b0 --- /dev/null +++ b/src/sass/bootstrap4/_badge.scss @@ -0,0 +1,47 @@ +// 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; + @include 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; + @include 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); + } +} diff --git a/src/sass/bootstrap4/_breadcrumb.scss b/src/sass/bootstrap4/_breadcrumb.scss new file mode 100755 index 0000000..25b9d85 --- /dev/null +++ b/src/sass/bootstrap4/_breadcrumb.scss @@ -0,0 +1,38 @@ +.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; + @include border-radius($border-radius); +} + +.breadcrumb-item { + // The separator between breadcrumbs (by default, a forward-slash: "/") + + .breadcrumb-item::before { + display: inline-block; // Suppress underlining of the separator in modern browsers + padding-right: $breadcrumb-item-padding; + padding-left: $breadcrumb-item-padding; + color: $breadcrumb-divider-color; + content: "#{$breadcrumb-divider}"; + } + + // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built + // without `