Displays non-standard status codes with black code

This commit is contained in:
Samuel Ryan 2016-04-23 03:05:09 +01:00
parent 68fd580470
commit cca36a9d93
2 changed files with 11 additions and 1 deletions

View File

@ -106,6 +106,10 @@ code {
font-weight: bold;
width: 34px;
}
span.non-standard {
color: #556270;
}
}
}
}

View File

@ -1,5 +1,11 @@
extends layout.jade
mixin statuscode(code)
if !code.standard
li #[a(href='/#{code.code}', title='Non-standard') #[span(class='non-standard') !{code.code}] #{code.title}]
else
li #[a(href='/#{code.code}') #[span !{code.code}] #{code.title}]
block contents
.hero.introduction: .container: .row: .twelve.columns !{contents}
@ -8,4 +14,4 @@ block contents
ul
li #[h2 !{group.title}]
each code in group.items
li #[a(href='/#{code.code}') #[span !{code.code}] #{code.title}]
+statuscode(code)