Skip to content

Commit cd27572

Browse files
Daniel BerthereauDaniel Berthereau
authored andcommitted
Updated css.
1 parent 179f56e commit cd27572

File tree

4 files changed

+33
-25
lines changed

4 files changed

+33
-25
lines changed

asset/css/advanced-search-admin.css

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,23 +100,4 @@
100100
#search-filters .filter input {
101101
margin-right: 6px;
102102
}
103-
104-
.search-admin .actions .disabled {
105-
color: currentColor;
106-
cursor: not-allowed;
107-
opacity: 0.5;
108-
text-decoration: none;
109-
}
110-
.search-admin .actions span::before {
111-
text-align: right;
112-
}
113-
.search-admin .actions span,
114-
.actions span::before {
115-
width: 24px;
116-
height: 24px;
117-
line-height: 24px;
118-
vertical-align: top;
119-
border: 0;
120-
box-shadow: none;
121-
}
122103
}

asset/css/advanced-search-configure.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
@media screen {
2+
.search-admin .actions .disabled {
3+
color: currentColor;
4+
cursor: not-allowed;
5+
opacity: 0.5;
6+
text-decoration: none;
7+
}
8+
.search-admin .actions span::before {
9+
text-align: right;
10+
}
11+
.search-admin .actions span,
12+
.actions span::before {
13+
width: 24px;
14+
height: 24px;
15+
line-height: 24px;
16+
vertical-align: top;
17+
border: 0;
18+
box-shadow: none;
19+
}
20+
221
.ui-sortable {
322
background-color: #eeeeee;
423
padding: 5px;

view/advanced-search/admin/index/browse.phtml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,17 @@
3434
* @var \AdvancedSearch\Api\Representation\SearchSuggesterRepresentation[] $suggesters
3535
*/
3636

37-
$translate = $this->plugin('translate');
38-
$escape = $this->plugin('escapeHtml');
39-
$escapeAttr = $this->plugin('escapeHtmlAttr');
40-
$url = $this->plugin('url');
37+
$plugins = $this->getHelperPluginManager();
38+
$translate = $plugins->get('translate');
39+
$escape = $plugins->get('escapeHtml');
40+
$escapeAttr = $plugins->get('escapeHtmlAttr');
41+
$url = $plugins->get('url');
42+
$assetUrl = $plugins->get('assetUrl');
43+
44+
$this->headLink()
45+
->appendStylesheet($assetUrl('css/advanced-search-configure.css', 'AdvancedSearch'));
46+
$this->headScript()
47+
->appendFile($assetUrl('js/advanced-search-configure.js', 'AdvancedSearch'), 'text/javascript', ['defer' => 'defer']);
4148
?>
4249

4350
<?php $this->htmlElement('body')->appendAttribute('class', 'search-admin resource browse'); ?>

view/advanced-search/admin/search-config/configure.phtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
* @var \AdvancedSearch\Form\Admin\SearchConfigConfigureForm $form
3434
*/
3535

36-
$translate = $this->plugin('translate');
37-
$assetUrl = $this->plugin('assetUrl');
36+
$plugins = $this->getHelperPluginManager();
37+
$translate = $plugins->get('translate');
38+
$assetUrl = $plugins->get('assetUrl');
3839

3940
$this->headLink()
4041
->appendStylesheet($assetUrl('css/advanced-search-configure.css', 'AdvancedSearch'));

0 commit comments

Comments
 (0)