Unified · Split
| @@ -1,25 +1,30 @@ | ||
| 1 | 1 | ._lit { |
| 2 | 2 | @extend %simple; |
| 3 | 3 | |
| 4 | − h4 { @extend %block-label, %label-blue; } | |
| 4 | + h4 { | |
| 5 | + @extend %block-label, %label-blue; | |
| 6 | + } | |
| 5 | 7 | |
| 8 | + .view-source { | |
| 9 | + float: right; | |
| 10 | + } | |
| 6 | 11 | .propertyDetails { |
| 7 | − padding-left:1.5em | |
| 12 | + padding-left: 1.5em; | |
| 8 | 13 | } |
| 9 | 14 | .heading.property { |
| 10 | − margin-top:2em | |
| 15 | + margin-top: 2em; | |
| 11 | 16 | } |
| 12 | 17 | .heading.property > h4 { |
| 13 | − font-weight:400 | |
| 18 | + font-weight: 400; | |
| 14 | 19 | } |
| 15 | 20 | .newKeyword, |
| 16 | 21 | .readonlyKeyword, |
| 17 | 22 | .staticKeyword { |
| 18 | − font-style:italic | |
| 23 | + font-style: italic; | |
| 19 | 24 | } |
| 20 | 25 | .functionName, |
| 21 | 26 | .propertyName { |
| 22 | − font-weight:700 | |
| 27 | + font-weight: 700; | |
| 23 | 28 | } |
| 24 | 29 | aside.litdev-aside { |
| 25 | 30 | display: flex; |
| @@ -64,6 +64,13 @@ module Docs · 63 unmodified lines | ||
| 64 | 64 | h.prepend_child(kindtag) |
| 65 | 65 | end |
| 66 | 66 | |
| 67 | + # View source | |
| 68 | + css('h2 ~ a.viewSourceLink, h3 ~ a.viewSourceLink, h4 ~ a.viewSourceLink').each do |node| | |
| 69 | + node['class'] = 'view-source' | |
| 70 | + node.content = 'Source' | |
| 71 | + node.previous_element << node | |
| 72 | + end | |
| 73 | + | |
| 67 | 74 | doc |
| 68 | 75 | end |
| 69 | 76 | end |