Skip to content

Commit 7e0cd9c

Browse files
committed
Styling details-summary widget marker for webkit browsers
1 parent 2ee82a8 commit 7e0cd9c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

styles/index.scss

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,40 @@ a {
4646
}
4747
}
4848

49+
details:focus, summary:focus{
50+
outline: none;
51+
background: rgba(255,255,255,0.03);
52+
border-radius: 2px;
53+
}
54+
55+
@media screen and (-webkit-min-device-pixel-ratio:0) {
56+
/* Style details arrow if on webkit */
57+
58+
details summary::-webkit-details-marker {
59+
color: getColor(malibu);
60+
}
61+
62+
summary::-webkit-details-marker {
63+
display: none
64+
}
65+
summary:after {
66+
content: "\F103";
67+
float: left;
68+
position: relative;
69+
left: -2px;
70+
text-align: center;
71+
font-family: icons;
72+
color: lighten(getColor(denim), 10%)
73+
}
74+
75+
details[open] summary:after {
76+
content: "\F101";
77+
font-family: icons;
78+
}
79+
}
80+
81+
82+
4983
::selection {
5084
background: transparentize(getColor(malibu), 0.65);
5185
}

0 commit comments

Comments
 (0)