@roblexperu/style 1.1.10 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/package.json +12 -14
  2. package/public/css/roblex-style.css +4 -4
  3. package/public/css/roblex-style.css.map +1 -1
  4. package/scripts/normalize-css.js +6 -0
  5. package/src/atoms/_avatar.scss +8 -5
  6. package/src/atoms/_buttons.scss +36 -33
  7. package/src/atoms/_check-radio.scss +5 -3
  8. package/src/atoms/_index.scss +10 -10
  9. package/src/atoms/_inputs.scss +19 -16
  10. package/src/atoms/_radio-button.scss +4 -2
  11. package/src/atoms/_toggle-button.scss +4 -2
  12. package/src/icons/_index.scss +1 -1
  13. package/src/main.scss +9 -9
  14. package/src/mixins/_flexbox.scss +4 -2
  15. package/src/mixins/_fonts.scss +41 -14
  16. package/src/mixins/_index.scss +3 -3
  17. package/src/mixins/_media.scss +7 -5
  18. package/src/organisms/_calculate.scss +18 -15
  19. package/src/organisms/_card.scss +4 -2
  20. package/src/organisms/_dropdown.scss +15 -11
  21. package/src/organisms/_footer.scss +24 -20
  22. package/src/organisms/_header-collapsed-sidepanel.scss +3 -1
  23. package/src/organisms/_header.scss +6 -3
  24. package/src/organisms/_index.scss +14 -14
  25. package/src/organisms/_modal.scss +9 -6
  26. package/src/organisms/_navbar-header.scss +6 -3
  27. package/src/organisms/_schedule-notifications.scss +3 -1
  28. package/src/organisms/_snack-bar.scss +5 -3
  29. package/src/organisms/_steps.scss +13 -9
  30. package/src/organisms/_trading-calculator.scss +18 -13
  31. package/src/pages/_accounts.scss +8 -4
  32. package/src/pages/_authentication.scss +3 -1
  33. package/src/pages/_changes.scss +17 -13
  34. package/src/pages/_index.scss +6 -6
  35. package/src/pages/_operations.scss +41 -37
  36. package/src/pages/_profile.scss +16 -12
  37. package/src/typography/_colors.scss +3 -1
  38. package/src/typography/_font-family.scss +6 -3
  39. package/src/typography/_index.scss +6 -6
  40. package/src/typography/_maax.scss +4 -1
  41. package/src/typography/_publica-sans-round-sizing.scss +4 -1
  42. package/src/typography/_publica-sans-round.scss +5 -1
  43. package/src/typography/_roblex-icons.scss +12 -9
  44. package/src/utility/_authentication.scss +4 -2
  45. package/src/utility/_display.scss +13 -5
  46. package/src/utility/_flex-grid.scss +5 -2
  47. package/src/utility/_index.scss +5 -5
  48. package/src/utility/_page.scss +9 -6
  49. package/src/utility/_sweet-alert.scss +36 -32
  50. package/src/vars/_flexbox.scss +4 -2
  51. package/src/vars/_index.scss +4 -4
  52. package/test/sass/flexbox.test.scss +164 -161
  53. package/test/sass/fonts.test.scss +47 -44
  54. package/test/sass/media.test.scss +38 -35
@@ -1,3 +1,7 @@
1
+ @use "../mixins/flexbox";
2
+ @use "../mixins/media";
3
+ @use "../vars/colors";
4
+
1
5
  .wrapper-imagen {
2
6
  padding : 20px;
3
7
  background-image : url('/assets/img/background-image-profile.svg');
@@ -39,28 +43,28 @@
39
43
  margin : 0;
40
44
 
41
45
  li {
42
- border-top : 0.5px solid $color-gray-slate;
46
+ border-top : 0.5px solid colors.$color-gray-slate;
43
47
  padding-left : 25px;
44
48
  padding-right : 25px;
45
49
  padding-top : 10px;
46
50
  padding-bottom: 10px;
47
- color : rgba($color: $color-black, $alpha: .64);
51
+ color : rgba($color: colors.$color-black, $alpha: .64);
48
52
 
49
- @include flexbox;
53
+ @include flexbox.flexbox;
50
54
  }
51
55
  }
52
56
  }
53
57
 
54
58
  .checked-verifications {
55
59
  margin-left : 5px;
56
- background-color: $color-primary;
60
+ background-color: colors.$color-primary;
57
61
  border-radius : 15px;
58
- color : $color-white;
62
+ color : colors.$color-white;
59
63
  padding-left : 3px;
60
64
  padding-right : 15px;
61
- @include flexbox;
62
- @include justify-content(center);
63
- @include align-items(center);
65
+ @include flexbox.flexbox;
66
+ @include flexbox.justify-content(center);
67
+ @include flexbox.align-items(center);
64
68
 
65
69
  i {
66
70
  width: 15px;
@@ -74,7 +78,7 @@
74
78
  .wrapper-information {
75
79
  .information-item {
76
80
  padding : 15px 20px;
77
- border-bottom: 0.5px solid rgba($color: $color-gray-slate, $alpha: .5);
81
+ border-bottom: 0.5px solid rgba($color: colors.$color-gray-slate, $alpha: .5);
78
82
 
79
83
  &:last-child {
80
84
  border-bottom: 0px;
@@ -99,7 +103,7 @@
99
103
  padding-right: 3rem;
100
104
 
101
105
  .profile-item {
102
- @include flexbox;
106
+ @include flexbox.flexbox;
103
107
  }
104
108
  }
105
109
 
@@ -113,7 +117,7 @@
113
117
  thead {
114
118
  tr {
115
119
  th {
116
- color : $color-primary;
120
+ color : colors.$color-primary;
117
121
  font-family: Maax;
118
122
  font-style : normal;
119
123
  font-weight: normal;
@@ -159,7 +163,7 @@
159
163
  box-shadow: initial !important;
160
164
  }
161
165
 
162
- @include md {
166
+ @include media.md {
163
167
  .wrapper-content-tab {
164
168
  min-height: auto !important;
165
169
  }
@@ -1,4 +1,6 @@
1
- @each $name, $color in $colors-roblex {
1
+ @use "../vars/colors";
2
+
3
+ @each $name, $color in colors.$colors-roblex {
2
4
  .#{$name} {
3
5
  color: $color !important;
4
6
  }
@@ -1,3 +1,6 @@
1
+ @use "../mixins/media";
2
+ @use "../vars/colors";
3
+
1
4
  $titles-fons: ();
2
5
 
3
6
 
@@ -10,7 +13,7 @@ $titles-fons: ();
10
13
  font-size : 48px;
11
14
  line-height: 52px;
12
15
 
13
- @include md {
16
+ @include media.md {
14
17
  font-size: 30px !important;
15
18
  }
16
19
  }
@@ -61,7 +64,7 @@ $titles-fons: ();
61
64
 
62
65
  /* LINKS */
63
66
  .link-base {
64
- color: $color-primary;
67
+ color: colors.$color-primary;
65
68
  &:hover {
66
69
  text-decoration: none !important;
67
70
  }
@@ -91,7 +94,7 @@ $titles-fons: ();
91
94
  font-size : 12px;
92
95
  line-height : 13px;
93
96
  text-decoration-line: underline;
94
- color : $color-black-gray;
97
+ color : colors.$color-black-gray;
95
98
  }
96
99
 
97
100
  .link-xs {
@@ -1,9 +1,9 @@
1
- @import 'maax';
1
+ @use 'maax';
2
2
 
3
- @import 'font-family';
4
- @import 'colors';
3
+ @use 'font-family';
4
+ @use 'colors';
5
5
 
6
- @import 'roblex-icons';
6
+ @use 'roblex-icons';
7
7
 
8
- @import 'publica-sans-round';
9
- @import 'publica-sans-round-sizing';
8
+ @use 'publica-sans-round';
9
+ @use 'publica-sans-round-sizing';
@@ -1,3 +1,6 @@
1
+ @use "../mixins/fonts";
2
+ @use "../vars/var";
3
+
1
4
  /* Maax */
2
5
  /* Maax-Black */
3
6
  /* Maax-Bold */
@@ -32,4 +35,4 @@ $fonts-publica-sans-round : (
32
35
  ),
33
36
  );
34
37
 
35
- @include font-face-for-fonts($path-fonts, 'Maax', $fonts-publica-sans-round);
38
+ @include fonts.font-face-for-fonts(var.$path-fonts, 'Maax', $fonts-publica-sans-round);
@@ -1,3 +1,6 @@
1
+ @use "../mixins/fonts";
2
+ @use "maax";
3
+
1
4
  // $NAME_FONT = open-sans
2
5
  // $FONT_TYPE = regular | light | medium | bold | Thin
3
6
  // .publica-sans-round-bold-ultra-title-lg
@@ -42,4 +45,4 @@ $sizing: (
42
45
  )
43
46
  );
44
47
 
45
- @include font-sizing('publica-sans-round', $sizing, $fonts-publica-sans-round);
48
+ @include fonts.font-sizing('publica-sans-round', $sizing, maax.$fonts-publica-sans-round);
@@ -1,3 +1,7 @@
1
+ @use "../mixins/fonts";
2
+ @use "../vars/var";
3
+ @use "maax";
4
+
1
5
  $fonts-publica-sans-round : (
2
6
  PublicaSansRound-Regular: (
3
7
  name: "Publica Sans Round",
@@ -30,4 +34,4 @@ $fonts-publica-sans-round : (
30
34
  ),
31
35
  );
32
36
 
33
- @include font-face-for-fonts($path-fonts, 'PublicaSansRound', $fonts-publica-sans-round);
37
+ @include fonts.font-face-for-fonts(var.$path-fonts, 'PublicaSansRound', maax.$fonts-publica-sans-round);
@@ -1,11 +1,14 @@
1
+ @use "../mixins/flexbox";
2
+ @use "../vars/var";
3
+
1
4
  @font-face {
2
5
  font-family: 'roblex-font-icons';
3
- src : url('#{$path-fonts}/fonts/RoblexIcons}/roblex-font-icons.eot?3715761');
4
- src : url('#{$path-fonts}/fonts/RoblexIcons/roblex-font-icons.eot?3715761#iefix') format('embedded-opentype'),
5
- url('#{$path-fonts}/fonts/RoblexIcons/roblex-font-icons.woff2?3715761') format('woff2'),
6
- url('#{$path-fonts}/fonts/RoblexIcons/roblex-font-icons.woff?3715761') format('woff'),
7
- url('#{$path-fonts}/fonts/RoblexIcons/roblex-font-icons.ttf?3715761') format('truetype'),
8
- url('#{$path-fonts}/fonts/RoblexIcons/roblex-font-icons.svg?3715761#roblex-font-icons') format('svg');
6
+ src : url('#{var.$path-fonts}/fonts/RoblexIcons}/roblex-font-icons.eot?3715761');
7
+ src : url('#{var.$path-fonts}/fonts/RoblexIcons/roblex-font-icons.eot?3715761#iefix') format('embedded-opentype'),
8
+ url('#{var.$path-fonts}/fonts/RoblexIcons/roblex-font-icons.woff2?3715761') format('woff2'),
9
+ url('#{var.$path-fonts}/fonts/RoblexIcons/roblex-font-icons.woff?3715761') format('woff'),
10
+ url('#{var.$path-fonts}/fonts/RoblexIcons/roblex-font-icons.ttf?3715761') format('truetype'),
11
+ url('#{var.$path-fonts}/fonts/RoblexIcons/roblex-font-icons.svg?3715761#roblex-font-icons') format('svg');
9
12
  font-weight: normal;
10
13
  font-style : normal;
11
14
  }
@@ -56,8 +59,8 @@
56
59
  /* Uncomment for 3D effect */
57
60
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
58
61
 
59
- @include flexbox;
60
- @include justify-content(center);
61
- @include align-items(center);
62
+ @include flexbox.flexbox;
63
+ @include flexbox.justify-content(center);
64
+ @include flexbox.align-items(center);
62
65
  }
63
66
  }
@@ -1,12 +1,14 @@
1
+ @use "../mixins/media";
2
+
1
3
  .authentication-form {
2
4
  min-width: 458px;
3
- @include md {
5
+ @include media.md {
4
6
  min-width: 100% !important;
5
7
  }
6
8
  }
7
9
  .wrapper-authentication-form {
8
10
  min-height: calc(100% - 200px);
9
- @include md {
11
+ @include media.md {
10
12
  .col-md-6 {
11
13
  max-width: 100%;
12
14
  }
@@ -1,3 +1,7 @@
1
+ @use "../mixins/media";
2
+ @use "../vars/breakpoint";
3
+ @use "cursor";
4
+
1
5
  // Display property
2
6
  //
3
7
  // Las clases de utilidad de visualización que se aplican a todos los puntos de interrupción, desde xs hasta `xl`,
@@ -24,7 +28,7 @@
24
28
  //
25
29
  // Styleguide display
26
30
 
27
- $attributes: (
31
+ cursor.$attributes: (
28
32
  unset,
29
33
  none,
30
34
  inline,
@@ -38,8 +42,12 @@ $attributes: (
38
42
  );
39
43
 
40
44
  @mixin display-base($value: null) {
41
- @each $attribute in $attributes {
42
- .d#{if($value, "-#{$value}", "")}-#{$attribute} {
45
+ $value-suffix: '';
46
+ @if $value {
47
+ $value-suffix: '-#{$value}';
48
+ }
49
+ @each $attribute in cursor.$attributes {
50
+ .d#{$value-suffix}-#{$attribute} {
43
51
  display: $attribute!important;
44
52
  }
45
53
  }
@@ -48,8 +56,8 @@ $attributes: (
48
56
 
49
57
  @include display-base;
50
58
 
51
- @each $value, $breakpoint in $breakpoints {
52
- @include media-breakpoint($breakpoint) {
59
+ @each $value, $breakpoint in breakpoint.$breakpoints {
60
+ @include media.media-breakpoint($breakpoint) {
53
61
  @include display-base($value);
54
62
  }
55
63
  }
@@ -15,7 +15,10 @@ $base-unit:8px;
15
15
  $columns :12;
16
16
 
17
17
  @mixin col($index, $breakpoint) {
18
- $className: ".col-#{if($breakpoint, "#{$breakpoint}-#{$index}", $index)}";
18
+ $className: ".col-#{$index}";
19
+ @if $breakpoint {
20
+ $className: ".col-#{$breakpoint}-#{$index}";
21
+ }
19
22
 
20
23
  #{$className} {
21
24
  @include flex(0, 0, auto);
@@ -527,4 +530,4 @@ $columns :12;
527
530
  }
528
531
 
529
532
  @include col-flex-media(lg)
530
- }
533
+ }
@@ -1,7 +1,7 @@
1
1
  // @import "flex-grid";
2
2
  // @import "display";
3
- @import 'sweet-alert';
4
- @import 'cursor';
5
- @import 'page';
6
- @import "authentication";
7
- @import "display"
3
+ @use 'sweet-alert';
4
+ @use 'cursor';
5
+ @use 'page';
6
+ @use "authentication";
7
+ @use "display"
@@ -1,3 +1,6 @@
1
+ @use "../mixins/media";
2
+ @use "../vars/colors";
3
+
1
4
  body {
2
5
  font-family: 'Maax' !important;
3
6
  }
@@ -11,7 +14,7 @@ body {
11
14
  .wrapper-navigation {
12
15
  padding-top: 48px;
13
16
 
14
- @include md {
17
+ @include media.md {
15
18
  padding-left: 0 !important;
16
19
 
17
20
  // TODO CAMBIAR Y OPTIMIZAR
@@ -86,7 +89,7 @@ roblex-micro-loader {
86
89
  bottom : 100px;
87
90
  left : 50px;
88
91
  right : 50px;
89
- color : $color-white;
92
+ color : colors.$color-white;
90
93
  font-family: 'Maax';
91
94
  font-style : normal;
92
95
  font-weight: 500;
@@ -102,11 +105,11 @@ roblex-micro-loader {
102
105
  height : 10px;
103
106
  border-radius : 20px;
104
107
  width : 80px;
105
- background-color: $color-white;
108
+ background-color: colors.$color-white;
106
109
  }
107
110
  }
108
111
 
109
- @include md {
112
+ @include media.md {
110
113
  display: none;
111
114
  }
112
115
  }
@@ -120,11 +123,11 @@ roblex-micro-loader {
120
123
  }
121
124
 
122
125
  .divider-vertical {
123
- border : 0.5px solid $color-gray-slate;
126
+ border : 0.5px solid colors.$color-gray-slate;
124
127
  opacity: .5;
125
128
  }
126
129
 
127
- @include md {
130
+ @include media.md {
128
131
 
129
132
 
130
133
  .navigation-list {
@@ -1,3 +1,7 @@
1
+ @use "sass:color";
2
+ @use "../mixins/media";
3
+ @use "../vars/colors";
4
+
1
5
  $width : 460px;
2
6
 
3
7
  .swal-modal {
@@ -21,7 +25,7 @@ $width : 460px;
21
25
  min-width : auto;
22
26
  margin : 10px;
23
27
  background: transparent;
24
- color : $color-primary;
28
+ color : colors.$color-primary;
25
29
  font-size : 16px;
26
30
 
27
31
  &:active,
@@ -46,7 +50,7 @@ $width : 460px;
46
50
 
47
51
  .swal-title {
48
52
  font-size : 16px;
49
- color : $color-primary;
53
+ color : colors.$color-primary;
50
54
  margin-bottom: 8px;
51
55
  }
52
56
 
@@ -71,18 +75,18 @@ $width : 460px;
71
75
 
72
76
  .swal-button--confirm {
73
77
  border-width : 1px;
74
- border-color : $color-danger;
78
+ border-color : colors.$color-danger;
75
79
  border-style : solid;
76
- background-color: $color-danger !important;
77
- color : $color-white;
80
+ background-color: colors.$color-danger !important;
81
+ color : colors.$color-white;
78
82
 
79
83
  &:focus {
80
- box-shadow: 0 0 0 1px $color-white, 0 0 0 3px rgba(red($color-danger), green($color-danger), blue($color-danger), .29);
84
+ box-shadow: 0 0 0 1px colors.$color-white, 0 0 0 3px color.change(colors.$color-danger, $alpha: .29);
81
85
  }
82
86
 
83
87
  &:active {
84
- background-color: $color-white !important;
85
- color : $color-danger;
88
+ background-color: colors.$color-white !important;
89
+ color : colors.$color-danger;
86
90
  }
87
91
  }
88
92
  }
@@ -119,35 +123,35 @@ $width : 460px;
119
123
 
120
124
  .swal-button--cancel {
121
125
  border-width : 1px;
122
- border-color : $color-orange;
126
+ border-color : colors.$color-orange;
123
127
  border-style : solid;
124
128
  background-color: transparent !important;
125
- color : $color-orange;
129
+ color : colors.$color-orange;
126
130
 
127
131
  &:focus {
128
- box-shadow: 0 0 0 1px $color-white, 0 0 0 3px rgba(red($color-orange), green($color-orange), blue($color-orange), .29);
132
+ box-shadow: 0 0 0 1px colors.$color-white, 0 0 0 3px color.change(colors.$color-orange, $alpha: .29);
129
133
  }
130
134
 
131
135
  &:active {
132
- background-color: $color-orange !important;
133
- color : $color-white;
136
+ background-color: colors.$color-orange !important;
137
+ color : colors.$color-white;
134
138
  }
135
139
  }
136
140
 
137
141
  .swal-button--confirm {
138
142
  border-width : 1px;
139
- border-color : $color-orange;
143
+ border-color : colors.$color-orange;
140
144
  border-style : solid;
141
- background-color: $color-orange !important;
142
- color : $color-white;
145
+ background-color: colors.$color-orange !important;
146
+ color : colors.$color-white;
143
147
 
144
148
  &:focus {
145
- box-shadow: 0 0 0 1px $color-white, 0 0 0 3px rgba(red($color-warning), green($color-warning), blue($color-warning), .29);
149
+ box-shadow: 0 0 0 1px colors.$color-white, 0 0 0 3px color.change(colors.$color-warning, $alpha: .29);
146
150
  }
147
151
 
148
152
  &:active {
149
- background-color: $color-white !important;
150
- color : $color-orange;
153
+ background-color: colors.$color-white !important;
154
+ color : colors.$color-orange;
151
155
  }
152
156
  }
153
157
  }
@@ -166,18 +170,18 @@ $width : 460px;
166
170
 
167
171
  .swal-button--cancel {
168
172
  border-width : 1px;
169
- border-color : $color-primary;
173
+ border-color : colors.$color-primary;
170
174
  border-style : solid;
171
175
  background-color: transparent !important;
172
- color : $color-primary;
176
+ color : colors.$color-primary;
173
177
 
174
178
  &:focus {
175
- box-shadow: 0 0 0 1px $color-white, 0 0 0 3px rgba(red($color-primary), green($color-primary), blue($color-primary), .29);
179
+ box-shadow: 0 0 0 1px colors.$color-white, 0 0 0 3px color.change(colors.$color-primary, $alpha: .29);
176
180
  }
177
181
 
178
182
  &:active {
179
- background-color: $color-primary !important;
180
- color : $color-white;
183
+ background-color: colors.$color-primary !important;
184
+ color : colors.$color-white;
181
185
  }
182
186
  }
183
187
  }
@@ -203,18 +207,18 @@ $width : 460px;
203
207
 
204
208
  .swal-button--confirm {
205
209
  border-width : 1px;
206
- border-color : $color-primary;
210
+ border-color : colors.$color-primary;
207
211
  border-style : solid;
208
- background-color: $color-primary !important;
209
- color : $color-white;
212
+ background-color: colors.$color-primary !important;
213
+ color : colors.$color-white;
210
214
 
211
215
  &:focus {
212
- box-shadow: 0 0 0 1px $color-white, 0 0 0 3px rgba(red($color-primary), green($color-primary), blue($color-primary), .29);
216
+ box-shadow: 0 0 0 1px colors.$color-white, 0 0 0 3px color.change(colors.$color-primary, $alpha: .29);
213
217
  }
214
218
 
215
219
  &:active {
216
- background-color: $color-white !important;
217
- color : $color-primary;
220
+ background-color: colors.$color-white !important;
221
+ color : colors.$color-primary;
218
222
  }
219
223
  }
220
224
  }
@@ -223,8 +227,8 @@ $width : 460px;
223
227
 
224
228
 
225
229
 
226
- @include sm {
230
+ @include media.sm {
227
231
  .swal-modal {
228
232
  width: 97%;
229
233
  }
230
- }
234
+ }
@@ -1,3 +1,5 @@
1
+ @use "sass:list";
2
+ @use "sass:meta";
1
3
  /*
2
4
  Flexbox containers: flex
3
5
  Using this mixin
@@ -147,8 +149,8 @@
147
149
 
148
150
  // Box-Flex only supports a flex-grow value so lets grab the
149
151
  // first item in the list and just return that.
150
- @if type-of($fg) == 'list' {
151
- $fg-boxflex: nth($fg, 1)!important;
152
+ @if meta.type-of($fg) == 'list' {
153
+ $fg-boxflex: list.nth($fg, 1)!important;
152
154
  }
153
155
 
154
156
  -webkit-box: $fg-boxflex!important;
@@ -1,4 +1,4 @@
1
- @import 'var';
2
- @import 'breakpoint';
3
- @import 'colors';
4
- @import 'flexbox';
1
+ @use 'var';
2
+ @use 'breakpoint';
3
+ @use 'colors';
4
+ @use 'flexbox';