mirror of
				https://github.com/KevinMidboe/planetposen.git
				synced 2025-10-29 17:50:32 +00:00 
			
		
		
		
	Only hoved button when on hover enable browsers.
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <button :class="computedClass"><slot></slot></button>
 | 
			
		||||
  <button :class="computedClass" @click="$emit('click')"><slot></slot></button>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
@@ -57,9 +57,11 @@ button {
 | 
			
		||||
    font-size: var(--btn-sm);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @media(hover: hover) and (pointer: fine) {
 | 
			
		||||
    &.scale-rotate:hover {
 | 
			
		||||
      transform: rotate(4deg) scale(1.05);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &.black {
 | 
			
		||||
    background-color: var(--color-background-highlight);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user