@patternfly/patternfly 5.0.0-alpha.49 → 5.0.0-alpha.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/patternfly-variables.css +1 -1
- package/components/Breadcrumb/breadcrumb.css +1 -5
- package/components/Breadcrumb/breadcrumb.scss +1 -8
- package/components/Divider/divider.css +12 -12
- package/components/List/list.css +1 -1
- package/components/List/list.scss +1 -1
- package/components/LogViewer/log-viewer.css +0 -3
- package/components/LogViewer/log-viewer.scss +0 -4
- package/components/Masthead/masthead.css +12 -12
- package/components/MultipleFileUpload/multiple-file-upload.css +3 -3
- package/components/MultipleFileUpload/multiple-file-upload.scss +3 -3
- package/components/Pagination/pagination.css +12 -12
- package/components/Tabs/tabs.css +24 -24
- package/components/TextInputGroup/text-input-group.css +1 -5
- package/components/TextInputGroup/text-input-group.scss +1 -7
- package/components/Toolbar/toolbar.css +54 -54
- package/components/_all.scss +1 -2
- package/docs/components/AppLauncher/examples/application-launcher.md +8 -7
- package/docs/components/Chip/examples/Chip.md +713 -4
- package/docs/components/ContextSelector/examples/context-selector.md +12 -12
- package/docs/components/DualListSelector/examples/DualListSelector.md +32 -32
- package/docs/components/LogViewer/examples/LogViewer.md +40 -40
- package/docs/components/Menu/examples/Menu.md +20 -18
- package/docs/components/Select/examples/Select.md +16 -14
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +0 -13
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +21 -21
- package/docs/components/Toolbar/examples/Toolbar.md +10 -10
- package/docs/components/TreeView/examples/TreeView.md +8 -7
- package/docs/demos/AboutModal/examples/AboutModal.md +21 -21
- package/docs/demos/Alert/examples/Alert.md +63 -63
- package/docs/demos/BackToTop/examples/BackToTop.md +21 -21
- package/docs/demos/Banner/examples/Banner.md +42 -42
- package/docs/demos/CardView/examples/CardView.md +21 -21
- package/docs/demos/ContextSelector/examples/ContextSelector.md +95 -91
- package/docs/demos/Dashboard/examples/Dashboard.md +21 -21
- package/docs/demos/DataList/examples/DataList.md +104 -105
- package/docs/demos/DescriptionList/examples/DescriptionList.md +63 -63
- package/docs/demos/Drawer/examples/Drawer.md +105 -105
- package/docs/demos/JumpLinks/examples/JumpLinks.md +126 -126
- package/docs/demos/Masthead/examples/Masthead.md +56 -55
- package/docs/demos/Modal/examples/Modal.md +126 -126
- package/docs/demos/Nav/examples/Nav.md +168 -168
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +105 -105
- package/docs/demos/Page/examples/Page.md +189 -189
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +153 -153
- package/docs/demos/Skeleton/examples/Skeleton.md +21 -21
- package/docs/demos/Table/examples/Table.md +339 -339
- package/docs/demos/Tabs/examples/Tabs.md +126 -126
- package/docs/demos/Toolbar/examples/Toolbar.md +50 -50
- package/docs/demos/Wizard/examples/Wizard.md +189 -189
- package/docs/layouts/Flex/examples/Flex.md +319 -215
- package/layouts/Flex/flex.css +738 -31
- package/layouts/Flex/flex.scss +101 -17
- package/package.json +1 -1
- package/patternfly-base-no-globals.css +1 -1
- package/patternfly-base.css +1 -1
- package/patternfly-no-globals.css +859 -389
- package/patternfly.css +859 -389
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/component-namespaces.scss +0 -3
- package/sass-utilities/functions.scss +9 -5
- package/sass-utilities/themes/dark/scss-variables.scss +1 -4
- package/components/Breadcrumb/themes/dark/breadcrumb.scss +0 -7
- package/components/SearchInput/search-input.css +0 -199
- package/components/SearchInput/search-input.scss +0 -231
- package/components/SearchInput/themes/dark/search-input.scss +0 -16
- package/docs/components/ChipGroup/examples/ChipGroup.md +0 -716
- package/docs/components/SearchInput/examples/SearchInput.css +0 -12
- package/docs/components/SearchInput/examples/SearchInput.md +0 -681
- /package/components/{ChipGroup → Chip}/chip-group.css +0 -0
- /package/components/{ChipGroup → Chip}/chip-group.scss +0 -0
|
@@ -83,20 +83,24 @@
|
|
|
83
83
|
|
|
84
84
|
// Build spacer map
|
|
85
85
|
// Based on $pf-v5-global--spacer-map
|
|
86
|
-
@function build-spacer-map($map-items...) {
|
|
86
|
+
@function build-spacer-map($base: false, $map-items...) {
|
|
87
87
|
$map: ();
|
|
88
88
|
|
|
89
|
+
@if $base {
|
|
90
|
+
$map: map-merge($map, ("base": null));
|
|
91
|
+
}
|
|
92
|
+
|
|
89
93
|
@if length($map-items) == 0 {
|
|
90
|
-
$map: ("none": 0);
|
|
94
|
+
$map: map-merge($map, ("none": 0));
|
|
91
95
|
$map: map-merge($map, $pf-v5-global--spacer-map);
|
|
92
96
|
$map: map-remove($map, "auto", "0");
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
@each $spacer in $map-items {
|
|
96
|
-
@if
|
|
97
|
-
$map: map-merge($map, ("invalid spacer #{$spacer}": null));
|
|
98
|
-
} @else if $spacer == "none" {
|
|
100
|
+
@if $spacer == "none" {
|
|
99
101
|
$map: map-merge($map, ($spacer: 0));
|
|
102
|
+
} @else if not map-has-key($pf-v5-global--spacer-map, $spacer) {
|
|
103
|
+
$map: map-merge($map, ("invalid spacer #{$spacer}": null));
|
|
100
104
|
} @else {
|
|
101
105
|
$map: map-merge($map, ($spacer: map-get($pf-v5-global--spacer-map, #{$spacer})));
|
|
102
106
|
}
|
|
@@ -27,9 +27,6 @@ $pf-v5-global--disabled-color--100: $pf-v5-color-black-400; // disabled text on
|
|
|
27
27
|
$pf-v5-global--disabled-color--200: $pf-v5-color-black-500; // disabled background color
|
|
28
28
|
$pf-v5-global--disabled-color--300: $pf-v5-color-black-200; // disabled text on disabled background color - except form elements
|
|
29
29
|
|
|
30
|
-
// icons
|
|
31
|
-
$pf-v5-global--icon--Color--light: $pf-v5-color-black-300;
|
|
32
|
-
|
|
33
30
|
// theme color resets
|
|
34
31
|
$pf-v5-global--Color--dark-100: $pf-v5-global--Color--100;
|
|
35
32
|
$pf-v5-global--Color--dark-200: $pf-v5-global--Color--200;
|
|
@@ -52,7 +49,7 @@ $pf-v5-global--BackgroundColor--dark-200: $pf-v5-global--BackgroundColor--200;
|
|
|
52
49
|
$pf-v5-global--BackgroundColor--dark-300: $pf-v5-global--BackgroundColor--300;
|
|
53
50
|
$pf-v5-global--BackgroundColor--dark-400: $pf-v5-global--BackgroundColor--400;
|
|
54
51
|
$pf-v5-global--icon--Color--light: $pf-v5-color-black-200;
|
|
55
|
-
$pf-v5-global--icon--Color--dark: $pf-v5-color-black-
|
|
52
|
+
$pf-v5-global--icon--Color--dark: $pf-v5-color-black-50;
|
|
56
53
|
|
|
57
54
|
// Shadows
|
|
58
55
|
// small
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
.pf-v5-c-search-input {
|
|
2
|
-
--pf-v5-c-search-input__text--before--BorderWidth: var(--pf-v5-global--BorderWidth--sm);
|
|
3
|
-
--pf-v5-c-search-input__text--before--BorderColor: var(--pf-v5-global--BorderColor--300);
|
|
4
|
-
--pf-v5-c-search-input__text--after--BorderBottomWidth: var(--pf-v5-global--BorderWidth--sm);
|
|
5
|
-
--pf-v5-c-search-input__text--after--BorderBottomColor: var(--pf-v5-global--BorderColor--200);
|
|
6
|
-
--pf-v5-c-search-input__bar--hover__text--after--BorderBottomColor: var(--pf-v5-global--primary-color--100);
|
|
7
|
-
--pf-v5-c-search-input__text--focus-within--after--BorderBottomWidth: var(--pf-v5-global--BorderWidth--md);
|
|
8
|
-
--pf-v5-c-search-input__text--focus-within--after--BorderBottomColor: var(--pf-v5-global--primary-color--100);
|
|
9
|
-
--pf-v5-c-search-input__text-input--PaddingTop: var(--pf-v5-global--spacer--form-element);
|
|
10
|
-
--pf-v5-c-search-input__text-input--PaddingRight: var(--pf-v5-global--spacer--sm);
|
|
11
|
-
--pf-v5-c-search-input__text-input--PaddingBottom: var(--pf-v5-global--spacer--form-element);
|
|
12
|
-
--pf-v5-c-search-input__text-input--PaddingLeft: var(--pf-v5-global--spacer--xl);
|
|
13
|
-
--pf-v5-c-search-input__text-input--MinWidth: 6ch;
|
|
14
|
-
--pf-v5-c-search-input__text-input--m-hint--Color: var(--pf-v5-global--Color--dark-200);
|
|
15
|
-
--pf-v5-c-search-input__text-input--BackgroundColor: transparent;
|
|
16
|
-
--pf-v5-c-search-input__icon--Left: var(--pf-v5-global--spacer--sm);
|
|
17
|
-
--pf-v5-c-search-input__icon--Color: var(--pf-v5-global--Color--200);
|
|
18
|
-
--pf-v5-c-search-input__text--hover__icon--Color: var(--pf-v5-global--Color--100);
|
|
19
|
-
--pf-v5-c-search-input__icon--TranslateY: -50%;
|
|
20
|
-
--pf-v5-c-search-input__utilities--MarginRight: var(--pf-v5-global--spacer--sm);
|
|
21
|
-
--pf-v5-c-search-input__utilities--MarginLeft: var(--pf-v5-global--spacer--xs);
|
|
22
|
-
--pf-v5-c-search-input__utilities--child--MarginLeft: var(--pf-v5-global--spacer--xs);
|
|
23
|
-
--pf-v5-c-search-input__utilities--c-button--PaddingRight: var(--pf-v5-global--spacer--xs);
|
|
24
|
-
--pf-v5-c-search-input__utilities--c-button--PaddingLeft: var(--pf-v5-global--spacer--xs);
|
|
25
|
-
--pf-v5-c-search-input__menu-body--PaddingTop: var(--pf-v5-global--spacer--md);
|
|
26
|
-
--pf-v5-c-search-input__menu-body--PaddingRight: var(--pf-v5-global--spacer--md);
|
|
27
|
-
--pf-v5-c-search-input__menu-body--PaddingBottom: var(--pf-v5-global--spacer--md);
|
|
28
|
-
--pf-v5-c-search-input__menu-body--PaddingLeft: var(--pf-v5-global--spacer--md);
|
|
29
|
-
--pf-v5-c-search-input__menu--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-100);
|
|
30
|
-
--pf-v5-c-search-input__menu--BoxShadow: var(--pf-v5-global--BoxShadow--md);
|
|
31
|
-
--pf-v5-c-search-input__menu--Top: calc(100% + var(--pf-v5-global--spacer--xs));
|
|
32
|
-
--pf-v5-c-search-input__menu--ZIndex: var(--pf-v5-global--ZIndex--sm);
|
|
33
|
-
--pf-v5-c-search-input--m-top__menu--Top: 0;
|
|
34
|
-
--pf-v5-c-search-input--m-top__menu--TranslateY: calc(-100% - var(--pf-v5-global--spacer--xs));
|
|
35
|
-
--pf-v5-c-search-input__menu-list--PaddingTop: var(--pf-v5-global--spacer--sm);
|
|
36
|
-
--pf-v5-c-search-input__menu-list--PaddingBottom: var(--pf-v5-global--spacer--sm);
|
|
37
|
-
--pf-v5-c-search-input__menu-item--PaddingTop: var(--pf-v5-global--spacer--sm);
|
|
38
|
-
--pf-v5-c-search-input__menu-item--PaddingRight: var(--pf-v5-global--spacer--md);
|
|
39
|
-
--pf-v5-c-search-input__menu-item--PaddingBottom: var(--pf-v5-global--spacer--sm);
|
|
40
|
-
--pf-v5-c-search-input__menu-item--PaddingLeft: var(--pf-v5-global--spacer--md);
|
|
41
|
-
--pf-v5-c-search-input__menu-item--Color: var(--pf-v5-global--Color--100);
|
|
42
|
-
--pf-v5-c-search-input__menu-item--BackgroundColor: transparent;
|
|
43
|
-
--pf-v5-c-search-input__menu-item--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
|
|
44
|
-
--pf-v5-c-search-input__menu-item--focus--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
|
|
45
|
-
position: relative;
|
|
46
|
-
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.pf-v5-c-search-input__bar {
|
|
50
|
-
position: relative;
|
|
51
|
-
display: flex;
|
|
52
|
-
width: 100%;
|
|
53
|
-
}
|
|
54
|
-
.pf-v5-c-search-input__bar:hover {
|
|
55
|
-
--pf-v5-c-search-input__text--after--BorderBottomColor: var(--pf-v5-c-search-input__bar--hover__text--after--BorderBottomColor);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.pf-v5-c-search-input__text {
|
|
59
|
-
display: grid;
|
|
60
|
-
flex: 1;
|
|
61
|
-
grid-template-areas: "text-input";
|
|
62
|
-
grid-template-columns: 1fr;
|
|
63
|
-
}
|
|
64
|
-
.pf-v5-c-search-input__text::before, .pf-v5-c-search-input__text::after {
|
|
65
|
-
position: absolute;
|
|
66
|
-
top: 0;
|
|
67
|
-
right: 0;
|
|
68
|
-
bottom: 0;
|
|
69
|
-
left: 0;
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
content: "";
|
|
72
|
-
}
|
|
73
|
-
.pf-v5-c-search-input__text::before {
|
|
74
|
-
border: var(--pf-v5-c-search-input__text--before--BorderWidth) solid var(--pf-v5-c-search-input__text--before--BorderColor);
|
|
75
|
-
}
|
|
76
|
-
.pf-v5-c-search-input__text::after {
|
|
77
|
-
border-bottom: var(--pf-v5-c-search-input__text--after--BorderBottomWidth) solid var(--pf-v5-c-search-input__text--after--BorderBottomColor);
|
|
78
|
-
}
|
|
79
|
-
.pf-v5-c-search-input__text:hover, .pf-v5-c-search-input__text:focus-within {
|
|
80
|
-
--pf-v5-c-search-input__icon--Color: var(--pf-v5-c-search-input__text--hover__icon--Color);
|
|
81
|
-
}
|
|
82
|
-
.pf-v5-c-search-input__text:focus-within {
|
|
83
|
-
--pf-v5-c-search-input__text--after--BorderBottomWidth: var(--pf-v5-c-search-input__text--focus-within--after--BorderBottomWidth);
|
|
84
|
-
--pf-v5-c-search-input__text--after--BorderBottomColor: var(--pf-v5-c-search-input__text--focus-within--after--BorderBottomColor);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.pf-v5-c-search-input__icon {
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 50%;
|
|
90
|
-
left: var(--pf-v5-c-search-input__icon--Left);
|
|
91
|
-
color: var(--pf-v5-c-search-input__icon--Color);
|
|
92
|
-
transform: translateY(var(--pf-v5-c-search-input__icon--TranslateY));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.pf-v5-c-search-input__text-input {
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
text-overflow: ellipsis;
|
|
98
|
-
white-space: nowrap;
|
|
99
|
-
position: relative;
|
|
100
|
-
width: 100%;
|
|
101
|
-
min-width: var(--pf-v5-c-search-input__text-input--MinWidth);
|
|
102
|
-
padding: var(--pf-v5-c-search-input__text-input--PaddingTop) var(--pf-v5-c-search-input__text-input--PaddingRight) var(--pf-v5-c-search-input__text-input--PaddingBottom) var(--pf-v5-c-search-input__text-input--PaddingLeft);
|
|
103
|
-
background-color: var(--pf-v5-c-search-input__text-input--BackgroundColor);
|
|
104
|
-
border: 0;
|
|
105
|
-
}
|
|
106
|
-
.pf-v5-c-search-input__text-input, .pf-v5-c-search-input__text-input.pf-m-hint {
|
|
107
|
-
grid-area: text-input;
|
|
108
|
-
}
|
|
109
|
-
.pf-v5-c-search-input__text-input.pf-m-hint {
|
|
110
|
-
color: var(--pf-v5-c-search-input__text-input--m-hint--Color);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.pf-v5-c-search-input__utilities {
|
|
114
|
-
display: flex;
|
|
115
|
-
margin-right: var(--pf-v5-c-search-input__utilities--MarginRight);
|
|
116
|
-
margin-left: var(--pf-v5-c-search-input__utilities--MarginLeft);
|
|
117
|
-
}
|
|
118
|
-
.pf-v5-c-search-input__utilities > * + * {
|
|
119
|
-
margin-left: var(--pf-v5-c-search-input__utilities--child--MarginLeft);
|
|
120
|
-
}
|
|
121
|
-
.pf-v5-c-search-input__utilities .pf-v5-c-button {
|
|
122
|
-
--pf-v5-c-button--PaddingRight: var(--pf-v5-c-search-input__utilities--c-button--PaddingRight);
|
|
123
|
-
--pf-v5-c-button--PaddingLeft: var(--pf-v5-c-search-input__utilities--c-button--PaddingLeft);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.pf-v5-c-search-input__nav {
|
|
127
|
-
display: flex;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.pf-v5-c-search-input__count {
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.pf-v5-c-search-input__menu {
|
|
136
|
-
position: absolute;
|
|
137
|
-
top: var(--pf-v5-c-search-input__menu--Top);
|
|
138
|
-
z-index: var(--pf-v5-c-search-input__menu--ZIndex);
|
|
139
|
-
min-width: 100%;
|
|
140
|
-
background-color: var(--pf-v5-c-search-input__menu--BackgroundColor);
|
|
141
|
-
background-clip: padding-box;
|
|
142
|
-
box-shadow: var(--pf-v5-c-search-input__menu--BoxShadow);
|
|
143
|
-
}
|
|
144
|
-
.pf-v5-c-search-input.pf-m-top .pf-v5-c-search-input__menu {
|
|
145
|
-
--pf-v5-c-search-input__menu--Top: var(--pf-v5-c-search-input--m-top__menu--Top);
|
|
146
|
-
transform: translateY(var(--pf-v5-c-search-input--m-top__menu--TranslateY));
|
|
147
|
-
}
|
|
148
|
-
.pf-v5-c-search-input__menu.pf-m-static {
|
|
149
|
-
--pf-v5-c-search-input--m-top__menu--TranslateY: 0;
|
|
150
|
-
position: static;
|
|
151
|
-
top: auto;
|
|
152
|
-
right: auto;
|
|
153
|
-
bottom: auto;
|
|
154
|
-
left: auto;
|
|
155
|
-
z-index: auto;
|
|
156
|
-
min-width: min-content;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.pf-v5-c-search-input__menu-body {
|
|
160
|
-
padding: var(--pf-v5-c-search-input__menu-body--PaddingTop) var(--pf-v5-c-search-input__menu-body--PaddingRight) var(--pf-v5-c-search-input__menu-body--PaddingBottom) var(--pf-v5-c-search-input__menu-body--PaddingLeft);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.pf-v5-c-search-input__menu-list {
|
|
164
|
-
padding-top: var(--pf-v5-c-search-input__menu-list--PaddingTop);
|
|
165
|
-
padding-bottom: var(--pf-v5-c-search-input__menu-list--PaddingBottom);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.pf-v5-c-search-input__menu-item {
|
|
169
|
-
display: flex;
|
|
170
|
-
width: 100%;
|
|
171
|
-
min-width: 0;
|
|
172
|
-
padding-top: var(--pf-v5-c-search-input__menu-item--PaddingTop);
|
|
173
|
-
padding-right: var(--pf-v5-c-search-input__menu-item--PaddingRight);
|
|
174
|
-
padding-bottom: var(--pf-v5-c-search-input__menu-item--PaddingBottom);
|
|
175
|
-
padding-left: var(--pf-v5-c-search-input__menu-item--PaddingLeft);
|
|
176
|
-
color: var(--pf-v5-c-search-input__menu-item--Color);
|
|
177
|
-
text-align: left;
|
|
178
|
-
background-color: var(--pf-v5-c-search-input__menu-item--BackgroundColor);
|
|
179
|
-
border: none;
|
|
180
|
-
}
|
|
181
|
-
.pf-v5-c-search-input__menu-item:hover {
|
|
182
|
-
--pf-v5-c-search-input__menu-item--BackgroundColor: var(--pf-v5-c-search-input__menu-item--hover--BackgroundColor);
|
|
183
|
-
}
|
|
184
|
-
.pf-v5-c-search-input__menu-item:focus {
|
|
185
|
-
--pf-v5-c-search-input__menu-item--BackgroundColor: var(--pf-v5-c-search-input__menu-item--focus--BackgroundColor);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.pf-v5-c-search-input__menu-item-text {
|
|
189
|
-
flex-grow: 1;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
:where(.pf-v5-theme-dark) .pf-v5-c-search-input {
|
|
193
|
-
--pf-v5-c-search-input__text--before--BorderColor: transparent;
|
|
194
|
-
--pf-v5-c-search-input__text--after--BorderBottomColor: var(--pf-v5-global--BorderColor--400);
|
|
195
|
-
background-color: var(--pf-v5-global--BackgroundColor--400);
|
|
196
|
-
}
|
|
197
|
-
:where(.pf-v5-theme-dark) .pf-v5-c-search-input__text::before {
|
|
198
|
-
border-bottom-color: var(--pf-v5-global--BorderColor--400);
|
|
199
|
-
}
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
// @debug $search-input; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
|
|
2
|
-
|
|
3
|
-
.#{$search-input} {
|
|
4
|
-
// Base border
|
|
5
|
-
--#{$search-input}__text--before--BorderWidth: var(--#{$pf-global}--BorderWidth--sm);
|
|
6
|
-
--#{$search-input}__text--before--BorderColor: var(--#{$pf-global}--BorderColor--300);
|
|
7
|
-
|
|
8
|
-
// Bottom border
|
|
9
|
-
--#{$search-input}__text--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--sm);
|
|
10
|
-
--#{$search-input}__text--after--BorderBottomColor: var(--#{$pf-global}--BorderColor--200);
|
|
11
|
-
--#{$search-input}__bar--hover__text--after--BorderBottomColor: var(--#{$pf-global}--primary-color--100);
|
|
12
|
-
--#{$search-input}__text--focus-within--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--md);
|
|
13
|
-
--#{$search-input}__text--focus-within--after--BorderBottomColor: var(--#{$pf-global}--primary-color--100);
|
|
14
|
-
|
|
15
|
-
// Search input
|
|
16
|
-
--#{$search-input}__text-input--PaddingTop: var(--#{$pf-global}--spacer--form-element);
|
|
17
|
-
--#{$search-input}__text-input--PaddingRight: var(--#{$pf-global}--spacer--sm);
|
|
18
|
-
--#{$search-input}__text-input--PaddingBottom: var(--#{$pf-global}--spacer--form-element);
|
|
19
|
-
--#{$search-input}__text-input--PaddingLeft: var(--#{$pf-global}--spacer--xl);
|
|
20
|
-
--#{$search-input}__text-input--MinWidth: 6ch;
|
|
21
|
-
--#{$search-input}__text-input--m-hint--Color: var(--#{$pf-global}--Color--dark-200); // matches placeholder text color
|
|
22
|
-
--#{$search-input}__text-input--BackgroundColor: transparent;
|
|
23
|
-
|
|
24
|
-
// Icon
|
|
25
|
-
--#{$search-input}__icon--Left: var(--#{$pf-global}--spacer--sm);
|
|
26
|
-
--#{$search-input}__icon--Color: var(--#{$pf-global}--Color--200);
|
|
27
|
-
--#{$search-input}__text--hover__icon--Color: var(--#{$pf-global}--Color--100);
|
|
28
|
-
--#{$search-input}__icon--TranslateY: -50%;
|
|
29
|
-
|
|
30
|
-
// Utilities
|
|
31
|
-
--#{$search-input}__utilities--MarginRight: var(--#{$pf-global}--spacer--sm);
|
|
32
|
-
--#{$search-input}__utilities--MarginLeft: var(--#{$pf-global}--spacer--xs);
|
|
33
|
-
--#{$search-input}__utilities--child--MarginLeft: var(--#{$pf-global}--spacer--xs);
|
|
34
|
-
--#{$search-input}__utilities--c-button--PaddingRight: var(--#{$pf-global}--spacer--xs);
|
|
35
|
-
--#{$search-input}__utilities--c-button--PaddingLeft: var(--#{$pf-global}--spacer--xs);
|
|
36
|
-
|
|
37
|
-
// Menu
|
|
38
|
-
--#{$search-input}__menu-body--PaddingTop: var(--#{$pf-global}--spacer--md);
|
|
39
|
-
--#{$search-input}__menu-body--PaddingRight: var(--#{$pf-global}--spacer--md);
|
|
40
|
-
--#{$search-input}__menu-body--PaddingBottom: var(--#{$pf-global}--spacer--md);
|
|
41
|
-
--#{$search-input}__menu-body--PaddingLeft: var(--#{$pf-global}--spacer--md);
|
|
42
|
-
--#{$search-input}__menu--BackgroundColor: var(--#{$pf-global}--BackgroundColor--light-100);
|
|
43
|
-
--#{$search-input}__menu--BoxShadow: var(--#{$pf-global}--BoxShadow--md);
|
|
44
|
-
--#{$search-input}__menu--Top: calc(100% + var(--#{$pf-global}--spacer--xs));
|
|
45
|
-
--#{$search-input}__menu--ZIndex: var(--#{$pf-global}--ZIndex--sm);
|
|
46
|
-
--#{$search-input}--m-top__menu--Top: 0;
|
|
47
|
-
--#{$search-input}--m-top__menu--TranslateY: calc(-100% - var(--#{$pf-global}--spacer--xs));
|
|
48
|
-
|
|
49
|
-
// Autocomplete menu
|
|
50
|
-
--#{$search-input}__menu-list--PaddingTop: var(--#{$pf-global}--spacer--sm);
|
|
51
|
-
--#{$search-input}__menu-list--PaddingBottom: var(--#{$pf-global}--spacer--sm);
|
|
52
|
-
--#{$search-input}__menu-item--PaddingTop: var(--#{$pf-global}--spacer--sm);
|
|
53
|
-
--#{$search-input}__menu-item--PaddingRight: var(--#{$pf-global}--spacer--md);
|
|
54
|
-
--#{$search-input}__menu-item--PaddingBottom: var(--#{$pf-global}--spacer--sm);
|
|
55
|
-
--#{$search-input}__menu-item--PaddingLeft: var(--#{$pf-global}--spacer--md);
|
|
56
|
-
--#{$search-input}__menu-item--Color: var(--#{$pf-global}--Color--100);
|
|
57
|
-
--#{$search-input}__menu-item--BackgroundColor: transparent;
|
|
58
|
-
--#{$search-input}__menu-item--hover--BackgroundColor: var(--#{$pf-global}--BackgroundColor--200);
|
|
59
|
-
--#{$search-input}__menu-item--focus--BackgroundColor: var(--#{$pf-global}--BackgroundColor--200);
|
|
60
|
-
|
|
61
|
-
position: relative;
|
|
62
|
-
width: 100%;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.#{$search-input}__bar {
|
|
66
|
-
position: relative;
|
|
67
|
-
display: flex;
|
|
68
|
-
width: 100%;
|
|
69
|
-
|
|
70
|
-
&:hover {
|
|
71
|
-
--#{$search-input}__text--after--BorderBottomColor: var(--#{$search-input}__bar--hover__text--after--BorderBottomColor);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.#{$search-input}__text {
|
|
76
|
-
display: grid;
|
|
77
|
-
flex: 1;
|
|
78
|
-
grid-template-areas: "text-input";
|
|
79
|
-
grid-template-columns: 1fr;
|
|
80
|
-
|
|
81
|
-
&::before,
|
|
82
|
-
&::after {
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: 0;
|
|
85
|
-
right: 0;
|
|
86
|
-
bottom: 0;
|
|
87
|
-
left: 0;
|
|
88
|
-
pointer-events: none;
|
|
89
|
-
content: "";
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&::before {
|
|
93
|
-
border: var(--#{$search-input}__text--before--BorderWidth) solid var(--#{$search-input}__text--before--BorderColor);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&::after {
|
|
97
|
-
border-bottom: var(--#{$search-input}__text--after--BorderBottomWidth) solid var(--#{$search-input}__text--after--BorderBottomColor);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:hover,
|
|
101
|
-
&:focus-within {
|
|
102
|
-
--#{$search-input}__icon--Color: var(--#{$search-input}__text--hover__icon--Color);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&:focus-within {
|
|
106
|
-
--#{$search-input}__text--after--BorderBottomWidth: var(--#{$search-input}__text--focus-within--after--BorderBottomWidth);
|
|
107
|
-
--#{$search-input}__text--after--BorderBottomColor: var(--#{$search-input}__text--focus-within--after--BorderBottomColor);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.#{$search-input}__icon {
|
|
112
|
-
position: absolute;
|
|
113
|
-
top: 50%;
|
|
114
|
-
left: var(--#{$search-input}__icon--Left);
|
|
115
|
-
color: var(--#{$search-input}__icon--Color);
|
|
116
|
-
transform: translateY(var(--#{$search-input}__icon--TranslateY));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.#{$search-input}__text-input {
|
|
120
|
-
@include pf-v5-text-overflow;
|
|
121
|
-
|
|
122
|
-
position: relative;
|
|
123
|
-
width: 100%;
|
|
124
|
-
min-width: var(--#{$search-input}__text-input--MinWidth);
|
|
125
|
-
padding: var(--#{$search-input}__text-input--PaddingTop) var(--#{$search-input}__text-input--PaddingRight) var(--#{$search-input}__text-input--PaddingBottom) var(--#{$search-input}__text-input--PaddingLeft);
|
|
126
|
-
background-color: var(--#{$search-input}__text-input--BackgroundColor);
|
|
127
|
-
border: 0;
|
|
128
|
-
|
|
129
|
-
&,
|
|
130
|
-
&.pf-m-hint {
|
|
131
|
-
grid-area: text-input;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.pf-m-hint {
|
|
135
|
-
color: var(--#{$search-input}__text-input--m-hint--Color);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.#{$search-input}__utilities {
|
|
140
|
-
display: flex;
|
|
141
|
-
margin-right: var(--#{$search-input}__utilities--MarginRight);
|
|
142
|
-
margin-left: var(--#{$search-input}__utilities--MarginLeft);
|
|
143
|
-
|
|
144
|
-
> * + * {
|
|
145
|
-
margin-left: var(--#{$search-input}__utilities--child--MarginLeft);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.#{$button} {
|
|
149
|
-
--#{$button}--PaddingRight: var(--#{$search-input}__utilities--c-button--PaddingRight);
|
|
150
|
-
--#{$button}--PaddingLeft: var(--#{$search-input}__utilities--c-button--PaddingLeft);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.#{$search-input}__nav {
|
|
155
|
-
display: flex;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.#{$search-input}__count {
|
|
159
|
-
display: flex;
|
|
160
|
-
align-items: center;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.#{$search-input}__menu {
|
|
164
|
-
position: absolute;
|
|
165
|
-
top: var(--#{$search-input}__menu--Top);
|
|
166
|
-
z-index: var(--#{$search-input}__menu--ZIndex);
|
|
167
|
-
min-width: 100%;
|
|
168
|
-
background-color: var(--#{$search-input}__menu--BackgroundColor);
|
|
169
|
-
background-clip: padding-box;
|
|
170
|
-
box-shadow: var(--#{$search-input}__menu--BoxShadow);
|
|
171
|
-
|
|
172
|
-
.#{$search-input}.pf-m-top & {
|
|
173
|
-
--#{$search-input}__menu--Top: var(--#{$search-input}--m-top__menu--Top);
|
|
174
|
-
|
|
175
|
-
transform: translateY(var(--#{$search-input}--m-top__menu--TranslateY));
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&.pf-m-static {
|
|
179
|
-
--#{$search-input}--m-top__menu--TranslateY: 0;
|
|
180
|
-
|
|
181
|
-
position: static;
|
|
182
|
-
top: auto;
|
|
183
|
-
right: auto;
|
|
184
|
-
bottom: auto;
|
|
185
|
-
left: auto;
|
|
186
|
-
z-index: auto;
|
|
187
|
-
min-width: min-content;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.#{$search-input}__menu-body {
|
|
192
|
-
padding: var(--#{$search-input}__menu-body--PaddingTop) var(--#{$search-input}__menu-body--PaddingRight) var(--#{$search-input}__menu-body--PaddingBottom) var(--#{$search-input}__menu-body--PaddingLeft);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.#{$search-input}__menu-list {
|
|
196
|
-
padding-top: var(--#{$search-input}__menu-list--PaddingTop);
|
|
197
|
-
padding-bottom: var(--#{$search-input}__menu-list--PaddingBottom);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.#{$search-input}__menu-item {
|
|
201
|
-
display: flex;
|
|
202
|
-
width: 100%;
|
|
203
|
-
min-width: 0;
|
|
204
|
-
padding-top: var(--#{$search-input}__menu-item--PaddingTop);
|
|
205
|
-
padding-right: var(--#{$search-input}__menu-item--PaddingRight);
|
|
206
|
-
padding-bottom: var(--#{$search-input}__menu-item--PaddingBottom);
|
|
207
|
-
padding-left: var(--#{$search-input}__menu-item--PaddingLeft);
|
|
208
|
-
color: var(--#{$search-input}__menu-item--Color);
|
|
209
|
-
text-align: left;
|
|
210
|
-
background-color: var(--#{$search-input}__menu-item--BackgroundColor);
|
|
211
|
-
border: none;
|
|
212
|
-
|
|
213
|
-
&:hover {
|
|
214
|
-
--#{$search-input}__menu-item--BackgroundColor: var(--#{$search-input}__menu-item--hover--BackgroundColor);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&:focus {
|
|
218
|
-
--#{$search-input}__menu-item--BackgroundColor: var(--#{$search-input}__menu-item--focus--BackgroundColor);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.#{$search-input}__menu-item-text {
|
|
223
|
-
flex-grow: 1;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
// stylelint-disable no-invalid-position-at-import-rule
|
|
227
|
-
@import "themes/dark/search-input";
|
|
228
|
-
|
|
229
|
-
@include pf-v5-theme-dark {
|
|
230
|
-
@include pf-v5-theme-dark-search-input;
|
|
231
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@import "../../../../sass-utilities/themes/dark/all";
|
|
2
|
-
|
|
3
|
-
@mixin pf-v5-theme-dark-search-input() {
|
|
4
|
-
.#{$search-input} {
|
|
5
|
-
--#{$search-input}__text--before--BorderColor: transparent;
|
|
6
|
-
--#{$search-input}__text--after--BorderBottomColor: var(--#{$pf-global}--BorderColor--400);
|
|
7
|
-
|
|
8
|
-
background-color: var(--#{$pf-global}--BackgroundColor--400);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.#{$search-input}__text {
|
|
12
|
-
&::before {
|
|
13
|
-
border-bottom-color: var(--#{$pf-global}--BorderColor--400);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|