Skip to content

Commit 00d1fba

Browse files
committed
fix: address stylelint issues
1 parent dbbc5b4 commit 00d1fba

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

docs-site/src/pages/pattern-lab/_patterns/04-pages/99999-bolt-dev-sandbox/styles/_global-search.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ $bolt-search-field-icon-only-button-width: bolt-spacing(medium) + 1rem;
123123
.c-global-search-panel--floating {
124124
@include bolt-shadow('level-40');
125125

126+
position: absolute;
127+
top: calc(100% - 1px);
128+
right: 0;
129+
left: 0;
126130
width: 100%;
127131
max-height: 0;
128132
pointer-events: none;
129133
transition: all $bolt-transition;
130-
position: absolute;
131-
left: 0;
132-
right: 0;
133-
top: calc(100% - 1px);
134134

135135
@at-root .c-page-header--global-search-active #{&} {
136136
pointer-events: auto;
@@ -167,16 +167,16 @@ $bolt-search-field-icon-only-button-width: bolt-spacing(medium) + 1rem;
167167

168168
@at-root .c-global-search-panel--floating #{&} {
169169
opacity: bolt-opacity(0);
170-
transition: all $bolt-transition;
170+
opacity: 0;
171171
transform: translate3d(0, 0, 0) scale3d(1, .5, 1);
172+
transition: all $bolt-transition;
172173
@include bolt-shadow('level-40');
173174
transform-origin: 0 0;
174-
opacity: 0;
175175

176176
> * {
177177
opacity: 0;
178-
transition: opacity ease-in-out 200ms 200ms, transform ease-in-out 200ms;
179178
transform: translate3d(0, 0px, 0) scale3d(0.99, 0.8, 1);
179+
transition: opacity ease-in-out 200ms 200ms, transform ease-in-out 200ms;
180180
transition-delay: 133.333ms;
181181

182182
.c-page-header--global-search-active & {
@@ -189,8 +189,8 @@ $bolt-search-field-icon-only-button-width: bolt-spacing(medium) + 1rem;
189189

190190
@at-root .c-page-header--global-search-active .c-global-search-panel--floating #{&} {
191191
opacity: bolt-opacity(100);
192-
z-index: 2; // This is self contained z-index within the search panel. Its only purpose is to define stacking order of elements in this specific container.
193192
transform: translate3d(0, 0, 0);
193+
z-index: 2; // This is self contained z-index within the search panel. Its only purpose is to define stacking order of elements in this specific container.
194194
}
195195
}
196196

packages/components/bolt-page-header/src/page-header.scss

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,8 @@
814814
}
815815

816816
.c-header-buttons {
817-
display: inline-block;
817+
display: flex;
818+
align-items: center;
818819
align-self: center;
819820
visibility: visible;
820821
opacity: 1;
@@ -826,21 +827,18 @@
826827
-webkit-transform: translateY(-50%);
827828
transform: translateY(-50%);
828829
z-index: bolt-z-index('nav');
830+
height: 100%;
831+
overflow: hidden;
829832
color: #005A8B;
830833
-ms-flex-item-align: center;
831834
white-space: nowrap;
832-
overflow: hidden;
833-
height: 100%;
834-
display: flex;
835-
align-items: center;
836835
}
837836

838837
.c-header-buttons .c-header-buttons__item {
839-
display: inline-block;
840-
vertical-align: middle;
841-
height: 100%;
842838
display: flex;
843839
align-items: center;
840+
height: 100%;
841+
vertical-align: middle;
844842
}
845843

846844
.c-hamburger {

0 commit comments

Comments
 (0)