tntd 3.0.18 → 3.0.19

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.
@@ -4,8 +4,8 @@
4
4
  display: flex;
5
5
  align-items: center;
6
6
  justify-content: space-between;
7
- .tntd-title-text{
8
- height: 100%;
7
+ .tntd-title-text {
8
+ height: 100%;
9
9
  }
10
10
  }
11
11
 
@@ -93,7 +93,8 @@
93
93
  }
94
94
  }
95
95
 
96
- &.large,&.h1 {
96
+ &.large,
97
+ &.h1 {
97
98
  & {
98
99
  height: 40px;
99
100
  line-height: 40px;
@@ -104,14 +105,14 @@
104
105
  }
105
106
  &::before {
106
107
  height: 16px;
107
- top: 12px;
108
108
  }
109
109
  .sub-title {
110
110
  font-size: 16px;
111
111
  }
112
112
  }
113
113
  }
114
- &.middle,&.h2 {
114
+ &.middle,
115
+ &.h2 {
115
116
  & {
116
117
  height: 36px;
117
118
  line-height: 36px;
@@ -122,56 +123,58 @@
122
123
  }
123
124
  &::before {
124
125
  height: 14px;
125
- top: 11px;
126
126
  }
127
127
  }
128
128
  }
129
- &.h3,&.h4,&.h5,&.small{
129
+ &.h3,
130
+ &.h4,
131
+ &.h5,
132
+ &.small {
130
133
  & {
131
- height: 22px;
132
- line-height: 22px;
133
- .tntd-title-text{
134
- h3 {
135
- font-size: 14px;
136
- }
137
- .sub-title{
138
- font-size: 14px;
139
- }
134
+ height: 22px;
135
+ line-height: 22px;
136
+ .tntd-title-text {
137
+ h3 {
138
+ font-size: 14px;
139
+ }
140
+ .sub-title {
141
+ font-size: 14px;
140
142
  }
143
+ }
141
144
  }
142
145
  }
143
146
  // 默认h3 和 small
144
- &.h3,&.small {
147
+ &.h3,
148
+ &.small {
145
149
  .tntd-title-text {
146
- &::before {
147
- height: 12px;
148
- top: 5px;
149
- }
150
- h3 {
151
- font-weight: bold;
152
- }
150
+ &::before {
151
+ height: 12px;
152
+ }
153
+ h3 {
154
+ font-weight: bold;
155
+ }
153
156
  }
154
157
  }
155
158
  &.h4 {
156
159
  .tntd-title-text {
157
- &::before {
158
- display: none;
159
- }
160
- h3 {
161
- font-weight: bold;
162
- margin-left:0;
163
- }
160
+ &::before {
161
+ display: none;
162
+ }
163
+ h3 {
164
+ font-weight: bold;
165
+ margin-left: 0;
166
+ }
164
167
  }
165
168
  }
166
169
  &.h5 {
167
170
  .tntd-title-text {
168
- &::before {
169
- display: none;
170
- }
171
- h3 {
172
- margin-left: 0;
173
- font-weight: normal;
174
- }
171
+ &::before {
172
+ display: none;
173
+ }
174
+ h3 {
175
+ margin-left: 0;
176
+ font-weight: normal;
177
+ }
175
178
  }
176
179
  }
177
180
  .tntd-title-text {
@@ -179,7 +182,7 @@
179
182
  position: relative;
180
183
  display: flex;
181
184
  align-items: center;
182
- flex:1;
185
+ flex: 1;
183
186
  min-width: 0;
184
187
  }
185
188
  h3 {
@@ -191,7 +194,7 @@
191
194
  white-space: nowrap;
192
195
  overflow: hidden;
193
196
  text-overflow: ellipsis;
194
- &.has-sub-title{
197
+ &.has-sub-title {
195
198
  max-width: 70%;
196
199
  }
197
200
  }
@@ -205,15 +208,14 @@
205
208
  text-overflow: ellipsis;
206
209
  margin-left: 8px;
207
210
  }
208
- .sub-tip{
209
- margin-left: 4px;
210
- font-size: 16px;
211
- color:@text-color;
211
+ .sub-tip {
212
+ margin-left: 4px;
213
+ font-size: 16px;
214
+ color: @text-color;
212
215
  }
213
216
  &::before {
214
217
  position: absolute;
215
218
  left: 0;
216
- top: 10px;
217
219
  background-color: @primary-color;
218
220
  content: '';
219
221
  width: 4px;
@@ -4,8 +4,8 @@
4
4
  display: flex;
5
5
  align-items: center;
6
6
  justify-content: space-between;
7
- .tntd-title-text{
8
- height: 100%;
7
+ .tntd-title-text {
8
+ height: 100%;
9
9
  }
10
10
  }
11
11
 
@@ -93,7 +93,8 @@
93
93
  }
94
94
  }
95
95
 
96
- &.large,&.h1 {
96
+ &.large,
97
+ &.h1 {
97
98
  & {
98
99
  height: 40px;
99
100
  line-height: 40px;
@@ -104,14 +105,14 @@
104
105
  }
105
106
  &::before {
106
107
  height: 16px;
107
- top: 12px;
108
108
  }
109
109
  .sub-title {
110
110
  font-size: 16px;
111
111
  }
112
112
  }
113
113
  }
114
- &.middle,&.h2 {
114
+ &.middle,
115
+ &.h2 {
115
116
  & {
116
117
  height: 36px;
117
118
  line-height: 36px;
@@ -122,56 +123,58 @@
122
123
  }
123
124
  &::before {
124
125
  height: 14px;
125
- top: 11px;
126
126
  }
127
127
  }
128
128
  }
129
- &.h3,&.h4,&.h5,&.small{
129
+ &.h3,
130
+ &.h4,
131
+ &.h5,
132
+ &.small {
130
133
  & {
131
- height: 22px;
132
- line-height: 22px;
133
- .tntd-title-text{
134
- h3 {
135
- font-size: 14px;
136
- }
137
- .sub-title{
138
- font-size: 14px;
139
- }
134
+ height: 22px;
135
+ line-height: 22px;
136
+ .tntd-title-text {
137
+ h3 {
138
+ font-size: 14px;
139
+ }
140
+ .sub-title {
141
+ font-size: 14px;
140
142
  }
143
+ }
141
144
  }
142
145
  }
143
146
  // 默认h3 和 small
144
- &.h3,&.small {
147
+ &.h3,
148
+ &.small {
145
149
  .tntd-title-text {
146
- &::before {
147
- height: 12px;
148
- top: 5px;
149
- }
150
- h3 {
151
- font-weight: bold;
152
- }
150
+ &::before {
151
+ height: 12px;
152
+ }
153
+ h3 {
154
+ font-weight: bold;
155
+ }
153
156
  }
154
157
  }
155
158
  &.h4 {
156
159
  .tntd-title-text {
157
- &::before {
158
- display: none;
159
- }
160
- h3 {
161
- font-weight: bold;
162
- margin-left:0;
163
- }
160
+ &::before {
161
+ display: none;
162
+ }
163
+ h3 {
164
+ font-weight: bold;
165
+ margin-left: 0;
166
+ }
164
167
  }
165
168
  }
166
169
  &.h5 {
167
170
  .tntd-title-text {
168
- &::before {
169
- display: none;
170
- }
171
- h3 {
172
- margin-left: 0;
173
- font-weight: normal;
174
- }
171
+ &::before {
172
+ display: none;
173
+ }
174
+ h3 {
175
+ margin-left: 0;
176
+ font-weight: normal;
177
+ }
175
178
  }
176
179
  }
177
180
  .tntd-title-text {
@@ -179,7 +182,7 @@
179
182
  position: relative;
180
183
  display: flex;
181
184
  align-items: center;
182
- flex:1;
185
+ flex: 1;
183
186
  min-width: 0;
184
187
  }
185
188
  h3 {
@@ -191,7 +194,7 @@
191
194
  white-space: nowrap;
192
195
  overflow: hidden;
193
196
  text-overflow: ellipsis;
194
- &.has-sub-title{
197
+ &.has-sub-title {
195
198
  max-width: 70%;
196
199
  }
197
200
  }
@@ -205,15 +208,14 @@
205
208
  text-overflow: ellipsis;
206
209
  margin-left: 8px;
207
210
  }
208
- .sub-tip{
209
- margin-left: 4px;
210
- font-size: 16px;
211
- color:@text-color;
211
+ .sub-tip {
212
+ margin-left: 4px;
213
+ font-size: 16px;
214
+ color: @text-color;
212
215
  }
213
216
  &::before {
214
217
  position: absolute;
215
218
  left: 0;
216
- top: 10px;
217
219
  background-color: @primary-color;
218
220
  content: '';
219
221
  width: 4px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tntd",
3
- "version": "3.0.18",
3
+ "version": "3.0.19",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "start": "heft start --storybook",