variables.scss 1.5 KB

1234567891011121314151617181920212223242526
  1. // Color
  2. $color-tooltip_arrow-icon-default: unset; // 箭头图标
  3. $color-popover-bg-default: var(--semi-color-bg-3); // 默认背景色
  4. $color-popover-border-default: var(--semi-color-border); // 默认描边颜色
  5. // Width/Height
  6. $width-popover_arrow: 24px; // 水平箭头宽度 ignore-semi-css-trans
  7. $height-popover_arrow: 8px; // 水平箭头高度
  8. $height-popover_arrow_vertical: 24px; // 垂直箭头高度
  9. $width-popover_arrow_vertical: 8px; // 垂直箭头宽度
  10. $height-tooltip_arrow: $height-popover_arrow;
  11. $width-tooltip_arrow: $width-popover_arrow; //ignore-semi-css-trans
  12. $width-tooltip_arrow_vertical: $width-popover_arrow_vertical;
  13. $height-tooltip_arrow_vertical: $height-popover_arrow_vertical;
  14. $width-popover_title-border: 1px;
  15. // Spacing
  16. $spacing-popover_title-padding: 8px; // 气泡卡片标题内边距
  17. $spacing-popover_withArrow-padding: 12px; // 带箭头的气泡卡片标题内边距
  18. $spacing-popover_arrow_adjusted_offset-y: 6px; // 垂直方向上的校正偏移量,主要修正三角形有棱角的问题
  19. $spacing-tooltip_arrow_adjusted_offset-y: $spacing-popover_arrow_adjusted_offset-y; // 垂直方向上的校正偏移量,主要修正三角形有棱角的问题
  20. $spacing-tooltip_arrow_adjusted_offset-x: round($horizontal-rate * $width-tooltip_arrow); // 水平方向上的校正偏移量,主要修正三角形有棱角的问题 ignore-semi-css-trans
  21. // Radius
  22. $radius-popover: var(--semi-border-radius-medium); // 气泡卡片的圆角大小