Closed qrac closed 5 years ago
吹き出しのでっぱりは尻尾と言うらしい。
すべての位置を実装する場合、上記のようなパターンが考えられる。
.alert {
&.is-tail-top-left,
&.is-tail-top-center,
&.is-tail-top-right,
&.is-tail-right-top,
&.is-tail-right-center, // or .is-tail-right-middle
&.is-tail-right-bottom,
&.is-tail-bottom-left,
&.is-tail-bottom-center,
&.is-tail-bottom-right,
&.is-tail-left-top,
&.is-tail-left-center, // or .is-tail-left-middle
&.is-tail-left-bottom {
}
追加する場合、縦は middle
を採用する。Flexのclassを考慮。
何案件か個別のCSSで導入してみて検討。
やはり、想定されるパターンが多すぎるので、プロジェクトごとに書き加える形にした方が良さそう。
SCSSの配列変数で増減させられそうなので、再度検討。
Alertは プロジェクトによっては擬似要素がバッティングするので .box
に統合できるかもしれない。.box
とは分ける。
Alpha版にて反映。
フォームの入力エラーなど、パーツを指定する場合には吹き出し状に変化したほうがいい。使う頻度としては、圧倒的に
top
danger
なので、すべてを本体に組み込むかどうかは検討する。