@lxlib/theme
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.
110 lines (90 loc) • 2.69 kB
text/less
// Layout Gutter
@layout-gutter: 8px;
@xs: @layout-gutter / 2;
@sm: @layout-gutter;
@md: @layout-gutter * 2;
@lg: @layout-gutter * 3;
@grid-breakpoints:
xs @screen-xs,
sm @screen-sm,
md @screen-md,
lg @screen-lg,
xl @screen-xl;
@mobile-min: @screen-md-min;
@mobile-max: @screen-md-min - 1px;
// spaceing
@spacings:
0 0,
xs @xs,
sm @sm,
md @md,
lg @lg;
// type
@ul-ol-margin: 18px;
// position
@zindex-base: @zindex-back-top - 1;
@zindex-fixed: @zindex-base;
@zindex: @zindex-base;
@overflows: auto, hidden;
@positions: static, relative, absolute, fixed, sticky;
// 文本
@text-xs: @font-size-base - 2; // 12px
@text-sm: @font-size-base + 0; // 14px
@text-md: @font-size-base + 2; // 16px
@text-lg: @font-size-base + 4; // 18px
@text-xl: @font-size-base + 8; // 22px
@text-xxl: @font-size-base + 12; // 26px
// icon
@icon-sm: @font-size-base * 2; // 14px * 2 = 28px
@icon-md: @font-size-base * 4; // 14px * 4 = 56px
@icon-lg: @font-size-base * 6; // 14px * 6 = 84px
@icon-xl: @font-size-base * 8; // 14px * 8 = 112px
@icon-xxl: @font-size-base * 10; // 14px * 10 = 140px
// 宽度
@widths:
xs @layout-gutter * 10, // 80px
sm @layout-gutter * 20, // 160px
md @layout-gutter * 30, // 240px
lg @layout-gutter * 40, // 320px
xl @layout-gutter * 50, // 400px
xxl @layout-gutter * 60, // 480px
10 10%,
20 20%,
30 30%,
40 40%,
50 50%,
60 60%,
70 70%,
80 80%,
90 90%,
100 100%;
// 圆角
@border-radius-md: @border-radius-base; // 4px
@border-radius-lg: @border-radius-base + 2px; // 6px
@muted-color: @grey-7;
// Colors
@white: #fff;
@black: #000;
// scrollbar
@scrollbar-enabled: true;
@scrollbar-width: 6px;
@scrollbar-height: 6px;
@scrollbar-track-color: rgba(0, 0, 0, 0.3);
@scrollbar-thumb-color: #6e6e6e;
@scrollbar-table-enabled: false;
// type
// ==========
// font-size
// https://ant.design/docs/spec/font-cn#字号
@font-size-large: @font-size-base + 8; // 20px
@font-size-small: @font-size-base; // 12px
@h1-font-size: @font-size-base + 20; // 32px
@h2-font-size: @font-size-base + 12; // 24px
@h3-font-size: @font-size-base + 8; // 20px
@h4-font-size: @font-size-base + 4; // 16px
@h5-font-size: @font-size-base + 2; // 14px
@h6-font-size: @font-size-base; // 12px
@enable-all-colors: true;
// Code
@code-border-color: #eee;
@code-bg: #f7f7f7;