Skip to content

Commit 10d8b0d

Browse files
committed
fix: Demo Styling ( scss -> css )
1 parent 87def57 commit 10d8b0d

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

src/App.vue

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -153,55 +153,59 @@ export default {
153153
}
154154
};
155155
</script>
156-
<style lang="scss">
156+
<style>
157157
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
158158
159-
// app specific styles
159+
/* app specific styles */
160160
161161
.swipeout-action {
162162
display: flex;
163163
align-items: center;
164164
padding: 0 3rem;
165165
cursor: pointer;
166166
left: 0;
167-
// https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/
168-
&.blue {
167+
}
168+
/* https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/ */
169+
.swipeout-action.blue {
169170
color: white;
170171
background-color: rgb(0, 122, 255);
171-
&:hover {
172-
background-color: darken(rgb(0, 122, 255), 5%);
173-
}
174-
}
175-
&.purple {
172+
}
173+
.swipeout-action.blue:hover {
174+
background-color: darken(rgb(0, 122, 255), 5%);
175+
}
176+
.swipeout-action.purple {
176177
color: white;
177178
background-color: rgb(88, 86, 214);
178-
&:hover {
179-
background-color: darken(rgb(88, 86, 214), 5%);
180-
}
181-
}
182-
&.red {
179+
}
180+
.swipeout-action.purple:hover {
181+
background-color: darken(rgb(88, 86, 214), 5%);
182+
}
183+
184+
.swipeout-action.red {
183185
color: white;
184186
background-color: rgb(255, 59, 48);
185-
&:hover {
186-
background-color: darken(rgb(255, 59, 48), 5%);
187-
}
188-
}
189-
&.green {
187+
}
188+
.swipeout-action.red:hover {
189+
background-color: darken(rgb(255, 59, 48), 5%);
190+
}
191+
.swipeout-action.green {
190192
color: white;
191193
background-color: rgb(76, 217, 100);
192-
&:hover {
193-
background-color: darken(rgb(76, 217, 100), 5%);
194-
}
195-
}
194+
}
195+
.swipeout-action.green:hover {
196+
background-color: darken(rgb(76, 217, 100), 5%);
196197
}
197198
199+
198200
.swipeout-list-item {
199201
flex: 1;
200202
border-bottom: 1px solid lightgray;
201-
&:last-of-type {
203+
}
204+
205+
.swipeout-list-item:last-of-type {
202206
border-bottom: none;
203-
}
204207
}
208+
205209
.card {
206210
width: 100%;
207211
background-color: white;

0 commit comments

Comments
 (0)