Skip to content

Commit 5b242a0

Browse files
Merge pull request #10 from LottieFiles/fix/css-overrides
fix: fixed css overriding page css
2 parents 264f16f + 80e29fd commit 5b242a0

File tree

8 files changed

+458
-1231
lines changed

8 files changed

+458
-1231
lines changed

example/public/lottie_player.css

Lines changed: 0 additions & 1223 deletions
This file was deleted.

example/public/lottie_player.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Lottie player wrapper for Vue.js by LottieFiles",
66
"scripts": {
77
"release": "semantic-release",
8-
"build": "vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js"
8+
"build": "vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html"
99
},
1010
"main": "dist/@lottiefiles/vue-lottie-player.common.js",
1111
"files": [

src/Controls.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div v-if="playerSize !== 'hide'" :class="playerControlsPosition === 'fixed' ? 'fixed mb-18 sm:mb-0' : ''"
44
class="w-full pin-b pin-l px-3 py-6">
5-
<div class="flex justify-center items-center">
5+
<div class="flex justify-center items-center text-center">
66
<!-- stop-->
77
<div v-if="playerSize === 'minimal'" @click="stop"
88
:class="(options.playing === true ? 'opacity-50' : '')+' '+(theme.active === 'dark' && options.playing === false ? 'opacity-70' : '')"
@@ -88,13 +88,14 @@
8888
class="absolute pin-b pin-r bg-grey-lightest border border-grey-light rounded-md p-3"
8989
style="margin-right: -9px; margin-bottom: 50px;">
9090
<div>
91-
<div class="w-4 h-4 absolute bg-grey-lightest border-r border-t border-grey-light"
92-
style="transform: rotate(135deg); border-radius: 0px 3px 0px 0px; bottom: -8px; right: 20px;"></div>
91+
<div class="w-4 h-4 absolute bg-grey-lightest border-r border-t border-grey-light triangle-border">
92+
</div>
9393
<div class="p-2">
9494
<p class="font-lf-bold text-grey-darkest mb-4">Background Color</p>
9595
<p class="font-lf text-grey-darkest text-sm mb-3">Enter Hex or select.</p>
9696
<input @keyup="updateBackgroundColor" v-model="backgroundColor"
9797
class="w-full text-grey-dark border border-grey-light bg-white px-3 py-2 rounded-md outline-none"
98+
style="font-size: 100%; box-sizing: border-box"
9899
type="text">
99100
</div>
100101
<div class="flex p-2" style="margin: 0px -5px">

src/Player.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="w-full relative">
2+
<div class="w-full relative lottie-player">
33
<div v-if="loading" class="w-full h-full absolute flex justify-center items-center">
44
<div class="spinner"></div>
55
</div>

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Player from "./Player.vue";
2-
import "./lottie_player.min.css";
2+
import "./lottie_player.css";
33

44
const LottieVuePlayer = {
55
install(Vue, options = {}) {

0 commit comments

Comments
 (0)