提交 7c973abc 编写于 作者: Y YoshinoriN 提交者: ULIVZ

refactor($theme-default): use stylus instead of native css in style tag (#1933)

上级 cdbfd757
...@@ -22,10 +22,10 @@ export default { ...@@ -22,10 +22,10 @@ export default {
</script> </script>
<style lang="stylus"> <style lang="stylus">
@require '../styles/wrapper.styl'; @require '../styles/wrapper.styl'
.page
padding-bottom 2rem
display block
.page {
padding-bottom: 2rem;
display: block;
}
</style> </style>
...@@ -95,50 +95,36 @@ export default { ...@@ -95,50 +95,36 @@ export default {
} }
</script> </script>
<style lang="stylus"> <style lang="stylus">
@require '../styles/wrapper.styl'; @require '../styles/wrapper.styl'
.page-edit
@extend $wrapper
padding-top 1rem
padding-bottom 1rem
overflow auto
.edit-link
display inline-block
a
color lighten($textColor, 25%)
margin-right 0.25rem
.last-updated
float right
font-size 0.9em
.prefix
font-weight 500
color lighten($textColor, 25%)
.time
font-weight 400
color #aaa
@media (max-width: $MQMobile)
.page-edit
.edit-link
margin-bottom 0.5rem
.last-updated
font-size 0.8em
float none
text-align left
.page-edit {
@extend $wrapper;
padding-top: 1rem;
padding-bottom: 1rem;
overflow: auto;
.edit-link {
display: inline-block;
a {
color: lighten($textColor, 25%);
margin-right: 0.25rem;
}
}
.last-updated {
float: right;
font-size: 0.9em;
.prefix {
font-weight: 500;
color: lighten($textColor, 25%);
}
.time {
font-weight: 400;
color: #aaa;
}
}
}
@media (max-width: $MQMobile) {
.page-edit {
.edit-link {
margin-bottom: 0.5rem;
}
.last-updated {
font-size: 0.8em;
float: none;
text-align: left;
}
}
}
</style> </style>
...@@ -99,23 +99,19 @@ function flatten (items, res) { ...@@ -99,23 +99,19 @@ function flatten (items, res) {
} }
</script> </script>
<style lang="stylus"> <style lang="stylus">
@require '../styles/wrapper.styl'; @require '../styles/wrapper.styl'
.page-nav
@extend $wrapper
padding-top 1rem
padding-bottom 0
.inner
min-height 2rem
margin-top 0
border-top 1px solid $borderColor
padding-top 1rem
overflow auto // clear float
.next
float right
.page-nav {
@extend $wrapper;
padding-top: 1rem;
padding-bottom: 0;
.inner {
min-height: 2rem;
margin-top: 0;
border-top: 1px solid $borderColor;
padding-top: 1rem;
overflow: auto; // clear float
}
.next {
float: right;
}
}
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册