chore: more less variables (#34746)

This commit is contained in:
二货机器人 2022-03-28 14:04:15 +08:00 committed by GitHub
parent 9c7c424590
commit 96ddf2e452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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
// ---

View File

@ -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
// ---

View File

@ -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;
}