diff --git a/examples/app.vue b/examples/app.vue
index 826e9479a..d8cff24f1 100644
--- a/examples/app.vue
+++ b/examples/app.vue
@@ -25,8 +25,12 @@
}
.hljs {
- padding: 20px 25px;
+ line-height: 1.8;
+ font-family: Menlo, Monaco, Consolas, Courier, monospace;
+ font-size: 12px;
+ padding: 18px 24px;
background-color: #f9fafc;
+ border: solid 1px #eaeefb;
margin-bottom: 25px;
border-radius: 2px;
}
diff --git a/examples/components/demo-block.vue b/examples/components/demo-block.vue
index 553da8639..11347e085 100644
--- a/examples/components/demo-block.vue
+++ b/examples/components/demo-block.vue
@@ -6,8 +6,12 @@
@mouseleave="hovering = false">
-
- {{ controlText }}
+
+
+
+
+ {{ controlText }}
+
@@ -58,8 +62,11 @@
color: #5e6d82;
background-color: #e6effb;
margin: 0 4px;
- padding: 4px 8px;
+ transform: translateY(-2px);
+ display: inline-block;
+ padding: 1px 5px;
font-size: 12px;
+ border-radius: 3px;
}
}
@@ -72,11 +79,7 @@
}
code.hljs {
- font-size: 12px;
- padding: 18px 24px;
margin: 0;
- line-height: 1.8;
- background-color: #f9fafc;
border: none;
max-height: none;
border-radius: 0;
@@ -99,21 +102,36 @@
color: #d3dce6;
cursor: pointer;
transition: .2s;
+ position: relative;
i {
font-size: 12px;
line-height: 36px;
+ transition: .3s;
+ &.hovering {
+ transform: translateX(-40px);
+ }
}
span {
+ position: absolute;
+ transform: translateX(-30px);
font-size: 14px;
line-height: 36px;
+ transition: .3s;
+ display: inline-block;
}
&:hover {
color: #20a0ff;
background-color: #f9fafc;
}
+
+ & .text-slide-enter,
+ & .text-slide-leave-active {
+ opacity: 0;
+ transform: translateX(10px);
+ }
}
}
diff --git a/examples/components/footer-nav.vue b/examples/components/footer-nav.vue
index 6e8905ba6..1ef30751d 100644
--- a/examples/components/footer-nav.vue
+++ b/examples/components/footer-nav.vue
@@ -41,10 +41,10 @@
transition: .3s;
&:hover {
- color: #5e6d82;
+ color: #20a0ff;
& i {
- color: #5e6d82;
+ color: #20a0ff;
}
}
}
diff --git a/examples/components/footer.vue b/examples/components/footer.vue
index e4df4161d..00338a77c 100644
--- a/examples/components/footer.vue
+++ b/examples/components/footer.vue
@@ -3,7 +3,7 @@
Element 1.0 Hydrogen
-
反馈建议
+
反馈建议