titon-toolkit 1.5.3 → 2.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/changelog.md +180 -61
  3. data/license.md +1 -1
  4. data/readme.md +7 -7
  5. data/roadmap.md +4 -20
  6. data/scss/toolkit/_common.scss +426 -73
  7. data/scss/toolkit/{layout/base.scss → base.scss} +13 -25
  8. data/scss/toolkit/components/accordion.scss +6 -6
  9. data/scss/toolkit/components/blackout.scss +13 -11
  10. data/scss/toolkit/components/breadcrumb.scss +2 -2
  11. data/scss/toolkit/components/button-group.scss +130 -51
  12. data/scss/toolkit/components/button.scss +110 -9
  13. data/scss/toolkit/components/carousel.scss +20 -46
  14. data/scss/toolkit/{layout → components}/code.scss +1 -1
  15. data/scss/toolkit/components/divider.scss +24 -23
  16. data/scss/toolkit/components/drop.scss +35 -26
  17. data/scss/toolkit/components/flyout.scss +5 -10
  18. data/scss/toolkit/{layout → components}/form.scss +72 -65
  19. data/scss/toolkit/components/grid.scss +21 -116
  20. data/scss/toolkit/components/icon.scss +27 -13
  21. data/scss/toolkit/components/input-group.scss +4 -6
  22. data/scss/toolkit/components/input.scss +21 -21
  23. data/scss/toolkit/components/label.scss +76 -66
  24. data/scss/toolkit/components/lazy-load.scss +2 -2
  25. data/scss/toolkit/components/loader.scss +8 -8
  26. data/scss/toolkit/components/mask.scss +5 -9
  27. data/scss/toolkit/components/matrix.scss +4 -4
  28. data/scss/toolkit/components/modal.scss +33 -40
  29. data/scss/toolkit/components/notice.scss +5 -9
  30. data/scss/toolkit/components/off-canvas.scss +80 -60
  31. data/scss/toolkit/components/pagination.scss +75 -34
  32. data/scss/toolkit/components/pin.scss +7 -3
  33. data/scss/toolkit/components/popover.scss +14 -14
  34. data/scss/toolkit/components/progress.scss +25 -14
  35. data/scss/toolkit/{layout → components}/responsive.scss +31 -37
  36. data/scss/toolkit/components/showcase.scss +10 -36
  37. data/scss/toolkit/components/step.scss +7 -7
  38. data/scss/toolkit/components/switch.scss +47 -33
  39. data/scss/toolkit/components/tab.scss +42 -0
  40. data/scss/toolkit/components/table.scss +27 -25
  41. data/scss/toolkit/components/toast.scss +13 -9
  42. data/scss/toolkit/components/tooltip.scss +15 -16
  43. data/scss/toolkit/components/type-ahead.scss +6 -6
  44. data/scss/toolkit/{layout → components}/typography.scss +2 -2
  45. data/scss/toolkit/mixins/_components.scss +12 -6
  46. data/scss/toolkit/mixins/_grid.scss +5 -1
  47. data/scss/toolkit/mixins/_helper.scss +42 -3
  48. data/scss/toolkit/mixins/_layout.scss +22 -13
  49. data/scss/toolkit/mixins/_responsive.scss +39 -39
  50. data/scss/toolkit.scss +12 -18
  51. data/version.md +1 -1
  52. metadata +16 -22
  53. data/scss/toolkit/components/tabs.scss +0 -43
  54. data/scss/toolkit/effects/oval.scss +0 -37
  55. data/scss/toolkit/effects/pill.scss +0 -94
  56. data/scss/toolkit/effects/skew.scss +0 -85
  57. data/scss/toolkit/effects/visual.scss +0 -64
  58. data/scss/toolkit/mixins/_state.scss +0 -36
  59. data/scss/toolkit/themes/demo.scss +0 -569
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
7
  @import "../common";
8
8
 
9
- .#{$vendor-prefix}input-group {
9
+ #{$inputGroup-class} {
10
10
  display: inline-block;
11
11
  vertical-align: middle;
12
12
  white-space: nowrap;
@@ -16,12 +16,10 @@
16
16
  display: inline-block;
17
17
  position: relative;
18
18
  border-radius: 0;
19
- margin-right: -1px;
20
19
  white-space: nowrap;
21
20
  height: auto;
22
21
  vertical-align: middle;
23
22
 
24
- &:last-child { margin-right: 0; }
25
23
  &:hover { z-index: 1; }
26
24
  &:focus { z-index: 2; }
27
25
  }
@@ -29,7 +27,7 @@
29
27
  @include clear-fix;
30
28
  }
31
29
 
32
- .#{$vendor-prefix}input-addon {
30
+ #{$inputGroup-class-addon} {
33
31
  vertical-align: middle;
34
32
  line-height: normal;
35
33
  @include size-medium;
@@ -40,7 +38,7 @@
40
38
 
41
39
  //-------------------- Modifiers --------------------//
42
40
 
43
- .#{$vendor-prefix}input-group.#{$shape-round-class} {
41
+ #{$inputGroup-class}#{$shape-round-class} {
44
42
  > *:first-child {
45
43
  border-top-left-radius: $round;
46
44
  border-bottom-left-radius: $round;
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
7
  @import "../common";
8
8
 
9
- .#{$vendor-prefix}custom-input {
9
+ #{$input-class} {
10
10
  @include reset-inline-block;
11
11
  }
12
12
 
13
13
  // Checkbox, radio
14
- .#{$vendor-prefix}custom-input {
15
- .#{$vendor-prefix}checkbox,
16
- .#{$vendor-prefix}radio {
14
+ #{$input-class} {
15
+ #{$input-class-checkbox},
16
+ #{$input-class-radio} {
17
17
  @include reset-inline-block;
18
18
  background: $gray-lightest;
19
19
  border: 1px solid $gray-dark;
@@ -26,21 +26,21 @@
26
26
  &:hover { border-color: $gray-darkest; }
27
27
  }
28
28
 
29
- .#{$vendor-prefix}radio { border-radius: 50%; }
29
+ #{$input-class-radio} { border-radius: 50%; }
30
30
 
31
31
  input {
32
32
  display: none;
33
33
 
34
34
  // Style when the checkbox is checked
35
- &:checked + .#{$vendor-prefix}checkbox,
36
- &:checked + .#{$vendor-prefix}radio {
35
+ &:checked + #{$input-class-checkbox},
36
+ &:checked + #{$input-class-radio} {
37
37
  border-color: $info;
38
38
  background: $info-light;
39
39
  }
40
40
 
41
41
  // Style when input is disabled
42
- &[disabled] + .#{$vendor-prefix}checkbox,
43
- &[disabled] + .#{$vendor-prefix}radio {
42
+ &[disabled] + #{$input-class-checkbox},
43
+ &[disabled] + #{$input-class-radio} {
44
44
  cursor: not-allowed;
45
45
  border-color: $gray;
46
46
  }
@@ -48,8 +48,8 @@
48
48
  }
49
49
 
50
50
  // Select
51
- .#{$vendor-prefix}custom-input {
52
- .#{$vendor-prefix}select {
51
+ #{$input-class} {
52
+ #{$input-class-select} {
53
53
  @include reset-inline-block;
54
54
  cursor: pointer;
55
55
  background: $gray-lightest;
@@ -64,15 +64,15 @@
64
64
  }
65
65
  }
66
66
 
67
- .#{$vendor-prefix}select-label,
68
- .#{$vendor-prefix}select-arrow {
67
+ #{$input-class-select-label},
68
+ #{$input-class-select-arrow} {
69
69
  display: inline-block;
70
70
  vertical-align: middle;
71
71
  line-height: normal;
72
72
  @include size-medium;
73
73
  }
74
74
 
75
- .#{$vendor-prefix}select-arrow {
75
+ #{$input-class-select-arrow} {
76
76
  float: right;
77
77
 
78
78
  .caret-down { border-top-color: #000; }
@@ -88,27 +88,27 @@
88
88
  width: 100%;
89
89
 
90
90
  // Style when the select is hovered
91
- &:hover + .#{$vendor-prefix}select {
91
+ &:hover + #{$input-class-select} {
92
92
  border-color: $gray-darkest;
93
93
  }
94
94
 
95
95
  // Style when the select is focused
96
- &:focus + .#{$vendor-prefix}select {
96
+ &:focus + #{$input-class-select} {
97
97
  border-color: $info;
98
98
  }
99
99
 
100
100
  // Style when select is disabled
101
- &[disabled] + .#{$vendor-prefix}select {
101
+ &[disabled] + #{$input-class-select} {
102
102
  cursor: not-allowed;
103
103
  color: $gray-darkest;
104
104
  border-color: $gray;
105
105
 
106
- .#{$vendor-prefix}select-arrow { opacity: $default-opacity; }
106
+ #{$input-class-select-arrow} { opacity: $default-opacity; }
107
107
  }
108
108
  }
109
109
 
110
110
  // Select dropdown
111
- .#{$vendor-prefix}select-options {
111
+ #{$input-class-select-options} {
112
112
  max-height: 300px;
113
113
  overflow: auto;
114
114
 
@@ -126,7 +126,7 @@
126
126
  }
127
127
 
128
128
  &.hide-first {
129
- li:first-child:not(.#{$vendor-prefix}drop-heading) { display: none !important; }
129
+ li:first-child:not(#{$drop-class-heading}) { display: none !important; }
130
130
  }
131
131
  }
132
132
  }
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
7
  @import "../common";
8
8
 
9
- .#{$vendor-prefix}label {
9
+ #{$label-class} {
10
10
  @include reset-inline-block;
11
11
  font-size: .7rem;
12
12
  line-height: 100%;
@@ -30,7 +30,7 @@
30
30
 
31
31
  &:empty { display: none; }
32
32
 
33
- &:after {
33
+ &::after {
34
34
  content: "";
35
35
  height: 0;
36
36
  width: 0;
@@ -40,78 +40,88 @@
40
40
 
41
41
  //-------------------- Modifiers --------------------//
42
42
 
43
- .#{$vendor-prefix}label--badge {
44
- @extend .#{$vendor-prefix}label;
45
-
46
- border-radius: 1rem;
43
+ @if index($label-modifiers, "badge") {
44
+ #{$label-class-modifier-badge} {
45
+ border-radius: 1rem;
46
+ }
47
47
  }
48
48
 
49
- .#{$vendor-prefix}label--arrow-left {
50
- @extend .#{$vendor-prefix}label;
51
-
52
- border-top-left-radius: 1px;
53
- border-bottom-left-radius: 1px;
54
- padding-left: 2px;
55
- margin-left: 10px;
56
-
57
- &:after {
58
- top: 0;
59
- right: 100%;
60
- border: .65rem solid transparent;
61
- border-right-color: $gray-dark;
49
+ @if index($label-modifiers, "arrow-left") {
50
+ #{$label-class-modifier-arrow-left} {
51
+ border-top-left-radius: 0;
52
+ border-bottom-left-radius: 0;
53
+ padding-left: 2px;
54
+ margin-left: 10px;
55
+
56
+ &::after {
57
+ top: 0;
58
+ right: 100%;
59
+ border: .65rem solid transparent;
60
+ border-right-color: $gray-dark;
61
+ }
62
+
63
+ @include is-small {
64
+ &::after { border-width: .5rem; }
65
+ }
66
+
67
+ @include is-large {
68
+ &::after { border-width: .75rem; }
69
+ }
62
70
  }
63
-
64
- &.#{$size-small-class}:after { border-width: .5rem; }
65
- &.#{$size-large-class}:after { border-width: .75rem; }
66
71
  }
67
72
 
68
- .#{$vendor-prefix}label--arrow-right {
69
- @extend .#{$vendor-prefix}label;
70
-
71
- border-top-right-radius: 1px;
72
- border-bottom-right-radius: 1px;
73
- padding-right: 2px;
74
- margin-right: 10px;
75
-
76
- &:after {
77
- top: 0;
78
- left: 100%;
79
- border: .65rem solid transparent;
80
- border-left-color: $gray-dark;
73
+ @if index($label-modifiers, "arrow-right") {
74
+ #{$label-class-modifier-arrow-right} {
75
+ border-top-right-radius: 0;
76
+ border-bottom-right-radius: 0;
77
+ padding-right: 2px;
78
+ margin-right: 10px;
79
+
80
+ &::after {
81
+ top: 0;
82
+ left: 100%;
83
+ border: .65rem solid transparent;
84
+ border-left-color: $gray-dark;
85
+ }
86
+
87
+ @include is-small {
88
+ &::after { border-width: .5rem; }
89
+ }
90
+
91
+ @include is-large {
92
+ &::after { border-width: .75rem; }
93
+ }
81
94
  }
82
-
83
- &.#{$size-small-class}:after { border-width: .5rem; }
84
- &.#{$size-large-class}:after { border-width: .75rem; }
85
95
  }
86
96
 
87
- .#{$vendor-prefix}label--ribbon-left {
88
- @extend .#{$vendor-prefix}label;
89
-
90
- border-top-left-radius: 0;
91
- border-bottom-left-radius: 0;
92
-
93
- &:after {
94
- top: 100%;
95
- left: 0;
96
- border: 1em solid transparent;
97
- border-top-width: 0 !important;
98
- border-left-width: 0 !important;
99
- border-right-color: $gray-darkest;
97
+ @if index($label-modifiers, "ribbon-left") {
98
+ #{$label-class-modifier-ribbon-left} {
99
+ border-top-left-radius: 0;
100
+ border-bottom-left-radius: 0;
101
+
102
+ &::after {
103
+ top: 100%;
104
+ left: 0;
105
+ border: 1em solid transparent;
106
+ border-top-width: 0 !important;
107
+ border-left-width: 0 !important;
108
+ border-right-color: $gray-darkest;
109
+ }
100
110
  }
101
111
  }
102
112
 
103
- .#{$vendor-prefix}label--ribbon-right {
104
- @extend .#{$vendor-prefix}label;
105
-
106
- border-top-right-radius: 0;
107
- border-bottom-right-radius: 0;
108
-
109
- &:after {
110
- top: 100%;
111
- right: 0;
112
- border: 1em solid transparent;
113
- border-top-width: 0 !important;
114
- border-right-width: 0 !important;
115
- border-left-color: $gray-darkest;
113
+ @if index($label-modifiers, "ribbon-right") {
114
+ #{$label-class-modifier-ribbon-right} {
115
+ border-top-right-radius: 0;
116
+ border-bottom-right-radius: 0;
117
+
118
+ &::after {
119
+ top: 100%;
120
+ right: 0;
121
+ border: 1em solid transparent;
122
+ border-top-width: 0 !important;
123
+ border-right-width: 0 !important;
124
+ border-left-color: $gray-darkest;
125
+ }
116
126
  }
117
- }
127
+ }
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
7
  @import "../common";
8
8
 
9
- .#{$vendor-prefix}lazy-load {
9
+ #{$lazyLoad-class} {
10
10
  background-image: none !important;
11
11
  transition: background-image $lazyLoad-transition;
12
12
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
@@ -9,7 +9,7 @@
9
9
  // Based on SpinKit
10
10
  // http://tobiasahlin.com/spinkit/
11
11
 
12
- .#{$vendor-prefix}loader {
12
+ #{$loader-class} {
13
13
  @include reset-inline-block;
14
14
  margin: 0 auto;
15
15
  text-align: center;
@@ -20,7 +20,7 @@
20
20
  }
21
21
  }
22
22
 
23
- .#{$vendor-prefix}loader-message {
23
+ #{$loader-class-message} {
24
24
  margin-top: 1rem;
25
25
  }
26
26
 
@@ -36,7 +36,7 @@
36
36
  }
37
37
  }
38
38
 
39
- .#{$vendor-prefix}loader.bar-wave {
39
+ #{$loader-class}.bar-wave {
40
40
  > span {
41
41
  background: $loader-color;
42
42
  height: $loader-bar-height;
@@ -48,7 +48,7 @@
48
48
  }
49
49
  }
50
50
 
51
- .#{$vendor-prefix}loader-message {
51
+ #{$loader-class-message} {
52
52
  margin-top: 1.5rem;
53
53
  }
54
54
  }
@@ -66,7 +66,7 @@
66
66
  }
67
67
  }
68
68
 
69
- .#{$vendor-prefix}loader.bubble-wave {
69
+ #{$loader-class}.bubble-wave {
70
70
  > span {
71
71
  background: $loader-color;
72
72
  width: $loader-bubble-size;
@@ -94,8 +94,8 @@
94
94
  }
95
95
  }
96
96
 
97
- .#{$vendor-prefix}loader.bubble-spinner {
98
- .#{$vendor-prefix}loader-spinner {
97
+ #{$loader-class}.bubble-spinner {
98
+ #{$loader-class-spinner} {
99
99
  width: 100px;
100
100
  height: 100px;
101
101
  position: relative;
@@ -1,17 +1,13 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
7
  @import "../common";
8
8
 
9
- .#{$vendor-prefix}mask {
10
- position: absolute;
11
- top: 0;
12
- left: 0;
13
- height: 100%;
14
- width: 100%;
9
+ #{$mask-class} {
10
+ @include full-screen(absolute);
15
11
  z-index: $mask-zindex;
16
12
  opacity: 0;
17
13
  visibility: hidden;
@@ -21,7 +17,7 @@
21
17
  user-select: none;
22
18
  }
23
19
 
24
- .#{$vendor-prefix}mask-message {
20
+ #{$mask-class-message} {
25
21
  text-align: center;
26
22
  max-width: 80%;
27
23
  @include position-center;
@@ -29,7 +25,7 @@
29
25
  &:empty { display: none; }
30
26
  }
31
27
 
32
- .#{$vendor-prefix}mask-target {
28
+ #{$mask-class-target} {
33
29
  overflow: hidden;
34
30
 
35
31
  // Fixes issues where mask does not display in iOS
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
7
  @import "../common";
8
8
 
9
- .#{$vendor-prefix}matrix {
9
+ #{$matrix-class} {
10
10
  @include reset-list;
11
11
  position: relative;
12
12
 
@@ -14,10 +14,10 @@
14
14
  float: left;
15
15
  margin: 0;
16
16
  padding: 0;
17
- transition: top $matrix-transition, left $matrix-transition, bottom $matrix-transition, right $matrix-transition, opacity $matrix-transition;
17
+ transition: top $matrix-transition, left $matrix-transition, bottom $matrix-transition, right $matrix-transition, opacity $matrix-transition, visibility $matrix-transition;
18
18
  }
19
19
 
20
- &.has-no-columns > li {
20
+ &.no-columns > li {
21
21
  position: relative !important;
22
22
  }
23
23
 
@@ -1,17 +1,13 @@
1
1
  /**
2
- * @copyright 2010-2014, The Titon Project
2
+ * @copyright 2010-2015, The Titon Project
3
3
  * @license http://opensource.org/licenses/BSD-3-Clause
4
4
  * @link http://titon.io
5
5
  */
6
6
 
7
7
  @import "../common";
8
8
 
9
- .#{$vendor-prefix}modal {
10
- position: fixed;
11
- top: 0;
12
- left: 0;
13
- width: 100%;
14
- height: 100%;
9
+ #{$modal-class} {
10
+ @include full-screen();
15
11
  opacity: 0;
16
12
  visibility: hidden;
17
13
  z-index: $modal-zindex;
@@ -20,16 +16,16 @@
20
16
  -webkit-overflow-scrolling: touch;
21
17
 
22
18
  &.is-loading {
23
- .#{$vendor-prefix}modal-close { display: none; }
19
+ #{$modal-class-close} { display: none; }
24
20
  }
25
21
 
26
22
  &.is-draggable {
27
- .#{$vendor-prefix}modal-inner { cursor: default; }
28
- .#{$vendor-prefix}modal-head { cursor: move; }
23
+ #{$modal-class-inner} { cursor: default; }
24
+ #{$modal-class-head} { cursor: move; }
29
25
  }
30
26
  }
31
27
 
32
- .#{$vendor-prefix}modal-close {
28
+ #{$modal-class-close} {
33
29
  position: absolute;
34
30
  background: none;
35
31
  border: 0;
@@ -42,7 +38,7 @@
42
38
  &:hover { opacity: 1; }
43
39
  }
44
40
 
45
- .#{$vendor-prefix}modal-outer {
41
+ #{$modal-class-outer} {
46
42
  position: relative;
47
43
  margin: $margin;
48
44
  transition: transform $modal-transition;
@@ -53,99 +49,96 @@
53
49
  }
54
50
  }
55
51
 
56
- .#{$vendor-prefix}modal-inner {
52
+ #{$modal-class-inner} {
57
53
  position: relative;
58
54
  }
59
55
 
60
- .#{$vendor-prefix}modal-head,
61
- .#{$vendor-prefix}modal-body,
62
- .#{$vendor-prefix}modal-foot {
56
+ #{$modal-class-head},
57
+ #{$modal-class-body},
58
+ #{$modal-class-foot} {
63
59
  padding: $padding;
64
60
  }
65
61
 
66
62
  //-------------------- Modifiers --------------------//
67
63
 
68
- .#{$vendor-prefix}modal.is-fullscreen .#{$vendor-prefix}modal-outer {
69
- top: 0;
70
- left: 0;
64
+ #{$modal-class}.is-fullscreen #{$modal-class-outer} {
65
+ @include full-screen("");
71
66
  margin: 0;
72
- width: 100%;
73
67
  max-width: 100%;
74
- max-height: auto;
75
68
  border-radius: 0;
76
69
  transform: translate(0, 0);
77
70
  }
78
71
 
79
72
  //-------------------- Animations --------------------//
80
73
 
81
- .#{$vendor-prefix}modal {
82
- @if index($modal-animation, "from-above") {
74
+ #{$modal-class} {
75
+ @if index($modal-animations, "from-above") {
83
76
  &.from-above {
84
- .#{$vendor-prefix}modal-outer {
77
+ #{$modal-class-outer} {
85
78
  transform: scale(1.3);
86
79
  }
87
80
 
88
- &.show .#{$vendor-prefix}modal-outer {
81
+ &.show #{$modal-class-outer} {
89
82
  transform: scale(1);
90
83
  }
91
84
  }
92
85
  }
93
86
 
94
- @if index($modal-animation, "from-below") {
87
+ @if index($modal-animations, "from-below") {
95
88
  &.from-below {
96
- .#{$vendor-prefix}modal-outer {
89
+ #{$modal-class-outer} {
97
90
  transform: scale(0.7);
98
91
  }
99
92
 
100
- &.show .#{$vendor-prefix}modal-outer {
93
+ &.show #{$modal-class-outer} {
101
94
  transform: scale(1);
102
95
  }
103
96
  }
104
97
  }
105
98
 
106
- @if index($modal-animation, "slide-in-top") {
99
+ @if index($modal-animations, "slide-in-top") {
107
100
  &.slide-in-top {
108
- .#{$vendor-prefix}modal-outer {
101
+ #{$modal-class-outer} {
109
102
  transform: translateY(-50%);
110
103
  }
111
104
 
112
- &.show .#{$vendor-prefix}modal-outer {
105
+ &.show #{$modal-class-outer} {
113
106
  transform: translateY(0);
114
107
  }
115
108
  }
116
109
  }
117
110
 
118
- @if index($modal-animation, "slide-in-bottom") {
111
+ @if index($modal-animations, "slide-in-bottom") {
119
112
  &.slide-in-bottom {
120
- .#{$vendor-prefix}modal-outer {
113
+ #{$modal-class-outer} {
121
114
  transform: translateY(50%);
122
115
  }
123
116
 
124
- &.show .#{$vendor-prefix}modal-outer {
117
+ &.show #{$modal-class-outer} {
125
118
  transform: translateY(0);
126
119
  }
127
120
  }
128
121
  }
129
122
 
130
- @if index($modal-animation, "slide-in-left") {
123
+ @if index($modal-animations, "slide-in-left") {
131
124
  &.slide-in-left {
132
- .#{$vendor-prefix}modal-outer {
125
+ #{$modal-class-outer} {
133
126
  transform: translateX(-25%);
134
127
  }
135
128
 
136
- &.show .#{$vendor-prefix}modal-outer {
129
+ &.show #{$modal-class-outer} {
137
130
  transform: translateX(0);
138
131
  }
139
132
  }
140
133
  }
141
134
 
142
- @if index($modal-animation, "slide-in-right") {
135
+ @if index($modal-animations, "slide-in-right") {
143
136
  &.slide-in-right {
144
- .#{$vendor-prefix}modal-outer {
137
+ #{$modal-class-outer} {
145
138
  transform: translateX(25%);
146
139
  }
147
140
 
148
- &.show .#{$vendor-prefix}modal-outer {
141
+ &.show #{$modal-class-outer} {
149
142
  transform: translateX(0);
150
143
  }
151
144
  }