diff --git a/assets/scss/components/_post.scss b/assets/scss/components/_post.scss index a6513494..80873ed3 100755 --- a/assets/scss/components/_post.scss +++ b/assets/scss/components/_post.scss @@ -1,64 +1,39 @@ .posts { + padding: 0; margin: 0; list-style-type: none; - text-align: left; - > li { - > a { - > h2 { - margin-bottom: 1rem; - - line-height: 3rem; - - transition: all $aside-animation-time; - - &:hover { - transition: all $aside-animation-time; + margin-bottom: 1.25rem; - color: $hover-color; - } - &:first-child { - margin-top: 0; - } - } + &:first-child { + margin-top: 4.6875rem; } - } -} - -#post-content { - a { - padding: 0 .2em; - - transition: all .5s; - - &::after { - position: absolute; - bottom: -.5px; - left: 0; - width: 100%; - height: 0; - - content: ""; - - border-bottom: 1px dashed $primary-color; + &:last-child { + margin-bottom: 4.6875rem; } - &:hover { - color: $white; - border-color: $hover-color; - background: $primary-color; + + > time { + float: right; + text-transform: uppercase; + color: #777; + font-size: 10px; + letter-spacing: 2px; } - &:hover, - &:active { - outline: 0; + > a { + @extend %dotted-link; } } } +#post-content a { + @extend %dotted-link; +} + .post { > p { > img { @@ -93,7 +68,12 @@ } &.tags { > a { - padding: .167rem .25rem; + + &:first-child { + margin-left: .55rem; + } + + padding: .15rem .25rem; font-size: .55rem; @@ -102,7 +82,8 @@ color: $gray-lightest; border-radius: .25rem; - background-color: rgba($primary-color, .7); + background-color: rgba($primary-color, .45); + bottom: 4px; &:hover { background-color: rgba($primary-color, 1); diff --git a/assets/scss/modules/_utils.scss b/assets/scss/modules/_utils.scss index acef8a04..f8fb4f6d 100755 --- a/assets/scss/modules/_utils.scss +++ b/assets/scss/modules/_utils.scss @@ -1,12 +1,10 @@ %dotted-link { - padding-right: 0.2rem; - padding-left: 0.2rem; - padding-bottom: 2px; + padding: 3px; transition: all .5s; &::after { position: absolute; - bottom: -.5px; + bottom: 0px; left: 0; width: 100%; diff --git a/index.hbs b/index.hbs index 04c1eeee..87162b0f 100755 --- a/index.hbs +++ b/index.hbs @@ -1,8 +1,19 @@ {{!< default}} + +

Writtings

    {{#foreach posts}}
  1. - + + {{title}} + {{tags separator=" "}} +
  2. + {{/foreach}} +
+{{pagination}} + + +{{!--

{{{title}}}

{{excerpt}}…

@@ -10,8 +21,4 @@ {{tags prefix="on " separator=" "}} -
- - {{/foreach}} - -{{pagination}} +
--}}