tabler_ui_rails 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -3
  3. data/assets/javascripts/tabler_ui.js +0 -1
  4. data/assets/javascripts/vendors/bootstrap.bundle.min.js +7 -0
  5. data/assets/javascripts/vendors/chart.bundle.min.js +10 -0
  6. data/assets/javascripts/vendors/circle-progress.min.js +10 -0
  7. data/assets/javascripts/vendors/jquery-3.2.1.min.js +4 -0
  8. data/assets/javascripts/vendors/jquery-3.2.1.slim.min.js +4 -0
  9. data/assets/javascripts/vendors/jquery-jvectormap-2.0.3.min.js +2 -0
  10. data/assets/javascripts/vendors/jquery-jvectormap-de-merc.js +1 -0
  11. data/assets/javascripts/vendors/jquery-jvectormap-world-mill.js +1 -0
  12. data/assets/javascripts/vendors/jquery.sparkline.min.js +2 -0
  13. data/assets/javascripts/vendors/jquery.tablesorter.min.js +4 -0
  14. data/assets/javascripts/vendors/selectize.min.js +3829 -0
  15. data/assets/plugins/charts-c3/js/c3.min.js +1 -0
  16. data/assets/plugins/charts-c3/js/d3.v3.min.js +5 -0
  17. data/assets/plugins/charts-c3/plugin.js +10 -0
  18. data/assets/plugins/charts-c3/plugin.scss +2 -0
  19. data/assets/plugins/charts-c3/scss/_c3.scss +244 -0
  20. data/assets/plugins/fullcalendar/js/fullcalendar.min.js +7 -0
  21. data/assets/plugins/fullcalendar/js/moment.min.js +1 -0
  22. data/assets/plugins/fullcalendar/plugin.js +9 -0
  23. data/assets/plugins/fullcalendar/plugin.scss +2 -0
  24. data/assets/plugins/fullcalendar/scss/_fullcalendar.scss +1118 -0
  25. data/assets/plugins/iconfonts/fonts/materialdesignicons/materialdesignicons-webfont.eot +0 -0
  26. data/assets/plugins/iconfonts/fonts/materialdesignicons/materialdesignicons-webfont.svg +6150 -0
  27. data/assets/plugins/iconfonts/fonts/materialdesignicons/materialdesignicons-webfont.ttf +0 -0
  28. data/assets/plugins/iconfonts/fonts/materialdesignicons/materialdesignicons-webfont.woff +0 -0
  29. data/assets/plugins/iconfonts/fonts/materialdesignicons/materialdesignicons-webfont.woff2 +0 -0
  30. data/assets/plugins/iconfonts/fonts/simple-line-icons/Simple-Line-Icons.eot +0 -0
  31. data/assets/plugins/iconfonts/fonts/simple-line-icons/Simple-Line-Icons.svg +1 -0
  32. data/assets/plugins/iconfonts/fonts/simple-line-icons/Simple-Line-Icons.ttf +0 -0
  33. data/assets/plugins/iconfonts/fonts/simple-line-icons/Simple-Line-Icons.woff +0 -0
  34. data/assets/plugins/iconfonts/fonts/simple-line-icons/Simple-Line-Icons.woff2 +0 -0
  35. data/assets/plugins/iconfonts/fonts/themify/themify.eot +0 -0
  36. data/assets/plugins/iconfonts/fonts/themify/themify.svg +362 -0
  37. data/assets/plugins/iconfonts/fonts/themify/themify.ttf +0 -0
  38. data/assets/plugins/iconfonts/fonts/themify/themify.woff +0 -0
  39. data/assets/plugins/iconfonts/fonts/weathericons/weathericons-regular-webfont.eot +0 -0
  40. data/assets/plugins/iconfonts/fonts/weathericons/weathericons-regular-webfont.svg +1 -0
  41. data/assets/plugins/iconfonts/fonts/weathericons/weathericons-regular-webfont.ttf +0 -0
  42. data/assets/plugins/iconfonts/fonts/weathericons/weathericons-regular-webfont.woff +0 -0
  43. data/assets/plugins/iconfonts/fonts/weathericons/weathericons-regular-webfont.woff2 +0 -0
  44. data/assets/plugins/iconfonts/plugin.scss +4 -0
  45. data/assets/plugins/iconfonts/scss/_materialdesignicons.scss +8445 -0
  46. data/assets/plugins/iconfonts/scss/_simple-line-icons.scss +779 -0
  47. data/assets/plugins/iconfonts/scss/_themify.scss +1081 -0
  48. data/assets/plugins/iconfonts/scss/_weathericons.scss +1823 -0
  49. data/assets/plugins/input-mask/js/jquery.mask.min.js +19 -0
  50. data/assets/plugins/input-mask/plugin.js +8 -0
  51. data/assets/plugins/maps-google/plugin.js +0 -0
  52. data/assets/plugins/maps-google/plugin.scss +0 -0
  53. data/assets/plugins/prismjs/js/prism.pack.js +30 -0
  54. data/assets/plugins/prismjs/plugin.js +18 -0
  55. data/assets/plugins/prismjs/plugin.scss +227 -0
  56. data/assets/stylesheets/dashboard/_progress.scss +2 -2
  57. data/assets/stylesheets/dashboard/forms/_custom-selectgroup.scss +2 -3
  58. data/lib/tabler_ui_rails/engine.rb +1 -1
  59. data/lib/tabler_ui_rails/version.rb +2 -2
  60. metadata +72 -89
  61. data/assets/stylesheets/dashboard/bootstrap/_alert.scss +0 -51
  62. data/assets/stylesheets/dashboard/bootstrap/_badge.scss +0 -47
  63. data/assets/stylesheets/dashboard/bootstrap/_breadcrumb.scss +0 -38
  64. data/assets/stylesheets/dashboard/bootstrap/_button-group.scss +0 -166
  65. data/assets/stylesheets/dashboard/bootstrap/_buttons.scss +0 -143
  66. data/assets/stylesheets/dashboard/bootstrap/_card.scss +0 -299
  67. data/assets/stylesheets/dashboard/bootstrap/_carousel.scss +0 -235
  68. data/assets/stylesheets/dashboard/bootstrap/_close.scss +0 -34
  69. data/assets/stylesheets/dashboard/bootstrap/_code.scss +0 -56
  70. data/assets/stylesheets/dashboard/bootstrap/_custom-forms.scss +0 -420
  71. data/assets/stylesheets/dashboard/bootstrap/_dropdown.scss +0 -138
  72. data/assets/stylesheets/dashboard/bootstrap/_forms.scss +0 -335
  73. data/assets/stylesheets/dashboard/bootstrap/_functions.scss +0 -86
  74. data/assets/stylesheets/dashboard/bootstrap/_grid.scss +0 -52
  75. data/assets/stylesheets/dashboard/bootstrap/_images.scss +0 -42
  76. data/assets/stylesheets/dashboard/bootstrap/_input-group.scss +0 -159
  77. data/assets/stylesheets/dashboard/bootstrap/_jumbotron.scss +0 -16
  78. data/assets/stylesheets/dashboard/bootstrap/_list-group.scss +0 -115
  79. data/assets/stylesheets/dashboard/bootstrap/_media.scss +0 -8
  80. data/assets/stylesheets/dashboard/bootstrap/_mixins.scss +0 -42
  81. data/assets/stylesheets/dashboard/bootstrap/_modal.scss +0 -168
  82. data/assets/stylesheets/dashboard/bootstrap/_nav.scss +0 -118
  83. data/assets/stylesheets/dashboard/bootstrap/_navbar.scss +0 -311
  84. data/assets/stylesheets/dashboard/bootstrap/_pagination.scss +0 -78
  85. data/assets/stylesheets/dashboard/bootstrap/_popover.scss +0 -183
  86. data/assets/stylesheets/dashboard/bootstrap/_print.scss +0 -124
  87. data/assets/stylesheets/dashboard/bootstrap/_progress.scss +0 -34
  88. data/assets/stylesheets/dashboard/bootstrap/_reboot.scss +0 -482
  89. data/assets/stylesheets/dashboard/bootstrap/_root.scss +0 -19
  90. data/assets/stylesheets/dashboard/bootstrap/_tables.scss +0 -188
  91. data/assets/stylesheets/dashboard/bootstrap/_tooltip.scss +0 -115
  92. data/assets/stylesheets/dashboard/bootstrap/_transitions.scss +0 -36
  93. data/assets/stylesheets/dashboard/bootstrap/_type.scss +0 -125
  94. data/assets/stylesheets/dashboard/bootstrap/_utilities.scss +0 -14
  95. data/assets/stylesheets/dashboard/bootstrap/_variables.scss +0 -919
  96. data/assets/stylesheets/dashboard/bootstrap/bootstrap-grid.scss +0 -32
  97. data/assets/stylesheets/dashboard/bootstrap/bootstrap-reboot.scss +0 -12
  98. data/assets/stylesheets/dashboard/bootstrap/bootstrap.scss +0 -42
  99. data/assets/stylesheets/dashboard/bootstrap/mixins/_alert.scss +0 -13
  100. data/assets/stylesheets/dashboard/bootstrap/mixins/_background-variant.scss +0 -21
  101. data/assets/stylesheets/dashboard/bootstrap/mixins/_badge.scss +0 -12
  102. data/assets/stylesheets/dashboard/bootstrap/mixins/_border-radius.scss +0 -35
  103. data/assets/stylesheets/dashboard/bootstrap/mixins/_box-shadow.scss +0 -5
  104. data/assets/stylesheets/dashboard/bootstrap/mixins/_breakpoints.scss +0 -123
  105. data/assets/stylesheets/dashboard/bootstrap/mixins/_buttons.scss +0 -109
  106. data/assets/stylesheets/dashboard/bootstrap/mixins/_caret.scss +0 -65
  107. data/assets/stylesheets/dashboard/bootstrap/mixins/_clearfix.scss +0 -7
  108. data/assets/stylesheets/dashboard/bootstrap/mixins/_float.scss +0 -11
  109. data/assets/stylesheets/dashboard/bootstrap/mixins/_forms.scss +0 -137
  110. data/assets/stylesheets/dashboard/bootstrap/mixins/_gradients.scss +0 -45
  111. data/assets/stylesheets/dashboard/bootstrap/mixins/_grid-framework.scss +0 -67
  112. data/assets/stylesheets/dashboard/bootstrap/mixins/_grid.scss +0 -52
  113. data/assets/stylesheets/dashboard/bootstrap/mixins/_hover.scss +0 -37
  114. data/assets/stylesheets/dashboard/bootstrap/mixins/_image.scss +0 -36
  115. data/assets/stylesheets/dashboard/bootstrap/mixins/_list-group.scss +0 -21
  116. data/assets/stylesheets/dashboard/bootstrap/mixins/_lists.scss +0 -7
  117. data/assets/stylesheets/dashboard/bootstrap/mixins/_nav-divider.scss +0 -10
  118. data/assets/stylesheets/dashboard/bootstrap/mixins/_navbar-align.scss +0 -10
  119. data/assets/stylesheets/dashboard/bootstrap/mixins/_pagination.scss +0 -22
  120. data/assets/stylesheets/dashboard/bootstrap/mixins/_reset-text.scss +0 -17
  121. data/assets/stylesheets/dashboard/bootstrap/mixins/_resize.scss +0 -6
  122. data/assets/stylesheets/dashboard/bootstrap/mixins/_screen-reader.scss +0 -33
  123. data/assets/stylesheets/dashboard/bootstrap/mixins/_size.scss +0 -6
  124. data/assets/stylesheets/dashboard/bootstrap/mixins/_table-row.scss +0 -30
  125. data/assets/stylesheets/dashboard/bootstrap/mixins/_text-emphasis.scss +0 -14
  126. data/assets/stylesheets/dashboard/bootstrap/mixins/_text-hide.scss +0 -9
  127. data/assets/stylesheets/dashboard/bootstrap/mixins/_text-truncate.scss +0 -8
  128. data/assets/stylesheets/dashboard/bootstrap/mixins/_transition.scss +0 -9
  129. data/assets/stylesheets/dashboard/bootstrap/mixins/_visibility.scss +0 -7
  130. data/assets/stylesheets/dashboard/bootstrap/utilities/_align.scss +0 -8
  131. data/assets/stylesheets/dashboard/bootstrap/utilities/_background.scss +0 -19
  132. data/assets/stylesheets/dashboard/bootstrap/utilities/_borders.scss +0 -59
  133. data/assets/stylesheets/dashboard/bootstrap/utilities/_clearfix.scss +0 -3
  134. data/assets/stylesheets/dashboard/bootstrap/utilities/_display.scss +0 -38
  135. data/assets/stylesheets/dashboard/bootstrap/utilities/_embed.scss +0 -52
  136. data/assets/stylesheets/dashboard/bootstrap/utilities/_flex.scss +0 -47
  137. data/assets/stylesheets/dashboard/bootstrap/utilities/_float.scss +0 -9
  138. data/assets/stylesheets/dashboard/bootstrap/utilities/_position.scss +0 -37
  139. data/assets/stylesheets/dashboard/bootstrap/utilities/_screenreaders.scss +0 -11
  140. data/assets/stylesheets/dashboard/bootstrap/utilities/_sizing.scss +0 -12
  141. data/assets/stylesheets/dashboard/bootstrap/utilities/_spacing.scss +0 -51
  142. data/assets/stylesheets/dashboard/bootstrap/utilities/_text.scss +0 -52
  143. data/assets/stylesheets/dashboard/bootstrap/utilities/_visibility.scss +0 -11
@@ -1,51 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,38 +0,0 @@
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
- }
@@ -1,166 +0,0 @@
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
- }
@@ -1,143 +0,0 @@
1
- // stylelint-disable selector-no-qualifying-type
2
-
3
- //
4
- // Base styles
5
- //
6
-
7
- .btn {
8
- display: inline-block;
9
- font-weight: $btn-font-weight;
10
- text-align: center;
11
- white-space: nowrap;
12
- vertical-align: middle;
13
- user-select: none;
14
- border: $btn-border-width solid transparent;
15
- @include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $btn-line-height, $btn-border-radius);
16
- @include transition($btn-transition);
17
-
18
- // Share hover and focus styles
19
- @include hover-focus {
20
- text-decoration: none;
21
- }
22
-
23
- &:focus,
24
- &.focus {
25
- outline: 0;
26
- box-shadow: $btn-focus-box-shadow;
27
- }
28
-
29
- // Disabled comes first so active can properly restyle
30
- &.disabled,
31
- &:disabled {
32
- opacity: $btn-disabled-opacity;
33
- @include box-shadow(none);
34
- }
35
-
36
- // Opinionated: add "hand" cursor to non-disabled .btn elements
37
- &:not(:disabled):not(.disabled) {
38
- cursor: pointer;
39
- }
40
-
41
- &:not(:disabled):not(.disabled):active,
42
- &:not(:disabled):not(.disabled).active {
43
- background-image: none;
44
- @include box-shadow($btn-active-box-shadow);
45
-
46
- &:focus {
47
- @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
48
- }
49
- }
50
- }
51
-
52
- // Future-proof disabling of clicks on `<a>` elements
53
- a.btn.disabled,
54
- fieldset:disabled a.btn {
55
- pointer-events: none;
56
- }
57
-
58
-
59
- //
60
- // Alternate buttons
61
- //
62
-
63
- @each $color, $value in $theme-colors {
64
- .btn-#{$color} {
65
- @include button-variant($value, $value);
66
- }
67
- }
68
-
69
- @each $color, $value in $theme-colors {
70
- .btn-outline-#{$color} {
71
- @include button-outline-variant($value);
72
- }
73
- }
74
-
75
-
76
- //
77
- // Link buttons
78
- //
79
-
80
- // Make a button look and behave like a link
81
- .btn-link {
82
- font-weight: $font-weight-normal;
83
- color: $link-color;
84
- background-color: transparent;
85
-
86
- @include hover {
87
- color: $link-hover-color;
88
- text-decoration: $link-hover-decoration;
89
- background-color: transparent;
90
- border-color: transparent;
91
- }
92
-
93
- &:focus,
94
- &.focus {
95
- text-decoration: $link-hover-decoration;
96
- border-color: transparent;
97
- box-shadow: none;
98
- }
99
-
100
- &:disabled,
101
- &.disabled {
102
- color: $btn-link-disabled-color;
103
- }
104
-
105
- // No need for an active state here
106
- }
107
-
108
-
109
- //
110
- // Button Sizes
111
- //
112
-
113
- .btn-lg {
114
- @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
115
- }
116
-
117
- .btn-sm {
118
- @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
119
- }
120
-
121
-
122
- //
123
- // Block button
124
- //
125
-
126
- .btn-block {
127
- display: block;
128
- width: 100%;
129
-
130
- // Vertically space out multiple block buttons
131
- + .btn-block {
132
- margin-top: $btn-block-spacing-y;
133
- }
134
- }
135
-
136
- // Specificity overrides
137
- input[type="submit"],
138
- input[type="reset"],
139
- input[type="button"] {
140
- &.btn-block {
141
- width: 100%;
142
- }
143
- }