summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/tooltip.scss
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/src/scss/tooltip.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/web/static/src/scss/tooltip.scss')
-rw-r--r--addons/web/static/src/scss/tooltip.scss115
1 files changed, 115 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/tooltip.scss b/addons/web/static/src/scss/tooltip.scss
new file mode 100644
index 00000000..fdf10fea
--- /dev/null
+++ b/addons/web/static/src/scss/tooltip.scss
@@ -0,0 +1,115 @@
+
+.tooltip {
+ $arrow-size: 6px;
+ &.show {
+ opacity: 1;
+ }
+
+ .tooltip-inner {
+ max-width: 300px; // fallback for browsers which do not support "vw" unit
+ max-width: 100vw;
+ background-color: $o-tooltip-background-color;
+ color: $o-tooltip-color;
+ border-radius: $border-radius;
+ box-shadow: 0px 0px 1px 1px $o-brand-secondary;
+ margin: 5px;
+ border-color: $o-tooltip-color;
+
+ padding: 5px;
+
+ text-align: left;
+
+ .oe_tooltip_string {
+ background-color: $o-tooltip-title-background-color;
+ font-weight: bold;
+ padding: 5px 8px;
+ }
+ .oe_tooltip_help {
+ white-space: pre-line;
+ padding: 8px;
+ margin-bottom: 0px;
+ }
+ .oe_tooltip_technical {
+ padding: 8px;
+ margin: 0 0 0 15px;
+ list-style-type: circle;
+
+ .oe_tooltip_technical_title {
+ font-weight: bold;
+ }
+ }
+ .oe_tooltip_help + .oe_tooltip_technical {
+ padding-top: 0px;
+ }
+ }
+
+ .arrow {
+ &::after {
+ content: '';
+ position: absolute;
+ }
+ }
+
+ &.bs-tooltip-bottom {
+ margin-top: $tooltip-arrow-height;
+ .arrow {
+ top: $tooltip-arrow-height;
+ &::before {
+ border: $arrow-size solid transparent;
+ border-bottom-color: $o-tooltip-color;
+ }
+ &::after {
+ bottom: -1px;
+ border: $arrow-size solid transparent;
+ border-bottom-color: $o-tooltip-title-background-color;
+ }
+ }
+ }
+ &.bs-tooltip-top {
+ margin-bottom: $tooltip-arrow-height;
+ .arrow {
+ bottom: $tooltip-arrow-height;
+ &::before {
+ border: $arrow-size solid transparent;
+ border-top-color: $o-tooltip-color;
+ }
+ &::after {
+ border: $arrow-size solid transparent;
+ border-top-color: $o-tooltip-arrow-color;
+ margin-top: -1px;
+ }
+ }
+ }
+ &.bs-tooltip-left {
+ margin-right: $tooltip-arrow-height;
+ .arrow {
+ right: $tooltip-arrow-height;
+ &::before {
+ border: $arrow-size solid transparent;
+ border-left-color: $o-tooltip-color;
+ }
+ &::after {
+ border: $arrow-size solid transparent;
+ border-left-color: $o-tooltip-arrow-color;
+ margin-left: -1px;
+ }
+ }
+ }
+ &.bs-tooltip-right {
+ margin-left: $tooltip-arrow-height;
+ .arrow {
+ left: $tooltip-arrow-height;
+ &::before,
+ &::after {
+ border: $arrow-size solid transparent;
+ border-right-color: $o-tooltip-color;
+ }
+ &::after {
+ border: $arrow-size solid transparent;
+ border-right-color: $o-tooltip-arrow-color;
+ margin-right: -1px;
+ right: 0px;
+ }
+ }
+ }
+}