Skip to content

Commit 56db04f

Browse files
WIP: Styles
1 parent d068064 commit 56db04f

File tree

2 files changed

+37
-14
lines changed

2 files changed

+37
-14
lines changed

src/collective/collectionfilter/portlets/info.pt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
<dl tal:condition="is_content_context"
1313
tal:define="fields view/get_fields">
1414
<tal:repeat repeat="field fields">
15-
<dt>${python:view.get_field_title(field)}</dt>
15+
<dt class="filterInfoContent__term">${python:view.get_field_title(field)}</dt>
1616
<tal:repeat repeat="field_value python:view.get_field_values(field)">
1717
<!-- <dd>${field_value/title} -->
18-
<dd>
18+
<dd class="filterInfoContent__definition">
1919
<a rel="nofollow"
20+
class="filterItem"
2021
href="${field_value/url}">
2122
${field_value/title}
2223
</a>

src/collective/collectionfilter/resources/collectionfilter.less

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
.collectionFilter,
44
.portlet.collectionFilter,
55
.collectionSortOn,
6-
.portlet.collectionSortOn {
6+
.portlet.collectionSortOn {
77
position: relative;
88
background: white;
99
.edit-link {
1010
position: absolute;
1111
right: 0;
1212
bottom: -0.5em;
1313
label {
14-
display: none;
14+
display: none;
1515
}
1616
}
1717
}
@@ -42,6 +42,7 @@
4242
.collectionSortOn .filterContent,
4343
.portlet.collectionSortOn .filterContent {
4444
padding: 1em;
45+
4546
> ul {
4647
padding: 0;
4748
list-style: none;
@@ -50,21 +51,23 @@
5051
list-style-type: none;
5152
padding: 2px;
5253

53-
input[type="radio"], input[type="checkbox"] {
54+
input[type="radio"],
55+
input[type="checkbox"] {
5456
margin: 0.3em 0.5em 0 0;
5557
line-height: normal;
5658
position: absolute;
5759
}
5860
label {
5961
display: inline-block;
60-
.filterControl, .filterLabel{
61-
display: inline-block;
62-
vertical-align: top;
62+
.filterControl,
63+
.filterLabel {
64+
display: inline-block;
65+
vertical-align: top;
6366
}
6467
.filterControl {
65-
margin-right: 0.5em;
68+
margin-right: 0.5em;
6669
}
67-
.filterLabel{
70+
.filterLabel {
6871
-webkit-hyphens: auto;
6972
-moz-hyphens: auto;
7073
hyphens: auto;
@@ -102,13 +105,12 @@
102105
}
103106
}
104107

105-
106108
li.selected a {
107-
font-weight: bold;
109+
font-weight: bold;
108110
}
109111
ul {
110-
padding-left:15px;
111-
list-style: none;
112+
padding-left: 15px;
113+
list-style: none;
112114
}
113115
}
114116
label {
@@ -119,3 +121,23 @@
119121
padding: 0 0.5em;
120122
}
121123
}
124+
125+
.pat-collectionfilter .filterInfoContent {
126+
margin-top: 0.5em;
127+
128+
.filterInfoContent__term {
129+
@media (min-width: 480px) {
130+
box-sizing: border-box;
131+
float: left;
132+
clear: left;
133+
padding-right: 5px;
134+
}
135+
}
136+
.filterInfoContent__definition {
137+
}
138+
}
139+
140+
.sectionFilter li.selected a > span {
141+
font-weight: bold;
142+
}
143+

0 commit comments

Comments
 (0)