|
@@ -231,4 +231,54 @@ export default {
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.hover-tips, .hover-tips-warn {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ font-size: 18px;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ > div {
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // tip的方框
|
|
|
|
|
+ > div {
|
|
|
|
|
+ background: rgba(0, 0, 0, 0.6);
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ cursor: default;
|
|
|
|
|
+ display: none;
|
|
|
|
|
+ z-index: 10000;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ top: -60px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ pointer-events: none;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ word-break: keep-all;
|
|
|
|
|
+ padding: 0 8px;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ border-radius: 3px;
|
|
|
|
|
+ // tip的箭头
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ border: 7px solid transparent;
|
|
|
|
|
+ border-top: 7px solid rgba(0, 0, 0, 0.6);
|
|
|
|
|
+ width: 0;
|
|
|
|
|
+ height: 0px;
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ bottom: -14px;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // tip的文字
|
|
|
|
|
+ .remark {
|
|
|
|
|
+ line-height: 2.5;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|