viniBaxter-desk_front 32.0.0 → 33.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/viniBaxter/desk_front/version.rb +1 -1
  3. data/lib/viniBaxter/sass/desk_front.scss +5 -15
  4. data/lib/viniBaxter/sass/desk_front/bootstrap/_buttons.scss +22 -3
  5. data/lib/viniBaxter/sass/desk_front/bootstrap/_list-group.scss +9 -8
  6. data/lib/viniBaxter/sass/desk_front/bootstrap/_mixins.scss +1 -1
  7. data/lib/viniBaxter/sass/desk_front/bootstrap/_modal.scss +13 -19
  8. data/lib/viniBaxter/sass/desk_front/bootstrap/bootstrap-grid.scss +1 -1
  9. data/lib/viniBaxter/sass/desk_front/bootstrap/bootstrap-reboot.scss +1 -1
  10. data/lib/viniBaxter/sass/desk_front/bootstrap/bootstrap.scss +1 -1
  11. data/lib/viniBaxter/sass/desk_front/bootstrap/mixins/_buttons.scss +433 -44
  12. data/lib/viniBaxter/sass/desk_front/dashkit/_dashkit.scss +1 -2
  13. data/lib/viniBaxter/sass/desk_front/dashkit/vendors/_dropzone.scss +10 -3
  14. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/_functions.scss +0 -0
  15. data/lib/viniBaxter/sass/desk_front/v2lrf-dashboard/_index.scss +9 -0
  16. data/lib/viniBaxter/sass/desk_front/v2lrf-dashboard/_mixins.scss +18 -0
  17. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/_new_nav.scss +0 -0
  18. data/lib/viniBaxter/sass/desk_front/{administrate/index.scss → v2lrf-dashboard/administrate/_index.scss} +0 -5
  19. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/base/_forms.scss +0 -0
  20. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/base/_layout.scss +1 -1
  21. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/base/_lists.scss +0 -0
  22. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/base/_tables.scss +1 -1
  23. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/base/_typography.scss +0 -0
  24. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/components/_app-container.scss +0 -0
  25. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/components/_attributes.scss +0 -0
  26. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/components/_cells.scss +0 -0
  27. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/components/_flashes.scss +0 -0
  28. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/components/_main-content.scss +0 -0
  29. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/components/_navigation.scss +0 -0
  30. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/components/_pagination.scss +0 -0
  31. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/components/_search.scss +0 -0
  32. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/desk_front/.DS_Store +0 -0
  33. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/library/_clearfix.scss +0 -0
  34. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/library/_customSelectize.scss +0 -0
  35. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/library/_data-label.scss +0 -0
  36. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/library/_variables.scss +0 -0
  37. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/reset/_normalize.scss +0 -0
  38. data/lib/viniBaxter/sass/desk_front/{administrate → v2lrf-dashboard/administrate}/utilities/_text-color.scss +0 -0
  39. data/lib/viniBaxter/sass/desk_front/v2lrf-dashboard/custom-components/_custom-dashboard-ui.scss +54 -0
  40. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/_dropdown.scss +0 -0
  41. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/_index.scss +4 -1
  42. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/_misc.scss +0 -0
  43. data/lib/viniBaxter/sass/desk_front/v2lrf-dashboard/custom-components/_modal-setup.scss +25 -0
  44. data/lib/viniBaxter/sass/desk_front/v2lrf-dashboard/custom-components/_modal.scss +109 -0
  45. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/_navbar.scss +0 -0
  46. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/_pagination.scss +0 -0
  47. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/_white-content.scss +0 -0
  48. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-animation-on-hover.scss +0 -0
  49. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-chart.scss +0 -0
  50. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-collapse.scss +0 -0
  51. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-contributions.scss +0 -0
  52. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-lock.scss +0 -0
  53. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-map.scss +0 -0
  54. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-plain.scss +0 -0
  55. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-pricing.scss +0 -0
  56. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-profile.scss +0 -0
  57. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-register.scss +0 -0
  58. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-stats.scss +0 -0
  59. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-subcategories.scss +0 -0
  60. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-task.scss +0 -0
  61. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-testimonials.scss +0 -0
  62. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-user.scss +0 -0
  63. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_card-wizard.scss +0 -0
  64. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/cards/_index.scss +0 -0
  65. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_index.scss +0 -0
  66. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-animate-bootstrap-notify.scss +0 -0
  67. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-bootstrap-select.scss +0 -0
  68. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-bootstrap-switch.scss +0 -0
  69. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-card-wizard.scss +0 -0
  70. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-datatables-net.scss +0 -0
  71. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-datetimepicker.scss +0 -0
  72. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-jasny-fileupload.scss +0 -0
  73. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-jquery-jvectormap.scss +0 -0
  74. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-new-bootstrap-select.scss +0 -0
  75. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-nouislider.scss +0 -0
  76. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-perfect-scrollbar.scss +0 -0
  77. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/custom-components/vendor/_plugin-tagsinput.scss +0 -0
  78. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_alert.scss +0 -0
  79. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_background-variant.scss +0 -0
  80. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_badges.scss +0 -0
  81. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_caret-color.scss +0 -0
  82. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_dropdown.scss +0 -0
  83. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_forms.scss +0 -0
  84. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_icon.scss +0 -0
  85. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_inputs.scss +0 -0
  86. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_modals.scss +0 -0
  87. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_nav-setup-normal.scss +40 -19
  88. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_nav-setup-ntf.scss +26 -16
  89. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_nav-setup.scss +0 -0
  90. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_page-header.scss +0 -0
  91. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_popovers.scss +0 -0
  92. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_vendor-prefixes.scss +0 -0
  93. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/_wizard.scss +0 -0
  94. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/mixins/opacity.scss +0 -0
  95. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/new_nav/_dropdown.scss +0 -0
  96. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/new_nav/_index.scss +0 -0
  97. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/new_nav/_misc.scss +0 -0
  98. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/new_nav/_navbar.scss +11 -4
  99. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/new_nav/_sidebar-and-main-panel.scss +82 -52
  100. data/lib/viniBaxter/sass/desk_front/{beckyBaxter → v2lrf-dashboard}/new_nav/_white-content.scss +28 -9
  101. metadata +89 -88
  102. data/lib/viniBaxter/sass/desk_front/beckyBaxter/_index.scss +0 -6
  103. data/lib/viniBaxter/sass/desk_front/beckyBaxter/_mixins.scss +0 -19
  104. data/lib/viniBaxter/sass/desk_front/beckyBaxter/mixins/_buttons.scss +0 -415
  105. data/lib/viniBaxter/sass/desk_front/dashkit/_modal.scss +0 -104
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88552c558aeee2311e467928c5a7a9764f2d41584312e80bc38d9e9149010d74
4
- data.tar.gz: 0b3b22f98f4bba8373f3acab49c69a1d6d7fd35093b3f1a4fcfae9503f680278
3
+ metadata.gz: 34892ee2cfbb9ddfa75bdcb4a08f9085ce7081906fa3d4fb28d60cb8436a2db4
4
+ data.tar.gz: a5721188b3b806fa77df52edcca0d8244aa167fe9736f4a58b709c36ff4e3b1d
5
5
  SHA512:
6
- metadata.gz: 3bc2245b309d4b56bb65e3286f987405d3cb352eeb7a8779983c89588b77164338eb87dc1f3b07ab5600d917ba84ea309fa915c8a3686ccef89f5426f098c77d
7
- data.tar.gz: 1d63d7f13d1e2888fc0ce069a266808a74601beb350295689bd3405f23dc91e650856a8b10a64c50f24ffefbd7327be238fbad1b15043e8cd8e00b0254d817e4
6
+ metadata.gz: '0909dcffa6fd4fdba1c92903dcca897e7395490bfa1f0925c40838e111401e357491eb1909d1ad18094c3d4179382065ca536b052e31c37382f90d9ffac01dbc'
7
+ data.tar.gz: bfd32fbda1acc133c0359c97e7799b9557da73751d1b87705571947c139fa5ff44f9470c22f945e63fa2e521a703c93f60a6e2c800b33d695361a2ea1c3b0d87
@@ -1,6 +1,6 @@
1
1
  module ViniBaxter
2
2
  module DeskFront
3
- MAJOR = 32
3
+ MAJOR = 33
4
4
  MINOR = 0
5
5
  TINY = 0
6
6
  # PRE = "alpha"
@@ -1,22 +1,12 @@
1
1
  // bootstrap
2
2
  @import 'desk_front/bootstrap/bootstrap';
3
3
 
4
- // administrate
5
- @import 'desk_front/administrate/index';
6
-
7
4
  // becky ViniBaxter
8
- @import 'desk_front/beckyBaxter/index';
5
+ @import 'desk_front/v2lrf-dashboard/index';
9
6
 
10
- @import 'desk_front/dashkit/dashkit'; // Dashkit core but could be what you want
7
+ // Template core Dashkit but could be what you want
8
+ @import 'desk_front/dashkit/dashkit';
11
9
 
12
- // Dashkit core
10
+ // some exteranals components
13
11
  @import 'desk_front/landing/landing';
14
-
15
- // read that some scss have been overwritting to fit with dashkit
16
- // search by keyword to get it => // KEEPBECKY
17
- // card-header with class becky
18
- // .becky-template {
19
- // font-family: $font-family-base-becky!important ;
20
- // }
21
-
22
- @import 'desk_front/beckyBaxter/new_nav';
12
+ @import 'desk_front/v2lrf-dashboard/new_nav';
@@ -87,9 +87,28 @@ $value in $theme-colors {
87
87
  @each $color,
88
88
  $value in $theme-colors {
89
89
  .btn-rounded-#{$color}-filter {
90
- border-radius: 30px !important;
91
- border: 1px solid $white !important;
92
- background-color: grey;
90
+ cursor: pointer;
91
+ text-align: center;
92
+ // border: 1px solid $value;
93
+ // background-color: lighten($value, 90%);
94
+ border: 3px solid $nft-white;
95
+ background-color: lighten($value, 78%);
96
+ outline: none;
97
+ margin: 0px;
98
+ border-radius: 30px;
99
+ color: $value;
100
+ position: relative;
101
+ font-family: $font-family-base !important;
102
+ font-weight: 400;
103
+ padding: 12px 20px;
104
+ font-size: 14px;
105
+ line-height: 18px;
106
+
107
+ &.active {
108
+ background-color: $value !important;
109
+ color: $nft-white !important;
110
+ }
111
+
93
112
  }
94
113
  }
95
114
 
@@ -47,9 +47,9 @@
47
47
  display: block;
48
48
  padding: $list-group-item-padding-y $list-group-item-padding-x;
49
49
  color: $list-group-color;
50
- text-decoration: if($link-decoration == none, null, none);
50
+ text-decoration: if($link-decoration==none, null, none);
51
51
  background-color: $list-group-bg;
52
- border: $list-group-border-width solid $list-group-border-color;
52
+ // border: $list-group-border-width solid $list-group-border-color;
53
53
 
54
54
  &:first-child {
55
55
  @include border-top-radius(inherit);
@@ -74,7 +74,7 @@
74
74
  border-color: $list-group-active-border-color;
75
75
  }
76
76
 
77
- & + & {
77
+ &+& {
78
78
  border-top-width: 0;
79
79
 
80
80
  &.active {
@@ -96,7 +96,7 @@
96
96
  .list-group-horizontal#{$infix} {
97
97
  flex-direction: row;
98
98
 
99
- > .list-group-item {
99
+ >.list-group-item {
100
100
  &:first-child {
101
101
  @include border-bottom-left-radius($list-group-border-radius);
102
102
  @include border-top-right-radius(0);
@@ -111,7 +111,7 @@
111
111
  margin-top: 0;
112
112
  }
113
113
 
114
- & + .list-group-item {
114
+ &+.list-group-item {
115
115
  border-top-width: $list-group-border-width;
116
116
  border-left-width: 0;
117
117
 
@@ -134,7 +134,7 @@
134
134
  .list-group-flush {
135
135
  @include border-radius(0);
136
136
 
137
- > .list-group-item {
137
+ >.list-group-item {
138
138
  border-width: 0 0 $list-group-border-width;
139
139
 
140
140
  &:last-child {
@@ -149,6 +149,7 @@
149
149
  // Add modifier classes to change text and background color on individual items.
150
150
  // Organizationally, this must come after the `:hover` states.
151
151
 
152
- @each $color, $value in $theme-colors {
152
+ @each $color,
153
+ $value in $theme-colors {
153
154
  @include list-group-item-variant($color, theme-color-level($color, -9), theme-color-level($color, 6));
154
- }
155
+ }
@@ -44,4 +44,4 @@
44
44
  @import "mixins/clearfix";
45
45
  @import "mixins/grid-framework";
46
46
  @import "mixins/grid";
47
- @import "mixins/float";
47
+ @import "mixins/float";
@@ -45,6 +45,7 @@
45
45
  @include transition($modal-transition);
46
46
  transform: $modal-fade-transform;
47
47
  }
48
+
48
49
  .modal.show & {
49
50
  transform: $modal-show-transform;
50
51
  }
@@ -116,25 +117,12 @@
116
117
  background-clip: padding-box;
117
118
  border: $modal-content-border-width solid $modal-content-border-color;
118
119
  @include border-radius($modal-content-border-radius);
119
- @include box-shadow($modal-content-box-shadow-xs);
120
+ @include box-shadow($modal-content-box-shadow-sm-up);
120
121
  // Remove focus outline from opened modal
121
122
  outline: 0;
122
123
  }
123
124
 
124
- // Modal background
125
- .modal-backdrop {
126
- position: fixed;
127
- top: 0;
128
- left: 0;
129
- z-index: $zindex-modal-backdrop;
130
- width: 100vw;
131
- height: 100vh;
132
- background-color: $modal-backdrop-bg;
133
-
134
- // Fade for backdrop
135
- &.fade { opacity: 0; }
136
- &.show { opacity: $modal-backdrop-opacity; }
137
- }
125
+
138
126
 
139
127
  // Modal header
140
128
  // Top section of the modal w/ title and dismiss
@@ -182,7 +170,7 @@
182
170
  // Place margin between footer elements
183
171
  // This solution is far from ideal because of the universal selector usage,
184
172
  // but is needed to fix https://github.com/twbs/bootstrap/issues/24800
185
- > * {
173
+ >* {
186
174
  margin: $modal-footer-margin-between / 2;
187
175
  }
188
176
  }
@@ -198,6 +186,7 @@
198
186
 
199
187
  // Scale up the modal
200
188
  @include media-breakpoint-up(sm) {
189
+
201
190
  // Automatically set modal's width for larger viewports
202
191
  .modal-dialog {
203
192
  max-width: $modal-md;
@@ -225,10 +214,13 @@
225
214
  @include box-shadow($modal-content-box-shadow-sm-up);
226
215
  }
227
216
 
228
- .modal-sm { max-width: $modal-sm; }
217
+ .modal-sm {
218
+ max-width: $modal-sm;
219
+ }
229
220
  }
230
221
 
231
222
  @include media-breakpoint-up(lg) {
223
+
232
224
  .modal-lg,
233
225
  .modal-xl {
234
226
  max-width: $modal-lg;
@@ -236,5 +228,7 @@
236
228
  }
237
229
 
238
230
  @include media-breakpoint-up(xl) {
239
- .modal-xl { max-width: $modal-xl; }
240
- }
231
+ .modal-xl {
232
+ max-width: $modal-xl;
233
+ }
234
+ }
@@ -26,4 +26,4 @@ html {
26
26
  @import "grid";
27
27
  @import "utilities/display";
28
28
  @import "utilities/flex";
29
- @import "utilities/spacing";
29
+ @import "utilities/spacing";
@@ -9,4 +9,4 @@
9
9
  @import "functions";
10
10
  @import "variables";
11
11
  @import "mixins";
12
- @import "reboot";
12
+ @import "reboot";
@@ -39,4 +39,4 @@
39
39
  @import 'carousel';
40
40
  @import 'spinners';
41
41
  @import 'utilities';
42
- @import 'print';
42
+ @import 'print';
@@ -1,16 +1,415 @@
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
+
7
+ &.animation-on-hover:hover {
8
+ background-position: bottom left;
9
+ transition: 0.3s ease-in-out;
10
+ }
11
+
12
+ &:hover,
13
+ &:focus,
14
+ &:active,
15
+ &.active,
16
+ &:active:focus,
17
+ &:active:hover,
18
+ &.active:focus,
19
+ &.active:hover {
20
+ background-color: $btn-states-color !important;
21
+ background-image: linear-gradient(to bottom left,
22
+ $btn-color,
23
+ $btn-states-color,
24
+ $btn-color) !important;
25
+ background-image: -webkit-linear-gradient(to bottom left,
26
+ $btn-color,
27
+ $btn-states-color,
28
+ $btn-color) !important;
29
+ background-image: -o-linear-gradient(to bottom left,
30
+ $btn-color,
31
+ $btn-states-color,
32
+ $btn-color) !important;
33
+ background-image: -moz-linear-gradient(to bottom left,
34
+ $btn-color,
35
+ $btn-states-color,
36
+ $btn-color) !important;
37
+ color: $white;
38
+ box-shadow: none;
39
+ }
40
+
41
+ &:active {
42
+ box-shadow: none !important;
43
+ transform: translateY(1px) !important;
44
+ transition: all 0.15s ease;
45
+ }
46
+
47
+ &:not([data-action]):hover {
48
+ box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
49
+ transform: translateY(-1px);
50
+ -webkit-transform: translateY(-1px);
51
+ }
52
+
53
+ &.disabled,
54
+ &:disabled,
55
+ &[disabled],
56
+ fieldset[disabled] & {
57
+
58
+ &,
59
+ &:hover,
60
+ &:focus,
61
+ &.focus,
62
+ &:active,
63
+ &.active {
64
+ background-color: $btn-color;
65
+ border-color: $btn-color;
66
+ }
67
+ }
68
+
69
+ // btn-neutral style
70
+ @if $btn-color==$white {
71
+ color: $primary;
72
+
73
+ &.btn-danger {
74
+ color: $danger;
75
+
76
+ &:hover,
77
+ &:focus,
78
+ &:active,
79
+ &:active:focus {
80
+ color: $danger-states;
81
+ }
82
+ }
83
+
84
+ &.btn-info {
85
+ color: $info;
86
+
87
+ &:hover,
88
+ &:focus,
89
+ &:active,
90
+ &:active:focus {
91
+ color: $info-states;
92
+ }
93
+ }
94
+
95
+ &.btn-warning {
96
+ color: $warning;
97
+
98
+ &:hover,
99
+ &:focus,
100
+ &:active,
101
+ &:active:focus {
102
+ color: $warning-states;
103
+ }
104
+ }
105
+
106
+ &.btn-success {
107
+ color: $success;
108
+
109
+ &:hover,
110
+ &:focus,
111
+ &:active,
112
+ &:active:focus {
113
+ color: $success-states;
114
+ }
115
+ }
116
+
117
+ &.btn-default {
118
+ color: $default;
119
+
120
+ &:hover,
121
+ &:focus,
122
+ &:active,
123
+ &:active:focus {
124
+ color: $default-states;
125
+ }
126
+ }
127
+
128
+ &.active,
129
+ &:active,
130
+ &:active:focus,
131
+ &:active:hover,
132
+ &.active:focus,
133
+ &.active:hover,
134
+ .show>&.dropdown-toggle,
135
+ .show>&.dropdown-toggle:focus,
136
+ .show>&.dropdown-toggle:hover {
137
+ background-color: $white;
138
+ color: $primary-states;
139
+ box-shadow: none;
140
+ }
141
+
142
+ &:hover,
143
+ &:focus {
144
+ color: $primary-states;
145
+
146
+ &:not(.nav-link) {
147
+ box-shadow: none;
148
+ }
149
+ }
150
+ }
151
+
152
+ @else {
153
+ color: $white;
154
+ }
155
+
156
+ &.btn-simple {
157
+ color: $btn-color;
158
+ border-color: $btn-color;
159
+ background: $transparent-bg;
160
+
161
+ &:hover,
162
+ &:focus,
163
+ &:active,
164
+ &:not(:disabled):not(.disabled):active {
165
+ color: $btn-color;
166
+ border-color: $btn-color;
167
+ background-color: $transparent-bg !important;
168
+ background-image: none !important;
169
+ box-shadow: none;
170
+ }
171
+
172
+ &.active {
173
+ border-color: $btn-color !important;
174
+
175
+ &:hover,
176
+ &:focus,
177
+ &:active,
178
+ &:not(:disabled):not(.disabled):active {
179
+ color: $white;
180
+ border-color: $btn-color;
181
+ background-image: linear-gradient(to bottom left,
182
+ $btn-color,
183
+ $btn-states-color,
184
+ $btn-color) !important;
185
+ background-image: -webkit-linear-gradient(to bottom left,
186
+ $btn-color,
187
+ $btn-states-color,
188
+ $btn-color) !important;
189
+ background-image: -o-linear-gradient(to bottom left,
190
+ $btn-color,
191
+ $btn-states-color,
192
+ $btn-color) !important;
193
+ background-image: -moz-linear-gradient(to bottom left,
194
+ $btn-color,
195
+ $btn-states-color,
196
+ $btn-color) !important;
197
+ background-color: $btn-states-color !important;
198
+ box-shadow: none;
199
+ }
200
+ }
201
+ }
202
+
203
+ &.btn-link {
204
+ color: $btn-color;
205
+
206
+ &:hover,
207
+ &:focus,
208
+ &:active {
209
+ background-color: $transparent-bg !important;
210
+ background-image: none !important;
211
+ color: $white !important;
212
+ text-decoration: none;
213
+ box-shadow: none;
214
+ }
215
+ }
216
+ }
217
+
218
+ @mixin button-variant($background,
219
+ $border,
220
+ $hover-background: darken($background, 0%),
221
+ $hover-border: darken($border, 0%),
222
+ $active-background: darken($background, 10%),
223
+ $active-border: darken($border, 0%)) {
224
+ color: color-yiq($background);
225
+ @include gradient-bg($background);
226
+ border-color: $border;
227
+ @include box-shadow($btn-box-shadow);
228
+
229
+ @include hover {
230
+ color: color-yiq($hover-background);
231
+ @include gradient-bg($hover-background);
232
+ border-color: $hover-border;
233
+ }
234
+
235
+ &:focus,
236
+ &.focus {
237
+
238
+ // Avoid using mixin so we can pass custom focus shadow properly
239
+ @if $enable-shadows {
240
+ box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba($border, 0.5);
241
+ }
242
+
243
+ @else {
244
+ box-shadow: 0 0 0 $btn-focus-width rgba($border, 0.5);
245
+ }
246
+ }
247
+
248
+ // Disabled comes first so active can properly restyle
249
+ &.disabled,
250
+ &:disabled {
251
+ color: color-yiq($background);
252
+ background-color: $background;
253
+ border-color: $border;
254
+ }
255
+
256
+ &:not(:disabled):not(.disabled):active,
257
+ &:not(:disabled):not(.disabled).active,
258
+ .show>&.dropdown-toggle {
259
+ color: color-yiq($active-background);
260
+ background-color: $active-background;
261
+
262
+ @if $enable-gradients {
263
+ background-image: none; // Remove the gradient for the pressed/active state
264
+ }
265
+
266
+ border-color: $active-border;
267
+
268
+ &:focus {
269
+
270
+ // Avoid using mixin so we can pass custom focus shadow properly
271
+ @if $enable-shadows {
272
+ box-shadow: $btn-active-box-shadow,
273
+ 0 0 0 $btn-focus-width rgba($border, 0.5);
274
+ }
275
+
276
+ @else {
277
+ box-shadow: 0 0 0 $btn-focus-width rgba($border, 0.5);
278
+ }
279
+ }
280
+ }
281
+ }
282
+
283
+ @mixin button-outline-variant($color,
284
+ $color-hover: color-yiq($color),
285
+ $active-background: $color,
286
+ $active-border: $color) {
287
+ color: $color;
288
+ background-color: transparent;
289
+ background-image: none;
290
+ border-color: $color;
291
+
292
+ &:hover {
293
+ color: $color-hover;
294
+ background-color: $active-background;
295
+ border-color: $active-border;
296
+ }
297
+
298
+ &:focus,
299
+ &.focus {
300
+ box-shadow: 0 0 0 $btn-focus-width rgba($color, 0.5);
301
+ }
302
+
303
+ &.disabled,
304
+ &:disabled {
305
+ color: $color;
306
+ background-color: transparent;
307
+ }
308
+
309
+ &:not(:disabled):not(.disabled):active,
310
+ &:not(:disabled):not(.disabled).active,
311
+ .show>&.dropdown-toggle {
312
+ color: color-yiq($active-background);
313
+ background-color: $active-background;
314
+ border-color: $active-border;
315
+
316
+ &:focus {
317
+
318
+ // Avoid using mixin so we can pass custom focus shadow properly
319
+ @if $enable-shadows and $btn-active-box-shadow !=none {
320
+ box-shadow: $btn-active-box-shadow,
321
+ 0 0 0 $btn-focus-width rgba($color, 0.5);
322
+ }
323
+
324
+ @else {
325
+ box-shadow: 0 0 0 $btn-focus-width rgba($color, 0.5);
326
+ }
327
+ }
328
+ }
329
+ }
330
+
331
+ // Button sizes
332
+ @mixin btn-size($padding-vertical, $padding-horizontal, $font-size, $border) {
333
+ font-size: $font-size;
334
+ border-radius: $border;
335
+ padding: $padding-vertical $padding-horizontal;
336
+
337
+ &.btn-simple {
338
+ padding: $padding-vertical - 1 $padding-horizontal - 1;
339
+ }
340
+ }
341
+
342
+ // for social buttons
343
+ @mixin social-buttons-color($color, $state-color) {
344
+ @include diagonal-gradient($color, darken($color, 20%));
345
+ //background-color: $color;
346
+ color: $white;
347
+ background-size: 210% 210%;
348
+ background-position: top right;
349
+ background-repeat: space;
350
+
351
+ &:focus,
352
+ &:active,
353
+ &:hover {
354
+ background-color: $state-color;
355
+ background-image: linear-gradient(to bottom left,
356
+ $color,
357
+ darken($color, 20%),
358
+ $color) !important;
359
+ background-image: -webkit-linear-gradient(to bottom left,
360
+ $color,
361
+ darken($color, 20%),
362
+ $color) !important;
363
+ background-image: -o-linear-gradient(to bottom left,
364
+ $color,
365
+ darken($color, 20%),
366
+ $color) !important;
367
+ background-image: -moz-linear-gradient(to bottom left,
368
+ $color,
369
+ darken($color, 20%),
370
+ $color) !important;
371
+ color: $white;
372
+ }
373
+
374
+ &.btn-simple {
375
+ color: $state-color;
376
+ background-color: $transparent-bg;
377
+ background-image: none !important;
378
+ box-shadow: none;
379
+ border-color: $state-color;
380
+
381
+ &:hover,
382
+ &:focus,
383
+ &:active {
384
+ color: $state-color;
385
+ border-color: $state-color;
386
+ }
387
+ }
388
+
389
+ &.btn-neutral {
390
+ color: $color;
391
+ background-color: $white;
392
+
393
+ &:hover,
394
+ &:focus,
395
+ &:active {
396
+ color: $state-color;
397
+ }
398
+ }
399
+ }
400
+
1
401
  // Button variants
2
402
  //
403
+ // copied from bootsrap and customised too
3
404
  // Easily pump out default styles, as well as :hover, :focus, :active,
4
405
  // and disabled options for all buttons
5
406
 
6
- @mixin button-variant(
7
- $background,
407
+ @mixin button-variant($background,
8
408
  $border,
9
409
  $hover-background: darken($background, 7.5%),
10
410
  $hover-border: darken($border, 10%),
11
411
  $active-background: darken($background, 10%),
12
- $active-border: darken($border, 12.5%)
13
- ) {
412
+ $active-border: darken($border, 12.5%)) {
14
413
  color: color-yiq($background);
15
414
  @include gradient-bg($background);
16
415
  border-color: $border;
@@ -27,19 +426,15 @@
27
426
  color: color-yiq($hover-background);
28
427
  @include gradient-bg($hover-background);
29
428
  border-color: $hover-border;
429
+
30
430
  @if $enable-shadows {
31
- @include box-shadow(
32
- $btn-box-shadow,
33
- 0 0 0 $btn-focus-width
34
- rgba(mix(color-yiq($background), $border, 15%), 0.5)
35
- );
36
- } @else {
431
+ @include box-shadow($btn-box-shadow,
432
+ 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), 0.5));
433
+ }
434
+
435
+ @else {
37
436
  // Avoid using mixin so we can pass custom focus shadow properly
38
- box-shadow: 0
39
- 0
40
- 0
41
- $btn-focus-width
42
- rgba(mix(color-yiq($background), $border, 15%), 0.5);
437
+ box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), 0.5);
43
438
  }
44
439
  }
45
440
 
@@ -49,6 +444,7 @@
49
444
  color: color-yiq($background);
50
445
  background-color: $background;
51
446
  border-color: $border;
447
+
52
448
  // Remove CSS gradients if they're enabled
53
449
  @if $enable-gradients {
54
450
  background-image: none;
@@ -57,39 +453,34 @@
57
453
 
58
454
  &:not(:disabled):not(.disabled):active,
59
455
  &:not(:disabled):not(.disabled).active,
60
- .show > &.dropdown-toggle {
456
+ .show>&.dropdown-toggle {
61
457
  color: color-yiq($active-background);
62
458
  background-color: $active-background;
459
+
63
460
  @if $enable-gradients {
64
461
  background-image: none; // Remove the gradient for the pressed/active state
65
462
  }
463
+
66
464
  border-color: $active-border;
67
465
 
68
466
  &:focus {
69
- @if $enable-shadows and $btn-active-box-shadow != none {
70
- @include box-shadow(
71
- $btn-active-box-shadow,
72
- 0 0 0 $btn-focus-width
73
- rgba(mix(color-yiq($background), $border, 15%), 0.5)
74
- );
75
- } @else {
467
+ @if $enable-shadows and $btn-active-box-shadow !=none {
468
+ @include box-shadow($btn-active-box-shadow,
469
+ 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), 0.5));
470
+ }
471
+
472
+ @else {
76
473
  // Avoid using mixin so we can pass custom focus shadow properly
77
- box-shadow: 0
78
- 0
79
- 0
80
- $btn-focus-width
81
- rgba(mix(color-yiq($background), $border, 15%), 0.5);
474
+ box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), 0.5);
82
475
  }
83
476
  }
84
477
  }
85
478
  }
86
479
 
87
- @mixin button-outline-variant(
88
- $color,
480
+ @mixin button-outline-variant($color,
89
481
  $color-hover: color-yiq($color),
90
482
  $active-background: $color,
91
- $active-border: $color
92
- ) {
483
+ $active-border: $color) {
93
484
  color: $color;
94
485
  border-color: $color;
95
486
 
@@ -112,18 +503,18 @@
112
503
 
113
504
  &:not(:disabled):not(.disabled):active,
114
505
  &:not(:disabled):not(.disabled).active,
115
- .show > &.dropdown-toggle {
506
+ .show>&.dropdown-toggle {
116
507
  color: color-yiq($active-background);
117
508
  background-color: $active-background;
118
509
  border-color: $active-border;
119
510
 
120
511
  &:focus {
121
- @if $enable-shadows and $btn-active-box-shadow != none {
122
- @include box-shadow(
123
- $btn-active-box-shadow,
124
- 0 0 0 $btn-focus-width rgba($color, 0.5)
125
- );
126
- } @else {
512
+ @if $enable-shadows and $btn-active-box-shadow !=none {
513
+ @include box-shadow($btn-active-box-shadow,
514
+ 0 0 0 $btn-focus-width rgba($color, 0.5));
515
+ }
516
+
517
+ @else {
127
518
  // Avoid using mixin so we can pass custom focus shadow properly
128
519
  box-shadow: 0 0 0 $btn-focus-width rgba($color, 0.5);
129
520
  }
@@ -132,13 +523,11 @@
132
523
  }
133
524
 
134
525
  // Button sizes
135
- @mixin button-size(
136
- $padding-y,
526
+ @mixin button-size($padding-y,
137
527
  $padding-x,
138
528
  $font-size,
139
529
  $line-height,
140
- $border-radius
141
- ) {
530
+ $border-radius) {
142
531
  padding: $padding-y $padding-x;
143
532
  @include font-size($font-size);
144
533
  line-height: $line-height;
@@ -150,4 +539,4 @@
150
539
  // t.ly/8b37
151
540
  @mixin set-gradient-button($arg) {
152
541
  @extend %btn-gradient#{$arg};
153
- }
542
+ }