forked from odoo/odoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] web: inputs, dropdown, popover, tooltips design
task-2818586 Part-of: odoo#116641
- Loading branch information
1 parent
79f5764
commit f951b72
Showing
14 changed files
with
78 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,49 @@ | ||
.o-tooltip { | ||
font-size: small; | ||
max-width: 400px; | ||
@include reset-text(); | ||
@include font-size($tooltip-font-size); | ||
|
||
.o-tooltip--string { | ||
background-color: $o-tooltip-title-background-color; | ||
font-weight: bold; | ||
padding: 5px 8px; | ||
// Note: Not cross-browser but not such a big deal since it's | ||
// needed for minor aesthetic adaptations only. | ||
&:has(.o-tooltip--technical) { | ||
max-width: $tooltip-max-width * 2; | ||
|
||
.o-tooltip--help { | ||
background-color: $info; | ||
color: color-contrast($info); | ||
} | ||
|
||
.o-tooltip--string, .o-tooltip--help { | ||
max-width: MIN($tooltip-max-width, 100%); | ||
} | ||
} | ||
|
||
.o-tooltip--string, .o-tooltip--technical--title { | ||
padding: map-get($spacers, 1) 0; | ||
color: color-contrast($tooltip-bg); | ||
font-weight: $font-weight-bold; | ||
} | ||
|
||
.o-tooltip--help, .o-tooltip--technical { | ||
margin: map-get($spacers, 1) map-get($spacers, 2) map-get($spacers, 2); | ||
} | ||
|
||
.o-tooltip--help { | ||
font-size: smaller; | ||
white-space: pre-line; | ||
padding: 8px; | ||
margin-bottom: 0px; | ||
padding: 0 map-get($spacers, 2); | ||
} | ||
|
||
.o-tooltip--technical { | ||
font-size: smaller; | ||
padding: 8px; | ||
margin: 0 0 0 15px; | ||
list-style-type: circle; | ||
padding-left: 1.3em; | ||
font-family: $o-font-family-monospace; | ||
font-size: $o-font-size-base-smaller; | ||
list-style-type: disc; | ||
|
||
.o-tooltip--technical--title { | ||
font-weight: bold; | ||
margin-right: 4px; | ||
margin-right: map-get($spacers, 1); | ||
} | ||
} | ||
|
||
+ .popover-arrow { | ||
--popover-arrow-color: #{$tooltip-arrow-color}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters