| 1 |
.tableberg-search { |
| 2 |
display: flex; |
| 3 |
align-items: center; |
| 4 |
gap: 12px; |
| 5 |
padding: 0 0 12px 0; |
| 6 |
|
| 7 |
&__input-wrapper { |
| 8 |
position: relative; |
| 9 |
display: flex; |
| 10 |
align-items: center; |
| 11 |
flex: 0 0 auto; |
| 12 |
max-width: 300px; |
| 13 |
} |
| 14 |
|
| 15 |
&__icon { |
| 16 |
position: absolute; |
| 17 |
left: 10px; |
| 18 |
color: #757575; |
| 19 |
pointer-events: none; |
| 20 |
} |
| 21 |
|
| 22 |
&__input { |
| 23 |
padding: 8px 36px 8px 36px; |
| 24 |
border: 1px solid var(--wp--preset--color--contrast, #1e1e1e); |
| 25 |
border-radius: 4px; |
| 26 |
font-size: 0.875em; |
| 27 |
font-family: inherit; |
| 28 |
line-height: 1.4; |
| 29 |
width: 100%; |
| 30 |
background-color: transparent; |
| 31 |
color: inherit; |
| 32 |
|
| 33 |
&::placeholder { |
| 34 |
color: #757575; |
| 35 |
} |
| 36 |
|
| 37 |
&:focus { |
| 38 |
outline: none; |
| 39 |
border-color: var(--wp-admin-theme-color, #007cba); |
| 40 |
box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #007cba); |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
&__clear { |
| 45 |
position: absolute; |
| 46 |
right: 6px; |
| 47 |
background: transparent; |
| 48 |
border: none; |
| 49 |
padding: 4px; |
| 50 |
cursor: pointer; |
| 51 |
color: #757575; |
| 52 |
display: flex; |
| 53 |
align-items: center; |
| 54 |
justify-content: center; |
| 55 |
border-radius: 2px; |
| 56 |
|
| 57 |
&:hover { |
| 58 |
color: var(--wp--preset--color--contrast, #1e1e1e); |
| 59 |
background-color: rgba(0, 0, 0, 0.05); |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
&__results { |
| 64 |
font-size: 0.875em; |
| 65 |
color: #757575; |
| 66 |
white-space: nowrap; |
| 67 |
} |
| 68 |
} |
| 69 |
|
| 70 |
.wp-block-tableberg tbody tr.tableberg-search-row--hidden { |
| 71 |
display: none; |
| 72 |
} |
| 73 |
|
| 74 |
.wp-block-tableberg mark.tableberg-search-highlight { |
| 75 |
background-color: var(--tableberg-search-highlight-color, #fff3a3); |
| 76 |
border-radius: 2px; |
| 77 |
padding: 0; |
| 78 |
} |
| 79 |
|