@farm-investimentos/front-mfe-components 14.0.0 → 14.1.0
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/dist/front-mfe-components.common.js +312 -229
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +312 -229
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Checkbox/Checkbox.scss +96 -74
- package/src/components/Checkbox/Checkbox.stories.js +2 -2
- package/src/components/Checkbox/Checkbox.vue +15 -7
- package/src/components/Logger/LoggerItem/LoggerItem.scss +44 -58
- package/src/components/Logger/LoggerItem/LoggerItem.vue +10 -10
- package/src/components/Stepper/StepperHeader/StepperHeader.scss +11 -13
- package/src/components/Stepper/StepperHeader/StepperHeader.vue +4 -4
- package/src/components/Stepper/StepperHeader/_mixins.scss +37 -22
- package/src/components/layout/Col/Col.scss +42 -2
- package/src/components/layout/Col/Col.stories.js +30 -0
- package/src/components/layout/Col/Col.vue +50 -0
- package/src/components/layout/ContainerFooter/Container.stories.js +5 -0
- package/src/components/layout/ContainerFooter/ContainerFooter.scss +10 -6
- package/src/components/layout/ContainerFooter/ContainerFooter.vue +12 -1
package/package.json
CHANGED
|
@@ -3,84 +3,106 @@
|
|
|
3
3
|
@import '../../configurations/mixins';
|
|
4
4
|
|
|
5
5
|
.farm-checkbox__container {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
.farm-label {
|
|
11
|
+
margin-left: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@each $color in $theme-colors-list {
|
|
15
|
+
&#{'[color=' + $color + ']'} {
|
|
16
|
+
.farm-checkbox--checked,
|
|
17
|
+
.farm-checkbox--indeterminate {
|
|
18
|
+
background-color: themeColor($color);
|
|
19
|
+
border-color: themeColor($color);
|
|
20
|
+
|
|
21
|
+
&.farm-checkbox--lighten {
|
|
22
|
+
background-color: themeColor($color, 'lighten');
|
|
23
|
+
border-color: themeColor($color, 'lighten');
|
|
24
|
+
|
|
25
|
+
.farm-icon {
|
|
26
|
+
color: themeColor($color, 'darken');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.farm-checkbox--darken {
|
|
31
|
+
background-color: themeColor($color, 'darken');
|
|
32
|
+
border-color: themeColor($color, 'darken');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include activateRipple;
|
|
39
|
+
|
|
40
|
+
.farm-checkbox.farm-checkbox--error {
|
|
41
|
+
border-color: themeColor('error');
|
|
42
|
+
}
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
@include rippleStyles;
|
|
47
46
|
|
|
48
47
|
.farm-checkbox {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
48
|
+
display: flex;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
border: 2px solid themeColor('neutral', 'darken');
|
|
51
|
+
border-radius: 2px;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
line-height: 0;
|
|
54
|
+
transition: all 0.4s;
|
|
55
|
+
z-index: 2;
|
|
56
|
+
|
|
57
|
+
&--disabled {
|
|
58
|
+
border-color: themeColor('neutral', 'base') !important;
|
|
59
|
+
cursor: default;
|
|
60
|
+
opacity: 0.6;
|
|
61
|
+
|
|
62
|
+
&.farm-checkbox--checked {
|
|
63
|
+
background-color: themeColor('neutral', 'base') !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.farm-icon {
|
|
68
|
+
color: white;
|
|
69
|
+
}
|
|
71
70
|
}
|
|
72
71
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
72
|
+
.farm-checkbox[size='16px'] {
|
|
73
|
+
width: 16px;
|
|
74
|
+
height: 16px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.farm-checkbox[size='24px'] {
|
|
78
|
+
width: 24px;
|
|
79
|
+
height: 24px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.farm-ripple[size='16px'] {
|
|
83
|
+
height: 16px * 1.75;
|
|
84
|
+
width: 16px * 1.75;
|
|
85
|
+
left: -16px * 0.4;
|
|
86
|
+
top: -16px * 0.4;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.farm-ripple[size='24px'] {
|
|
90
|
+
height: 24px * 1.75;
|
|
91
|
+
width: 24px * 1.75;
|
|
92
|
+
left: -24px * 0.4;
|
|
93
|
+
top: -24px * 0.4;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@each $size, $value in $sizes {
|
|
97
|
+
#{'.farm-checkbox[size=' + $size + ']'} {
|
|
98
|
+
width: $value;
|
|
99
|
+
height: $value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
#{'.farm-ripple[size=' + $size + ']'} {
|
|
103
|
+
height: $value * 1.75;
|
|
104
|
+
width: $value * 1.75;
|
|
105
|
+
left: -$value * 0.4;
|
|
106
|
+
top: -$value * 0.4;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -88,7 +88,7 @@ export const Disabled = () => ({
|
|
|
88
88
|
},
|
|
89
89
|
template: `<div>
|
|
90
90
|
<farm-checkbox v-model="isChecked" :value="true" :disabled="true" /><br />
|
|
91
|
-
<farm-checkbox v-model="notIsChecked" value="" :disabled="true" />
|
|
91
|
+
<farm-checkbox v-model="notIsChecked" value="1" :disabled="true" />
|
|
92
92
|
</div>`,
|
|
93
93
|
});
|
|
94
94
|
|
|
@@ -170,4 +170,4 @@ export const ResetByMethod = () => ({
|
|
|
170
170
|
isChecked (value): {{ isChecked }}
|
|
171
171
|
<farm-btn @click="$refs.checkbox.reset()">reset</farm-btn>
|
|
172
172
|
</div>`,
|
|
173
|
-
});
|
|
173
|
+
});
|
|
@@ -10,16 +10,15 @@
|
|
|
10
10
|
'farm-checkbox--darken': variation === 'darken',
|
|
11
11
|
'farm-checkbox--error': showError,
|
|
12
12
|
}"
|
|
13
|
-
:size="
|
|
13
|
+
:size="sizeValue"
|
|
14
14
|
@click="toggleValue"
|
|
15
15
|
>
|
|
16
|
-
<farm-icon :size="
|
|
17
|
-
<farm-icon :size="
|
|
16
|
+
<farm-icon :size="sizeValue" v-if="innerValue && !indeterminate">check</farm-icon>
|
|
17
|
+
<farm-icon :size="sizeValue" v-if="indeterminate">minus</farm-icon>
|
|
18
18
|
</span>
|
|
19
|
-
<farm-label v-if="label">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<div class="farm-ripple" :size="$props.size" v-if="!disabled"></div>
|
|
19
|
+
<farm-label v-if="label">{{ label }} </farm-label>
|
|
20
|
+
|
|
21
|
+
<div class="farm-ripple" :size="sizeValue" v-if="!disabled"></div>
|
|
23
22
|
</div>
|
|
24
23
|
</template>
|
|
25
24
|
<script lang="ts">
|
|
@@ -113,6 +112,14 @@ export default Vue.extend({
|
|
|
113
112
|
const isChecked = computed(() => innerValue.value == props.value);
|
|
114
113
|
const hasError = computed(() => errorBucket.value.length > 0);
|
|
115
114
|
const showError = computed(() => hasError.value && isTouched.value);
|
|
115
|
+
const sizeValue = computed(() => {
|
|
116
|
+
if (props.size === 'sm') {
|
|
117
|
+
return '16px';
|
|
118
|
+
} else if (props.size === 'md') {
|
|
119
|
+
return '24px';
|
|
120
|
+
}
|
|
121
|
+
return props.size;
|
|
122
|
+
});
|
|
116
123
|
|
|
117
124
|
const reset = () => {
|
|
118
125
|
if (disabled.value) {
|
|
@@ -161,6 +168,7 @@ export default Vue.extend({
|
|
|
161
168
|
showError,
|
|
162
169
|
makePristine,
|
|
163
170
|
isTouched,
|
|
171
|
+
sizeValue,
|
|
164
172
|
};
|
|
165
173
|
},
|
|
166
174
|
});
|
|
@@ -1,68 +1,54 @@
|
|
|
1
1
|
@mixin loggerMessage($color) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
> .farm-icon {
|
|
3
|
+
border-color: $color;
|
|
4
|
+
background-color: $color;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.farm-bodytext--2 {
|
|
8
|
+
color: $color;
|
|
9
|
+
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.logger__item {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
height: 64px;
|
|
16
|
+
align-items: center;
|
|
17
|
+
|
|
18
|
+
> div {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
padding-left: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.logger__item--error {
|
|
25
|
+
@include loggerMessage(var(--farm-error-base));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.logger__item--success {
|
|
29
|
+
@include loggerMessage(var(--farm-primary-base));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.logger__item--info {
|
|
33
|
+
@include loggerMessage(var(--farm-info-base));
|
|
34
|
+
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.logger__item > .farm-icon {
|
|
38
|
+
border: 1px solid var(--farm-stroke-base);
|
|
39
|
+
border-radius: 50%;
|
|
40
|
+
width: 32px;
|
|
41
|
+
height: 32px;
|
|
42
|
+
display: block;
|
|
37
43
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
width: 32px;
|
|
42
|
-
height: 32px;
|
|
43
|
-
display: block;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
justify-content: center;
|
|
48
|
+
border-color: var(--farm-neutral-base);
|
|
49
|
+
background-color: var(--farm-neutral-base);
|
|
48
50
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
&:before {
|
|
53
|
-
font-size: 16px;
|
|
54
|
-
color: white;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.logger__date,
|
|
59
|
-
.logger__username,
|
|
60
|
-
.logger__extramessage {
|
|
61
|
-
font-size: 10px;
|
|
62
|
-
font-weight: 400;
|
|
51
|
+
&:before {
|
|
52
|
+
color: white;
|
|
53
|
+
}
|
|
63
54
|
}
|
|
64
|
-
|
|
65
|
-
.logger__message {
|
|
66
|
-
font-size: 14px;
|
|
67
|
-
font-weight: 700;
|
|
68
|
-
}
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
['logger__item--' + item.status]: true,
|
|
6
6
|
}"
|
|
7
7
|
>
|
|
8
|
-
<farm-icon>{{ mdiIconName }}</farm-icon>
|
|
8
|
+
<farm-icon size="16px">{{ mdiIconName }}</farm-icon>
|
|
9
9
|
<div>
|
|
10
|
-
<
|
|
10
|
+
<farm-caption variation="regular">
|
|
11
11
|
{{ item.formattedDate }}
|
|
12
|
-
</
|
|
13
|
-
<
|
|
12
|
+
</farm-caption>
|
|
13
|
+
<farm-bodytext :type="2" variation="bold">
|
|
14
14
|
{{ item.message }}
|
|
15
|
-
</
|
|
16
|
-
<
|
|
17
|
-
<
|
|
15
|
+
</farm-bodytext>
|
|
16
|
+
<farm-caption variation="regular" v-if="item.userName">
|
|
17
|
+
<farm-icon color="black" size="xs">account-circle</farm-icon>
|
|
18
18
|
{{ item.userName }}
|
|
19
|
-
</
|
|
20
|
-
<
|
|
19
|
+
</farm-caption>
|
|
20
|
+
<farm-caption variation="regular">
|
|
21
21
|
{{ item.extraMessage }}
|
|
22
|
-
</
|
|
22
|
+
</farm-caption>
|
|
23
23
|
</div>
|
|
24
24
|
<farm-btn
|
|
25
25
|
v-if="hasDetails"
|
|
@@ -22,27 +22,25 @@ $step-height: 64px;
|
|
|
22
22
|
font-weight: 700;
|
|
23
23
|
|
|
24
24
|
&.stepper__header-step--previous {
|
|
25
|
-
@include stepperHeaderStepColor(var(--
|
|
25
|
+
@include stepperHeaderStepColor(var(--farm-primary-base));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&.stepper__header-step--current {
|
|
29
|
-
@include stepperHeaderStepColor(
|
|
29
|
+
@include stepperHeaderStepColor(#5089de);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&.stepper__header-step--error {
|
|
33
|
-
@include stepperHeaderStepColor(var(--
|
|
33
|
+
@include stepperHeaderStepColor(var(--farm-error-base));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&.stepper__header-step--next {
|
|
37
37
|
.farm-icon,
|
|
38
38
|
.farm-icon__number {
|
|
39
|
-
color: var(--
|
|
39
|
+
color: var(--farm-gray-base);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
font-size: 0.75rem;
|
|
45
|
-
font-weight: 400;
|
|
43
|
+
.farm-bodytext--2 {
|
|
46
44
|
margin-top: 8px;
|
|
47
45
|
text-align: center;
|
|
48
46
|
}
|
|
@@ -56,10 +54,10 @@ $step-height: 64px;
|
|
|
56
54
|
|
|
57
55
|
border: none;
|
|
58
56
|
margin: 16px -16px 0;
|
|
59
|
-
background: var(--
|
|
57
|
+
background: var(--farm-gray-base);
|
|
60
58
|
|
|
61
59
|
&.stepper__divider--previous {
|
|
62
|
-
background: var(--
|
|
60
|
+
background: var(--farm-primary-base);
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
@include stepperDividerGradient('right');
|
|
@@ -79,7 +77,7 @@ $step-height: 64px;
|
|
|
79
77
|
float: left;
|
|
80
78
|
}
|
|
81
79
|
|
|
82
|
-
|
|
80
|
+
.farm-bodytext--2 {
|
|
83
81
|
display: flex;
|
|
84
82
|
align-items: center;
|
|
85
83
|
width: calc(100% - 40px);
|
|
@@ -98,10 +96,10 @@ $step-height: 64px;
|
|
|
98
96
|
height: 32px;
|
|
99
97
|
margin: -24px 0 8px 16px;
|
|
100
98
|
width: 1px;
|
|
101
|
-
background-color: var(
|
|
99
|
+
background-color: var(----farm-gray-lighten);
|
|
102
100
|
|
|
103
101
|
&.stepper__divider--previous {
|
|
104
|
-
background-color: var(--
|
|
102
|
+
background-color: var(--farm-primary-base);
|
|
105
103
|
}
|
|
106
104
|
|
|
107
105
|
@include stepperDividerGradient('bottom');
|
|
@@ -111,7 +109,7 @@ $step-height: 64px;
|
|
|
111
109
|
|
|
112
110
|
.farm-icon,
|
|
113
111
|
.farm-icon__number {
|
|
114
|
-
border: 1px solid var(--
|
|
112
|
+
border: 1px solid var(--farm-gray-base);
|
|
115
113
|
border-radius: 50%;
|
|
116
114
|
width: 32px;
|
|
117
115
|
height: 32px;
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
<farm-icon v-if="step.icon">
|
|
16
16
|
{{ step.icon }}
|
|
17
17
|
</farm-icon>
|
|
18
|
-
<
|
|
18
|
+
<farm-bodytext :type="2" variation="bold" v-else class="farm-icon__number">
|
|
19
19
|
{{ index + 1 }}
|
|
20
|
-
</
|
|
21
|
-
<
|
|
20
|
+
</farm-bodytext>
|
|
21
|
+
<farm-bodytext :type="2" variation="bold">
|
|
22
22
|
{{ step.label }}
|
|
23
|
-
</
|
|
23
|
+
</farm-bodytext>
|
|
24
24
|
</div>
|
|
25
25
|
<div
|
|
26
26
|
:class="{
|
|
@@ -1,31 +1,46 @@
|
|
|
1
1
|
@mixin stepperHeaderStepColor($color) {
|
|
2
|
+
.farm-icon,
|
|
3
|
+
.farm-icon__number {
|
|
4
|
+
background-color: $color;
|
|
5
|
+
border-color: $color;
|
|
6
|
+
}
|
|
2
7
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
+
.farm-icon:before,
|
|
9
|
+
.farm-icon__number {
|
|
10
|
+
color: white;
|
|
11
|
+
}
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
.farm-bodytext--2 {
|
|
14
|
+
color: $color;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.farm-bodytext--2.farm-icon__number {
|
|
18
|
+
color: white;
|
|
19
|
+
}
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
@mixin stepperDividerGradient($direction) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
&.stepper__divider--previous-to-current {
|
|
24
|
+
background: linear-gradient(to #{$direction}, var(--farm-primary-base), #5089de);
|
|
25
|
+
}
|
|
19
26
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
&.stepper__divider--previous-to-error {
|
|
28
|
+
background: linear-gradient(
|
|
29
|
+
to #{$direction},
|
|
30
|
+
var(--farm-primary-base),
|
|
31
|
+
var(--farm-error-base)
|
|
32
|
+
);
|
|
33
|
+
}
|
|
23
34
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
35
|
+
&.stepper__divider--error-to-next {
|
|
36
|
+
background: linear-gradient(
|
|
37
|
+
to #{$direction},
|
|
38
|
+
var(--farm-error-base),
|
|
39
|
+
var(--farm-gray-lighten)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
27
42
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
43
|
+
&.stepper__divider--current-to-next {
|
|
44
|
+
background: linear-gradient(to #{$direction}, #5089de, var(--farm-gray-lighten));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -24,13 +24,19 @@
|
|
|
24
24
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
25
25
|
max-width: (100/12 * $i)+#{"%"};
|
|
26
26
|
}
|
|
27
|
-
}
|
|
28
27
|
|
|
29
|
-
@for $i from 1 through 12 {
|
|
30
28
|
.farm-col--xs-#{$i * 1} {
|
|
31
29
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
32
30
|
max-width: (100/12 * $i)+#{"%"};
|
|
33
31
|
}
|
|
32
|
+
|
|
33
|
+
.farm-col--offset-#{$i * 1} {
|
|
34
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.farm-col--offset-0 {
|
|
39
|
+
margin-left: 0%;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
@include fromXs {
|
|
@@ -39,6 +45,14 @@
|
|
|
39
45
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
40
46
|
max-width: (100/12 * $i)+#{"%"};
|
|
41
47
|
}
|
|
48
|
+
|
|
49
|
+
.farm-col--offset-sm-#{$i * 1} {
|
|
50
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.farm-col--offset-sm-0 {
|
|
55
|
+
margin-left: 0%;
|
|
42
56
|
}
|
|
43
57
|
}
|
|
44
58
|
|
|
@@ -48,7 +62,17 @@
|
|
|
48
62
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
49
63
|
max-width: (100/12 * $i)+#{"%"};
|
|
50
64
|
}
|
|
65
|
+
|
|
66
|
+
.farm-col--offset-md-#{$i * 1} {
|
|
67
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.farm-col--offset-md-0 {
|
|
73
|
+
margin-left: 0%;
|
|
51
74
|
}
|
|
75
|
+
|
|
52
76
|
}
|
|
53
77
|
|
|
54
78
|
@include fromMd {
|
|
@@ -57,6 +81,14 @@
|
|
|
57
81
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
58
82
|
max-width: (100/12 * $i)+#{"%"};
|
|
59
83
|
}
|
|
84
|
+
|
|
85
|
+
.farm-col--offset-lg-#{$i * 1} {
|
|
86
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.farm-col--offset-lg-0 {
|
|
91
|
+
margin-left: 0%;
|
|
60
92
|
}
|
|
61
93
|
}
|
|
62
94
|
|
|
@@ -66,5 +98,13 @@
|
|
|
66
98
|
flex: 0 0 (100/12 * $i)+#{"%"};
|
|
67
99
|
max-width: (100/12 * $i)+#{"%"};
|
|
68
100
|
}
|
|
101
|
+
|
|
102
|
+
.farm-col--offset-xl-#{$i * 1} {
|
|
103
|
+
margin-left: (100/12 * $i)+#{"%"};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.farm-col--offset-xl-0 {
|
|
108
|
+
margin-left: 0%;
|
|
69
109
|
}
|
|
70
110
|
}
|
|
@@ -141,4 +141,34 @@ export const AlignSelf = () => ({
|
|
|
141
141
|
<farm-row style="height: 150px">
|
|
142
142
|
<farm-col :style="style" v-for="align in aligns" :key="align" :align-self="align">{{ align }}</farm-col>
|
|
143
143
|
</farm-row>`,
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export const Offsets = () => ({
|
|
147
|
+
data() {
|
|
148
|
+
return {
|
|
149
|
+
style,
|
|
150
|
+
items
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
template: `<farm-box>
|
|
154
|
+
<farm-row>
|
|
155
|
+
<farm-col :style="style" md="1" offset-md="3">offset-md 3</farm-col>
|
|
156
|
+
<farm-col :style="style" md="1" offset-md="1">offset-md 1</farm-col>
|
|
157
|
+
</farm-row>
|
|
158
|
+
<br />
|
|
159
|
+
<farm-row>
|
|
160
|
+
<farm-col :style="style" md="1" offset-sm="1">offset-sm 1</farm-col>
|
|
161
|
+
<farm-col :style="style" md="1" offset-sm="4">offset-sm 4</farm-col>
|
|
162
|
+
<farm-col :style="style" md="1" offset-sm="2">offset-sm 2</farm-col>
|
|
163
|
+
</farm-row>
|
|
164
|
+
<br />
|
|
165
|
+
<farm-row>
|
|
166
|
+
<farm-col :style="style" md="1" offset-sm="1" offset-md="3">offset-sm 1 md 3</farm-col>
|
|
167
|
+
</farm-row>
|
|
168
|
+
<br />
|
|
169
|
+
<farm-row>
|
|
170
|
+
<farm-col :style="style" md="1" offset="1">offset 1</farm-col>
|
|
171
|
+
<farm-col :style="style" md="1" offset="1" offset-md="0">offset md 0</farm-col>
|
|
172
|
+
</farm-row>
|
|
173
|
+
</farm-box>`,
|
|
144
174
|
});
|