Skip to content

Commit 41808d7

Browse files
JF-Cozyzatteo
authored andcommitted
fix(Styles): Remove import of stylus file with global class creation in it
1 parent 9bc4199 commit 41808d7

File tree

6 files changed

+25
-13
lines changed

6 files changed

+25
-13
lines changed

react/Field/styles.styl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
@require '../../stylus/components/forms'
2-
@require 'settings/spaces.styl'
1+
@require 'components/forms'
2+
@require 'settings/breakpoints'
3+
@require 'settings/spaces'
34

45
.o-field
56
@extend $field

stylus/components/button.styl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
@require '../settings/icons'
2-
@require '../utilities/display'
3-
@require '../utilities/text'
42
@require '../tools/mixins'
53

64
palette=json('../settings/palette.json', { hash: true })
@@ -431,7 +429,7 @@ $actionbtn--compact
431429
justify-content center
432430

433431
[data-action='label']
434-
@extend $hide
432+
hide()
435433

436434
[data-action='icon']
437435
border-left none
@@ -476,7 +474,7 @@ $actionbtn--new
476474
border-style solid
477475

478476
$actionbtn-label
479-
@extend $ellipsis
477+
ellipsis()
480478
padding-right rem(8)
481479

482480
$actionbtn-icon

stylus/components/forms.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
This file contains all needs for forms, inputs, labels...
66
\*------------------------------------*/
77

8-
@require '../components/button'
98
@require '../tools/mixins'
9+
@require '../settings/breakpoints'
1010

1111
checkbox-size = rem(16)
1212

stylus/generic/animations.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
transform rotate(0deg)
1616
to
1717
transform rotate(359deg)
18-
18+
1919
@keyframes shake
2020
10%, 90%
2121
transform translate3d(-1px, 0, 0)
22-
22+
2323
20%, 80%
2424
transform translate3d(2px, 0, 0)
2525

stylus/tools/mixins.styl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,28 @@ visually-hide()
9595
width 1px
9696
white-space nowrap
9797

98+
/*
99+
ellipsis()
100+
101+
ellipsis() mixin add an ellipsis on text.
102+
This mixin doesn't take parameters.
103+
104+
Weight: 4
105+
106+
Styleguide Tools.mixins.ellipsis
107+
*/
108+
ellipsis()
109+
white-space nowrap
110+
overflow hidden
111+
text-overflow ellipsis
112+
98113
/*
99114
reset()
100115
101116
reset() mixin removes every padding, margin and border of an element.
102117
This mixin doesn't take parameters.
103118
104-
Weight: 4
119+
Weight: 5
105120
106121
Styleguide Tools.mixins.reset
107122
*/

stylus/utilities/text.styl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ $breakword
1818
word-break break-word
1919

2020
$ellipsis
21-
white-space nowrap
22-
overflow hidden
23-
text-overflow ellipsis
21+
ellipsis()
2422

2523
spacellipsis()
2624
overflow hidden

0 commit comments

Comments
 (0)