add rollup postcss plugin and import style from rrweb

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 322328d4db
commit 6c0b1b96bc
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>