Skip to content

Commit 4f8ed42

Browse files
committed
Added details/summary styles.
1 parent fa4a841 commit 4f8ed42

File tree

2 files changed

+61
-3
lines changed

2 files changed

+61
-3
lines changed

src/themes/designer/styles/forms.scss

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
&.form-group-collapsible {
30-
&>.form-label {
30+
& > .form-label {
3131
position: unset;
3232
}
3333

@@ -118,7 +118,7 @@ textarea {
118118
}
119119

120120
&.selected {
121-
background-color:$dropdown-option-selected-color;
121+
background-color: $dropdown-option-selected-color;
122122
}
123123
}
124124
}
@@ -238,4 +238,61 @@ hr {
238238
max-height: 450px;
239239
min-width: 150px;
240240
min-height: 150px;
241-
}
241+
}
242+
243+
summary {
244+
display: block;
245+
cursor: pointer;
246+
outline: 0;
247+
}
248+
249+
summary::-webkit-details-marker {
250+
display: none;
251+
}
252+
253+
details {
254+
display: block;
255+
white-space: nowrap;
256+
position: relative;
257+
padding-left: 20px;
258+
margin: 10px 0;
259+
260+
&[open]:before {
261+
content: "";
262+
left: 7px;
263+
position: absolute;
264+
top: 25px;
265+
height: calc(100% - 25px);
266+
border-left: 1px dotted #ccc;
267+
width: 1px;
268+
}
269+
270+
&[open] > summary:before {
271+
left: -25px;
272+
top: 1px;
273+
@extend .paperbits-icon;
274+
@extend .paperbits-circle-delete;
275+
color: $collapse-button-color;
276+
}
277+
278+
& > summary {
279+
font-weight: bold;
280+
margin-bottom: 10px;
281+
282+
&:before {
283+
left: -25px;
284+
top: 1px;
285+
position: absolute;
286+
@extend .paperbits-icon;
287+
@extend .paperbits-circle-add;
288+
color: $collapse-button-color;
289+
display: inline-block;
290+
width: 1.6rem;
291+
text-align: center;
292+
}
293+
294+
&:-webkit-details-marker {
295+
display: none;
296+
}
297+
}
298+
}

src/themes/website/styles/reboot.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
::after,
33
::before {
44
box-sizing: border-box;
5+
min-width: 0;
56
}
67
html {
78
font-family: sans-serif;

0 commit comments

Comments
 (0)