Unified · Split
| @@ -1,25 +1,30 @@ | |||
| 1 | ._lit { | 1 | ._lit { |
| 2 | @extend %simple; | 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 | .propertyDetails { | 11 | .propertyDetails { |
| 7 | padding-left:1.5em | 12 | padding-left: 1.5em; |
| 8 | } | 13 | } |
| 9 | .heading.property { | 14 | .heading.property { |
| 10 | margin-top:2em | 15 | margin-top: 2em; |
| 11 | } | 16 | } |
| 12 | .heading.property > h4 { | 17 | .heading.property > h4 { |
| 13 | font-weight:400 | 18 | font-weight: 400; |
| 14 | } | 19 | } |
| 15 | .newKeyword, | 20 | .newKeyword, |
| 16 | .readonlyKeyword, | 21 | .readonlyKeyword, |
| 17 | .staticKeyword { | 22 | .staticKeyword { |
| 18 | font-style:italic | 23 | font-style: italic; |
| 19 | } | 24 | } |
| 20 | .functionName, | 25 | .functionName, |
| 21 | .propertyName { | 26 | .propertyName { |
| 22 | font-weight:700 | 27 | font-weight: 700; |
| 23 | } | 28 | } |
| 24 | aside.litdev-aside { | 29 | aside.litdev-aside { |
| 25 | display: flex; | 30 | display: flex; |
| @@ -64,6 +64,13 @@ module Docs · 63 unmodified lines | |||
| 64 | h.prepend_child(kindtag) | 64 | h.prepend_child(kindtag) |
| 65 | end | 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 | doc | 74 | doc |
| 68 | end | 75 | end |
| 69 | end | 76 | end |