| 1 |
.bubble-wrap { |
| 2 |
margin: 0 auto 1.5rem; |
| 3 |
max-width: 600px; |
| 4 |
position: relative; |
| 5 |
} |
| 6 |
|
| 7 |
.bubble { |
| 8 |
background: white; |
| 9 |
border: 2px solid black; |
| 10 |
border-radius: 5px; |
| 11 |
box-shadow: 0 0 5px 1px rgba(black, 0.15); |
| 12 |
box-sizing: border-box; |
| 13 |
display: block; |
| 14 |
padding: 1.5rem 1rem 1rem; |
| 15 |
position: relative; |
| 16 |
text-align: left; |
| 17 |
top: 0; |
| 18 |
width: 100%; |
| 19 |
p { |
| 20 |
font-size: 1.2rem; |
| 21 |
line-height: 1.4; |
| 22 |
&:first-child { |
| 23 |
margin-top: 0; |
| 24 |
padding-top: 0; |
| 25 |
} |
| 26 |
&:last-child { |
| 27 |
margin-bottom: 0; |
| 28 |
padding-bottom: 0; |
| 29 |
} |
| 30 |
} |
| 31 |
.close { |
| 32 |
position: absolute; |
| 33 |
right: 0.25rem; |
| 34 |
text-align: right; |
| 35 |
top: 0.25rem; |
| 36 |
.md-icon { |
| 37 |
cursor: pointer; |
| 38 |
} |
| 39 |
& + p { |
| 40 |
margin-top: 0; |
| 41 |
padding-top: 0; |
| 42 |
} |
| 43 |
} |
| 44 |
&:before { |
| 45 |
border-left: 15px solid black; |
| 46 |
border-right: 15px solid transparent; |
| 47 |
border-top: 15px solid black; |
| 48 |
border-bottom: 15px solid transparent; |
| 49 |
bottom: -30px; |
| 50 |
content: ''; |
| 51 |
display: block; |
| 52 |
height: 0; |
| 53 |
position: absolute; |
| 54 |
right: 20%; |
| 55 |
width: 0; |
| 56 |
} |
| 57 |
&:after { |
| 58 |
border-left: 15px solid white; |
| 59 |
border-right: 15px solid transparent; |
| 60 |
border-top: 15px solid white; |
| 61 |
border-bottom: 15px solid transparent; |
| 62 |
bottom: -25px; |
| 63 |
content: ''; |
| 64 |
display: block; |
| 65 |
height: 0; |
| 66 |
margin-right: -2px; |
| 67 |
position: absolute; |
| 68 |
right: 20%; |
| 69 |
width: 0; |
| 70 |
} |
| 71 |
.md-button { |
| 72 |
margin-left: 0; |
| 73 |
width: 100%; |
| 74 |
} |
| 75 |
} |
| 76 |
|
| 77 |
.toggle { |
| 78 |
bottom: -1.5rem; |
| 79 |
box-sizing: border-box; |
| 80 |
position: absolute; |
| 81 |
right: 0; |
| 82 |
width: 100%; |
| 83 |
.open { |
| 84 |
text-align: right; |
| 85 |
.md-icon { |
| 86 |
cursor: pointer; |
| 87 |
} |
| 88 |
} |
| 89 |
} |