Skip to content

Commit 26e878f

Browse files
committed
style demos
1 parent f189439 commit 26e878f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/.vitepress/theme/styles/inline-demo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
transition: border-color 0.5s;
33
padding: 22px 24px;
44
border-radius: 8px;
5-
border: 1px solid var(--vt-c-divider-light);
5+
box-shadow: var(--vt-shadow-2);
66
margin-bottom: 1.2em;
77
}
88

src/guide/extras/demos/ElasticHeader.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ function stopDrag() {
5252
<div
5353
class="draggable"
5454
@mousedown="startDrag"
55-
@touchstart="startDrag"
5655
@mousemove="onDrag"
57-
@touchmove="onDrag"
5856
@mouseup="stopDrag"
59-
@touchend="stopDrag"
6057
@mouseleave="stopDrag"
58+
@touchstart.prevent="startDrag"
59+
@touchmove.prevent="onDrag"
60+
@touchend.prevent="stopDrag"
6161
>
6262
<svg class="bg" width="320" height="560">
6363
<path :d="headerPath" fill="#3F51B5"></path>
@@ -76,7 +76,7 @@ function stopDrag() {
7676
<style scoped>
7777
.draggable {
7878
background-color: #fff;
79-
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
79+
box-shadow: var(--vt-shadow-2);
8080
width: 320px;
8181
height: 240px;
8282
overflow: hidden;

0 commit comments

Comments
 (0)