-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style($article): make it modular 样式模块化
- Loading branch information
Showing
5 changed files
with
100 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
blockquote | ||
padding .4em 20px | ||
margin-top 10px | ||
border-left 4px solid rgba(147, 181, 224, .4) | ||
background rgba(255,255,255,0.4) | ||
p | ||
margin-top 0 | ||
blockquote | ||
border-left none |
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,36 @@ | ||
h1 | ||
margin-top 30px | ||
|
||
h2 | ||
margin .5em auto | ||
font-weight bold | ||
color #9c9 | ||
padding-bottom 5px | ||
border-bottom 1px solid #ddd | ||
&hover | ||
color #88acdb | ||
text-align center | ||
&before, &after | ||
content" —— " | ||
font-family Arial | ||
|
||
h3 | ||
margin .5em auto | ||
color #438aac | ||
background rgba(243, 248, 253, .6) | ||
border 1px solid #d2e8fa | ||
padding .2em .6em | ||
font-weight normal | ||
&hover a | ||
text-decoration underline | ||
&after | ||
content " >" | ||
|
||
h4, h5, h6 | ||
margin-top 20px | ||
font-weight bold | ||
color #574C4C | ||
padding-bottom 5px | ||
border-bottom 1px solid #ddd | ||
&hover | ||
color#88acdb |
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,26 @@ | ||
li | ||
margin .1em | ||
font-size 1.1em | ||
|
||
ul | ||
li::before | ||
display inline-block | ||
content "" | ||
width .4em | ||
height .4em | ||
margin-right .5em | ||
margin-bottom .11em | ||
border 1px solid lightgray | ||
border-radius 50% | ||
background lightgray | ||
|
||
ul, ol | ||
font-size 14px | ||
margin 10px 0 | ||
|
||
li | ||
ul, ol | ||
margin-left 30px | ||
libefore | ||
content "" | ||
background #dedede |
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,24 @@ | ||
table | ||
width 100% | ||
max-width 65em | ||
border 1px solid #dedede | ||
margin 15px auto | ||
border-collapse collapse | ||
empty-cells show | ||
tr,td | ||
height 35px | ||
th | ||
font-weight bold | ||
text-align center | ||
background rgba(158, 188, 226, .2) | ||
white-space nowrap | ||
tbody | ||
tr:hover | ||
background #efefef | ||
td,th | ||
border 1px solid #dedede | ||
padding 0 10px | ||
tr:nth-child(2n) | ||
background rgba(158, 188, 226, .12) | ||
td:nth-child(-n+2) | ||
white-space nowrap |