@taiga-ui/styles 4.0.0-rc.1 → 4.0.0-rc.2

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.
@@ -1,7 +1,7 @@
1
- @fields-space: @space * 5;
2
- @fields-space-mobile: @space * 4;
3
- @fields-space-large: @space * 8;
4
- @fields-space-large-mobile: @space * 6;
1
+ @fields-space: 1.25rem;
2
+ @fields-space-mobile: 1rem;
3
+ @fields-space-large: 2rem;
4
+ @fields-space-large-mobile: 1.5rem;
5
5
 
6
6
  .tui-form {
7
7
  /* stylelint-disable */
@@ -25,10 +25,10 @@
25
25
  }
26
26
 
27
27
  &_margin-bottom_small {
28
- margin-bottom: @fields-space - @space;
28
+ margin-bottom: @fields-space - 0.25rem;
29
29
 
30
30
  @media @tui-mobile {
31
- margin-bottom: @fields-space-mobile - @space;
31
+ margin-bottom: @fields-space-mobile - 0.25rem;
32
32
  }
33
33
  }
34
34
  }
@@ -89,12 +89,12 @@
89
89
 
90
90
  &__field-note {
91
91
  font: var(--tui-font-text-s);
92
- margin-top: @space;
92
+ margin-top: 0.25rem;
93
93
  color: var(--tui-text-secondary);
94
94
  }
95
95
 
96
96
  &__field-checkbox {
97
- margin-top: @space * 2;
97
+ margin-top: 0.5rem;
98
98
  }
99
99
 
100
100
  &__checkbox {
@@ -128,14 +128,14 @@
128
128
  }
129
129
 
130
130
  &__button {
131
- margin-left: @space * 3;
131
+ margin-left: 0.75rem;
132
132
 
133
133
  &:first-child {
134
134
  margin-left: 0;
135
135
  }
136
136
 
137
137
  @media @tui-mobile {
138
- margin-top: @space * 2;
138
+ margin-top: 0.5rem;
139
139
  margin-left: 0;
140
140
  }
141
141
  }
@@ -97,21 +97,21 @@
97
97
  line-height: 1rem;
98
98
  text-transform: uppercase;
99
99
  letter-spacing: 0.075em;
100
- margin: 0 0 @space * 2;
100
+ margin: 0 0 0.5rem;
101
101
  color: var(--tui-text-secondary);
102
102
 
103
103
  .tui-island_size_l & {
104
- margin: 0 0 @space * 3;
104
+ margin: 0 0 0.75rem;
105
105
  }
106
106
  }
107
107
 
108
108
  &__title {
109
109
  font: var(--tui-font-text-m);
110
- margin: 0 0 @space * 2;
110
+ margin: 0 0 0.5rem;
111
111
 
112
112
  .tui-island_size_m & {
113
113
  font: var(--tui-font-heading-6);
114
- margin: 0 0 @space * 3;
114
+ margin: 0 0 0.75rem;
115
115
  }
116
116
 
117
117
  .tui-island_size_l & {
@@ -124,18 +124,18 @@
124
124
  color: var(--tui-text-secondary);
125
125
 
126
126
  &_link.tui-island__paragraph {
127
- margin-top: @space * 4;
127
+ margin-top: 1rem;
128
128
 
129
129
  .tui-island_size_l & {
130
- margin: @space * 4 0 0;
130
+ margin: 1rem 0 0;
131
131
  }
132
132
  }
133
133
 
134
134
  &_button.tui-island__paragraph {
135
- margin-top: @space * 5;
135
+ margin-top: 1.25rem;
136
136
 
137
137
  .tui-island_size_l & {
138
- margin: @space * 5 0 0;
138
+ margin: 1.25rem 0 0;
139
139
  }
140
140
  }
141
141
  }
@@ -145,14 +145,14 @@
145
145
  justify-content: center;
146
146
  order: 1;
147
147
  flex-shrink: 0;
148
- margin: 0 0 0 @space * 4;
148
+ margin: 0 0 0 1rem;
149
149
 
150
150
  .tui-island_size_l & {
151
- margin-left: @space * 9;
151
+ margin-left: 2.25rem;
152
152
  }
153
153
 
154
154
  .tui-island_text-align_center & {
155
- margin: 0 0 @space * 3 0;
155
+ margin: 0 0 0.75rem;
156
156
  }
157
157
  }
158
158
 
@@ -170,7 +170,7 @@
170
170
  }
171
171
 
172
172
  &__carousel-button {
173
- margin-right: @space * 2;
173
+ margin-right: 0.5rem;
174
174
  }
175
175
 
176
176
  .tui-island &__footer-button {
@@ -35,9 +35,9 @@
35
35
 
36
36
  &__item {
37
37
  position: relative;
38
- padding-left: @space * 6;
38
+ padding-left: 1.5rem;
39
39
  word-wrap: break-word;
40
- margin-top: @space * 3;
40
+ margin-top: 0.75rem;
41
41
 
42
42
  &:first-child {
43
43
  margin-top: 0;
@@ -63,11 +63,11 @@
63
63
  }
64
64
 
65
65
  .tui-list_extra-small > & {
66
- margin-top: @space * 2;
66
+ margin-top: 0.5rem;
67
67
  }
68
68
 
69
69
  .tui-list_linear & {
70
- padding-left: @space * 7;
70
+ padding-left: 1.75rem;
71
71
 
72
72
  &:before {
73
73
  content: '\2014';
@@ -80,7 +80,7 @@
80
80
  }
81
81
 
82
82
  .tui-list_ordered & {
83
- padding-left: @space * 5;
83
+ padding-left: 1.25rem;
84
84
 
85
85
  &:before {
86
86
  content: counter(counter) '.';
@@ -95,7 +95,7 @@
95
95
  }
96
96
 
97
97
  .tui-list_triangle > & {
98
- padding-left: @space * 7;
98
+ padding-left: 1.75rem;
99
99
 
100
100
  &:before {
101
101
  content: '\25E4'; // represent symbol '◤'
@@ -121,16 +121,16 @@
121
121
  }
122
122
 
123
123
  &__description {
124
- margin: @space * 2 0 0;
124
+ margin: 0.5rem 0 0;
125
125
  color: var(--tui-text-secondary);
126
126
 
127
127
  .tui-list_small & {
128
- margin-top: @space;
128
+ margin-top: 0.25rem;
129
129
  }
130
130
 
131
131
  .tui-list_large & {
132
132
  line-height: 1.75rem;
133
- margin-top: @space * 3;
133
+ margin-top: 0.75rem;
134
134
  }
135
135
  }
136
136
  }
@@ -5,33 +5,33 @@
5
5
 
6
6
  &_@{direction}-@{i} {
7
7
  & when (@direction = all) {
8
- margin: @space * @i;
8
+ margin: 0.25rem * @i;
9
9
  }
10
10
 
11
11
  & when (@direction = top) {
12
- margin-top: @space * @i;
12
+ margin-top: 0.25rem * @i;
13
13
  }
14
14
 
15
15
  & when (@direction = bottom) {
16
- margin-bottom: @space * @i;
16
+ margin-bottom: 0.25rem * @i;
17
17
  }
18
18
 
19
19
  & when (@direction = vertical) {
20
- margin-top: @space * @i;
21
- margin-bottom: @space * @i;
20
+ margin-top: 0.25rem * @i;
21
+ margin-bottom: 0.25rem * @i;
22
22
  }
23
23
 
24
24
  & when (@direction = left) {
25
- margin-left: @space * @i;
25
+ margin-left: 0.25rem * @i;
26
26
  }
27
27
 
28
28
  & when (@direction = right) {
29
- margin-right: @space * @i;
29
+ margin-right: 0.25rem * @i;
30
30
  }
31
31
 
32
32
  & when (@direction = horizontal) {
33
- margin-right: @space * @i;
34
- margin-left: @space * @i;
33
+ margin-right: 0.25rem * @i;
34
+ margin-left: 0.25rem * @i;
35
35
  }
36
36
  }
37
37
  }
@@ -133,7 +133,7 @@
133
133
 
134
134
  &__subtext {
135
135
  font: var(--tui-font-text-s);
136
- margin: @space 0 0 0;
136
+ margin: 0.25rem 0 0;
137
137
  color: var(--tui-text-tertiary);
138
138
  }
139
139
 
@@ -164,7 +164,7 @@
164
164
  .center-top();
165
165
 
166
166
  left: 100%;
167
- margin-left: (@space / 2);
167
+ margin-left: 0.125rem;
168
168
  width: 1rem;
169
169
  height: 1rem;
170
170
  flex-shrink: 0;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@taiga-ui/styles",
3
- "version": "4.0.0-rc.1",
3
+ "version": "4.0.0-rc.2",
4
4
  "description": "Global Styles for Taiga UI",
5
5
  "peerDependencies": {
6
- "@taiga-ui/cdk": "^4.0.0-rc.1",
6
+ "@taiga-ui/cdk": "^4.0.0-rc.2",
7
7
  "tslib": "^2.6.3"
8
8
  }
9
9
  }