diff options
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/settings/icon-picker.js')
| -rwxr-xr-x | users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/settings/icon-picker.js | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/settings/icon-picker.js b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/settings/icon-picker.js new file mode 100755 index 0000000..0c853d5 --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/settings/icon-picker.js | |||
| @@ -0,0 +1,155 @@ | |||
| 1 | export const iconPickerStyles = /* css */ ` | ||
| 2 | .icon-picker { | ||
| 3 | margin-right: 1ch; | ||
| 4 | } | ||
| 5 | .icon-picker__button { | ||
| 6 | width: 50px; | ||
| 7 | height: 50px; | ||
| 8 | display: flex; | ||
| 9 | align-items: center; | ||
| 10 | justify-content: center; | ||
| 11 | fill: var(--foreground); | ||
| 12 | background-color: transparent; | ||
| 13 | border: 0; | ||
| 14 | cursor: pointer; | ||
| 15 | user-select: none; | ||
| 16 | } | ||
| 17 | .icon-picker__button > svg { | ||
| 18 | width: 24px; | ||
| 19 | height: 24px; | ||
| 20 | } | ||
| 21 | .icon-picker__dropdown { | ||
| 22 | position: absolute; | ||
| 23 | top: 0; | ||
| 24 | left: 0; | ||
| 25 | width: 100%; | ||
| 26 | height: 100%; | ||
| 27 | display: flex; | ||
| 28 | flex-direction: column; | ||
| 29 | -webkit-backdrop-filter: blur(5px); | ||
| 30 | border-radius: var(--item-radius); | ||
| 31 | overflow: hidden; | ||
| 32 | z-index: 1; | ||
| 33 | } | ||
| 34 | .icon-picker__search { | ||
| 35 | position: relative; | ||
| 36 | padding: 8px; | ||
| 37 | background-color: var(--main-alt); | ||
| 38 | border-bottom: 1px solid var(--foreground-alt); | ||
| 39 | display: flex; | ||
| 40 | align-items: center; | ||
| 41 | gap: 12px; | ||
| 42 | } | ||
| 43 | .icon-picker__back { | ||
| 44 | display: flex; | ||
| 45 | align-items: center; | ||
| 46 | padding: 10px 14px; | ||
| 47 | height: 28px; | ||
| 48 | background-color: var(--background); | ||
| 49 | border: 1px solid var(--foreground-alt); | ||
| 50 | border-radius: var(--item-radius); | ||
| 51 | color: var(--foreground); | ||
| 52 | font-family: var(--font); | ||
| 53 | font-size: 13px; | ||
| 54 | font-weight: 500; | ||
| 55 | cursor: pointer; | ||
| 56 | white-space: nowrap; | ||
| 57 | box-sizing: border-box; | ||
| 58 | transition: color 160ms var(--transition-easing), | ||
| 59 | background-color 160ms var(--transition-easing), | ||
| 60 | box-shadow 160ms var(--transition-easing); | ||
| 61 | } | ||
| 62 | .icon-picker__back:hover { | ||
| 63 | color: var(--background); | ||
| 64 | background-color: var(--foreground); | ||
| 65 | box-shadow: var(--hover-ring); | ||
| 66 | } | ||
| 67 | .icon-picker__back > svg { | ||
| 68 | width: 10px; | ||
| 69 | height: 10px; | ||
| 70 | margin-right: 6px; | ||
| 71 | fill: currentColor; | ||
| 72 | } | ||
| 73 | .icon-picker__search-input { | ||
| 74 | flex: 1; | ||
| 75 | height: 28px; | ||
| 76 | padding: 0 35px 0 14px; | ||
| 77 | border: 1px solid var(--foreground-alt); | ||
| 78 | border-radius: var(--item-radius); | ||
| 79 | background-color: var(--background); | ||
| 80 | color: var(--foreground); | ||
| 81 | font-size: 14px; | ||
| 82 | font-family: var(--font); | ||
| 83 | outline: none; | ||
| 84 | box-sizing: border-box; | ||
| 85 | position: relative; | ||
| 86 | transition: border 160ms var(--transition-easing), | ||
| 87 | box-shadow 160ms var(--transition-easing); | ||
| 88 | } | ||
| 89 | .icon-picker__search-input:focus { | ||
| 90 | border-color: var(--foreground); | ||
| 91 | box-shadow: var(--focus-ring); | ||
| 92 | } | ||
| 93 | .icon-picker__search-input::placeholder { | ||
| 94 | color: var(--foreground-alt); | ||
| 95 | opacity: 0.7; | ||
| 96 | } | ||
| 97 | .icon-picker__search-clear { | ||
| 98 | position: absolute; | ||
| 99 | right: 24px; | ||
| 100 | top: 50%; | ||
| 101 | transform: translateY(-50%); | ||
| 102 | background: none; | ||
| 103 | border: none; | ||
| 104 | color: var(--foreground-alt); | ||
| 105 | cursor: pointer; | ||
| 106 | font-size: 16px; | ||
| 107 | padding: 6px; | ||
| 108 | display: flex; | ||
| 109 | align-items: center; | ||
| 110 | justify-content: center; | ||
| 111 | border-radius: 50%; | ||
| 112 | transition: color 160ms var(--transition-easing), | ||
| 113 | background-color 160ms var(--transition-easing); | ||
| 114 | } | ||
| 115 | .icon-picker__search-clear:hover { | ||
| 116 | color: var(--foreground); | ||
| 117 | background-color: var(--main-alt); | ||
| 118 | } | ||
| 119 | .icon-picker__icons { | ||
| 120 | flex: 1; | ||
| 121 | display: flex; | ||
| 122 | align-items: flex-start; | ||
| 123 | justify-content: flex-start; | ||
| 124 | flex-wrap: wrap; | ||
| 125 | padding: 10px; | ||
| 126 | box-sizing: border-box; | ||
| 127 | overflow: auto; | ||
| 128 | } | ||
| 129 | .icon-picker__icons > button { | ||
| 130 | width: 30px; | ||
| 131 | height: 30px; | ||
| 132 | display: flex; | ||
| 133 | align-items: center; | ||
| 134 | justify-content: center; | ||
| 135 | margin: 5px; | ||
| 136 | border: 0; | ||
| 137 | background-color: var(--main-alt); | ||
| 138 | border-radius: var(--item-radius); | ||
| 139 | box-shadow: var(--light-shadow); | ||
| 140 | cursor: pointer; | ||
| 141 | user-select: none; | ||
| 142 | } | ||
| 143 | .icon-picker__icons > button > svg { | ||
| 144 | width: 24px; | ||
| 145 | height: 24px; | ||
| 146 | fill: var(--background); | ||
| 147 | } | ||
| 148 | .icon-picker__no-results { | ||
| 149 | width: 100%; | ||
| 150 | text-align: center; | ||
| 151 | color: var(--foreground-alt); | ||
| 152 | font-style: italic; | ||
| 153 | padding: 20px; | ||
| 154 | } | ||
| 155 | `; | ||
