Modify the directory structure
Modify the directory structure
This commit is contained in:
parent
31fbef10e4
commit
4b05d84ea2
175 changed files with 48 additions and 46 deletions
39
src/styles/components/tooltip.less
Normal file
39
src/styles/components/tooltip.less
Normal file
|
@ -0,0 +1,39 @@
|
|||
@tooltip-prefix-cls: ~"@{css-prefix}tooltip";
|
||||
@tooltip-arrow: ~"@{tooltip-prefix-cls}-arrow";
|
||||
@tooltip-max-width: 250px;
|
||||
@tooltip-arrow-width: 5px;
|
||||
@tooltip-distance: @tooltip-arrow-width - 1 + 4;
|
||||
|
||||
.@{tooltip-prefix-cls} {
|
||||
display: inline-block;
|
||||
|
||||
&-rel{
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&-popper{
|
||||
.popper(@tooltip-arrow, @tooltip-arrow-width, @tooltip-distance, @tooltip-bg);
|
||||
}
|
||||
|
||||
&-inner{
|
||||
max-width: @tooltip-max-width;
|
||||
min-height: 34px;
|
||||
padding: 8px 10px;
|
||||
color: @tooltip-color;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
background-color: @tooltip-bg;
|
||||
border-radius: @border-radius-small;
|
||||
box-shadow: @shadow-base;
|
||||
white-space:nowrap;
|
||||
}
|
||||
|
||||
&-arrow{
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue