提交 16bfb72a 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

refactor: Optimize UI style & not show header by default

上级 bc8c2bd9
...@@ -5,7 +5,7 @@ header#header( ...@@ -5,7 +5,7 @@ header#header(
theme.header.bg_image.url : " " theme.header.bg_image.url : " "
})` })`
) )
nav.header-nav nav.header-nav.slider-up
div.header-nav-inner div.header-nav-inner
div.fa.fa-bars.header-nav-menu-icon div.fa.fa-bars.header-nav-menu-icon
......
...@@ -8,7 +8,7 @@ setUlStyle(content, hoverColor) ...@@ -8,7 +8,7 @@ setUlStyle(content, hoverColor)
color: $ul-list-color color: $ul-list-color
transition: color .2s ease transition: color .2s ease
transform: scale(.6) transform: scale(.6)
@extend $font-face @extend $font-face-awesome
&:hover &:hover
&::before &::before
...@@ -46,7 +46,7 @@ setUlStyle(content, hoverColor) ...@@ -46,7 +46,7 @@ setUlStyle(content, hoverColor)
color: $h-link-logo-color color: $h-link-logo-color
opacity: 0 opacity: 0
transition: opacity .1s ease transition: opacity .1s ease
@extend $font-face @extend $font-face-awesome
&:hover &:hover
&::after &::after
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
position: relative position: relative
border-radius: 3px border-radius: 3px
padding: 8px 12px padding: 8px 12px
font-size: $font-size-large
line-height: 1rem line-height: 1rem
color: $black-light color: $black-light
background-color: #fff background-color: #fff
...@@ -38,9 +39,5 @@ ...@@ -38,9 +39,5 @@
& ~ i & ~ i
color: $alert-error color: $alert-error
&-icon
font-size: 20px
&-description &-description
margin-left: .5rem margin-left: .5rem
font-size: 18px
...@@ -69,16 +69,16 @@ ...@@ -69,16 +69,16 @@
&::before &::before
color: $categories-list-dot-hover-color color: $categories-list-dot-hover-color
&-count &-count
padding-left: .3em padding-left: .3em
font-size: $font-size-base font-size: $font-size-base
color: $categories-post-count-color color: $categories-post-count-color
&::before &::before
content: '(' content: '('
&::after &::after
content: ')' content: ')'
// Gallery in post / page. // Gallery in post / page.
.gallery-image .gallery-image
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
right: 0 right: 0
width: 1.5rem width: 1.5rem
height: 1.5rem height: 1.5rem
line-height: 1.5rem
text-align: center text-align: center
color: $black-light color: $black-light
cursor: pointer cursor: pointer
...@@ -11,7 +11,3 @@ ...@@ -11,7 +11,3 @@
.post-title .post-title
.external-link i .external-link i
font-size: .7em font-size: .7em
.article-sort-item
.external-link i
font-size: .55em
...@@ -17,19 +17,19 @@ ...@@ -17,19 +17,19 @@
font-size: $font-size-base + 6px font-size: $font-size-base + 6px
&.default::before &.default::before
content: '\f0a9' content: $note-default
color: #777 color: #777
&.success::before &.success::before
content: '\f058' content: $note-success
color: #42b983 color: #42b983
&.warning::before &.warning::before
content: '\f06a' content: $note-warning
color: #ecc91e color: #ecc91e
&.danger::before &.danger::before
content: '\f056' content: $note-danger
color: #dc3b3b color: #dc3b3b
&.default &.default
......
...@@ -65,7 +65,7 @@ hr ...@@ -65,7 +65,7 @@ hr
font-size: 24px font-size: 24px
color: $hr-icon-color color: $hr-icon-color
transform: translateY(-50% - 4px) transform: translateY(-50% - 4px)
@extend $font-face @extend $font-face-awesome
blockquote blockquote
border-left: 5px solid $quote-left-color border-left: 5px solid $quote-left-color
......
...@@ -8,7 +8,7 @@ for lang in languages ...@@ -8,7 +8,7 @@ for lang in languages
.highlight{'.' + lang} .highlight{'.' + lang}
figcaption figcaption
span span
&::before &:first-child::before
content: lang content: lang
margin: 0 .6rem margin: 0 .6rem
color: alpha($highlight-header-color, .5) color: alpha($highlight-header-color, .5)
...@@ -44,20 +44,22 @@ for lang in languages ...@@ -44,20 +44,22 @@ for lang in languages
background-color: $highlight-header-bg-color background-color: $highlight-header-bg-color
span span
float: left &:first-child
color: $highlight-header-color float: left
color: $highlight-header-color
a span
float: right &:nth-child(2)
margin-right: 2rem float: right
border-bottom: 0 margin-right: 2rem
figcaption.custom figcaption.custom
padding: .1rem 0 padding: .1rem 0
min-height: 1.5rem min-height: 1.5rem
span .custom-lang
margin: 0 1rem 0 .6rem float: left
margin: 0 .6rem
color: alpha($highlight-header-color, .5) color: alpha($highlight-header-color, .5)
.gutter, .gutter,
......
...@@ -175,7 +175,7 @@ $font-weight-bolder = 700 ...@@ -175,7 +175,7 @@ $font-weight-bolder = 700
// Icon content define // Icon content define
// ------------------------------------------- // -------------------------------------------
// All icon elements will inherit these attributes. // All icon elements will inherit these attributes.
$font-face $font-face-awesome
font: normal normal normal 14px/1 FontAwesome; font: normal normal normal 14px/1 FontAwesome;
font-size: inherit; font-size: inherit;
text-rendering: auto; text-rendering: auto;
...@@ -190,6 +190,11 @@ $icon-ul-list-3 = '\f0c8' ...@@ -190,6 +190,11 @@ $icon-ul-list-3 = '\f0c8'
$icon-hr = '\f0fb' $icon-hr = '\f0fb'
$note-default = '\f0a9'
$note-success = '\f058'
$note-warning = '\f06a'
$note-danger = '\f056'
// ------------------------------------------- // -------------------------------------------
// z-index list // z-index list
// ------------------------------------------- // -------------------------------------------
......
...@@ -10,7 +10,7 @@ $(document).ready(function () { ...@@ -10,7 +10,7 @@ $(document).ready(function () {
.filter(function (e) { return e !== CODEBLOCK_CLASS_NAME; }); .filter(function (e) { return e !== CODEBLOCK_CLASS_NAME; });
var codeHeader = $( var codeHeader = $(
'<figcaption class="custom">' + '<figcaption class="custom">' +
'<span>' + lang + '</span>' + '<div class="custom-lang">' + lang + '</div>' +
'</figcaption>' '</figcaption>'
)[0]; )[0];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册