coreui-rails 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +6 -0
  4. data/Gemfile.lock +27 -0
  5. data/LICENSE +21 -0
  6. data/README.md +40 -0
  7. data/Rakefile +2 -0
  8. data/app/assets/stylesheets/_bootstrap-variables.scss +119 -0
  9. data/app/assets/stylesheets/_coreui-variables.scss +1 -0
  10. data/app/assets/stylesheets/_custom.scss +1 -0
  11. data/app/assets/stylesheets/bootstrap/_alert.scss +51 -0
  12. data/app/assets/stylesheets/bootstrap/_badge.scss +47 -0
  13. data/app/assets/stylesheets/bootstrap/_breadcrumb.scss +38 -0
  14. data/app/assets/stylesheets/bootstrap/_button-group.scss +166 -0
  15. data/app/assets/stylesheets/bootstrap/_buttons.scss +143 -0
  16. data/app/assets/stylesheets/bootstrap/_card.scss +270 -0
  17. data/app/assets/stylesheets/bootstrap/_carousel.scss +191 -0
  18. data/app/assets/stylesheets/bootstrap/_close.scss +34 -0
  19. data/app/assets/stylesheets/bootstrap/_code.scss +56 -0
  20. data/app/assets/stylesheets/bootstrap/_custom-forms.scss +297 -0
  21. data/app/assets/stylesheets/bootstrap/_dropdown.scss +131 -0
  22. data/app/assets/stylesheets/bootstrap/_forms.scss +333 -0
  23. data/app/assets/stylesheets/bootstrap/_functions.scss +86 -0
  24. data/app/assets/stylesheets/bootstrap/_grid.scss +52 -0
  25. data/app/assets/stylesheets/bootstrap/_images.scss +42 -0
  26. data/app/assets/stylesheets/bootstrap/_input-group.scss +159 -0
  27. data/app/assets/stylesheets/bootstrap/_jumbotron.scss +16 -0
  28. data/app/assets/stylesheets/bootstrap/_list-group.scss +115 -0
  29. data/app/assets/stylesheets/bootstrap/_media.scss +8 -0
  30. data/app/assets/stylesheets/bootstrap/_mixins.scss +42 -0
  31. data/app/assets/stylesheets/bootstrap/_modal.scss +168 -0
  32. data/app/assets/stylesheets/bootstrap/_nav.scss +118 -0
  33. data/app/assets/stylesheets/bootstrap/_navbar.scss +311 -0
  34. data/app/assets/stylesheets/bootstrap/_pagination.scss +77 -0
  35. data/app/assets/stylesheets/bootstrap/_popover.scss +183 -0
  36. data/app/assets/stylesheets/bootstrap/_print.scss +124 -0
  37. data/app/assets/stylesheets/bootstrap/_progress.scss +33 -0
  38. data/app/assets/stylesheets/bootstrap/_reboot.scss +482 -0
  39. data/app/assets/stylesheets/bootstrap/_root.scss +19 -0
  40. data/app/assets/stylesheets/bootstrap/_tables.scss +180 -0
  41. data/app/assets/stylesheets/bootstrap/_tooltip.scss +115 -0
  42. data/app/assets/stylesheets/bootstrap/_transitions.scss +36 -0
  43. data/app/assets/stylesheets/bootstrap/_type.scss +125 -0
  44. data/app/assets/stylesheets/bootstrap/_utilities.scss +14 -0
  45. data/app/assets/stylesheets/bootstrap/_variables.scss +894 -0
  46. data/app/assets/stylesheets/bootstrap/bootstrap-grid.scss +32 -0
  47. data/app/assets/stylesheets/bootstrap/bootstrap-reboot.scss +12 -0
  48. data/app/assets/stylesheets/bootstrap/bootstrap.scss +42 -0
  49. data/app/assets/stylesheets/bootstrap/mixins/_alert.scss +13 -0
  50. data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +21 -0
  51. data/app/assets/stylesheets/bootstrap/mixins/_badge.scss +12 -0
  52. data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +35 -0
  53. data/app/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +5 -0
  54. data/app/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +123 -0
  55. data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +109 -0
  56. data/app/assets/stylesheets/bootstrap/mixins/_caret.scss +65 -0
  57. data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +7 -0
  58. data/app/assets/stylesheets/bootstrap/mixins/_float.scss +11 -0
  59. data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +137 -0
  60. data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +45 -0
  61. data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +67 -0
  62. data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +52 -0
  63. data/app/assets/stylesheets/bootstrap/mixins/_hover.scss +39 -0
  64. data/app/assets/stylesheets/bootstrap/mixins/_image.scss +36 -0
  65. data/app/assets/stylesheets/bootstrap/mixins/_list-group.scss +21 -0
  66. data/app/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
  67. data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  68. data/app/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +10 -0
  69. data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +22 -0
  70. data/app/assets/stylesheets/bootstrap/mixins/_reset-text.scss +17 -0
  71. data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  72. data/app/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +35 -0
  73. data/app/assets/stylesheets/bootstrap/mixins/_size.scss +6 -0
  74. data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +30 -0
  75. data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +14 -0
  76. data/app/assets/stylesheets/bootstrap/mixins/_text-hide.scss +9 -0
  77. data/app/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +8 -0
  78. data/app/assets/stylesheets/bootstrap/mixins/_transition.scss +9 -0
  79. data/app/assets/stylesheets/bootstrap/mixins/_visibility.scss +7 -0
  80. data/app/assets/stylesheets/bootstrap/utilities/_align.scss +8 -0
  81. data/app/assets/stylesheets/bootstrap/utilities/_background.scss +19 -0
  82. data/app/assets/stylesheets/bootstrap/utilities/_borders.scss +59 -0
  83. data/app/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
  84. data/app/assets/stylesheets/bootstrap/utilities/_display.scss +38 -0
  85. data/app/assets/stylesheets/bootstrap/utilities/_embed.scss +52 -0
  86. data/app/assets/stylesheets/bootstrap/utilities/_flex.scss +46 -0
  87. data/app/assets/stylesheets/bootstrap/utilities/_float.scss +9 -0
  88. data/app/assets/stylesheets/bootstrap/utilities/_position.scss +36 -0
  89. data/app/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
  90. data/app/assets/stylesheets/bootstrap/utilities/_sizing.scss +12 -0
  91. data/app/assets/stylesheets/bootstrap/utilities/_spacing.scss +51 -0
  92. data/app/assets/stylesheets/bootstrap/utilities/_text.scss +52 -0
  93. data/app/assets/stylesheets/bootstrap/utilities/_visibility.scss +11 -0
  94. data/app/assets/stylesheets/coreui-free.scss +18 -0
  95. data/app/assets/stylesheets/coreui/_animate.scss +27 -0
  96. data/app/assets/stylesheets/coreui/_aside.scss +64 -0
  97. data/app/assets/stylesheets/coreui/_avatars.scss +51 -0
  98. data/app/assets/stylesheets/coreui/_badge.scss +3 -0
  99. data/app/assets/stylesheets/coreui/_brand-card.scss +51 -0
  100. data/app/assets/stylesheets/coreui/_brands-buttons.scss +47 -0
  101. data/app/assets/stylesheets/coreui/_breadcrumb-menu.scss +36 -0
  102. data/app/assets/stylesheets/coreui/_breadcrumb.scss +4 -0
  103. data/app/assets/stylesheets/coreui/_buttons.scss +18 -0
  104. data/app/assets/stylesheets/coreui/_callout.scss +55 -0
  105. data/app/assets/stylesheets/coreui/_card.scss +107 -0
  106. data/app/assets/stylesheets/coreui/_charts.scss +7 -0
  107. data/app/assets/stylesheets/coreui/_deprecated.scss +175 -0
  108. data/app/assets/stylesheets/coreui/_dropdown-menu-right.scss +8 -0
  109. data/app/assets/stylesheets/coreui/_dropdown.scss +69 -0
  110. data/app/assets/stylesheets/coreui/_footer.scss +9 -0
  111. data/app/assets/stylesheets/coreui/_grid.scss +15 -0
  112. data/app/assets/stylesheets/coreui/_input-group.scss +6 -0
  113. data/app/assets/stylesheets/coreui/_layout.scss +399 -0
  114. data/app/assets/stylesheets/coreui/_loading.scss +128 -0
  115. data/app/assets/stylesheets/coreui/_mixins.scss +116 -0
  116. data/app/assets/stylesheets/coreui/_modal.scss +13 -0
  117. data/app/assets/stylesheets/coreui/_nav.scss +35 -0
  118. data/app/assets/stylesheets/coreui/_navbar.scss +135 -0
  119. data/app/assets/stylesheets/coreui/_others.scss +4 -0
  120. data/app/assets/stylesheets/coreui/_progress-group.scss +40 -0
  121. data/app/assets/stylesheets/coreui/_progress.scss +15 -0
  122. data/app/assets/stylesheets/coreui/_rtl.scss +281 -0
  123. data/app/assets/stylesheets/coreui/_sidebar.scss +454 -0
  124. data/app/assets/stylesheets/coreui/_switches.scss +301 -0
  125. data/app/assets/stylesheets/coreui/_tables.scss +20 -0
  126. data/app/assets/stylesheets/coreui/_temp.scss +39 -0
  127. data/app/assets/stylesheets/coreui/_utilities.scss +4 -0
  128. data/app/assets/stylesheets/coreui/_variables.scss +243 -0
  129. data/app/assets/stylesheets/coreui/_widgets.scss +79 -0
  130. data/app/assets/stylesheets/coreui/coreui.scss +47 -0
  131. data/app/assets/stylesheets/coreui/utilities/_background.scss +20 -0
  132. data/app/assets/stylesheets/coreui/utilities/_borders.scss +18 -0
  133. data/app/assets/stylesheets/coreui/utilities/_display.scss +18 -0
  134. data/app/assets/stylesheets/coreui/utilities/_typography.scss +46 -0
  135. data/coreui-rails.gemspec +19 -0
  136. data/lib/coreui_rails.rb +4 -0
  137. data/lib/coreui_rails/version.rb +3 -0
  138. metadata +195 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 369a1cde5c529e10ad0b0953db239ec0180a060b3efce0f0459ca99a8a93c7fc
4
+ data.tar.gz: 18e306342268273beae7b7848d4973db48338a8064953c0abba81747b91684ed
5
+ SHA512:
6
+ metadata.gz: d58e4cb9789633c165a3f5ec1d04cfeae458c952925adce171d9f446ab663d0a26629cb379067f7266c71e2f5bb8e6bf401e80b83454574ee2ae5f93e5012d97
7
+ data.tar.gz: 74b16d1b0196d5b11f5c5dbe97abe5da95a36ec85a242f789f6735bb8bfd3dd48b15c3c971de71f59e0e327447013f6a9b0a2c3edf7b38196b94d32b5ce6cd8b
@@ -0,0 +1,2 @@
1
+ *.gem
2
+ /.bundle/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in foo-rails.gemspec
6
+ gemspec
@@ -0,0 +1,27 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ coreui-rails (0.2.4)
5
+ sass (~> 3.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ffi (1.9.18)
11
+ rb-fsevent (0.10.2)
12
+ rb-inotify (0.9.10)
13
+ ffi (>= 0.5.0, < 2)
14
+ sass (3.5.5)
15
+ sass-listen (~> 4.0.0)
16
+ sass-listen (4.0.0)
17
+ rb-fsevent (~> 0.9, >= 0.9.4)
18
+ rb-inotify (~> 0.9, >= 0.9.7)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ coreui-rails!
25
+
26
+ BUNDLED WITH
27
+ 1.16.1
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Chris Born
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,40 @@
1
+ # CoreUI::Rails
2
+
3
+ A is a simple gem to get for adding the [CoreUI-Free](http://coreui.io/index.html) admin template by [Łukasz Holeczek's](https://github.com/mrholek) to a Rails project's asset pipeline.
4
+
5
+ As of 1.0.0 this only includes the SCSS source of CoreUI-Free from this [repo](https://github.com/mrholek/CoreUI-SCSS).
6
+
7
+ This is currently being used in a admin *engine* as part of a larger modular **Rails** application.
8
+
9
+ Currently [Bootstrap 4.0.0](https://getbootstrap.com) is bundled in this release since Rails Webpack does not yet support Engines.
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'coreui-rails'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle install
22
+
23
+ ## Usage
24
+
25
+ To import all assets into your Rails project, add the following line to your application.scss:
26
+
27
+ ```scss
28
+ @import "coreui-free";
29
+ ```
30
+
31
+ ## Includes
32
+
33
+ | Include | Version |
34
+ | ----------- | ------------- |
35
+ | Bootstrap | 4.0.0 |
36
+ | CoreUI-SCSS | 1.0.0-alpha.6 |
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,119 @@
1
+ // stylelint-disable
2
+ // Bootstrap overrides
3
+
4
+ //
5
+ // Color system
6
+ //
7
+
8
+ $white: #fff;
9
+ $gray-100: #f0f3f5;
10
+ $gray-200: #c2cfd6;
11
+ $gray-300: #a4b7c1;
12
+ $gray-400: #869fac;
13
+ $gray-500: #678898;
14
+ $gray-600: #536c79;
15
+ $gray-700: #3e515b;
16
+ $gray-800: #29363d;
17
+ $gray-900: #151b1e;
18
+ $black: #000 !default;
19
+
20
+ $blue: #20a8d8;
21
+ $indigo: #6610f2 !default;
22
+ $purple: #6f42c1 !default;
23
+ $pink: #e83e8c !default;
24
+ $red: #f86c6b;
25
+ $orange: #f8cb00;
26
+ $yellow: #ffc107 !default;
27
+ $green: #4dbd74;
28
+ $teal: #20c997 !default;
29
+ $light-blue: #63c2de;
30
+ $cyan: #17a2b8 !default;
31
+
32
+ $colors: (
33
+ blue: $blue,
34
+ indigo: $indigo,
35
+ purple: $purple,
36
+ pink: $pink,
37
+ red: $red,
38
+ orange: $orange,
39
+ yellow: $yellow,
40
+ green: $green,
41
+ teal: $teal,
42
+ cyan: $cyan,
43
+ light-blue: $light-blue,
44
+ white: $white,
45
+ gray: $gray-600,
46
+ gray-dark: $gray-800
47
+ );
48
+
49
+ $theme-colors: (
50
+ primary: $blue,
51
+ secondary: $gray-300,
52
+ success: $green,
53
+ info: $light-blue,
54
+ warning: $yellow,
55
+ danger: $red,
56
+ light: $gray-100,
57
+ dark: $gray-800
58
+ );
59
+
60
+ // Options
61
+ //
62
+ // Quickly modify global styling by enabling or disabling optional features.
63
+
64
+ $enable-transitions: true;
65
+ $enable-rounded: false;
66
+
67
+ // Body
68
+ //
69
+ // Settings for the `<body>` element.
70
+
71
+ $body-bg: #e4e5e6;
72
+
73
+ // Components
74
+ //
75
+ // Define common padding and border radius sizes and more.
76
+
77
+ $border-color: $gray-200;
78
+
79
+
80
+ // Typography
81
+ //
82
+ // Font, line-height, and color for body text, headings, and more.
83
+
84
+ $font-size-base: 0.875rem;
85
+
86
+ // Breadcrumbs
87
+
88
+ $breadcrumb-bg: #fff;
89
+ $breadcrumb-margin-bottom: 1.5rem;
90
+
91
+ // Cards
92
+
93
+ $card-border-color: $gray-200;
94
+ $card-cap-bg: $gray-100;
95
+
96
+ // Dropdowns
97
+
98
+ $dropdown-padding-y: 0;
99
+ $dropdown-border-color: $gray-200;
100
+ $dropdown-divider-bg: $gray-100;
101
+
102
+ // Buttons
103
+
104
+ $btn-secondary-border: $gray-300;
105
+
106
+ // Progress bars
107
+
108
+ $progress-bg: $gray-100;
109
+
110
+ // Tables
111
+
112
+ $table-bg-accent: $gray-100;
113
+ $table-bg-hover: $gray-100;
114
+
115
+ // Forms
116
+
117
+ $input-group-addon-bg: $gray-100;
118
+ $input-border-color: $gray-200;
119
+ $input-group-addon-border-color: $gray-200;
@@ -0,0 +1 @@
1
+ // core overrides
@@ -0,0 +1 @@
1
+ // Here you can add other styles
@@ -0,0 +1,51 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .alert {
6
+ position: relative;
7
+ padding: $alert-padding-y $alert-padding-x;
8
+ margin-bottom: $alert-margin-bottom;
9
+ border: $alert-border-width solid transparent;
10
+ @include border-radius($alert-border-radius);
11
+ }
12
+
13
+ // Headings for larger alerts
14
+ .alert-heading {
15
+ // Specified to prevent conflicts of changing $headings-color
16
+ color: inherit;
17
+ }
18
+
19
+ // Provide class for links that match alerts
20
+ .alert-link {
21
+ font-weight: $alert-link-font-weight;
22
+ }
23
+
24
+
25
+ // Dismissible alerts
26
+ //
27
+ // Expand the right padding and account for the close button's positioning.
28
+
29
+ .alert-dismissible {
30
+ padding-right: ($close-font-size + $alert-padding-x * 2);
31
+
32
+ // Adjust close link position
33
+ .close {
34
+ position: absolute;
35
+ top: 0;
36
+ right: 0;
37
+ padding: $alert-padding-y $alert-padding-x;
38
+ color: inherit;
39
+ }
40
+ }
41
+
42
+
43
+ // Alternate styles
44
+ //
45
+ // Generate contextual modifier classes for colorizing the alert.
46
+
47
+ @each $color, $value in $theme-colors {
48
+ .alert-#{$color} {
49
+ @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level));
50
+ }
51
+ }
@@ -0,0 +1,47 @@
1
+ // Base class
2
+ //
3
+ // Requires one of the contextual, color modifier classes for `color` and
4
+ // `background-color`.
5
+
6
+ .badge {
7
+ display: inline-block;
8
+ padding: $badge-padding-y $badge-padding-x;
9
+ font-size: $badge-font-size;
10
+ font-weight: $badge-font-weight;
11
+ line-height: 1;
12
+ text-align: center;
13
+ white-space: nowrap;
14
+ vertical-align: baseline;
15
+ @include border-radius($badge-border-radius);
16
+
17
+ // Empty badges collapse automatically
18
+ &:empty {
19
+ display: none;
20
+ }
21
+ }
22
+
23
+ // Quick fix for badges in buttons
24
+ .btn .badge {
25
+ position: relative;
26
+ top: -1px;
27
+ }
28
+
29
+ // Pill badges
30
+ //
31
+ // Make them extra rounded with a modifier to replace v3's badges.
32
+
33
+ .badge-pill {
34
+ padding-right: $badge-pill-padding-x;
35
+ padding-left: $badge-pill-padding-x;
36
+ @include border-radius($badge-pill-border-radius);
37
+ }
38
+
39
+ // Colors
40
+ //
41
+ // Contextual variations (linked badges get darker on :hover).
42
+
43
+ @each $color, $value in $theme-colors {
44
+ .badge-#{$color} {
45
+ @include badge-variant($value);
46
+ }
47
+ }
@@ -0,0 +1,38 @@
1
+ .breadcrumb {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ padding: $breadcrumb-padding-y $breadcrumb-padding-x;
5
+ margin-bottom: $breadcrumb-margin-bottom;
6
+ list-style: none;
7
+ background-color: $breadcrumb-bg;
8
+ @include border-radius($border-radius);
9
+ }
10
+
11
+ .breadcrumb-item {
12
+ // The separator between breadcrumbs (by default, a forward-slash: "/")
13
+ + .breadcrumb-item::before {
14
+ display: inline-block; // Suppress underlining of the separator in modern browsers
15
+ padding-right: $breadcrumb-item-padding;
16
+ padding-left: $breadcrumb-item-padding;
17
+ color: $breadcrumb-divider-color;
18
+ content: "#{$breadcrumb-divider}";
19
+ }
20
+
21
+ // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
22
+ // without `<ul>`s. The `::before` pseudo-element generates an element
23
+ // *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
24
+ //
25
+ // To trick IE into suppressing the underline, we give the pseudo-element an
26
+ // underline and then immediately remove it.
27
+ + .breadcrumb-item:hover::before {
28
+ text-decoration: underline;
29
+ }
30
+ // stylelint-disable-next-line no-duplicate-selectors
31
+ + .breadcrumb-item:hover::before {
32
+ text-decoration: none;
33
+ }
34
+
35
+ &.active {
36
+ color: $breadcrumb-active-color;
37
+ }
38
+ }
@@ -0,0 +1,166 @@
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ // Make the div behave like a button
4
+ .btn-group,
5
+ .btn-group-vertical {
6
+ position: relative;
7
+ display: inline-flex;
8
+ vertical-align: middle; // match .btn alignment given font-size hack above
9
+
10
+ > .btn {
11
+ position: relative;
12
+ flex: 0 1 auto;
13
+
14
+ // Bring the hover, focused, and "active" buttons to the front to overlay
15
+ // the borders properly
16
+ @include hover {
17
+ z-index: 1;
18
+ }
19
+ &:focus,
20
+ &:active,
21
+ &.active {
22
+ z-index: 1;
23
+ }
24
+ }
25
+
26
+ // Prevent double borders when buttons are next to each other
27
+ .btn + .btn,
28
+ .btn + .btn-group,
29
+ .btn-group + .btn,
30
+ .btn-group + .btn-group {
31
+ margin-left: -$btn-border-width;
32
+ }
33
+ }
34
+
35
+ // Optional: Group multiple button groups together for a toolbar
36
+ .btn-toolbar {
37
+ display: flex;
38
+ flex-wrap: wrap;
39
+ justify-content: flex-start;
40
+
41
+ .input-group {
42
+ width: auto;
43
+ }
44
+ }
45
+
46
+ .btn-group {
47
+ > .btn:first-child {
48
+ margin-left: 0;
49
+ }
50
+
51
+ // Reset rounded corners
52
+ > .btn:not(:last-child):not(.dropdown-toggle),
53
+ > .btn-group:not(:last-child) > .btn {
54
+ @include border-right-radius(0);
55
+ }
56
+
57
+ > .btn:not(:first-child),
58
+ > .btn-group:not(:first-child) > .btn {
59
+ @include border-left-radius(0);
60
+ }
61
+ }
62
+
63
+ // Sizing
64
+ //
65
+ // Remix the default button sizing classes into new ones for easier manipulation.
66
+
67
+ .btn-group-sm > .btn { @extend .btn-sm; }
68
+ .btn-group-lg > .btn { @extend .btn-lg; }
69
+
70
+
71
+ //
72
+ // Split button dropdowns
73
+ //
74
+
75
+ .dropdown-toggle-split {
76
+ padding-right: $btn-padding-x * .75;
77
+ padding-left: $btn-padding-x * .75;
78
+
79
+ &::after {
80
+ margin-left: 0;
81
+ }
82
+ }
83
+
84
+ .btn-sm + .dropdown-toggle-split {
85
+ padding-right: $btn-padding-x-sm * .75;
86
+ padding-left: $btn-padding-x-sm * .75;
87
+ }
88
+
89
+ .btn-lg + .dropdown-toggle-split {
90
+ padding-right: $btn-padding-x-lg * .75;
91
+ padding-left: $btn-padding-x-lg * .75;
92
+ }
93
+
94
+
95
+ // The clickable button for toggling the menu
96
+ // Set the same inset shadow as the :active state
97
+ .btn-group.show .dropdown-toggle {
98
+ @include box-shadow($btn-active-box-shadow);
99
+
100
+ // Show no shadow for `.btn-link` since it has no other button styles.
101
+ &.btn-link {
102
+ @include box-shadow(none);
103
+ }
104
+ }
105
+
106
+
107
+ //
108
+ // Vertical button groups
109
+ //
110
+
111
+ .btn-group-vertical {
112
+ flex-direction: column;
113
+ align-items: flex-start;
114
+ justify-content: center;
115
+
116
+ .btn,
117
+ .btn-group {
118
+ width: 100%;
119
+ }
120
+
121
+ > .btn + .btn,
122
+ > .btn + .btn-group,
123
+ > .btn-group + .btn,
124
+ > .btn-group + .btn-group {
125
+ margin-top: -$btn-border-width;
126
+ margin-left: 0;
127
+ }
128
+
129
+ // Reset rounded corners
130
+ > .btn:not(:last-child):not(.dropdown-toggle),
131
+ > .btn-group:not(:last-child) > .btn {
132
+ @include border-bottom-radius(0);
133
+ }
134
+
135
+ > .btn:not(:first-child),
136
+ > .btn-group:not(:first-child) > .btn {
137
+ @include border-top-radius(0);
138
+ }
139
+ }
140
+
141
+
142
+ // Checkbox and radio options
143
+ //
144
+ // In order to support the browser's form validation feedback, powered by the
145
+ // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
146
+ // `display: none;` or `visibility: hidden;` as that also hides the popover.
147
+ // Simply visually hiding the inputs via `opacity` would leave them clickable in
148
+ // certain cases which is prevented by using `clip` and `pointer-events`.
149
+ // This way, we ensure a DOM element is visible to position the popover from.
150
+ //
151
+ // See https://github.com/twbs/bootstrap/pull/12794 and
152
+ // https://github.com/twbs/bootstrap/pull/14559 for more information.
153
+
154
+ .btn-group-toggle {
155
+ > .btn,
156
+ > .btn-group > .btn {
157
+ margin-bottom: 0; // Override default `<label>` value
158
+
159
+ input[type="radio"],
160
+ input[type="checkbox"] {
161
+ position: absolute;
162
+ clip: rect(0, 0, 0, 0);
163
+ pointer-events: none;
164
+ }
165
+ }
166
+ }