mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
chore: more less variables (#34746)
This commit is contained in:
parent
9c7c424590
commit
96ddf2e452
@ -3,7 +3,7 @@
|
||||
|
||||
@width-without-unit: unit(@width);
|
||||
@outer-radius-without-unit: unit(@outer-radius);
|
||||
@inner-radius-without-unit: unit(@border-radius-base);
|
||||
@inner-radius-without-unit: unit(@arrow-border-radius);
|
||||
|
||||
@a-x: @width-without-unit - @corner-height;
|
||||
@a-y: 2 * @width-without-unit + @corner-height;
|
||||
|
@ -111,6 +111,9 @@
|
||||
// control border
|
||||
@control-border-radius: @border-radius-base;
|
||||
|
||||
// arrow border
|
||||
@arrow-border-radius: @border-radius-sm;
|
||||
|
||||
// vertical paddings
|
||||
@padding-lg: 24px; // containers
|
||||
@padding-md: 16px; // small containers and buttons
|
||||
@ -524,6 +527,7 @@
|
||||
@tooltip-distance: @tooltip-arrow-width - 1px + 4px;
|
||||
// Tooltip arrow color
|
||||
@tooltip-arrow-color: @tooltip-bg;
|
||||
@tooltip-border-radius: @border-radius-base;
|
||||
|
||||
// Popover
|
||||
// ---
|
||||
|
@ -166,6 +166,9 @@ html {
|
||||
// control border
|
||||
@control-border-radius: @border-radius-base;
|
||||
|
||||
// arrow border
|
||||
@arrow-border-radius: @border-radius-sm;
|
||||
|
||||
// vertical paddings
|
||||
@padding-lg: 24px; // containers
|
||||
@padding-md: 16px; // small containers and buttons
|
||||
@ -579,6 +582,7 @@ html {
|
||||
@tooltip-distance: @tooltip-arrow-width - 1px + 4px;
|
||||
// Tooltip arrow color
|
||||
@tooltip-arrow-color: @tooltip-bg;
|
||||
@tooltip-border-radius: @border-radius-base;
|
||||
|
||||
// Popover
|
||||
// ---
|
||||
|
@ -61,7 +61,7 @@
|
||||
text-decoration: none;
|
||||
word-wrap: break-word;
|
||||
background-color: @tooltip-bg;
|
||||
border-radius: @border-radius-base;
|
||||
border-radius: @tooltip-border-radius;
|
||||
box-shadow: @box-shadow-base;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user