diff options
author | SkyArrow <tommy351@gmail.com> | 2012-01-24 18:25:42 +0100 |
---|---|---|
committer | SkyArrow <tommy351@gmail.com> | 2012-01-24 18:25:42 +0100 |
commit | ba90fa20614edb6a22fc3050fb41fd13a0b60087 (patch) | |
tree | be84d438bc0b8a9fdcd0727754184bd980111aae | |
parent | d894d4434c59381cc3fb834ac8ddccf9120b4ac2 (diff) | |
download | octopress-theme-jeyzu-ba90fa20614edb6a22fc3050fb41fd13a0b60087.zip octopress-theme-jeyzu-ba90fa20614edb6a22fc3050fb41fd13a0b60087.tar.gz |
syntax caption
-rw-r--r-- | sass/parts/_syntax.scss | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sass/parts/_syntax.scss b/sass/parts/_syntax.scss index 15632dc..d99bb54 100644 --- a/sass/parts/_syntax.scss +++ b/sass/parts/_syntax.scss @@ -53,11 +53,20 @@ figure.code{ @include border-radius(5px); figcaption{ font-size: $meta-size; - margin: -10px -15px 0; - padding: 10px 15px; - @include background(linear-gradient(top, #ccc, #ddd)); + position: relative; + span{ + margin: -10px -15px 0; + padding: 10px 15px 5px; + display: block; + @include background(linear-gradient(top, #ccc, #ddd)); + &:empty{ + display: none; + } + } a{ - float: right; + position: absolute; + top: $meta-size; + right: 0; } } .line-numbers{ |