1 | @import (reference) './imports/global';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | .aui-header .aui-quicksearch {
|
7 |
|
8 |
|
9 |
|
10 | @bg-color: var(--aui-appheader-quicksearch-bg-color);
|
11 | @border-color: var(--aui-appheader-quicksearch-border-color);
|
12 | @text-color: var(--aui-appheader-quicksearch-text-color);
|
13 | @placeholder-color: var(--aui-appheader-quicksearch-placeholder-text-color);
|
14 | @focus-bg-color: var(--aui-appheader-quicksearch-focus-bg-color);
|
15 | @focus-text-color: var(--aui-appheader-quicksearch-focus-text-color);
|
16 | @width: 170px;
|
17 | @border-radius: 3px;
|
18 | @box-shadow: none;
|
19 | @icon: @aui-glyph-search-small;
|
20 |
|
21 | @icon-height: @aui-icon-size-small;
|
22 | @icon-width: @aui-icon-size-small;
|
23 |
|
24 | @padding-left-right: @aui-grid;
|
25 | @icon-gutter: 30px;
|
26 |
|
27 |
|
28 | @text-baseline-fudge: 1px;
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | display: flex;
|
36 | justify-content: flex-end;
|
37 | align-items: center;
|
38 | position: relative;
|
39 | margin: 0;
|
40 |
|
41 |
|
42 | color: @text-color;
|
43 |
|
44 | input {
|
45 | background: @bg-color;
|
46 | border: @aui-form-field-border-width solid @border-color;
|
47 | border-radius: @border-radius;
|
48 | box-shadow: none;
|
49 | box-sizing: border-box;
|
50 | color: @text-color;
|
51 | height: unit(30 / @aui-font-size-medium, em);
|
52 | font-family: inherit;
|
53 | font-size: @aui-font-size-medium;
|
54 | padding: 0 @padding-left-right 0 @icon-gutter;
|
55 | vertical-align: baseline;
|
56 | width: @width;
|
57 |
|
58 | &::placeholder {
|
59 | color: @placeholder-color;
|
60 | }
|
61 | }
|
62 |
|
63 |
|
64 | input[type] {
|
65 | appearance: none;
|
66 | }
|
67 |
|
68 | input::-webkit-search-cancel-button {
|
69 | appearance: none;
|
70 | }
|
71 |
|
72 |
|
73 | &::before {
|
74 | #aui.icon-pseudoelement(@aui-icon-font-family);
|
75 |
|
76 |
|
77 |
|
78 |
|
79 | align-self: center;
|
80 | pointer-events: none;
|
81 | position: absolute;
|
82 | left: (@icon-gutter - @icon-width) / 2;
|
83 |
|
84 |
|
85 | content: @icon;
|
86 | color: @placeholder-color;
|
87 | font-size: @aui-icon-size-small;
|
88 | line-height: 1;
|
89 | height: @icon-height;
|
90 | width: @icon-width;
|
91 | z-index: 1;
|
92 | }
|
93 |
|
94 | &:focus-within::before {
|
95 | color: @text-color;
|
96 | }
|
97 |
|
98 | input {
|
99 | &:focus {
|
100 | #aui.with-focus-border();
|
101 |
|
102 | background: @focus-bg-color;
|
103 | color: @focus-text-color;
|
104 | }
|
105 | }
|
106 |
|
107 | &:focus-within::after {
|
108 | color: @focus-text-color;
|
109 | }
|
110 | }
|