mirror of
				https://github.com/KevinMidboe/planetposen.git
				synced 2025-10-29 17:50:32 +00:00 
			
		
		
		
	Button has xs prop and size.
This commit is contained in:
		| @@ -15,6 +15,11 @@ export default { | ||||
|       default: false, | ||||
|       required: false | ||||
|     }, | ||||
|     xs: { | ||||
|       type: Boolean, | ||||
|       default: false, | ||||
|       required: false | ||||
|     }, | ||||
|     scaleRotate: { | ||||
|       type: Boolean, | ||||
|       default: false | ||||
| @@ -28,6 +33,8 @@ export default { | ||||
|         classNames.push('scale-rotate') | ||||
|       if (this.small) | ||||
|         classNames.push('small'); | ||||
|       if (this.xs) | ||||
|         classNames.push('xs'); | ||||
|       if (this.color) | ||||
|         classNames.push(this.color); | ||||
|       return classNames.join(' '); | ||||
| @@ -57,6 +64,11 @@ button { | ||||
|     font-size: var(--btn-sm); | ||||
|   } | ||||
|  | ||||
|   &.xs { | ||||
|     padding: var(--space-xs) var(--space-sm); | ||||
|     font-size: var(--btn-xs); | ||||
|   } | ||||
|  | ||||
|   @media(hover: hover) and (pointer: fine) { | ||||
|     &.scale-rotate:hover { | ||||
|       transform: rotate(4deg) scale(1.05); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user