@steroidsjs/bootstrap 3.0.0-beta.120 → 3.0.0-beta.121

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.
package/index.scss CHANGED
@@ -5,6 +5,7 @@
5
5
  @include meta.load-css('scss/variables');
6
6
  @include meta.load-css('scss/mixins');
7
7
  @include meta.load-css('scss/fonts');
8
+ @include meta.load-css('scss/bootstrap-classes');
8
9
 
9
10
  @include meta.load-css('content/Accordion/AccordionView');
10
11
  @include meta.load-css('content/Accordion/AccordionItemView');
@@ -1,16 +1,9 @@
1
1
  @use "../../scss/variables";
2
2
 
3
-
4
- $justifyValues: center, end, start, stretch, flex-start, flex-end, left, right, space-between, space-around, space-evenly;
5
- $alignValues: center, end, start, stretch, flex-start, flex-end;
6
- $directionValues: column-reverse column row-reverse row;
7
- $colValues: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;
8
- $colMaxValue: 12;
9
-
10
3
  @mixin col($className, $root, $property: flex-basis) {
11
- @each $colValue in $colValues {
4
+ @each $colValue in variables.$colValues {
12
5
  &_#{$className}_#{$colValue} {
13
- #{$property}: calc((100% / $colMaxValue) * $colValue);
6
+ #{$property}: calc((100% / variables.$colMaxValue) * $colValue);
14
7
  }
15
8
  }
16
9
  }
@@ -25,19 +18,19 @@ $colMaxValue: 12;
25
18
  flex-wrap: wrap;
26
19
  }
27
20
 
28
- @each $alignValue in $alignValues {
21
+ @each $alignValue in variables.$alignValues {
29
22
  &_align_#{$alignValue} {
30
23
  align-items: $alignValue;
31
24
  }
32
25
  }
33
26
 
34
- @each $justifyValue in $justifyValues {
27
+ @each $justifyValue in variables.$justifyValues {
35
28
  &_justify_#{$justifyValue} {
36
29
  justify-content: $justifyValue;
37
30
  }
38
31
  }
39
32
 
40
- @each $directionValue in $directionValues {
33
+ @each $directionValue in variables.$directionValues {
41
34
  &_direction_#{$directionValue} {
42
35
  flex-direction: $directionValue;
43
36
  }
@@ -57,4 +50,4 @@ $colMaxValue: 12;
57
50
  @include col(sm, $root);
58
51
  }
59
52
  }
60
- }
53
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/bootstrap",
3
- "version": "3.0.0-beta.120",
3
+ "version": "3.0.0-beta.121",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
@@ -0,0 +1,42 @@
1
+ @use "../variables";
2
+
3
+ .flex {
4
+ display: flex;
5
+ }
6
+
7
+ .row {
8
+ display: flex;
9
+ width: 100%;
10
+ }
11
+
12
+ .col {
13
+ @each $colValue in variables.$colValues {
14
+ &-#{$colValue} {
15
+ flex-basis: calc((100% / variables.$colMaxValue) * $colValue);
16
+ }
17
+ }
18
+ }
19
+
20
+ .justify-content {
21
+ @each $justifyValue in variables.$justifyValues {
22
+ &-#{$justifyValue} {
23
+ justify-content: $justifyValue;
24
+ }
25
+ }
26
+ }
27
+
28
+ .align-items {
29
+ @each $alignValue in variables.$alignValues {
30
+ &-#{$alignValue} {
31
+ align-items: $alignValue;
32
+ }
33
+ }
34
+ }
35
+
36
+ .flex-direction {
37
+ @each $directionValue in variables.$directionValues {
38
+ &-#{$directionValue} {
39
+ flex-direction: $directionValue;
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,4 @@
1
+ @forward './spacing.scss';
2
+ @forward './flex.scss';
3
+ @forward './layout.scss';
4
+ @forward './typography.scss';
@@ -0,0 +1,72 @@
1
+ @use "../variables/common/colors.scss";
2
+
3
+ $positions: absolute, sticky, relative, fixed, static;
4
+ $borders: right, left, top, bottom;
5
+
6
+ .border {
7
+ border: 1px solid colors.$element-border-color;
8
+
9
+ @each $border in $borders {
10
+ &-#{$border} {
11
+ border-#{$border}: 1px solid colors.$element-border-color;
12
+ }
13
+ }
14
+ }
15
+
16
+ // positions
17
+ .position {
18
+ @each $position in $positions {
19
+ &-#{$position} {
20
+ position: $position;
21
+ }
22
+ }
23
+ }
24
+
25
+ .top-0 {
26
+ top: 0;
27
+ }
28
+
29
+ .bottom-0 {
30
+ bottom: 0;
31
+ }
32
+
33
+ .left-0 {
34
+ left: 0;
35
+ }
36
+
37
+ .right-0 {
38
+ right: 0;
39
+ }
40
+
41
+ // width and height in percents
42
+ .w-25 {
43
+ width: 25%;
44
+ }
45
+
46
+ .w-50 {
47
+ width: 50%;
48
+ }
49
+
50
+ .w-75 {
51
+ width: 75%;
52
+ }
53
+
54
+ .w-100 {
55
+ width: 100%;
56
+ }
57
+
58
+ .h-25 {
59
+ height: 25%;
60
+ }
61
+
62
+ .h-50 {
63
+ height: 50%;
64
+ }
65
+
66
+ .h-75 {
67
+ height: 75%;
68
+ }
69
+
70
+ .h-100 {
71
+ height: 100%;
72
+ }
@@ -0,0 +1,97 @@
1
+ // margin
2
+ .mb-1 {
3
+ margin-bottom: 0.25rem;
4
+ }
5
+
6
+ .mb-2 {
7
+ margin-bottom: 0.5rem;
8
+ }
9
+
10
+ .mb-3 {
11
+ margin-bottom: 1rem;
12
+ }
13
+
14
+ .mt-1 {
15
+ margin-top: 0.25rem;
16
+ }
17
+
18
+ .mt-2 {
19
+ margin-top: 0.5rem;
20
+ }
21
+
22
+ .mt-3 {
23
+ margin-top: 1rem;
24
+ }
25
+
26
+ .mr-1 {
27
+ margin-right: 0.25rem;
28
+ }
29
+
30
+ .mr-2 {
31
+ margin-right: 0.5rem;
32
+ }
33
+
34
+ .mr-3 {
35
+ margin-right: 1rem;
36
+ }
37
+
38
+ .ml-1 {
39
+ margin-left: 0.25rem;
40
+ }
41
+
42
+ .ml-2 {
43
+ margin-left: 0.5rem;
44
+ }
45
+
46
+ .ml-3 {
47
+ margin-left: 1rem;
48
+ }
49
+
50
+ // padding
51
+ .pb-1 {
52
+ padding-bottom: 0.25rem;
53
+ }
54
+
55
+ .pb-2 {
56
+ padding-bottom: 0.5rem;
57
+ }
58
+
59
+ .pb-3 {
60
+ padding-bottom: 1rem;
61
+ }
62
+
63
+ .pt-1 {
64
+ padding-top: 0.25rem;
65
+ }
66
+
67
+ .pt-2 {
68
+ padding-top: 0.5rem;
69
+ }
70
+
71
+ .pt-3 {
72
+ padding-top: 1rem;
73
+ }
74
+
75
+ .pr-1 {
76
+ padding-right: 0.25rem;
77
+ }
78
+
79
+ .pr-2 {
80
+ padding-right: 0.5rem;
81
+ }
82
+
83
+ .pr-3 {
84
+ padding-right: 1rem;
85
+ }
86
+
87
+ .pl-1 {
88
+ padding-left: 0.25rem;
89
+ }
90
+
91
+ .pl-2 {
92
+ padding-left: 0.5rem;
93
+ }
94
+
95
+ .pl-3 {
96
+ padding-left: 1rem;
97
+ }
@@ -0,0 +1,25 @@
1
+ $text-aligns: center, left, right, end, justify, start;
2
+
3
+ .text {
4
+ @each $text-align in $text-aligns {
5
+ &-#{$text-align} {
6
+ text-align: $text-align;
7
+ }
8
+ }
9
+ }
10
+
11
+ .bold {
12
+ font-weight: 700;
13
+ }
14
+
15
+ .italic {
16
+ font-style: italic;
17
+ }
18
+
19
+ .underline {
20
+ text-decoration: underline;
21
+ }
22
+
23
+ .uppercase {
24
+ text-transform: uppercase;
25
+ }
@@ -0,0 +1,5 @@
1
+ $justifyValues: center, end, start, stretch, flex-start, flex-end, left, right, space-between, space-around, space-evenly;
2
+ $alignValues: center, end, start, stretch, flex-start, flex-end;
3
+ $directionValues: column-reverse column row-reverse row;
4
+ $colValues: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;
5
+ $colMaxValue: 12;
@@ -4,6 +4,7 @@
4
4
  @forward 'common/radiuses';
5
5
  @forward 'common/old-variables';
6
6
  @forward 'common/variables';
7
+ @forward 'common/flex';
7
8
 
8
9
  @forward 'components/button';
9
10
  @forward 'components/calendar';