|
| 1 | +.icon-button { |
| 2 | + background: unset; |
| 3 | + border: none; |
| 4 | + cursor: pointer; |
| 5 | + outline: none !important; |
| 6 | + padding: 0; |
| 7 | +} |
| 8 | + |
| 9 | +.icon-button::after { |
| 10 | + width: calc(2 * var(--base-spacing)); |
| 11 | + height: calc(2 * var(--base-spacing)); |
| 12 | +} |
| 13 | + |
| 14 | +.icon-button:focus { |
| 15 | + box-shadow: 0px 0px 0px 2px var(--focus-default); |
| 16 | + border-radius: 4px; |
| 17 | +} |
| 18 | + |
| 19 | +.icon-button:disabled { |
| 20 | + opacity: 0.5; |
| 21 | +} |
| 22 | + |
| 23 | +/* theme-toggle button */ |
| 24 | + |
| 25 | +#theme-toggle.icon-button::after { |
| 26 | + content: url("../../../../images/icon-buttons/moon/light/default.svg"); |
| 27 | +} |
| 28 | + |
| 29 | +#theme-toggle.icon-button:hover::after { |
| 30 | + content: url("../../../../images/icon-buttons/moon/light/hover.svg"); |
| 31 | +} |
| 32 | + |
| 33 | +#theme-toggle.icon-button:active::after { |
| 34 | + content: url("../../../../images/icon-buttons/moon/light/active.svg"); |
| 35 | +} |
| 36 | + |
| 37 | +#theme-toggle.icon-button:disabled::after { |
| 38 | + content: url("../../../../images/icon-buttons/moon/light/disabled.svg"); |
| 39 | +} |
| 40 | + |
| 41 | +#theme-toggle.icon-button:focus::after { |
| 42 | + content: url("../../../../images/icon-buttons/moon/light/focus.svg"); |
| 43 | +} |
| 44 | + |
| 45 | +#theme-toggle.icon-button.selected::after { |
| 46 | + content: url("../../../../images/icon-buttons/moon/light/selected.svg"); |
| 47 | +} |
| 48 | + |
| 49 | +.theme-dark #theme-toggle.icon-button::after { |
| 50 | + content: url("../../../../images/icon-buttons/sun/dark/default.svg"); |
| 51 | +} |
| 52 | + |
| 53 | +.theme-dark #theme-toggle.icon-button:hover::after { |
| 54 | + content: url("../../../../images/icon-buttons/sun/dark/hover.svg"); |
| 55 | +} |
| 56 | + |
| 57 | +.theme-dark #theme-toggle.icon-button:active::after { |
| 58 | + content: url("../../../../images/icon-buttons/sun/dark/active.svg"); |
| 59 | +} |
| 60 | + |
| 61 | +.theme-dark #theme-toggle.icon-button:disabled::after { |
| 62 | + content: url("../../../../images/icon-buttons/sun/dark/disabled.svg"); |
| 63 | +} |
| 64 | + |
| 65 | +.theme-dark #theme-toggle.icon-button:focus::after { |
| 66 | + content: url("../../../../images/icon-buttons/sun/dark/focus.svg"); |
| 67 | +} |
| 68 | + |
| 69 | +.theme-dark #theme-toggle.icon-button.selected::after { |
| 70 | + content: url("../../../../images/icon-buttons/sun/dark/selected.svg"); |
| 71 | +} |
| 72 | + |
| 73 | +/* search-toggle button */ |
| 74 | + |
| 75 | +#search-toggle.icon-button::after { |
| 76 | + content: url("../../../../images/icon-buttons/search/light/default.svg"); |
| 77 | +} |
| 78 | + |
| 79 | +#search-toggle.icon-button:hover::after { |
| 80 | + content: url("../../../../images/icon-buttons/search/light/hover.svg"); |
| 81 | +} |
| 82 | + |
| 83 | +#search-toggle.icon-button:active::after { |
| 84 | + content: url("../../../../images/icon-buttons/search/light/active.svg"); |
| 85 | +} |
| 86 | + |
| 87 | +#search-toggle.icon-button:disabled::after { |
| 88 | + content: url("../../../../images/icon-buttons/search/light/disabled.svg"); |
| 89 | +} |
| 90 | + |
| 91 | +#search-toggle.icon-button:focus::after { |
| 92 | + content: url("../../../../images/icon-buttons/search/light/focus.svg"); |
| 93 | +} |
| 94 | + |
| 95 | +#search-toggle.icon-button.selected::after { |
| 96 | + content: url("../../../../images/icon-buttons/search/light/selected.svg"); |
| 97 | +} |
| 98 | + |
| 99 | +.theme-dark #search-toggle.icon-button::after { |
| 100 | + content: url("../../../../images/icon-buttons/search/dark/default.svg"); |
| 101 | +} |
| 102 | + |
| 103 | +.theme-dark #search-toggle.icon-button:hover::after { |
| 104 | + content: url("../../../../images/icon-buttons/search/dark/hover.svg"); |
| 105 | +} |
| 106 | + |
| 107 | +.theme-dark #search-toggle.icon-button:active::after { |
| 108 | + content: url("../../../../images/icon-buttons/search/dark/active.svg"); |
| 109 | +} |
| 110 | + |
| 111 | +.theme-dark #search-toggle.icon-button:disabled::after { |
| 112 | + content: url("../../../../images/icon-buttons/search/dark/disabled.svg"); |
| 113 | +} |
| 114 | + |
| 115 | +.theme-dark #search-toggle.icon-button:focus::after { |
| 116 | + content: url("../../../../images/icon-buttons/search/dark/focus.svg"); |
| 117 | +} |
| 118 | + |
| 119 | +.theme-dark #search-toggle.icon-button.selected::after { |
| 120 | + content: url("../../../../images/icon-buttons/search/dark/selected.svg"); |
| 121 | +} |
| 122 | + |
| 123 | +/* hamburger button */ |
| 124 | +.icon-button.hamburger::after { |
| 125 | + content: url("../../../../images/icon-buttons/hamburger/light/default.svg"); |
| 126 | +} |
| 127 | + |
| 128 | +.icon-button.hamburger:hover::after { |
| 129 | + content: url("../../../../images/icon-buttons/hamburger/light/hover.svg"); |
| 130 | +} |
| 131 | + |
| 132 | +.icon-button.hamburger:active::after { |
| 133 | + content: url("../../../../images/icon-buttons/hamburger/light/active.svg"); |
| 134 | +} |
| 135 | + |
| 136 | +.icon-button.hamburger:disabled::after { |
| 137 | + content: url("../../../../images/icon-buttons/hamburger/light/disabled.svg"); |
| 138 | +} |
| 139 | + |
| 140 | +.icon-button.hamburger:focus::after { |
| 141 | + content: url("../../../../images/icon-buttons/hamburger/light/focus.svg"); |
| 142 | +} |
| 143 | + |
| 144 | +.icon-button.hamburger.selected::after { |
| 145 | + content: url("../../../../images/icon-buttons/hamburger/light/selected.svg"); |
| 146 | +} |
| 147 | + |
| 148 | +.theme-dark .icon-button.hamburger::after { |
| 149 | + content: url("../../../../images/icon-buttons/hamburger/dark/default.svg"); |
| 150 | +} |
| 151 | + |
| 152 | +.theme-dark .icon-button.hamburger:hover::after { |
| 153 | + content: url("../../../../images/icon-buttons/hamburger/dark/hover.svg"); |
| 154 | +} |
| 155 | + |
| 156 | +.theme-dark .icon-button.hamburger:active::after { |
| 157 | + content: url("../../../../images/icon-buttons/hamburger/dark/active.svg"); |
| 158 | +} |
| 159 | + |
| 160 | +.theme-dark .icon-button.hamburger:disabled::after { |
| 161 | + content: url("../../../../images/icon-buttons/hamburger/dark/disabled.svg"); |
| 162 | +} |
| 163 | + |
| 164 | +.theme-dark .icon-button.hamburger:focus::after { |
| 165 | + content: url("../../../../images/icon-buttons/hamburger/dark/focus.svg"); |
| 166 | +} |
| 167 | + |
| 168 | +.theme-dark .icon-button.hamburger.selected::after { |
| 169 | + content: url("../../../../images/icon-buttons/hamburger/dark/selected.svg"); |
| 170 | +} |
| 171 | + |
| 172 | +/*navigation arrow button */ |
| 173 | + |
| 174 | +.ar.icon-button::after { |
| 175 | + content: url("../../../../images/icon-buttons/arrow-right/light/default.svg"); |
| 176 | +} |
| 177 | + |
| 178 | +.ar.icon-button:hover::after { |
| 179 | + content: url("../../../../images/icon-buttons/arrow-right/light/hover.svg"); |
| 180 | +} |
| 181 | + |
| 182 | +.ar.icon-button:active::after { |
| 183 | + content: url("../../../../images/icon-buttons/arrow-right/light/active.svg"); |
| 184 | +} |
| 185 | + |
| 186 | +.ar.icon-button:disabled::after { |
| 187 | + content: url("../../../../images/icon-buttons/arrow-right/light/disabled.svg"); |
| 188 | +} |
| 189 | + |
| 190 | +.ar.icon-button:focus::after { |
| 191 | + content: url("../../../../images/icon-buttons/arrow-right/light/focus.svg"); |
| 192 | +} |
| 193 | + |
| 194 | +.ar.icon-button.selected::after { |
| 195 | + content: url("../../../../images/icon-buttons/arrow-right/light/selected.svg"); |
| 196 | +} |
| 197 | + |
| 198 | +.theme-dark .ar.icon-button::after { |
| 199 | + content: url("../../../../images/icon-buttons/arrow-right/dark/default.svg"); |
| 200 | +} |
| 201 | + |
| 202 | +.theme-dark .ar.icon-button:hover::after { |
| 203 | + content: url("../../../../images/icon-buttons/arrow-right/dark/hover.svg"); |
| 204 | +} |
| 205 | + |
| 206 | +.theme-dark .ar.icon-button:active::after { |
| 207 | + content: url("../../../../images/icon-buttons/arrow-right/dark/active.svg"); |
| 208 | +} |
| 209 | + |
| 210 | +.theme-dark .ar.icon-button:disabled::after { |
| 211 | + content: url("../../../../images/icon-buttons/arrow-right/dark/disabled.svg"); |
| 212 | +} |
| 213 | + |
| 214 | +.theme-dark .ar.icon-button:focus::after { |
| 215 | + content: url("../../../../images/icon-buttons/arrow-right/dark/focus.svg"); |
| 216 | +} |
| 217 | + |
| 218 | +.theme-dark .ar.icon-button.selected::after { |
| 219 | + content: url("../../../../images/icon-buttons/arrow-right/dark/selected.svg"); |
| 220 | +} |
| 221 | + |
| 222 | +.ar.icon-button.expanded::after { |
| 223 | + content: url("../../../../images/icon-buttons/arrow-down/light/default.svg"); |
| 224 | +} |
| 225 | + |
| 226 | +.ar.icon-button.expanded:hover::after { |
| 227 | + content: url("../../../../images/icon-buttons/arrow-down/light/hover.svg"); |
| 228 | +} |
| 229 | + |
| 230 | +.ar.icon-button.expanded:active::after { |
| 231 | + content: url("../../../../images/icon-buttons/arrow-down/light/active.svg"); |
| 232 | +} |
| 233 | + |
| 234 | +.ar.icon-button.expanded:disabled::after { |
| 235 | + content: url("../../../../images/icon-buttons/arrow-down/light/disabled.svg"); |
| 236 | +} |
| 237 | + |
| 238 | +.ar.icon-button.expanded:focus::after { |
| 239 | + content: url("../../../../images/icon-buttons/arrow-down/light/focus.svg"); |
| 240 | +} |
| 241 | + |
| 242 | +.ar.icon-button.expanded.selected::after { |
| 243 | + content: url("../../../../images/icon-buttons/arrow-down/light/selected.svg"); |
| 244 | +} |
| 245 | + |
| 246 | +.theme-dark .ar.icon-button.expanded::after { |
| 247 | + content: url("../../../../images/icon-buttons/arrow-down/dark/default.svg"); |
| 248 | +} |
| 249 | + |
| 250 | +.theme-dark .ar.icon-button.expanded:hover::after { |
| 251 | + content: url("../../../../images/icon-buttons/arrow-down/dark/hover.svg"); |
| 252 | +} |
| 253 | + |
| 254 | +.theme-dark .ar.icon-button.expanded:active::after { |
| 255 | + content: url("../../../../images/icon-buttons/arrow-down/dark/active.svg"); |
| 256 | +} |
| 257 | + |
| 258 | +.theme-dark .ar.icon-button.expanded:disabled::after { |
| 259 | + content: url("../../../../images/icon-buttons/arrow-down/dark/disabled.svg"); |
| 260 | +} |
| 261 | + |
| 262 | +.theme-dark .ar.icon-button.expanded:focus::after { |
| 263 | + content: url("../../../../images/icon-buttons/arrow-down/dark/focus.svg"); |
| 264 | +} |
| 265 | + |
| 266 | +.theme-dark .ar.icon-button.expanded.selected::after { |
| 267 | + content: url("../../../../images/icon-buttons/arrow-down/dark/selected.svg"); |
| 268 | +} |
0 commit comments