Skip to content

Commit

Permalink
chore: more less variables (#34746)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Mar 28, 2022
1 parent 9c7c424 commit 96ddf2e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/style/mixins/rounded-arrow.less
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions components/style/themes/default.less
Expand Up @@ -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
Expand Down Expand Up @@ -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
// ---
Expand Down
4 changes: 4 additions & 0 deletions components/style/themes/variable.less
Expand Up @@ -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
Expand Down Expand Up @@ -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
// ---
Expand Down
2 changes: 1 addition & 1 deletion components/tooltip/style/index.less
Expand Up @@ -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;
}

Expand Down

0 comments on commit 96ddf2e

Please sign in to comment.