ant-design-blazor/components/style/themes/compact.less

300 lines
7.0 KiB
Plaintext
Raw Normal View History

2020-03-30 09:53:10 +08:00
@import './default.less';
2020-04-30 10:55:54 +08:00
@line-height-base: 1.66667;
2020-03-30 09:53:10 +08:00
@mode: compact;
2020-04-30 10:55:54 +08:00
@font-size-base: 12px;
@font-size-lg: @font-size-base + 2px;
2020-03-30 09:53:10 +08:00
// default paddings
@default-padding-lg: 24px; // containers
@default-padding-md: 16px; // small containers and buttons
@default-padding-sm: 12px; // Form controls and items
@default-padding-xs: 8px; // small items
@default-padding-xss: 4px; // more small
// vertical paddings
@padding-lg: 16px; // containers
@padding-md: 8px; // small containers and buttons
@padding-sm: 8px; // Form controls and items
@padding-xs: 4px; // small items
@padding-xss: 0px; // more small
// vertical padding for all form controls
@control-padding-horizontal: @padding-sm;
@control-padding-horizontal-sm: @default-padding-xs;
// vertical margins
@margin-lg: 16px; // containers
@margin-md: 8px; // small containers and buttons
@margin-sm: 8px; // Form controls and items
@margin-xs: 4px; // small items
@margin-xss: 0px; // more small
// height rules
@height-base: 28px;
@height-lg: 32px;
@height-sm: 22px;
// Button
// ---
@btn-padding-horizontal-base: @default-padding-sm - 1px;
@btn-padding-horizontal-lg: @btn-padding-horizontal-base;
@btn-padding-horizontal-sm: @default-padding-xs - 1px;
@btn-square-only-icon-size-lg: 16px;
2020-05-16 23:21:59 +08:00
@btn-square-only-icon-size: 14px;
@btn-square-only-icon-size-sm: 12px;
2020-03-30 09:53:10 +08:00
2020-04-30 10:55:54 +08:00
// Breadcrumb
// ---
@breadcrumb-font-size: @font-size-base;
@breadcrumb-icon-font-size: @font-size-base;
2020-03-30 09:53:10 +08:00
//Dropdown
@dropdown-line-height: 18px;
2020-04-30 10:55:54 +08:00
// Menu
@menu-item-padding: 0 12px;
@menu-horizontal-line-height: 38px;
@menu-inline-toplevel-item-height: 32px;
@menu-item-height: 32px;
@menu-item-vertical-margin: 0px;
@menu-item-boundary-margin: 0px;
2020-05-12 10:03:34 +08:00
@menu-icon-margin-right: 8px;
2020-04-30 10:55:54 +08:00
// Checkbox
@checkbox-size: 14px;
@checkbox-group-item-margin-right: 6px;
// picker
@picker-panel-cell-height: 22px;
@picker-panel-cell-width: 32px;
@picker-text-height: 32px;
@picker-time-panel-cell-height: 24px;
@picker-panel-without-time-cell-height: 48px;
2020-03-30 09:53:10 +08:00
// Form
// ---
@form-item-margin-bottom: 16px;
2020-04-30 10:55:54 +08:00
@form-vertical-label-padding: 0 0 4px;
// Rate
// ---
@rate-star-size: 16px;
// Radio
// ---
@radio-size: 14px;
@radio-top: -2px;
@radio-wrapper-margin-right: 6px;
// Switch
// ---
@switch-height: 20px;
@switch-sm-height: 14px;
@switch-min-width: 40px;
@switch-sm-min-width: 24px;
2020-05-11 21:47:35 +08:00
@switch-inner-margin-min: 4px;
@switch-inner-margin-max: 22px;
2020-04-30 10:55:54 +08:00
// Slider
// ---
@slider-handle-size: 12px;
@slider-handle-margin-top: -4px;
2020-03-30 09:53:10 +08:00
// Input
// ---
2020-04-30 10:55:54 +08:00
@input-padding-vertical-base: round(
max(
round((@input-height-base - @font-size-base * @line-height-base) / 2 * 10) / 10 -
@border-width-base,
2px
)
2020-03-30 09:53:10 +08:00
);
@input-padding-horizontal-lg: 11px;
// PageHeader
// ---
@page-header-padding: 16px;
@page-header-padding-vertical: 8px;
2020-04-30 10:55:54 +08:00
@page-header-heading-title: 16px;
@page-header-heading-sub-title: 12px;
@page-header-tabs-tab-font-size: 14px;
2020-03-30 09:53:10 +08:00
// Pagination
// ---
@pagination-mini-options-size-changer-top: 1px;
2020-04-30 10:55:54 +08:00
@pagination-item-size-sm: 22px;
2020-03-30 09:53:10 +08:00
// Cascader
// ----
@cascader-dropdown-line-height: @dropdown-line-height;
// Select
// ---
@select-dropdown-height: @height-base;
@select-single-item-height-lg: 32px;
@select-multiple-item-height: @input-height-base - max(@input-padding-vertical-base, 4) * 2; // Normal 24px
@select-multiple-item-height-lg: 24px;
@select-multiple-item-spacing-half: 3px;
// Tree
// ---
@tree-title-height: 20px;
// Transfer
// ---
@transfer-item-padding-vertical: 3px;
@transfer-list-search-icon-top: 8px;
2020-04-30 10:55:54 +08:00
@transfer-header-height: 36px;
2020-03-30 09:53:10 +08:00
// Comment
// ---
@comment-actions-margin-bottom: 0px;
@comment-actions-margin-top: @margin-xs;
@comment-content-detail-p-margin-bottom: 0px;
// Steps
// ---
@steps-icon-size: 24px;
@steps-icon-custom-size: 20px;
@steps-icon-custom-font-size: 20px;
@steps-icon-custom-top: 2px;
@steps-icon-margin: 2px 8px 2px 0;
@steps-icon-font-size: @font-size-base;
@steps-dot-top: 4px;
@steps-icon-top: 0px;
2020-04-30 10:55:54 +08:00
@steps-small-icon-size: 20px;
2020-05-11 21:47:35 +08:00
@steps-vertical-icon-width: 12px;
@steps-vertical-tail-width: 12px;
@steps-vertical-tail-width-sm: 10px;
2020-03-30 09:53:10 +08:00
// Collapse
// ---
2020-04-30 10:55:54 +08:00
//@collapse-header-padding-extra: 32px;
@collapse-content-padding: @padding-md @padding-lg;
2020-03-30 09:53:10 +08:00
// List
// ---
@list-item-meta-description-font-size: @font-size-sm;
@list-item-padding-sm: 4px 12px;
@list-item-padding-lg: 12px 16px;
// Drawer
// ---
@drawer-header-padding: 11px @padding-lg;
@drawer-footer-padding-vertical: @padding-sm;
@drawer-header-close-size: 44px;
// Modal
// --
2020-07-01 21:38:23 +08:00
@modal-header-padding: 11px @modal-header-padding-horizontal;
2020-03-30 09:53:10 +08:00
@modal-footer-padding-vertical: @padding-sm;
@modal-header-close-size: 44px;
@modal-confirm-body-padding: 24px 24px 16px;
2020-04-30 10:55:54 +08:00
// Message
// ---
@message-notice-content-padding: 8px 16px;
2020-03-30 09:53:10 +08:00
// popover
// --
@popover-min-height: 28px;
@popover-padding-horizontal: @default-padding-sm;
// Card
// ---
@card-padding-base: 16px;
@card-head-height: 36px;
@card-head-font-size: @card-head-font-size-sm;
2020-04-30 10:55:54 +08:00
@card-head-padding: 8.5px;
2020-03-30 09:53:10 +08:00
@card-padding-base: 12px;
@card-padding-base-sm: @card-padding-base;
@card-head-height-sm: 30px;
2020-04-30 10:55:54 +08:00
@card-head-padding-sm: 6px;
2020-03-30 09:53:10 +08:00
@card-actions-li-margin: 4px 0;
@card-head-tabs-margin-bottom: -9px;
// Table
// ---
@table-padding-vertical: 12px;
@table-padding-horizontal: 8px;
@table-padding-vertical-md: 8px;
@table-padding-horizontal-md: 8px;
@table-padding-vertical-sm: 4px;
@table-padding-horizontal-sm: 4px;
2020-04-30 10:55:54 +08:00
@table-selection-column-width: 54px;
2020-03-30 09:53:10 +08:00
// Statistic
// ---
@statistic-content-font-size: 20px;
// Alert
// ---
2020-04-30 10:55:54 +08:00
@alert-with-description-no-icon-padding-vertical: 7px;
@alert-with-description-padding-vertical: 11px;
@alert-with-description-padding: @alert-with-description-padding-vertical 15px
2020-05-31 16:00:40 +08:00
@alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size * 2 +
@alert-with-description-padding-vertical;
2020-04-30 10:55:54 +08:00
@alert-icon-top: 7px + @font-size-base * @line-height-base / 2 - @font-size-base / 2;
@alert-with-description-icon-size: 20px;
@alert-with-description-icon-top: @alert-with-description-padding-vertical;
2020-03-30 09:53:10 +08:00
// Skeleton
// ---
@skeleton-paragraph-margin-top: 20px;
@skeleton-paragraph-li-margin-top: 12px;
2020-04-30 10:55:54 +08:00
@skeleton-paragraph-li-height: 14px;
@skeleton-title-height: 14px;
@skeleton-title-paragraph-margin-top: 20px;
2020-03-30 09:53:10 +08:00
// Descriptions
@descriptions-title-margin-bottom: 8px;
@descriptions-default-padding: 12px @padding-lg;
2020-04-30 10:55:54 +08:00
@descriptions-item-padding-bottom: @padding-xs;
// Avatar
// ---
@avatar-size-base: 28px;
@avatar-size-lg: 32px;
@avatar-size-sm: 22px;
@avatar-font-size-base: 16px;
@avatar-font-size-lg: 20px;
@avatar-font-size-sm: 12px;
// Badge
// ---
@badge-height: 18px;
// Tag
// ---
@tag-line-height: 18px;
// Notification
// ---
@notification-padding-vertical: 12px;
@notification-padding-horizontal: 16px;
// Result
// ---
@result-title-font-size: 20px;
@result-icon-font-size: 64px;
@result-extra-margin: 24px 0 0 0;
// Anchor
// ---
2020-06-21 23:15:22 +08:00
@anchor-link-top: 4px;
@anchor-link-left: 16px;
@anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;
2020-04-30 10:55:54 +08:00
// Tabs
// ---
@tabs-card-horizontal-padding: 4px @padding-md;
// Progress
// ---
@progress-circle-text-font-size: 0.833333em;
2020-07-01 21:38:23 +08:00
// Image
// ---
@image-size-base: 48px;
@image-font-size-base: 24px;