diff --git a/src/scss/cdb-components/tooltips.scss b/src/scss/cdb-components/tooltips.scss new file mode 100644 index 0000000..e60bf53 --- /dev/null +++ b/src/scss/cdb-components/tooltips.scss @@ -0,0 +1,85 @@ +// Typography styles +// ---------------------------------------------- + +/* SG +# Tooltips + +``` +
+
+

627K Transactions

+
+
+ +
+
+
+
+ +
+
+

Hello I am a Form error

+
+
+ +
+
+
+
+ +
+
+

627K Transactions

+
+
+ +
+
+
+
+ +
+
+

Hello I am a Form error

+
+
+ + + + +``` +*/ + +@import '../cdb-variables/sizes'; +@import '../cdb-variables/colors'; + + +.CDB-Tooltip { + position: absolute; + padding: 8px; + border-radius: 4px; + background: rgba($cMainBg, 0.8); + color: $cWhite; +} + +.CDB-Tooltip:before { + display: block; + position: absolute; + top: -12px; + left: calc(50% - 6px); + width: 0; + height: 0; + border: 6px solid transparent; + border-bottom: 6px solid rgba($cMainBg, 0.8); + content: ''; +} + +.CDB-Tooltip.is-error { + background: $cError; +} + +.CDB-Tooltip.is-error:before { + border-bottom: 6px solid $cError; +} + +