tao_ui 0.3.4 → 1.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tao_ui/components/tree/item_component.rb +20 -12
  3. data/lib/tao_ui/components/tree_component.rb +1 -1
  4. data/lib/tao_ui/engine.rb +0 -1
  5. data/lib/tao_ui/version.rb +1 -1
  6. data/lib/views/components/tao_ui/components/_dialog.html.erb +2 -2
  7. data/lib/views/components/tao_ui/components/_slide_box.html.erb +1 -1
  8. metadata +7 -157
  9. data/config/autoprefixer.yml +0 -7
  10. data/lib/assets/icons/Loading.svg +0 -19
  11. data/lib/assets/icons/close.svg +0 -12
  12. data/lib/assets/javascripts/tao/ui/dialog/confirm.coffee +0 -13
  13. data/lib/assets/javascripts/tao/ui/dialog/element.coffee +0 -115
  14. data/lib/assets/javascripts/tao/ui/dialog/index.coffee +0 -16
  15. data/lib/assets/javascripts/tao/ui/dialog/message.coffee +0 -13
  16. data/lib/assets/javascripts/tao/ui/icons/base.coffee +0 -5
  17. data/lib/assets/javascripts/tao/ui/icons/index.coffee +0 -20
  18. data/lib/assets/javascripts/tao/ui/index.coffee +0 -12
  19. data/lib/assets/javascripts/tao/ui/mobile/index.coffee +0 -6
  20. data/lib/assets/javascripts/tao/ui/mobile/slide_box/element.coffee +0 -7
  21. data/lib/assets/javascripts/tao/ui/mobile/slide_box/index.coffee +0 -2
  22. data/lib/assets/javascripts/tao/ui/popover/confirm.coffee +0 -23
  23. data/lib/assets/javascripts/tao/ui/popover/create.coffee +0 -18
  24. data/lib/assets/javascripts/tao/ui/popover/direction.coffee +0 -76
  25. data/lib/assets/javascripts/tao/ui/popover/element.coffee +0 -198
  26. data/lib/assets/javascripts/tao/ui/popover/index.coffee +0 -16
  27. data/lib/assets/javascripts/tao/ui/popover/position.coffee +0 -80
  28. data/lib/assets/javascripts/tao/ui/shared/slide_box/element/base.coffee +0 -118
  29. data/lib/assets/javascripts/tao/ui/shared/slide_box/export.coffee +0 -11
  30. data/lib/assets/javascripts/tao/ui/shared/ujs.coffee +0 -51
  31. data/lib/assets/javascripts/tao/ui/slide_box/element.coffee +0 -9
  32. data/lib/assets/javascripts/tao/ui/slide_box/index.coffee +0 -2
  33. data/lib/assets/javascripts/tao/ui/sortable.coffee +0 -147
  34. data/lib/assets/javascripts/tao/ui/table/element.coffee +0 -13
  35. data/lib/assets/javascripts/tao/ui/table/expandable.coffee +0 -62
  36. data/lib/assets/javascripts/tao/ui/table/index.coffee +0 -6
  37. data/lib/assets/javascripts/tao/ui/table/selectable.coffee +0 -52
  38. data/lib/assets/javascripts/tao/ui/tooltip.coffee +0 -5
  39. data/lib/assets/javascripts/tao/ui/tree/element.coffee +0 -58
  40. data/lib/assets/javascripts/tao/ui/tree/index.coffee +0 -5
  41. data/lib/assets/javascripts/tao/ui/tree/item.coffee +0 -93
  42. data/lib/assets/stylesheets/tao/ui/_custom.scss +0 -1
  43. data/lib/assets/stylesheets/tao/ui/_globals.scss +0 -3
  44. data/lib/assets/stylesheets/tao/ui/_mixins.scss +0 -2
  45. data/lib/assets/stylesheets/tao/ui/_variables.scss +0 -4
  46. data/lib/assets/stylesheets/tao/ui/basic.scss +0 -30
  47. data/lib/assets/stylesheets/tao/ui/buttons.scss +0 -8
  48. data/lib/assets/stylesheets/tao/ui/code.scss +0 -2
  49. data/lib/assets/stylesheets/tao/ui/dialog.scss +0 -117
  50. data/lib/assets/stylesheets/tao/ui/icons.scss +0 -2
  51. data/lib/assets/stylesheets/tao/ui/index.scss +0 -13
  52. data/lib/assets/stylesheets/tao/ui/mobile/_custom.scss +0 -1
  53. data/lib/assets/stylesheets/tao/ui/mobile/_globals.scss +0 -3
  54. data/lib/assets/stylesheets/tao/ui/mobile/_mixins.scss +0 -2
  55. data/lib/assets/stylesheets/tao/ui/mobile/_variables.scss +0 -3
  56. data/lib/assets/stylesheets/tao/ui/mobile/basic.scss +0 -24
  57. data/lib/assets/stylesheets/tao/ui/mobile/buttons.scss +0 -8
  58. data/lib/assets/stylesheets/tao/ui/mobile/code.scss +0 -2
  59. data/lib/assets/stylesheets/tao/ui/mobile/icons.scss +0 -2
  60. data/lib/assets/stylesheets/tao/ui/mobile/index.scss +0 -7
  61. data/lib/assets/stylesheets/tao/ui/mobile/slide_box.scss +0 -56
  62. data/lib/assets/stylesheets/tao/ui/mobile/tables.scss +0 -2
  63. data/lib/assets/stylesheets/tao/ui/mobile/variables/_base.scss +0 -10
  64. data/lib/assets/stylesheets/tao/ui/mobile/variables/_buttons.scss +0 -7
  65. data/lib/assets/stylesheets/tao/ui/popover.scss +0 -206
  66. data/lib/assets/stylesheets/tao/ui/shared/_basic.scss +0 -127
  67. data/lib/assets/stylesheets/tao/ui/shared/_buttons.scss +0 -65
  68. data/lib/assets/stylesheets/tao/ui/shared/_code.scss +0 -54
  69. data/lib/assets/stylesheets/tao/ui/shared/_icons.scss +0 -16
  70. data/lib/assets/stylesheets/tao/ui/shared/_slide_box.scss +0 -83
  71. data/lib/assets/stylesheets/tao/ui/shared/_tables.scss +0 -38
  72. data/lib/assets/stylesheets/tao/ui/shared/mixins/_base.scss +0 -6
  73. data/lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss +0 -40
  74. data/lib/assets/stylesheets/tao/ui/shared/variables/_base.scss +0 -49
  75. data/lib/assets/stylesheets/tao/ui/shared/variables/_buttons.scss +0 -99
  76. data/lib/assets/stylesheets/tao/ui/shared/variables/_tables.scss +0 -4
  77. data/lib/assets/stylesheets/tao/ui/slide_box.scss +0 -39
  78. data/lib/assets/stylesheets/tao/ui/sortable.scss +0 -16
  79. data/lib/assets/stylesheets/tao/ui/tables.scss +0 -89
  80. data/lib/assets/stylesheets/tao/ui/tabs.scss +0 -23
  81. data/lib/assets/stylesheets/tao/ui/tooltip.scss +0 -147
  82. data/lib/assets/stylesheets/tao/ui/tree.scss +0 -128
  83. data/lib/assets/stylesheets/tao/ui/variables/_base.scss +0 -10
  84. data/lib/assets/stylesheets/tao/ui/variables/_tree.scss +0 -2
  85. data/lib/generators/tao/icons/USAGE +0 -8
  86. data/lib/generators/tao/icons/icons_generator.rb +0 -56
  87. data/lib/generators/tao/icons/templates/icons.coffee.erb +0 -3
  88. data/vendor/assets/stylesheets/normalize.css +0 -427
@@ -1,24 +0,0 @@
1
- @import 'tao/ui/mobile/globals';
2
- @import 'tao/ui/shared/basic';
3
-
4
- // Avoid 300ms click delay on touch devices that support the `touch-action` CSS property.
5
- //
6
- // In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11
7
- // DON'T remove the click delay when `<meta name="viewport" content="width=device-width">` is present.
8
- // However, they DO support removing the click delay via `touch-action: manipulation`.
9
- // See:
10
- // * https://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
11
- // * http://caniuse.com/#feat=css-touch-action
12
- // * https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
13
-
14
- a,
15
- area,
16
- button,
17
- [role="button"],
18
- input,
19
- label,
20
- select,
21
- summary,
22
- textarea {
23
- touch-action: manipulation;
24
- }
@@ -1,8 +0,0 @@
1
- @import 'tao/ui/mobile/globals';
2
- @import 'tao/ui/shared/buttons';
3
-
4
- .button {
5
- &.text-with-icon {
6
- padding-left: 1.125em;
7
- }
8
- }
@@ -1,2 +0,0 @@
1
- @import 'tao/ui/mobile/globals';
2
- @import 'tao/ui/shared/code';
@@ -1,2 +0,0 @@
1
- @import 'tao/ui/mobile/globals';
2
- @import 'tao/ui/shared/icons';
@@ -1,7 +0,0 @@
1
- //= require normalize
2
- //= require ./icons
3
- //= require ./basic
4
- //= require ./code
5
- //= require ./buttons
6
- //= require ./tables
7
- //= require ./slide_box
@@ -1,56 +0,0 @@
1
- @import 'tao/ui/mobile/globals';
2
- @import 'tao/ui/shared/slide_box';
3
-
4
- .tao-slide-box {
5
- .slide-box-content {
6
- & > header,
7
- & > .header {
8
- height: 3rem;
9
- background: $white-color;
10
- display: flex;
11
- align-items: center;
12
- justify-content: space-between;
13
- border-bottom: 1px solid $border-color;
14
-
15
- .left {
16
- width: 6rem;
17
- flex: 1 1 auto;
18
- text-align: left;
19
- margin: 0 0 0 0.75rem;
20
- }
21
-
22
- .right {
23
- width: 6rem;
24
- flex: 1 1 auto;
25
- text-align: right;
26
- margin: 0 0.75rem 0 0;
27
- }
28
-
29
- .title {
30
- flex: 0 0 auto;
31
- text-align: center;
32
- }
33
-
34
- .link-close {
35
- fill: $lighter-grey-color;
36
-
37
- &:active {
38
- fill: $grey-color;
39
- }
40
- }
41
- }
42
-
43
- & > .buttons {
44
- border-top: 1px solid $border-color;
45
-
46
- .button {
47
- border-radius: 0;
48
- border-width: 0 1px 0 0;
49
-
50
- &:last-child {
51
- border-right-width: 0;
52
- }
53
- }
54
- }
55
- }
56
- }
@@ -1,2 +0,0 @@
1
- @import 'tao/ui/mobile/globals';
2
- @import 'tao/ui/shared/tables';
@@ -1,10 +0,0 @@
1
- @import 'tao/ui/shared/variables/base';
2
-
3
- $mobile: true !default;
4
-
5
- $font-size-h1: 1.375rem !default;
6
- $font-size-h2: 1.25rem !default;
7
- $font-size-h3: 1.125rem !default;
8
- $font-size-h4: 1rem !default;
9
- $font-size-h5: 0.875rem !default;
10
- $font-size-h6: 0.75rem !default;
@@ -1,7 +0,0 @@
1
- $button-font-size: 1rem !default;
2
- $button-line-height: 1.5rem !default;
3
- $button-padding-v: 0.625rem !default;
4
- $button-padding-h: 1.25rem !default;
5
- $button-padding: $button-padding-v $button-padding-h !default;
6
-
7
- @import 'tao/ui/shared/variables/buttons';
@@ -1,206 +0,0 @@
1
- @import 'tao/ui/globals';
2
-
3
- $arrowSize: 1rem;
4
-
5
- .tao-popover {
6
- display: none;
7
- position: absolute;
8
- left: -9999px;
9
- top: -9999px;
10
- z-index: $z-index-popover;
11
- opacity: 0;
12
- transition: opacity 200ms;
13
-
14
- &[active] {
15
- opacity: 1;
16
- display: block;
17
- }
18
-
19
- .tao-popover-content {
20
- padding: 0.75em 1em;
21
- background: $white-color;
22
- border: 1px solid $border-color;
23
- border-radius: $border-radius-s;
24
- box-shadow: 0 3px 15px rgba(0,0,0,0.1);
25
- }
26
-
27
- &.tao-confirm-popover .tao-popover-content {
28
- font-size: 0.875rem;
29
- text-align: center;
30
- white-space: nowrap;
31
- padding: 1rem 1.5rem;
32
- }
33
-
34
- .tao-popover-buttons {
35
- margin-top: 1rem;
36
- display: flex;
37
- justify-content: center;
38
- align-items: center;
39
-
40
- .button, a {
41
- margin: 0 0.5rem;
42
- }
43
- }
44
-
45
- .tao-popover-arrow {
46
- display: none;
47
- position: absolute;
48
- width: $arrowSize;
49
- height: $arrowSize;
50
-
51
- .arrow {
52
- font-size: 0;
53
- height: 0;
54
- width: 0;
55
- border-style: solid;
56
- border-width: $arrowSize / 2;
57
- position: absolute;
58
- left: 0;
59
- top: 0;
60
- }
61
- }
62
-
63
- &[with-arrow] .tao-popover-arrow {
64
- display: block;
65
- }
66
-
67
- &[direction='right-top'],
68
- &[direction='right-bottom'],
69
- &[direction='right-middle'] {
70
- .tao-popover-arrow {
71
- left: -$arrowSize;
72
- width: $arrowSize / 2;
73
- }
74
-
75
- .arrow-basic {
76
- border-color: transparent #fff transparent transparent;
77
- left: 1px;
78
- }
79
-
80
- .arrow-border {
81
- border-color: transparent #ddd transparent transparent;
82
- left: 0px;
83
- }
84
-
85
- .arrow-shadow {
86
- border-color: transparent rgba(0,0,0,0.08) transparent transparent;
87
- left: -1px;
88
- }
89
- }
90
-
91
- &[direction='left-top'],
92
- &[direction='left-bottom'],
93
- &[direction='left-middle'] {
94
- .tao-popover-arrow {
95
- right: -$arrowSize / 2;
96
- width: $arrowSize / 2;
97
- }
98
-
99
- .arrow-basic {
100
- border-color: transparent transparent transparent #fff;
101
- left: -1px;
102
- }
103
-
104
- .arrow-border {
105
- border-color: transparent transparent transparent #ddd;
106
- left: 0px;
107
- }
108
-
109
- .arrow-shadow {
110
- border-color: transparent transparent transparent rgba(0,0,0,0.08);
111
- left: 1px;
112
- }
113
- }
114
-
115
- &[direction='left-top'],
116
- &[direction='right-top'] {
117
- .tao-popover-arrow {
118
- bottom: $arrowSize;
119
- }
120
- }
121
-
122
- &[direction='left-bottom'],
123
- &[direction='right-bottom'] {
124
- .tao-popover-arrow {
125
- top: $arrowSize;
126
- }
127
- }
128
-
129
- &[direction='left-middle'],
130
- &[direction='right-middle'] {
131
- .tao-popover-arrow {
132
- top: 50%;
133
- margin-top: -$arrowSize / 2;
134
- }
135
- }
136
-
137
- &[direction='top-left'],
138
- &[direction='top-right'],
139
- &[direction='top-center'] {
140
- .tao-popover-arrow {
141
- bottom: -$arrowSize / 2;
142
- height: $arrowSize / 2;
143
- }
144
-
145
- .arrow-basic {
146
- border-color: #fff transparent transparent transparent;
147
- top: -1px;
148
- }
149
-
150
- .arrow-border {
151
- border-color: #ddd transparent transparent transparent;
152
- top: 0px;
153
- }
154
-
155
- .arrow-shadow {
156
- border-color: rgba(0,0,0,0.08) transparent transparent transparent;
157
- top: 1px;
158
- }
159
- }
160
-
161
- &[direction='bottom-left'],
162
- &[direction='bottom-right'],
163
- &[direction='bottom-center'] {
164
- .tao-popover-arrow {
165
- top: -$arrowSize;
166
- height: $arrowSize / 2;
167
- }
168
-
169
- .arrow-basic {
170
- border-color: transparent transparent #fff transparent;
171
- top: 1px;
172
- }
173
-
174
- .arrow-border {
175
- border-color: transparent transparent #ddd transparent;
176
- top: 0px;
177
- }
178
-
179
- .arrow-shadow {
180
- border-color: transparent transparent rgba(0,0,0,0.08) transparent;
181
- top: -1px;
182
- }
183
- }
184
-
185
- &[direction='top-left'],
186
- &[direction='bottom-left'] {
187
- .tao-popover-arrow {
188
- right: $arrowSize;
189
- }
190
- }
191
-
192
- &[direction='top-right'],
193
- &[direction='bottom-right'] {
194
- .tao-popover-arrow {
195
- left: $arrowSize;
196
- }
197
- }
198
-
199
- &[direction='top-center'],
200
- &[direction='bottom-center'] {
201
- .tao-popover-arrow {
202
- left: 50%;
203
- margin-left: -$arrowSize / 2;
204
- }
205
- }
206
- }
@@ -1,127 +0,0 @@
1
- html {
2
- box-sizing: border-box;
3
- height: 100%;
4
- font-size: 16px;
5
- -webkit-text-size-adjust: 100%;
6
- -ms-text-size-adjust: 100%;
7
- -ms-overflow-style: scrollbar;
8
- -webkit-tap-highlight-color: rgba(0,0,0,0);
9
-
10
- *, *:before, *:after {
11
- box-sizing: inherit;
12
- }
13
- }
14
-
15
- body {
16
- height: 100%;
17
- margin: 0;
18
- padding: 0;
19
- font-size: $font-size;
20
- font-family: "Helvetica Neue", "PingFang SC", "Microsoft Yahei", 微软雅黑, STXihei, 华文细黑, sans-serif;
21
- line-height: $default-line-height;
22
- color: $text-color;
23
- fill: $text-color;
24
- background-color: $white-color;
25
- }
26
-
27
- small,
28
- .small {
29
- font-size: $font-size-s;
30
- font-weight: normal;
31
- }
32
-
33
- .x-small {
34
- font-size: $font-size-xs;
35
- font-weight: normal;
36
- }
37
-
38
- big,
39
- .big,
40
- .large {
41
- font-size: $font-size-l;
42
- }
43
-
44
- mark,
45
- .mark {
46
- padding: 0.2em;
47
- background-color: yellow;
48
- }
49
-
50
- a {
51
- color: $link-color;
52
- fill: $link-color;
53
- text-decoration: none;
54
- background-color: transparent; // Remove the gray background on active links in IE 10.
55
- -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.
56
-
57
- &.warn {
58
- color: $red-color;
59
- fill: $red-color;
60
- }
61
-
62
- &.disabled {
63
- color: $lightest-grey-color;
64
- fill: $lightest-grey-color;
65
- cursor: not-allowed;;
66
- }
67
- }
68
-
69
- a:not([href]):not([tabindex]) {
70
- color: inherit;
71
- fill: inherit;
72
- }
73
-
74
- h1, h2, h3, h4, h5, h6,
75
- .h1, .h2, .h3, .h4, .h5, .h6 {
76
- margin-top: 1.5em;
77
- margin-bottom: 1em;
78
- line-height: $default-line-height;
79
- color: $text-color;
80
-
81
- &:first-child {
82
- margin-top: 0;
83
- }
84
- }
85
-
86
- h1, .h1 { font-size: $font-size-h1; }
87
- h2, .h2 { font-size: $font-size-h2; }
88
- h3, .h3 { font-size: $font-size-h3; }
89
- h4, .h4 { font-size: $font-size-h4; }
90
- h5, .h5 { font-size: $font-size-h5; }
91
- h6, .h6 { font-size: $font-size-h6; }
92
-
93
-
94
- hr {
95
- margin-top: 1em;
96
- margin-bottom: 1em;
97
- border: 0;
98
- border-top: 1px solid $border-color;
99
- }
100
-
101
- p {
102
- margin: 0 0 1em 0;
103
- }
104
-
105
- ul, ol {
106
- margin: 0 0 1em 0;
107
- padding: 0 0 0 2em;
108
-
109
- li {
110
- line-height: 2.0
111
- }
112
-
113
- ul, ol {
114
- margin-bottom: 0;
115
- }
116
- }
117
-
118
- blockquote {
119
- margin: 0 0 1em 0;
120
- padding: 0.5em 1em;
121
- color: $light-grey-color;
122
- border-left: 0.25em solid $border-color;
123
-
124
- *:last-child {
125
- margin-bottom: 0;
126
- }
127
- }
@@ -1,65 +0,0 @@
1
- .button {
2
- display: inline-block;
3
- padding: $button-padding;
4
- font-size: $button-font-size;
5
- line-height: $button-line-height;
6
- border-radius: $border-radius-s;
7
- cursor: pointer;
8
- text-decoration: none;
9
- text-align: center;
10
- vertical-align: middle;
11
- white-space: nowrap;
12
- user-select: none;
13
- transition: background 200ms, color 200ms, fill 200ms, border-color 200ms;
14
- @include button-colors($default-button-colors);
15
-
16
- .icon {
17
- vertical-align: text-top;
18
- }
19
-
20
- &.text-with-icon {
21
- padding-left: 1.5em;
22
-
23
- .icon {
24
- margin-right: 0.5em
25
- }
26
- }
27
-
28
- &:focus, &.focus {
29
- outline: none;
30
- }
31
-
32
- &.disabled,
33
- &[disabled] {
34
- cursor: not-allowed;
35
- }
36
-
37
- &.button-warning {
38
- @include button-colors($warning-button-colors);
39
- }
40
-
41
- &.button-primary {
42
- @include button-colors($primary-button-colors);
43
- }
44
-
45
- &.button-small {
46
- padding: $small-button-padding;
47
- font-size: $small-button-font-size;
48
- line-height: $small-button-line-height;
49
-
50
- &.text-with-icon {
51
- padding-left: 0.75em;
52
- }
53
- }
54
-
55
- &.button-icon {
56
- min-width: 2.5em;
57
- padding: $button-padding-v;
58
- @include button-colors($icon-button-colors);
59
- }
60
-
61
- &.button-block {
62
- display: block;
63
- width: 100%;
64
- }
65
- }
@@ -1,54 +0,0 @@
1
- // Inline and block code styles
2
- code,
3
- kbd,
4
- pre,
5
- samp {
6
- font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
7
- }
8
-
9
- code {
10
- padding: 0.2em 0.4em;
11
- font-size: 85%;
12
- background-color: $grey-bg-color;
13
- border-radius: $border-radius;
14
- word-wrap: break-word;
15
-
16
- a > & {
17
- padding: 0;
18
- color: inherit;
19
- background-color: inherit;
20
- }
21
- }
22
-
23
- kbd {
24
- padding: 0.2em 0.4em;
25
- font-size: 85%;
26
- background-color: $grey-bg-color;
27
- border-radius: $border-radius;
28
-
29
- kbd {
30
- padding: 0;
31
- font-size: 100%;
32
- }
33
- }
34
-
35
- pre {
36
- display: block;
37
- margin-top: 0;
38
- margin-bottom: 1em;
39
- padding: 1.5em;
40
- font-size: 85%;
41
- background-color: $grey-bg-color;
42
- overflow: auto;
43
- border-radius: $border-radius;
44
-
45
- code {
46
- padding: 0;
47
- font-size: inherit;
48
- color: inherit;
49
- background-color: transparent;
50
- border-radius: 0;
51
- word-wrap: normal;
52
- white-space: inherit;
53
- }
54
- }
@@ -1,16 +0,0 @@
1
- @keyframes spin {
2
- from { transform:rotate(0deg); }
3
- to { transform:rotate(360deg); }
4
- }
5
-
6
- .icon {
7
- display: inline-block;
8
- width: 1.25em;
9
- height: 1.25em;
10
- vertical-align: middle;
11
- fill: inherit;
12
-
13
- &.spin {
14
- animation: spin 1s infinite linear;
15
- }
16
- }
@@ -1,83 +0,0 @@
1
-
2
- .slide-box-active {
3
- overflow: hidden;
4
- }
5
-
6
- tao-slide-box {
7
- position: fixed;
8
- top: 0;
9
- right: 0;
10
- bottom: 0;
11
- left: 0;
12
- z-index: $z-index-float;
13
- display: none;
14
- overflow: hidden;
15
-
16
- &[modal] {
17
- background-color: rgba(0, 0, 0, 0);
18
- transition: background-color 300ms ease-in-out;
19
- }
20
-
21
- &[modal][active] {
22
- background-color: rgba(0, 0, 0, 0.55);
23
- }
24
-
25
- & > .slide-box-wrapper {
26
- background: $white-color;
27
- opacity: 0;
28
- padding: 1.5rem;
29
- border: 0px solid $light-border-color;
30
- transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
31
- position: absolute;
32
-
33
- .slide-box-content {
34
- max-height: 100%;
35
- overflow: auto;
36
- }
37
- }
38
-
39
- &[without-padding] > .slide-box-wrapper {
40
- padding: 0;
41
- }
42
-
43
- &[direction='rtl'] > .slide-box-wrapper {
44
- top: 0;
45
- right: 0;
46
- bottom: 0;
47
- transform: translateX(50%);
48
- border-left-width: 1px;
49
- box-shadow: -2px 0 5px 0 rgba(0,0,0,0.05);
50
- }
51
-
52
- &[direction='ltr'] > .slide-box-wrapper {
53
- top: 0;
54
- left: 0;
55
- bottom: 0;
56
- transform: translateX(-50%);
57
- border-right-width: 1px;
58
- box-shadow: 2px 0 5px 0 rgba(0,0,0,0.05);
59
- }
60
-
61
- &[direction='ttb'] > .slide-box-wrapper {
62
- left: 0;
63
- top: 0;
64
- right: 0;
65
- transform: translateY(-50%);
66
- border-bottom-width: 1px;
67
- box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
68
- }
69
-
70
- &[direction='btt'] > .slide-box-wrapper {
71
- left: 0;
72
- right: 0;
73
- bottom: 0;
74
- transform: translateY(50%);
75
- border-top-width: 1px;
76
- box-shadow: 0 -2px 5px 0 rgba(0,0,0,0.05);
77
- }
78
-
79
- &[active] > .slide-box-wrapper {
80
- opacity: 1;
81
- transform: translateX(0) translateY(0);
82
- }
83
- }