|
2 | 2 | @use "../base/fontawesome/fa-mixins"; |
3 | 3 | @use "../base/fontawesome/variables" as variables2; |
4 | 4 | @use "../base/variables"; |
| 5 | +@use "../mixins/button"; |
5 | 6 |
|
6 | 7 | /** |
7 | 8 | * Licensed to The Apereo Foundation under one or more contributor license |
@@ -82,21 +83,6 @@ textarea { |
82 | 83 | background-position: 19px center; |
83 | 84 | } |
84 | 85 |
|
85 | | - &.search, |
86 | | - &#search { |
87 | | - appearance: none; |
88 | | - vertical-align: top; |
89 | | - padding: 0 20px 0 40px !important; |
90 | | - height: 40px; |
91 | | - |
92 | | - &.expand { |
93 | | - transition: width 0.2s ease-in; |
94 | | - |
95 | | - &:focus { |
96 | | - width: 200px; |
97 | | - } |
98 | | - } |
99 | | - } |
100 | 86 |
|
101 | 87 | &.small { |
102 | 88 | padding: 15px; |
@@ -177,14 +163,83 @@ input[type="radio"].ios { |
177 | 163 | width: 100%; |
178 | 164 | } |
179 | 165 |
|
| 166 | + |
180 | 167 | .search-container { |
181 | | - @include fa-mixins.fa-icon(variables2.$fa-var-search, after, inline, 0, 0, inherit, 13px); |
| 168 | + width: 100% !important; |
| 169 | + height: 40px; |
182 | 170 | position: relative; |
183 | 171 |
|
| 172 | + @include fa-mixins.fa-icon(variables2.$fa-var-search, after, inline, 0, 0, inherit, 13px); |
| 173 | + |
| 174 | + outline: variables.$thin-border-stroke color.adjust(variables.$main-border-color, $lightness: -2%); |
| 175 | + border-radius: variables.$main-border-radius; |
| 176 | + |
| 177 | + input.search { |
| 178 | + border: 0; |
| 179 | + border-right-width: 0; |
| 180 | + float: left; |
| 181 | + margin: 0; |
| 182 | + |
| 183 | + appearance: none; |
| 184 | + vertical-align: top; |
| 185 | + padding: 0 0px 0 40px !important; |
| 186 | + height: 40px; |
| 187 | + |
| 188 | + outline: none; |
| 189 | + |
| 190 | + width: calc(100% - 46px) !important; |
| 191 | + |
| 192 | + &.fullwidth { |
| 193 | + width: 100% !important; |
| 194 | + } |
| 195 | + } |
| 196 | + |
| 197 | + |
| 198 | + &:focus-within { |
| 199 | + outline: 3px solid #378dd4; |
| 200 | + } |
| 201 | + |
| 202 | + &.expand { |
| 203 | + width: 170px !important; |
| 204 | + transition: width 0.2s ease-in; |
| 205 | + |
| 206 | + &:focus-within { |
| 207 | + width: 240px !important; |
| 208 | + // width: calc(100% + 46px) !important; |
| 209 | + } |
| 210 | + } |
| 211 | + |
| 212 | + button.clear { |
| 213 | + height: 40px; |
| 214 | + width: 46px; |
| 215 | + float: right; |
| 216 | + @include button.btn(white); |
| 217 | + @include fa-mixins.fa-icon(variables2.$fa-var-times, before, block, 0, 0.45em 0.45em 0.55em 0.45em, inherit, 14px); |
| 218 | + opacity: 1 !important; |
| 219 | + |
| 220 | + &, &:hover, &:focus, &:active { |
| 221 | + background: none; |
| 222 | + background-color: #fff; |
| 223 | + border: 0; |
| 224 | + box-shadow: none; |
| 225 | + } |
| 226 | + |
| 227 | + &.disabled, &.disabled:hover, &.disabled:focus, &.disabled:active { |
| 228 | + background-color: #eeeff0, |
| 229 | + } |
| 230 | + |
| 231 | + &+input.search { |
| 232 | + width: calc(100% - 46px) !important; |
| 233 | + } |
| 234 | + |
| 235 | + |
| 236 | + } |
| 237 | + |
184 | 238 | &:after { |
185 | 239 | position: absolute; |
186 | 240 | top: 13px; |
187 | 241 | left: 10px; |
188 | 242 | } |
| 243 | + |
189 | 244 | } |
190 | 245 |
|
0 commit comments