Skip to content

Commit e184986

Browse files
committed
HP-1883: rid off ElementQuery, css container query instead
1 parent 53ba1e5 commit e184986

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"michelf/php-smartypants": "^1.8.0",
8181
"stichoza/google-translate-php": "^4.1.6",
8282
"wbraganca/yii2-dynamicform": "*@dev",
83-
"bower-asset/css-element-queries": "<1.0",
8483
"bower-asset/less-space": "*",
8584
"bower-asset/eonasdan-bootstrap-datetimepicker": "^4.17",
8685
"bower-asset/components-font-awesome": "~4.6",

src/assets/ElementQueryAsset.php

-23
This file was deleted.

src/widgets/IndexPage.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,14 @@ private function horizontalClientScriptInit()
201201
$view = $this->getView();
202202
StickySidebarAsset::register($view);
203203
$view->registerCss(<<<'CSS'
204-
.advanced-search[min-width~="150px"] form > div {
205-
width: 100%;
206-
position: inherit;
204+
.advanced-search {
205+
container: advanceSearch / inline-size;
206+
}
207+
@container advanceSearch (width >= 120px) {
208+
form > div {
209+
width: 100%!important;
210+
position: inherit!important;
211+
}
207212
}
208213
.horizontal-view .content-sidebar {
209214
will-change: min-height;

0 commit comments

Comments
 (0)