diff options
-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{ |