-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
夜见(郑成忠)
committed
Aug 24, 2021
1 parent
ca0f009
commit b1ee473
Showing
13 changed files
with
416 additions
and
4,086 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@charset "utf-8"; | ||
.g_mt8{margin-top:.5rem} | ||
.g_mt16{margin-top:1rem} | ||
.g_mr8{margin-right:.5rem} | ||
.g_mr16{margin-right:1rem} | ||
.g_mb8{margin-bottom:.5rem} | ||
.g_mb16{margin-bottom:1rem} | ||
.g_ml8{margin-left:.5rem} | ||
.g_ml16{margin-left:1rem} | ||
.g_mt8{padding-top:.5rem} | ||
.g_mt16{padding-top:1rem} | ||
.g_mr8{padding-right:.5rem} | ||
.g_mr16{padding-right:1rem} | ||
.g_mb8{padding-bottom:.5rem} | ||
.g_mb16{padding-bottom:1rem} | ||
.g_ml8{padding-left:.5rem} | ||
.g_ml16{padding-left:1rem} | ||
.g_fs12{font-size:.75rem} | ||
.g_fs16{font-size:1rem} | ||
.g_lh16{line-height:1rem} | ||
.g_lh24{line-height:1.5rem} | ||
.g_w16{width:1rem} | ||
.g_w24{width:1.5rem} | ||
.g_h16{height:1rem} | ||
.g_h24{height:1.5rem} | ||
.clearfix:after{display:table;content:'';clear:both} | ||
.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis} | ||
.cell{display:table-cell;width:2000px} | ||
.ellipsis-mul{display:-webkit-box;overflow:hidden;word-wrap:break-word;-webkit-box-orient:vertical} | ||
.ellipsis-mul._2{-webkit-line-clamp:2} | ||
.c_m{color:#000} | ||
.c_s{color:#71717a} | ||
.c_info{color:#0891b2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
@import '../stylus/WidthPrefix' | ||
@import '../stylus/SACSS' | ||
@import "../stylus/Helpers" | ||
|
||
$prefix = 'g_' // 所有的 ClassName 都会添加这个前缀(但不推荐添加前缀) | ||
|
||
$unit = 1/16*1rem // 单位换算表达式 | ||
|
||
// 为核心文件添加前缀 | ||
// WidthPrefix($prefix) | ||
|
||
// margin | ||
SACSS($prefix,'margin-top','mt', 8 16, $unit) | ||
SACSS($prefix,'margin-right','mr', 8 16, $unit) | ||
SACSS($prefix,'margin-bottom','mb', 8 16, $unit) | ||
SACSS($prefix,'margin-left','ml', 8 16, $unit) | ||
|
||
// padding | ||
SACSS($prefix,'padding-top','mt', 8 16, $unit) | ||
SACSS($prefix,'padding-right','mr', 8 16, $unit) | ||
SACSS($prefix,'padding-bottom','mb', 8 16, $unit) | ||
SACSS($prefix,'padding-left','ml', 8 16, $unit) | ||
|
||
// font | ||
SACSS($prefix,'font-size','fs', 12 16, $unit) | ||
SACSS($prefix,'line-height','lh', 16 24, $unit) | ||
|
||
// size | ||
SACSS($prefix,'width','w', 16 24, $unit) | ||
SACSS($prefix,'height','h', 16 24, $unit) | ||
|
||
// Helpers | ||
.clearfix | ||
Clearfix() | ||
|
||
.ellipsis | ||
Ellipsis() | ||
|
||
.cell | ||
Cell() | ||
|
||
.ellipsis-mul | ||
Ellipsis-multiple() | ||
|
||
.ellipsis-mul._2 | ||
-webkit-line-clamp: 2 | ||
|
||
// Color | ||
.c_m | ||
color: #000 | ||
|
||
.c_s | ||
color: #71717a | ||
|
||
.c_info | ||
color: #0891b2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.