Skip to content

Commit 1d3f2cc

Browse files
authored
IBX-7680: Wrong empty screen after no search results (#1152)
1 parent bce3601 commit 1d3f2cc

File tree

3 files changed

+51
-76
lines changed

3 files changed

+51
-76
lines changed

src/bundle/Resources/public/scss/_search-form.scss

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -81,57 +81,11 @@
8181
}
8282
}
8383

84-
&__empty,
85-
&__no-results {
86-
grid-area: results;
87-
display: flex;
88-
flex-direction: column;
89-
align-items: center;
90-
padding-top: calculateRem(100px);
91-
}
92-
93-
&__empty-title,
94-
&__empty-subtitle,
95-
&__no-results-title,
96-
&__no-results-subtitle {
97-
color: $ibexa-color-dark-400;
98-
}
99-
100-
&__no-results-subtitle {
101-
display: flex;
102-
flex-wrap: wrap;
103-
max-width: 60%;
104-
margin-top: calculateRem(30px);
105-
106-
.ibexa-icon {
107-
margin-right: calculateRem(16px);
108-
}
109-
}
110-
111-
&__no-results-hint {
112-
flex-basis: 50%;
113-
padding: calculateRem(8px);
114-
display: flex;
115-
}
116-
117-
&__spellcheck-suggestion {
118-
font-style: italic;
119-
120-
a {
121-
font-style: normal;
122-
font-weight: bold;
123-
}
124-
}
125-
126-
&__no-results {
127-
.ibexa-search-form__spellcheck-suggestion {
128-
color: $ibexa-color-dark-400;
129-
}
130-
}
131-
13284
.ibexa-btn--secondary.ibexa-btn {
13385
max-width: 100%;
13486
overflow: hidden;
13587
white-space: inherit;
13688
}
89+
90+
@import 'mixins/search-form-no-results';
13791
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
&__empty,
2+
&__no-results {
3+
grid-area: results;
4+
display: flex;
5+
flex-direction: column;
6+
align-items: center;
7+
padding-top: calculateRem(100px);
8+
}
9+
10+
&__empty-title,
11+
&__empty-subtitle,
12+
&__no-results-title,
13+
&__no-results-subtitle {
14+
color: $ibexa-color-dark-400;
15+
}
16+
17+
&__no-results-subtitle {
18+
display: flex;
19+
flex-wrap: wrap;
20+
max-width: 60%;
21+
margin-top: calculateRem(30px);
22+
23+
.ibexa-icon {
24+
margin-right: calculateRem(16px);
25+
}
26+
}
27+
28+
&__no-results-hint {
29+
flex-basis: 50%;
30+
padding: calculateRem(8px);
31+
display: flex;
32+
}
33+
34+
&__spellcheck-suggestion {
35+
font-style: italic;
36+
37+
a {
38+
font-style: normal;
39+
font-weight: bold;
40+
}
41+
}
42+
43+
&__no-results {
44+
.ibexa-search-form__spellcheck-suggestion {
45+
color: $ibexa-color-dark-400;
46+
}
47+
}

src/bundle/Resources/public/scss/ui/modules/universal-discovery/_search.scss

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -84,35 +84,9 @@
8484
font-size: $ibexa-text-font-size-medium;
8585
}
8686

87-
&__no-results {
88-
display: flex;
89-
flex-direction: column;
90-
align-items: center;
91-
}
92-
93-
&__no-results-title,
94-
&__no-results-subtitle {
95-
color: $ibexa-color-dark-400;
96-
}
97-
98-
&__no-results-subtitle {
99-
display: flex;
100-
flex-wrap: wrap;
101-
max-width: 60%;
102-
margin-top: calculateRem(30px);
103-
104-
.ibexa-icon {
105-
margin-right: calculateRem(16px);
106-
}
107-
}
108-
109-
&__no-results-hint {
110-
flex-basis: 50%;
111-
padding: calculateRem(8px);
112-
display: flex;
113-
}
114-
11587
.c-content-table {
11688
width: 100%;
11789
}
90+
91+
@import '../../../mixins/search-form-no-results';
11892
}

0 commit comments

Comments
 (0)