You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.7 KiB
58 lines
1.7 KiB
// start: 间距 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
|
@gap: 16px; |
|
// end: 间距 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
|
|
|
|
// start: 布局尺寸 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
|
@on_phone: 580px; |
|
@on_pad: 768px; |
|
@on_laptop: 1024px; // 1024 + 285 |
|
@on_desktop: 1350px; |
|
// container |
|
@width_container: 1080px; |
|
@on_modal_threshold: 680px; |
|
// 侧边栏宽度 |
|
@width_sidebar: 285px; |
|
@width_sidebar_m: 240px; |
|
// 搜索框的宽度,建议和侧边栏宽度保持一致 |
|
@width_searchbar: @width_sidebar; |
|
@width_searchbar_m: @width_sidebar_m; |
|
// 搜索框的高度,建议不要超出导航栏的高度 |
|
@height_searchbar: 40px; |
|
@searchbar_height_cover: 44px; |
|
// 一个cell的高度 |
|
@height_cell: 36px; |
|
|
|
// H2标题高度 |
|
@height_h2: 2.5em; |
|
// H3标题高度 |
|
@height_h3: 1.5em; |
|
|
|
// end: 布局尺寸 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
|
|
|
|
// start: 导航栏 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
|
// 导航栏高度 |
|
@height_navbar: 64px; |
|
@fontsize_logo: @fontsize_base * 1.2; |
|
@fontsize_header_switcher: 1.3em; |
|
@fontsize_header: 1em; |
|
// 定位条和页面加载的进度条的高度 |
|
@loading_height: 2px; |
|
// end: 导航栏 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
|
|
|
|
// start: 圆角 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
|
@border_radius: 12px; // 圆角半径,可以根据心情随时调整风格 |
|
@border_radius_line: 4px; // 线的宽度和滚动条的宽度 |
|
@border_radius_code_block: 4px; // 引用、代码块的圆角 |
|
|
|
@border_radius_searchbar: 8px; // 搜索框的圆角半径,可以根据心情随时调整风格 |
|
// end: 圆角 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
|
|
|
|
|
// start: 文字对齐方向 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
|
@text_align_h1: left; |
|
@text_align_h2: left; |
|
@text_align_h3: left; |
|
// end: 文字对齐方向 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
|