You've already forked AstralRinth
forked from didirus/AstralRinth
Add TailwindCSS (#1252)
* Setup TailwindCSS * Fully setup configuration * Refactor some tailwind variables
This commit is contained in:
@@ -35,10 +35,10 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { ref } from "vue";
|
||||
|
||||
const pixelated = ref(false)
|
||||
const img = ref(null)
|
||||
const pixelated = ref(false);
|
||||
const img = ref(null);
|
||||
|
||||
defineProps({
|
||||
src: {
|
||||
@@ -47,13 +47,13 @@ defineProps({
|
||||
},
|
||||
alt: {
|
||||
type: String,
|
||||
default: '',
|
||||
default: "",
|
||||
},
|
||||
size: {
|
||||
type: String,
|
||||
default: 'sm',
|
||||
default: "sm",
|
||||
validator(value) {
|
||||
return ['xxs', 'xs', 'sm', 'md', 'lg', 'none'].includes(value)
|
||||
return ["xxs", "xs", "sm", "md", "lg", "none"].includes(value);
|
||||
},
|
||||
},
|
||||
circle: {
|
||||
@@ -66,16 +66,16 @@ defineProps({
|
||||
},
|
||||
loading: {
|
||||
type: String,
|
||||
default: 'lazy',
|
||||
default: "lazy",
|
||||
},
|
||||
raised: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
function updatePixelated() {
|
||||
pixelated.value = Boolean(img.value && img.value.naturalWidth && img.value.naturalWidth <= 96)
|
||||
pixelated.value = Boolean(img.value && img.value.naturalWidth && img.value.naturalWidth <= 96);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -83,8 +83,8 @@ function updatePixelated() {
|
||||
.avatar {
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-inset-lg), var(--shadow-card);
|
||||
height: var(--size) !important;
|
||||
width: var(--size) !important;
|
||||
min-height: var(--size) !important;
|
||||
min-width: var(--size) !important;
|
||||
background-color: var(--color-button-bg);
|
||||
object-fit: cover;
|
||||
max-width: var(--size) !important;
|
||||
|
||||
Reference in New Issue
Block a user