Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 104 KiB |
@ -1,30 +0,0 @@
|
|||||||
#= require views/pages/base
|
|
||||||
|
|
||||||
class app.views.HaxePage extends app.views.BasePage
|
|
||||||
@className: '_haxe'
|
|
||||||
|
|
||||||
# We need to extract data from a header to have the name of the class reconize as the title of the page
|
|
||||||
prepare: ->
|
|
||||||
nodes = []
|
|
||||||
# Extract all children of page-header
|
|
||||||
header = @findByClass('page-header')
|
|
||||||
if header
|
|
||||||
for child in header.children
|
|
||||||
nodes.push(child)
|
|
||||||
|
|
||||||
# Ensure H1 is on top
|
|
||||||
nodes.sort (a,b) ->
|
|
||||||
if a.nodeName == 'h1'
|
|
||||||
return -1
|
|
||||||
return 0
|
|
||||||
|
|
||||||
firstChild = header.parentNode.firstChild
|
|
||||||
# Add them to the parent of header
|
|
||||||
for node in nodes
|
|
||||||
header.parentNode.insertBefore( node, firstChild )
|
|
||||||
|
|
||||||
# Add an id to class fields for additional entries
|
|
||||||
for el in @findAllByClass('identifier')
|
|
||||||
el['id'] = el.textContent
|
|
||||||
|
|
||||||
return
|
|
@ -1,29 +0,0 @@
|
|||||||
._haxe {
|
|
||||||
.page-header > .availability { @extend %note; }
|
|
||||||
|
|
||||||
h3 { @extend %block-heading; }
|
|
||||||
h4 { @extend %label; }
|
|
||||||
.field > p:first-of-type { @extend %block-label, %label-blue; }
|
|
||||||
.field > p.availability {
|
|
||||||
color: #AB611A;
|
|
||||||
font-size: 90%;
|
|
||||||
}
|
|
||||||
.field code {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.label {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 2px 4px;
|
|
||||||
font-size: 11.844px;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 14px;
|
|
||||||
color: #FFF;
|
|
||||||
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.25);
|
|
||||||
white-space: nowrap;
|
|
||||||
vertical-align: baseline;
|
|
||||||
background-color: #999;
|
|
||||||
border-radius: 3px;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
Before Width: | Height: | Size: 533 B After Width: | Height: | Size: 640 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1 @@
|
|||||||
|
https://github.com/HaxeFoundation/haxe.org/tree/master/www/img
|