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, |       default: false, | ||||||
|       required: false |       required: false | ||||||
|     }, |     }, | ||||||
|  |     xs: { | ||||||
|  |       type: Boolean, | ||||||
|  |       default: false, | ||||||
|  |       required: false | ||||||
|  |     }, | ||||||
|     scaleRotate: { |     scaleRotate: { | ||||||
|       type: Boolean, |       type: Boolean, | ||||||
|       default: false |       default: false | ||||||
| @@ -28,6 +33,8 @@ export default { | |||||||
|         classNames.push('scale-rotate') |         classNames.push('scale-rotate') | ||||||
|       if (this.small) |       if (this.small) | ||||||
|         classNames.push('small'); |         classNames.push('small'); | ||||||
|  |       if (this.xs) | ||||||
|  |         classNames.push('xs'); | ||||||
|       if (this.color) |       if (this.color) | ||||||
|         classNames.push(this.color); |         classNames.push(this.color); | ||||||
|       return classNames.join(' '); |       return classNames.join(' '); | ||||||
| @@ -57,6 +64,11 @@ button { | |||||||
|     font-size: var(--btn-sm); |     font-size: var(--btn-sm); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   &.xs { | ||||||
|  |     padding: var(--space-xs) var(--space-sm); | ||||||
|  |     font-size: var(--btn-xs); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   @media(hover: hover) and (pointer: fine) { |   @media(hover: hover) and (pointer: fine) { | ||||||
|     &.scale-rotate:hover { |     &.scale-rotate:hover { | ||||||
|       transform: rotate(4deg) scale(1.05); |       transform: rotate(4deg) scale(1.05); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user