vbax-becky_thatcher 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/vbax/becky_thatcher/engine.rb +14 -0
- data/lib/vbax/becky_thatcher/version.rb +5 -0
- data/lib/vbax/becky_thatcher.rb +8 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_alert.scss +51 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_badge.scss +47 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_breadcrumb.scss +41 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_button-group.scss +172 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_buttons.scss +143 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_card.scss +301 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_carousel.scss +236 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_close.scss +35 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_code.scss +48 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_custom-forms.scss +433 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_dropdown.scss +166 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_forms.scss +333 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_functions.scss +86 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_grid.scss +52 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_images.scss +42 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_input-group.scss +173 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_jumbotron.scss +16 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_list-group.scss +115 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_media.scss +8 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_mixins.scss +41 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_modal.scss +180 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_nav.scss +118 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_navbar.scss +299 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_pagination.scss +78 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_popover.scss +183 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_print.scss +141 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_progress.scss +34 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_reboot.scss +483 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_root.scss +19 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_tables.scss +187 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_tooltip.scss +115 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_transitions.scss +22 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_type.scss +125 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_utilities.scss +15 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/_variables.scss +952 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_alert.scss +13 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_background-variant.scss +21 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_badge.scss +12 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_border-radius.scss +35 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_box-shadow.scss +5 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_breakpoints.scss +123 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_buttons.scss +109 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_caret.scss +66 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_clearfix.scss +7 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_float.scss +11 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_forms.scss +147 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_gradients.scss +45 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_grid-framework.scss +67 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_grid.scss +52 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_hover.scss +37 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_image.scss +36 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_list-group.scss +21 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_lists.scss +7 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_nav-divider.scss +10 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_pagination.scss +22 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_reset-text.scss +17 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_resize.scss +6 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_screen-reader.scss +33 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_size.scss +6 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_table-row.scss +30 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_text-emphasis.scss +14 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_text-hide.scss +13 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_text-truncate.scss +8 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_transition.scss +13 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/mixins/_visibility.scss +7 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_align.scss +8 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_background.scss +19 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_borders.scss +59 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_clearfix.scss +3 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_display.scss +38 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_embed.scss +52 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_flex.scss +51 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_float.scss +9 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_position.scss +37 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_screenreaders.scss +11 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_shadows.scss +6 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_sizing.scss +12 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_spacing.scss +51 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_text.scss +58 -0
- data/lib/vbax/sass/becky_thatcher/bootstrap/utilities/_visibility.scss +11 -0
- data/lib/vbax/sass/becky_thatcher/custom/_alerts.scss +89 -0
- data/lib/vbax/sass/becky_thatcher/custom/_avatars.scss +51 -0
- data/lib/vbax/sass/becky_thatcher/custom/_badge.scss +25 -0
- data/lib/vbax/sass/becky_thatcher/custom/_buttons.scss +281 -0
- data/lib/vbax/sass/becky_thatcher/custom/_card.scss +223 -0
- data/lib/vbax/sass/becky_thatcher/custom/_checkboxes-radio.scss +154 -0
- data/lib/vbax/sass/becky_thatcher/custom/_close.scss +29 -0
- data/lib/vbax/sass/becky_thatcher/custom/_custom-forms.scss +186 -0
- data/lib/vbax/sass/becky_thatcher/custom/_dropdown.scss +361 -0
- data/lib/vbax/sass/becky_thatcher/custom/_example-pages.scss +319 -0
- data/lib/vbax/sass/becky_thatcher/custom/_fixed-plugin.scss +335 -0
- data/lib/vbax/sass/becky_thatcher/custom/_footer.scss +109 -0
- data/lib/vbax/sass/becky_thatcher/custom/_forms.scss +146 -0
- data/lib/vbax/sass/becky_thatcher/custom/_functions.scss +23 -0
- data/lib/vbax/sass/becky_thatcher/custom/_global.scss +172 -0
- data/lib/vbax/sass/becky_thatcher/custom/_grid.scss +5 -0
- data/lib/vbax/sass/becky_thatcher/custom/_icons.scss +92 -0
- data/lib/vbax/sass/becky_thatcher/custom/_images.scss +7 -0
- data/lib/vbax/sass/becky_thatcher/custom/_info-areas.scss +170 -0
- data/lib/vbax/sass/becky_thatcher/custom/_input-group.scss +342 -0
- data/lib/vbax/sass/becky_thatcher/custom/_misc.scss +215 -0
- data/lib/vbax/sass/becky_thatcher/custom/_mixins.scss +15 -0
- data/lib/vbax/sass/becky_thatcher/custom/_modal.scss +257 -0
- data/lib/vbax/sass/becky_thatcher/custom/_nav.scss +85 -0
- data/lib/vbax/sass/becky_thatcher/custom/_navbar.scss +480 -0
- data/lib/vbax/sass/becky_thatcher/custom/_pagination.scss +141 -0
- data/lib/vbax/sass/becky_thatcher/custom/_pills.scss +169 -0
- data/lib/vbax/sass/becky_thatcher/custom/_popover.scss +14 -0
- data/lib/vbax/sass/becky_thatcher/custom/_progress.scss +103 -0
- data/lib/vbax/sass/becky_thatcher/custom/_reboot.scss +18 -0
- data/lib/vbax/sass/becky_thatcher/custom/_rtl.scss +268 -0
- data/lib/vbax/sass/becky_thatcher/custom/_sidebar-and-main-panel.scss +912 -0
- data/lib/vbax/sass/becky_thatcher/custom/_tables.scss +248 -0
- data/lib/vbax/sass/becky_thatcher/custom/_tabs.scss +110 -0
- data/lib/vbax/sass/becky_thatcher/custom/_timeline.scss +251 -0
- data/lib/vbax/sass/becky_thatcher/custom/_type.scss +166 -0
- data/lib/vbax/sass/becky_thatcher/custom/_utilities.scss +9 -0
- data/lib/vbax/sass/becky_thatcher/custom/_variables.scss +997 -0
- data/lib/vbax/sass/becky_thatcher/custom/_white-content.scss +491 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-animation-on-hover.scss +7 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-chart.scss +84 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-collapse.scss +51 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-contributions.scss +55 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-lock.scss +18 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-map.scss +3 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-plain.scss +16 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-pricing.scss +190 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-profile.scss +49 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-register.scss +79 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-stats-mini.scss +53 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-stats.scss +80 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-subcategories.scss +3 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-task.scss +31 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-testimonials.scss +46 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-user.scss +77 -0
- data/lib/vbax/sass/becky_thatcher/custom/cards/_card-wizard.scss +21 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_alert.scss +14 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_background-variant.scss +18 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_badges.scss +15 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_buttons.scss +343 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_dropdown.scss +26 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_forms.scss +127 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_icon.scss +4 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_inputs.scss +234 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_modals.scss +15 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_page-header.scss +7 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_popovers.scss +41 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_vendor-prefixes.scss +202 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/_wizard.scss +26 -0
- data/lib/vbax/sass/becky_thatcher/custom/mixins/opacity.scss +8 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_backgrounds.scss +42 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_floating.scss +54 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_helper.scss +62 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_position.scss +19 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_shadows.scss +10 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_sizing.scss +5 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_spacing.scss +105 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_text.scss +40 -0
- data/lib/vbax/sass/becky_thatcher/custom/utilities/_transform.scss +8 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_icons.scss +415 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-animate-bootstrap-notify.scss +227 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-bootstrap-select.scss +358 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-bootstrap-switch.scss +316 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-card-wizard.scss +315 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-datatables.net.scss +135 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-datetimepicker.scss +527 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-fullcalendar.scss +1528 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-jasny-fileupload.scss +116 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-jquery.jvectormap.scss +136 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-nouislider.scss +373 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-perfect-scrollbar.scss +116 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-sweetalert2.scss +711 -0
- data/lib/vbax/sass/becky_thatcher/custom/vendor/_plugin-tagsinput.scss +79 -0
- data/lib/vbax/sass/becky_thatcher.scss +144 -0
- data/vbax-becky_thatcher.gemspec +41 -0
- metadata +257 -0
@@ -0,0 +1,343 @@
|
|
1
|
+
@mixin btn-styles($btn-color, $btn-states-color) {
|
2
|
+
@include diagonal-gradient($btn-color, $btn-states-color);
|
3
|
+
background-color: $btn-color;
|
4
|
+
transition: all 0.15s ease;
|
5
|
+
box-shadow: none;
|
6
|
+
&.animation-on-hover:hover{
|
7
|
+
background-position: bottom left;
|
8
|
+
transition:0.3s ease-in-out;
|
9
|
+
}
|
10
|
+
|
11
|
+
&:hover,
|
12
|
+
&:focus,
|
13
|
+
&:active,
|
14
|
+
&.active,
|
15
|
+
&:active:focus,
|
16
|
+
&:active:hover,
|
17
|
+
&.active:focus,
|
18
|
+
&.active:hover
|
19
|
+
{
|
20
|
+
background-color: $btn-states-color !important;
|
21
|
+
background-image: linear-gradient(to bottom left, $btn-color, $btn-states-color, $btn-color) !important;
|
22
|
+
background-image: -webkit-linear-gradient(to bottom left, $btn-color, $btn-states-color, $btn-color) !important;
|
23
|
+
background-image: -o-linear-gradient(to bottom left, $btn-color, $btn-states-color, $btn-color) !important;
|
24
|
+
background-image: -moz-linear-gradient(to bottom left, $btn-color, $btn-states-color, $btn-color) !important;
|
25
|
+
color: $white;
|
26
|
+
box-shadow: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
&:active{
|
30
|
+
box-shadow: none !important;
|
31
|
+
transform: translateY(1px) !important;
|
32
|
+
transition: all .15s ease;
|
33
|
+
}
|
34
|
+
|
35
|
+
&:not([data-action]):hover{
|
36
|
+
|
37
|
+
box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
|
38
|
+
transform: translateY(-1px);
|
39
|
+
-webkit-transform: translateY(-1px);
|
40
|
+
}
|
41
|
+
|
42
|
+
&.disabled,
|
43
|
+
&:disabled,
|
44
|
+
&[disabled],
|
45
|
+
fieldset[disabled] & {
|
46
|
+
&,
|
47
|
+
&:hover,
|
48
|
+
&:focus,
|
49
|
+
&.focus,
|
50
|
+
&:active,
|
51
|
+
&.active {
|
52
|
+
background-color: $btn-color;
|
53
|
+
border-color: $btn-color;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// btn-neutral style
|
58
|
+
@if $btn-color == $white{
|
59
|
+
color: $primary;
|
60
|
+
|
61
|
+
&.btn-danger{
|
62
|
+
color: $danger;
|
63
|
+
|
64
|
+
&:hover,
|
65
|
+
&:focus,
|
66
|
+
&:active,
|
67
|
+
&:active:focus{
|
68
|
+
color: $danger-states;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
&.btn-info{
|
73
|
+
color: $info;
|
74
|
+
|
75
|
+
&:hover,
|
76
|
+
&:focus,
|
77
|
+
&:active,
|
78
|
+
&:active:focus{
|
79
|
+
color: $info-states;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
&.btn-warning{
|
84
|
+
color: $warning;
|
85
|
+
|
86
|
+
&:hover,
|
87
|
+
&:focus,
|
88
|
+
&:active,
|
89
|
+
&:active:focus{
|
90
|
+
color: $warning-states;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
&.btn-success{
|
95
|
+
color: $success;
|
96
|
+
|
97
|
+
&:hover,
|
98
|
+
&:focus,
|
99
|
+
&:active,
|
100
|
+
&:active:focus{
|
101
|
+
color: $success-states;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
&.btn-default{
|
106
|
+
color: $default;
|
107
|
+
|
108
|
+
&:hover,
|
109
|
+
&:focus,
|
110
|
+
&:active,
|
111
|
+
&:active:focus{
|
112
|
+
color: $default-states;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
&.active,
|
117
|
+
&:active,
|
118
|
+
&:active:focus,
|
119
|
+
&:active:hover,
|
120
|
+
&.active:focus,
|
121
|
+
&.active:hover,
|
122
|
+
.show > &.dropdown-toggle,
|
123
|
+
.show > &.dropdown-toggle:focus,
|
124
|
+
.show > &.dropdown-toggle:hover {
|
125
|
+
background-color: $white;
|
126
|
+
color: $primary-states;
|
127
|
+
box-shadow: none;
|
128
|
+
}
|
129
|
+
|
130
|
+
&:hover,
|
131
|
+
&:focus{
|
132
|
+
color: $primary-states;
|
133
|
+
|
134
|
+
&:not(.nav-link){
|
135
|
+
box-shadow: none;
|
136
|
+
}
|
137
|
+
|
138
|
+
}
|
139
|
+
|
140
|
+
} @else {
|
141
|
+
color: $white;
|
142
|
+
}
|
143
|
+
|
144
|
+
&.btn-simple{
|
145
|
+
color: $btn-color;
|
146
|
+
border-color: $btn-color;
|
147
|
+
background: $transparent-bg;
|
148
|
+
|
149
|
+
&:hover,
|
150
|
+
&:focus,
|
151
|
+
&:active,
|
152
|
+
&:not(:disabled):not(.disabled):active{
|
153
|
+
color: $btn-color;
|
154
|
+
border-color: $btn-color;
|
155
|
+
background-color: $transparent-bg !important;
|
156
|
+
background-image: none !important;
|
157
|
+
box-shadow: none;
|
158
|
+
}
|
159
|
+
|
160
|
+
&.active{
|
161
|
+
border-color: $btn-color !important;
|
162
|
+
&:hover,
|
163
|
+
&:focus,
|
164
|
+
&:active,
|
165
|
+
&:not(:disabled):not(.disabled):active{
|
166
|
+
color: $white;
|
167
|
+
border-color: $btn-color;
|
168
|
+
background-image: linear-gradient(to bottom left, $btn-color, $btn-states-color, $btn-color) !important;
|
169
|
+
background-image: -webkit-linear-gradient(to bottom left, $btn-color, $btn-states-color, $btn-color) !important;
|
170
|
+
background-image: -o-linear-gradient(to bottom left, $btn-color, $btn-states-color, $btn-color) !important;
|
171
|
+
background-image: -moz-linear-gradient(to bottom left, $btn-color, $btn-states-color, $btn-color) !important;
|
172
|
+
background-color: $btn-states-color !important;
|
173
|
+
box-shadow: none;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
&.btn-link{
|
179
|
+
color: $btn-color;
|
180
|
+
&:hover,
|
181
|
+
&:focus,
|
182
|
+
&:active{
|
183
|
+
background-color: $transparent-bg !important;
|
184
|
+
background-image: none !important;
|
185
|
+
color: $white !important;
|
186
|
+
text-decoration: none;
|
187
|
+
box-shadow: none;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
@mixin button-variant($background, $border, $hover-background: darken($background, 0%), $hover-border: darken($border, 0%), $active-background: darken($background, 10%), $active-border: darken($border, 0%)) {
|
193
|
+
color: color-yiq($background);
|
194
|
+
@include gradient-bg($background);
|
195
|
+
border-color: $border;
|
196
|
+
@include box-shadow($btn-box-shadow);
|
197
|
+
|
198
|
+
@include hover {
|
199
|
+
color: color-yiq($hover-background);
|
200
|
+
@include gradient-bg($hover-background);
|
201
|
+
border-color: $hover-border;
|
202
|
+
}
|
203
|
+
|
204
|
+
&:focus,
|
205
|
+
&.focus {
|
206
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
207
|
+
@if $enable-shadows {
|
208
|
+
box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
|
209
|
+
}
|
210
|
+
@else {
|
211
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
|
212
|
+
}
|
213
|
+
} // Disabled comes first so active can properly restyle
|
214
|
+
&.disabled,
|
215
|
+
&:disabled {
|
216
|
+
color: color-yiq($background);
|
217
|
+
background-color: $background;
|
218
|
+
border-color: $border;
|
219
|
+
}
|
220
|
+
|
221
|
+
&:not(:disabled):not(.disabled):active,
|
222
|
+
&:not(:disabled):not(.disabled).active,
|
223
|
+
.show>&.dropdown-toggle {
|
224
|
+
color: color-yiq($active-background);
|
225
|
+
background-color: $active-background;
|
226
|
+
@if $enable-gradients {
|
227
|
+
background-image: none; // Remove the gradient for the pressed/active state
|
228
|
+
}
|
229
|
+
border-color: $active-border;
|
230
|
+
|
231
|
+
&:focus {
|
232
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
233
|
+
@if $enable-shadows {
|
234
|
+
box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
|
235
|
+
}
|
236
|
+
@else {
|
237
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
@mixin button-outline-variant($color, $color-hover: color-yiq($color), $active-background: $color, $active-border: $color) {
|
244
|
+
color: $color;
|
245
|
+
background-color: transparent;
|
246
|
+
background-image: none;
|
247
|
+
border-color: $color;
|
248
|
+
|
249
|
+
&:hover {
|
250
|
+
color: $color-hover;
|
251
|
+
background-color: $active-background;
|
252
|
+
border-color: $active-border;
|
253
|
+
}
|
254
|
+
|
255
|
+
&:focus,
|
256
|
+
&.focus {
|
257
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
258
|
+
}
|
259
|
+
|
260
|
+
&.disabled,
|
261
|
+
&:disabled {
|
262
|
+
color: $color;
|
263
|
+
background-color: transparent;
|
264
|
+
}
|
265
|
+
|
266
|
+
&:not(:disabled):not(.disabled):active,
|
267
|
+
&:not(:disabled):not(.disabled).active,
|
268
|
+
.show>&.dropdown-toggle {
|
269
|
+
color: color-yiq($active-background);
|
270
|
+
background-color: $active-background;
|
271
|
+
border-color: $active-border;
|
272
|
+
|
273
|
+
&:focus {
|
274
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
275
|
+
@if $enable-shadows and $btn-active-box-shadow !=none {
|
276
|
+
box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5);
|
277
|
+
}
|
278
|
+
@else {
|
279
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
// Button sizes
|
286
|
+
@mixin btn-size($padding-vertical, $padding-horizontal, $font-size, $border){
|
287
|
+
font-size: $font-size;
|
288
|
+
border-radius: $border;
|
289
|
+
padding: $padding-vertical $padding-horizontal;
|
290
|
+
|
291
|
+
&.btn-simple{
|
292
|
+
padding: $padding-vertical - 1 $padding-horizontal - 1;
|
293
|
+
}
|
294
|
+
|
295
|
+
}
|
296
|
+
|
297
|
+
// for social buttons
|
298
|
+
@mixin social-buttons-color ($color, $state-color){
|
299
|
+
@include diagonal-gradient($color, darken($color,20%));
|
300
|
+
//background-color: $color;
|
301
|
+
color: $white;
|
302
|
+
background-size: 210% 210%;
|
303
|
+
background-position: top right;
|
304
|
+
background-repeat: space;
|
305
|
+
|
306
|
+
&:focus,
|
307
|
+
&:active,
|
308
|
+
&:hover{
|
309
|
+
background-color: $state-color;
|
310
|
+
background-image: linear-gradient(to bottom left, $color, darken($color,20%), $color) !important;
|
311
|
+
background-image: -webkit-linear-gradient(to bottom left, $color, darken($color,20%), $color) !important;
|
312
|
+
background-image: -o-linear-gradient(to bottom left, $color, darken($color,20%), $color) !important;
|
313
|
+
background-image: -moz-linear-gradient(to bottom left, $color, darken($color,20%), $color) !important;
|
314
|
+
color: $white;
|
315
|
+
}
|
316
|
+
|
317
|
+
&.btn-simple{
|
318
|
+
color: $state-color;
|
319
|
+
background-color: $transparent-bg;
|
320
|
+
background-image: none !important;
|
321
|
+
box-shadow: none;
|
322
|
+
border-color: $state-color;
|
323
|
+
|
324
|
+
&:hover,
|
325
|
+
&:focus,
|
326
|
+
&:active{
|
327
|
+
color: $state-color;
|
328
|
+
border-color: $state-color;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
&.btn-neutral{
|
333
|
+
color: $color;
|
334
|
+
background-color: $white;
|
335
|
+
|
336
|
+
|
337
|
+
&:hover,
|
338
|
+
&:focus,
|
339
|
+
&:active{
|
340
|
+
color: $state-color;
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
@mixin dropdown-colors($brand-color, $dropdown-header-color, $dropdown-color, $background-color ) {
|
2
|
+
background-color: $brand-color;
|
3
|
+
|
4
|
+
&:before{
|
5
|
+
color: $brand-color;
|
6
|
+
}
|
7
|
+
|
8
|
+
.dropdown-header:not([href]):not([tabindex]){
|
9
|
+
color: $dropdown-header-color;
|
10
|
+
}
|
11
|
+
|
12
|
+
.dropdown-item{
|
13
|
+
color: $dropdown-color;
|
14
|
+
|
15
|
+
&:hover,
|
16
|
+
&:focus{
|
17
|
+
background-color: $background-color;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.dropdown-divider{
|
22
|
+
background-color: $background-color;
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
@mixin form-control-focus() {
|
2
|
+
&:focus {
|
3
|
+
color: $input-focus-color;
|
4
|
+
background-color: $input-focus-bg;
|
5
|
+
border-color: $input-focus-border-color;
|
6
|
+
outline: 0;
|
7
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
8
|
+
@if $enable-shadows {
|
9
|
+
box-shadow: $input-box-shadow, $input-focus-box-shadow;
|
10
|
+
} @else {
|
11
|
+
box-shadow: $input-focus-box-shadow;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
|
17
|
+
@mixin form-validation-state($state, $color) {
|
18
|
+
.#{$state}-feedback {
|
19
|
+
display: none;
|
20
|
+
width: 100%;
|
21
|
+
margin-top: $form-feedback-margin-top;
|
22
|
+
font-size: $form-feedback-font-size;
|
23
|
+
color: $color;
|
24
|
+
}
|
25
|
+
|
26
|
+
.#{$state}-tooltip {
|
27
|
+
position: absolute;
|
28
|
+
top: 100%;
|
29
|
+
z-index: 5;
|
30
|
+
display: none;
|
31
|
+
max-width: 100%; // Contain to parent when possible
|
32
|
+
padding: .5rem;
|
33
|
+
margin-top: .1rem;
|
34
|
+
font-size: .875rem;
|
35
|
+
line-height: 1;
|
36
|
+
color: $white;
|
37
|
+
background-color: rgba($color, .8);
|
38
|
+
border-radius: .2rem;
|
39
|
+
}
|
40
|
+
|
41
|
+
.form-control,
|
42
|
+
.custom-select {
|
43
|
+
.was-validated &:#{$state},
|
44
|
+
&.is-#{$state} {
|
45
|
+
border-color: $color;
|
46
|
+
|
47
|
+
&:focus {
|
48
|
+
border-color: $color;
|
49
|
+
//box-shadow: 0 1px $input-focus-width 0 rgba($color, .75);
|
50
|
+
}
|
51
|
+
|
52
|
+
~ .#{$state}-feedback,
|
53
|
+
~ .#{$state}-tooltip {
|
54
|
+
display: block;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.form-check-input {
|
60
|
+
.was-validated &:#{$state},
|
61
|
+
&.is-#{$state} {
|
62
|
+
~ .form-check-label {
|
63
|
+
color: $color;
|
64
|
+
}
|
65
|
+
|
66
|
+
~ .#{$state}-feedback,
|
67
|
+
~ .#{$state}-tooltip {
|
68
|
+
display: block;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.custom-control-input {
|
74
|
+
.was-validated &:#{$state},
|
75
|
+
&.is-#{$state} {
|
76
|
+
~ .custom-control-label {
|
77
|
+
color: $color;
|
78
|
+
|
79
|
+
&::before {
|
80
|
+
background-color: lighten($color, 25%);
|
81
|
+
border-color: lighten($color, 25%);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
~ .#{$state}-feedback,
|
86
|
+
~ .#{$state}-tooltip {
|
87
|
+
display: block;
|
88
|
+
}
|
89
|
+
|
90
|
+
&:checked {
|
91
|
+
~ .custom-control-label::before {
|
92
|
+
@include gradient-bg(lighten($color, 10%));
|
93
|
+
border-color: lighten($color, 25%);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
&:focus {
|
98
|
+
~ .custom-control-label::before {
|
99
|
+
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-focus-width rgba($color, .25);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
// custom file
|
106
|
+
.custom-file-input {
|
107
|
+
.was-validated &:#{$state},
|
108
|
+
&.is-#{$state} {
|
109
|
+
~ .custom-file-label {
|
110
|
+
border-color: $color;
|
111
|
+
|
112
|
+
&::before { border-color: inherit; }
|
113
|
+
}
|
114
|
+
|
115
|
+
~ .#{$state}-feedback,
|
116
|
+
~ .#{$state}-tooltip {
|
117
|
+
display: block;
|
118
|
+
}
|
119
|
+
|
120
|
+
&:focus {
|
121
|
+
~ .custom-file-label {
|
122
|
+
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|