Skip to content

Commit 9fb66d2

Browse files
feat: activate prettier for scss (pattern-lab#1468)
1 parent 7821123 commit 9fb66d2

File tree

30 files changed

+61
-77
lines changed

30 files changed

+61
-77
lines changed

packages/uikit-workshop/src/css/prism-okaidia.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pre.line-numbers > code {
171171
counter-increment: linenumber;
172172
}
173173

174-
.line-numbers-rows > span:before {
174+
.line-numbers-rows > span::before {
175175
content: counter(linenumber);
176176
color: #999;
177177
display: block;

packages/uikit-workshop/src/html/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<pl-layout></pl-layout>
2727

2828
<!-- the template for the modal slider -->
29+
<!-- prettier-ignore -->
2930
<script type="text/x-handlebars-template" class="pl-js-panel-template-base">
3031
${require('./partials/base-template.html') }
3132
</script>

packages/uikit-workshop/src/sass/pattern-lab--iframe-loader.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
bottom: 0;
1919
}
2020

21-
.pl-c-loader-wrapper:not(:last-child){
21+
.pl-c-loader-wrapper:not(:last-child) {
2222
opacity: 0;
2323
pointer-events: none;
2424
transition: opacity 0.2s ease, transform 0.2s ease;

packages/uikit-workshop/src/sass/pattern-lab.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@
110110
min-height: 100vh;
111111

112112
max-width: 100vw;
113-
padding-left: .5rem;
114-
padding-right: .5rem;
113+
padding-left: 0.5rem;
114+
padding-right: 0.5rem;
115115

116116
// Clearing all remaining floats
117117
&::after {
118118
clear: both;
119-
content: "";
119+
content: '';
120120
display: table;
121121
}
122122
}

packages/uikit-workshop/src/sass/scss/01-abstracts/_mixins.scss

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,13 @@
4040

4141
&:hover,
4242
&.pl-is-active:hover {
43-
background-color: rgba(0, 0, 0, .1);
43+
background-color: rgba(0, 0, 0, 0.1);
4444
}
4545

46-
4746
/**
4847
* Header link styles inside light theme
4948
*/
5049

51-
52-
5350
/**
5451
* Header link styles inside cozy theme
5552
*/
@@ -96,7 +93,7 @@
9693
user-select: none; /* Likely future */
9794
}
9895

99-
@mixin buttonStyles(){
96+
@mixin buttonStyles() {
10097
color: inherit;
10198
text-decoration: none;
10299
background: transparent;
@@ -112,7 +109,7 @@
112109
position: relative;
113110
min-width: 30px;
114111

115-
&:after {
112+
&::after {
116113
content: '';
117114
display: block;
118115
position: absolute;
@@ -122,19 +119,19 @@
122119
width: 100%;
123120
pointer-events: none;
124121
opacity: 0;
125-
transition: opacity .1s ease;
122+
transition: opacity 0.1s ease;
126123
background-color: currentColor;
127124
}
128125

129126
// &:focus,
130127
&:hover {
131-
&:after {
128+
&::after {
132129
opacity: 0.1;
133130
}
134131
}
135132

136133
&:active:hover {
137-
&:after {
134+
&::after {
138135
opacity: 0.2;
139136
}
140137
}
@@ -143,7 +140,7 @@
143140
outline: 1px dotted;
144141
outline-offset: -1px;
145142

146-
&:after {
143+
&::after {
147144
opacity: 0.1;
148145
}
149146
}

packages/uikit-workshop/src/sass/scss/01-abstracts/_variables.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ $pl-animate-normal: 0.3s;
5656
$pl-border-radius: 3px;
5757
$pl-border-radius-med: 6px;
5858

59-
6059
$pl-sidebar-width: 16rem; //Define sidebar width for calculating dimensions

packages/uikit-workshop/src/sass/scss/02-base/_body.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
--theme-primary: #464a6d;
2828
--theme-secondary: #161f50;
2929
--theme-text: white;
30-
--theme-text-rgb: 255,255,255;
30+
--theme-text-rgb: 255, 255, 255;
3131
--theme-border: rgba(255, 255, 255, 0.2);
3232
}
3333

packages/uikit-workshop/src/sass/scss/02-base/_reset.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
box-sizing: border-box;
1717
}
1818

19-
button[class|="pl-c"] {
19+
button[class|='pl-c'] {
2020
font-size: inherit;
2121
background-color: transparent;
2222
}

packages/uikit-workshop/src/sass/scss/03-vendor/_prism.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
counter-increment: linenumber;
199199
}
200200

201-
.line-numbers-rows > span:before {
201+
.line-numbers-rows > span::before {
202202
content: counter(linenumber);
203203
color: #999;
204204
display: block;

packages/uikit-workshop/src/sass/scss/04-components/_annotations-inside-modal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
border-radius: $pl-border-radius-med;
4646
transition: background-color $pl-animate-quick ease;
4747

48-
&:before {
48+
&::before {
4949
content: counter(the-count);
5050
counter-increment: the-count;
5151
font-size: 85%;

0 commit comments

Comments
 (0)