add rollup postcss plugin and import style from rrweb

This commit is contained in:
Yanzhen Yu
2018-11-27 17:55:20 +08:00
parent 9471d4dd01
commit 5d3d27f9f7
3 changed files with 5 additions and 22 deletions

View File

@@ -7,6 +7,7 @@
<script>
import { Replayer } from 'rrweb';
import 'rrweb/dist/rrweb.min.css';
import { inlineCss } from './utils.js';
export default {
@@ -94,26 +95,4 @@
:global(.replayer-wrapper > iframe) {
border: none;
}
/* get from rrweb */
:global(.replayer-wrapper) {
position: relative;
}
:global(.replayer-mouse) {
position: absolute;
width: 1px;
height: 1px;
}
:global(.replayer-mouse::after) {
content: '';
display: inline-block;
width: 20px;
height: 20px;
border-radius: 10px;
background: thistle;
transform: translate(-10px, -10px);
opacity: 0.5;
}
</style>