Skip to content

Commit 04a1e46

Browse files
committed
style: Bubbles and details style updates
1 parent e082e58 commit 04a1e46

3 files changed

Lines changed: 44 additions & 11 deletions

File tree

_includes/session/bubble.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<div class="bubble-container {{ include.side }}">
32
<div class="talk-bubble {{ include.side }} tri-right {{ include.side }}-in border round">
43
<div class="talktext">

_sass/_bubbles.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -281,23 +281,24 @@ html {
281281
font-size: calc(20px + (30 - 10) * ((100vw - 500px) / (1600 - 300)));
282282
line-height: calc(30px + (12 - 0) * ((100vw - 500px) / (600 - 10)));
283283
font-family: var(--font-tertiary);
284-
}
285-
.talktext .index {
286-
position: absolute;
287-
top: -14px;
288-
display: flex;
289-
width: 30px;
290-
font-size: 20px;
291-
line-height: 29px;
284+
.index {
285+
position: absolute;
286+
top: -14px;
287+
display: flex;
288+
width: 30px;
289+
font-size: 20px;
290+
line-height: 29px;
291+
white-space: nowrap;
292+
}
292293
}
293294
.left .talktext .index {
294295
color: var(--color1);
295-
left: -40px;
296+
left: -37px;
296297
justify-content: flex-end;
297298
}
298299
.right .talktext .index {
299300
color: var(--color2);
300-
right: -40px;
301+
right: -37px;
301302
justify-content: flex-begin;
302303
}
303304
u {

_sass/_bullets.scss

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,36 @@ ul > li > ul > li {
3232
list-style-type: initial;
3333
}
3434
}
35+
36+
details {
37+
summary {
38+
cursor: pointer;
39+
list-style: none;
40+
&::-webkit-details-marker,
41+
&::marker {
42+
display: none;
43+
}
44+
&::before {
45+
content: "\25B6\FE0E";
46+
margin-right: 5px;
47+
font-size: 0.9em;
48+
color: var(--color-bullet);
49+
}
50+
}
51+
&[open] {
52+
summary {
53+
&::before {
54+
content: "\25BC\FE0E";
55+
}
56+
}
57+
}
58+
}
59+
60+
details > *:not(summary) {
61+
animation: fadeIn 0.3s ease-in;
62+
}
63+
64+
@keyframes fadeIn {
65+
from { opacity: 0; margin-top: -10px; }
66+
to { opacity: 1; margin-top: 0; }
67+
}

0 commit comments

Comments
 (0)