mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Tidy up
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
:host {
|
||||
--size-s: var(--wa-font-size-xs);
|
||||
--size-m: var(--wa-font-size-s);
|
||||
--size-l: var(--wa-font-size-m);
|
||||
--form-control-height: calc(var(--space-smaller) * 2 + 1em * var(--wa-form-control-value-line-height));
|
||||
|
||||
display: inline-flex;
|
||||
border-radius: var(--wa-border-radius-s);
|
||||
align-items: center;
|
||||
@@ -11,10 +16,6 @@
|
||||
white-space: nowrap;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
--size-s: var(--wa-font-size-xs);
|
||||
--size-m: var(--wa-font-size-s);
|
||||
--size-l: var(--wa-font-size-m);
|
||||
--form-control-height: calc(var(--space-smaller) * 2 + 1em * var(--wa-form-control-value-line-height));
|
||||
height: calc(var(--form-control-height) * 0.8);
|
||||
line-height: calc(var(--form-control-height) - var(--wa-form-control-border-width) * 2);
|
||||
padding: 0 var(--space-smaller);
|
||||
|
||||
@@ -24,13 +24,6 @@ import styles from './tag.css';
|
||||
* @csspart content - The tag's content.
|
||||
* @csspart remove-button - The tag's remove button, an `<wa-icon-button>`.
|
||||
* @csspart remove-button__base - The remove button's exported `base` part.
|
||||
*
|
||||
* @cssproperty --background-color - The tag's background color.
|
||||
* @cssproperty --border-color - The color of the tag's border.
|
||||
* @cssproperty --border-radius - The radius of the tag's corners.
|
||||
* @cssproperty --border-style - The style of the tag's border.
|
||||
* @cssproperty --border-width - The width of the tag's border.
|
||||
* @cssproperty --content-color - The color of the tag's content.
|
||||
*/
|
||||
@customElement('wa-tag')
|
||||
export default class WaTag extends WebAwesomeElement {
|
||||
|
||||
Reference in New Issue
Block a user