Skip to content

Commit 24c8f34

Browse files
committed
chore(ui): Make it easier to update both .styl and .sass files
1 parent 9daa8aa commit 24c8f34

File tree

85 files changed

+2419
-2433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2419
-2433
lines changed

ui/.stylintrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"blocks": "never",
33
"brackets": "never",
4-
"colons": "never",
5-
"colors": "always",
6-
"commaSpace": "always",
4+
"colons": "always",
5+
"colors": false,
6+
"commaSpace": false,
77
"commentSpace": "always",
88
"cssLiteral": "never",
99
"depthLimit": false,
10-
"duplicates": true,
10+
"duplicates": false,
1111
"efficient": "always",
1212
"extendPref": false,
1313
"globalDupe": true,

ui/src/components/ajax-bar/QAjaxBar.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.q-loading-bar
22
position: fixed
33
z-index: $z-max
4-
transition: transform .5s cubic-bezier(0, 0, .2, 1), opacity .5s
4+
transition: transform .5s cubic-bezier(0,0,.2,1), opacity .5s
55

66
&--top
77
left: 0 #{"/* rtl:ignore */"}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
.q-loading-bar
2-
position fixed
3-
z-index $z-max
4-
transition transform .5s cubic-bezier(0, 0, .2, 1), opacity .5s
2+
position: fixed
3+
z-index: $z-max
4+
transition: transform .5s cubic-bezier(0,0,.2,1), opacity .5s
55

66
&--top
7-
left 0 /* rtl:ignore */
8-
right 0 /* rtl:ignore */
9-
top 0
10-
width 100%
7+
left: 0 /* rtl:ignore */
8+
right: 0 /* rtl:ignore */
9+
top: 0
10+
width: 100%
1111
&--bottom
12-
left 0 /* rtl:ignore */
13-
right 0 /* rtl:ignore */
14-
bottom 0
15-
width 100%
12+
left: 0 /* rtl:ignore */
13+
right: 0 /* rtl:ignore */
14+
bottom: 0
15+
width: 100%
1616

1717
&--right
18-
top 0
19-
bottom 0
20-
right 0
21-
height 100%
18+
top: 0
19+
bottom: 0
20+
right: 0
21+
height: 100%
2222
&--left
23-
top 0
24-
bottom 0
25-
left 0
26-
height 100%
23+
top: 0
24+
bottom: 0
25+
left: 0
26+
height: 100%
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
.q-avatar
2-
position relative
3-
vertical-align middle
4-
display inline-block
2+
position: relative
3+
vertical-align: middle
4+
display: inline-block
55

6-
border-radius 50%
6+
border-radius: 50%
77

8-
font-size 48px
9-
height 1em
10-
width 1em
8+
font-size: 48px
9+
height: 1em
10+
width: 1em
1111

1212
&__content
13-
font-size .5em
14-
line-height .5em
13+
font-size: .5em
14+
line-height: .5em
1515

1616
&__content, img:not(.q-icon)
17-
border-radius inherit
18-
height inherit
19-
width inherit
17+
border-radius: inherit
18+
height: inherit
19+
width: inherit
2020

2121
.q-avatar__content--square
22-
border-radius 0
22+
border-radius: 0

ui/src/components/badge/QBadge.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
cursor: inherit
2323

2424
&--transparent
25-
opacity: 0.8
25+
opacity: .8
2626

2727
&--outline
2828
background-color: transparent
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
.q-badge
2-
background-color $primary
3-
background-color var(--q-color-primary)
4-
color white
5-
padding 2px 6px
6-
border-radius $generic-border-radius
7-
font-size 12px
8-
line-height 12px
9-
font-weight normal
10-
vertical-align baseline
2+
background-color: $primary
3+
background-color: var(--q-color-primary)
4+
color: #fff
5+
padding: 2px 6px
6+
border-radius: $generic-border-radius
7+
font-size: 12px
8+
line-height: 12px
9+
font-weight: normal
10+
vertical-align: baseline
1111

1212
&--single-line
13-
white-space nowrap
13+
white-space: nowrap
1414
&--multi-line
15-
word-break break-all
16-
word-wrap break-word
15+
word-break: break-all
16+
word-wrap: break-word
1717

1818
&--floating
19-
position absolute
20-
top -4px
21-
right -3px
22-
cursor inherit
19+
position: absolute
20+
top: -4px
21+
right: -3px
22+
cursor: inherit
2323

2424
&--transparent
25-
opacity 0.8
25+
opacity: .8
2626

2727
&--outline
28-
background-color transparent
29-
border 1px solid currentColor
28+
background-color: transparent
29+
border: 1px solid currentColor
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
.q-banner
2-
min-height 54px
3-
padding 8px 16px
4-
background white
2+
min-height: 54px
3+
padding: 8px 16px
4+
background: #fff
55

66
&--top-padding
7-
padding-top 14px
7+
padding-top: 14px
88

99
&__avatar
10-
min-width 1px !important
10+
min-width: 1px !important
1111
> .q-avatar
12-
font-size 46px
12+
font-size: 46px
1313
> .q-icon
14-
font-size 40px
14+
font-size: 40px
1515

1616
&__avatar:not(:empty) + &__content
17-
padding-left 16px
17+
padding-left: 16px
1818

1919
&__actions
2020
&.col-auto
21-
padding-left 16px
21+
padding-left: 16px
2222
&.col-all
2323
.q-btn-item
24-
margin 4px 0 0 4px
24+
margin: 4px 0 0 4px
2525

2626
&--dense
27-
min-height 32px
28-
padding 8px
27+
min-height: 32px
28+
padding: 8px
2929
&.q-banner--top-padding
30-
padding-top 12px
30+
padding-top: 12px
3131
.q-banner__avatar
3232
> .q-avatar, > .q-icon
33-
font-size 28px
33+
font-size: 28px
3434
.q-banner__avatar:not(:empty) + .q-banner__content
35-
padding-left 8px
35+
padding-left: 8px
3636
.q-banner__actions
3737
&.col-auto
38-
padding-left 8px
38+
padding-left: 8px

ui/src/components/bar/QBar.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.q-bar
2-
background: rgba(0, 0, 0, .2)
2+
background: rgba(0,0,0,.2)
33

44
> .q-icon
55
margin-left: 2px
@@ -28,4 +28,4 @@
2828
font-size: 8px
2929

3030
&--dark
31-
background: rgba(255, 255, 255, .15)
31+
background: rgba(255,255,255,.15)

ui/src/components/bar/QBar.styl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
.q-bar
2-
background rgba(0, 0, 0, .2)
2+
background: rgba(0,0,0,.2)
33

44
> .q-icon
5-
margin-left 2px
5+
margin-left: 2px
66
> div, > div + .q-icon
7-
margin-left 8px
7+
margin-left: 8px
88
> .q-btn
9-
margin-left 2px
9+
margin-left: 2px
1010

1111
> .q-icon:first-child, > .q-btn:first-child, > div:first-child
12-
margin-left 0
12+
margin-left: 0
1313

1414
&--standard
15-
padding 0 12px
16-
height 32px
17-
font-size 18px
15+
padding: 0 12px
16+
height: 32px
17+
font-size: 18px
1818
> div
19-
font-size 16px
19+
font-size: 16px
2020
.q-btn
21-
font-size 11px
21+
font-size: 11px
2222

2323
&--dense
24-
padding 0 8px
25-
height 24px
26-
font-size 14px
24+
padding: 0 8px
25+
height: 24px
26+
font-size: 14px
2727
.q-btn
28-
font-size 8px
28+
font-size: 8px
2929

3030
&--dark
31-
background rgba(255, 255, 255, .15)
31+
background: rgba(255,255,255,.15)
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
.q-breadcrumbs
22

33
&__el
4-
color inherit
4+
color: inherit
55

66
&__el-icon
7-
font-size 125%
7+
font-size: 125%
88

99
&--with-label
10-
margin-right 8px
10+
margin-right: 8px
1111

1212
&--last a
13-
pointer-events none
13+
pointer-events: none
1414

1515
[dir=rtl] .q-breadcrumbs__separator .q-icon
16-
transform scaleX(-1) /* rtl:ignore */
16+
transform: scaleX(-1) /* rtl:ignore */

0 commit comments

Comments
 (0)