回答編集履歴
2
リンクを修正
test
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
-
[https://jsfiddle.net/Lhankor_Mhy/nxp85mag/2/](https://jsfiddle.net/Lhankor_Mhy/nxp85mag/
|
77
|
+
[https://jsfiddle.net/Lhankor_Mhy/nxp85mag/2/](https://jsfiddle.net/Lhankor_Mhy/nxp85mag/2/)
|
78
78
|
|
79
79
|
|
80
80
|
|
1
論理プロパティに差し替えて、dir で入れ替える、というアイディアが浮かんだので追記
test
CHANGED
@@ -59,3 +59,127 @@
|
|
59
59
|
}
|
60
60
|
|
61
61
|
```
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
---
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# 論理プロパティに差し替えて、dir で入れ替える、というアイディアが浮かんだので追記
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
(ネタです)
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
[https://jsfiddle.net/Lhankor_Mhy/nxp85mag/2/](https://jsfiddle.net/Lhankor_Mhy/nxp85mag/1/)
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
```html
|
82
|
+
|
83
|
+
<div class="balloon" dir="rtl">
|
84
|
+
|
85
|
+
```
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
```css
|
90
|
+
|
91
|
+
.says {
|
92
|
+
|
93
|
+
display: block;
|
94
|
+
|
95
|
+
position: relative;
|
96
|
+
|
97
|
+
margin: 0;
|
98
|
+
|
99
|
+
padding: 10px;
|
100
|
+
|
101
|
+
border-radius: 10pt;
|
102
|
+
|
103
|
+
box-shadow: -3px 3px 3px rgba(0, 0, 0, 0.4);
|
104
|
+
|
105
|
+
/*吹き出しの背景色指定。※三角部分の色を除く*/
|
106
|
+
|
107
|
+
background-color: #fff;
|
108
|
+
|
109
|
+
border: 3px solid #ffb6c1;
|
110
|
+
|
111
|
+
margin-inline-end: 20px;
|
112
|
+
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
.says:before {
|
118
|
+
|
119
|
+
content: "";
|
120
|
+
|
121
|
+
position: absolute;
|
122
|
+
|
123
|
+
top: 13px;
|
124
|
+
|
125
|
+
inset-inline: auto -15px;
|
126
|
+
|
127
|
+
/*三角部分の色変更は下記より変更*/
|
128
|
+
|
129
|
+
border-inline-start: 13px solid #ffb6c1;
|
130
|
+
|
131
|
+
border-bottom: 13px solid transparent;
|
132
|
+
|
133
|
+
border-top: 13px solid transparent;
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
.says:after {
|
140
|
+
|
141
|
+
content: "";
|
142
|
+
|
143
|
+
position: absolute;
|
144
|
+
|
145
|
+
top: 15px;
|
146
|
+
|
147
|
+
inset-inline: auto -11px;
|
148
|
+
|
149
|
+
/*三角部分の色変更は下記より変更*/
|
150
|
+
|
151
|
+
border-inline-start: 11px solid #fff;
|
152
|
+
|
153
|
+
border-bottom: 11px solid transparent;
|
154
|
+
|
155
|
+
border-top: 11px solid transparent;
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
p {
|
162
|
+
|
163
|
+
margin: 0;
|
164
|
+
|
165
|
+
padding: 0;
|
166
|
+
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
[dir=rtl] .says {
|
172
|
+
|
173
|
+
box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.4);
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
.says p{
|
178
|
+
|
179
|
+
direction: ltr;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
```
|