mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Simplify HTML
This commit is contained in:
@@ -137,8 +137,8 @@
|
||||
.sl-color-picker__preview {
|
||||
flex: 0 0 auto;
|
||||
position: relative;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
margin-left: var(--sl-spacing-medium);
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
border: solid 1px rgba(0, 0, 0, 0.125);
|
||||
}
|
||||
|
||||
.sl-color-picker__input {
|
||||
.sl-color-picker__user-input {
|
||||
padding: 0 var(--sl-spacing-small) var(--sl-spacing-small) var(--sl-spacing-small);
|
||||
}
|
||||
|
||||
|
||||
@@ -455,17 +455,15 @@ export class ColorPicker {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="sl-color-picker__inputs">
|
||||
<div class="sl-color-picker__input">
|
||||
<sl-input
|
||||
ref={el => (this.input = el)}
|
||||
size="small"
|
||||
type="text"
|
||||
pattern="[a-fA-F\d]+"
|
||||
value={this.value}
|
||||
onSlChange={this.handleUserChange}
|
||||
/>
|
||||
</div>
|
||||
<div class="sl-color-picker__user-input">
|
||||
<sl-input
|
||||
ref={el => (this.input = el)}
|
||||
size="small"
|
||||
type="text"
|
||||
pattern="[a-fA-F\d]+"
|
||||
value={this.value}
|
||||
onSlChange={this.handleUserChange}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{this.swatches && (
|
||||
|
||||
Reference in New Issue
Block a user