Add HTML Codesniffer links

This commit is contained in:
perryharlock
2013-12-12 14:17:54 +00:00
parent 1ad95627ee
commit d3148d4194
5 changed files with 34 additions and 20 deletions

File diff suppressed because one or more lines are too long

View File

@@ -36,11 +36,13 @@
.other-tasks { .other-tasks {
.sr-only(); .sr-only();
} }
.action-buttons,
.task-stats, .task-stats,
.btn-full-width { .btn-full-width {
margin-bottom:0; margin-bottom:0;
} }
.action-buttons {
margin-bottom:20px;
}
.aside { .aside {
margin-bottom:15px; margin-bottom:15px;
} }
@@ -54,7 +56,7 @@
float:none; float:none;
li { li {
width:33%; width:25%;
} }
} }
} }
@@ -75,6 +77,7 @@
} }
.action-buttons { .action-buttons {
margin-top:10px; margin-top:10px;
margin-bottom:0;
.btn-full-width { .btn-full-width {
margin-bottom:10px; margin-bottom:10px;
@@ -126,6 +129,11 @@
margin-bottom:20px; margin-bottom:20px;
} }
} }
.footer .nav {
li {
width:50%;
}
}
} }
@media (max-width:479px) { @media (max-width:479px) {
.graph { .graph {
@@ -170,4 +178,4 @@
} }
} }
} }
} }

View File

@@ -86,7 +86,7 @@
border-bottom-right-radius:3px; border-bottom-right-radius:3px;
margin-bottom:0; margin-bottom:0;
} }
} }
.options-button { .options-button {
position:absolute; position:absolute;
top:5px; top:5px;
@@ -346,7 +346,7 @@ ul.date-links {
} }
.series-checkboxes { .series-checkboxes {
margin-top:15px; margin-top:15px;
li { li {
width:32%; width:32%;
margin-right:2%; margin-right:2%;
@@ -413,8 +413,3 @@ ul.date-links {
} }
} }
} }
/* Sidebar */
.action-buttons {
margin-bottom:30px;
}

View File

@@ -1,10 +1,10 @@
<footer> <footer>
<div class="footer" role="contentinfo"> <div class="footer" role="contentinfo">
<div class="container"> <div class="container">
<div class="col-md-7"> <div class="col-md-5">
<small>&copy; {{year}} Nature Publishing Group.<br/>pa11y dashboard is licensed under the GNU General Public License 3.0.<br/>Version {{version}}</small> <small>&copy; {{year}} Nature Publishing Group.<br/>pa11y dashboard is licensed under the GNU General Public License 3.0.<br/>Version {{version}}</small>
</div> </div>
<div class="col-md-5 clearfix"> <div class="col-md-7 clearfix">
<ul class="crunch-bottom floated-list nav"> <ul class="crunch-bottom floated-list nav">
<li> <li>
<a href="{{repo}}">GitHub Repo</a> <a href="{{repo}}">GitHub Repo</a>
@@ -15,8 +15,11 @@
<li> <li>
<a href="http://www.w3.org/TR/WCAG20/">WCAG 2.0 spec</a> <a href="http://www.w3.org/TR/WCAG20/">WCAG 2.0 spec</a>
</li> </li>
<li>
<a href="http://squizlabs.github.io/HTML_CodeSniffer/">HTML_CodeSniffer</a>
</li>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
</footer> </footer>

View File

@@ -22,6 +22,14 @@
</a> </a>
</div> </div>
</div> </div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 clearfix">
<div class="well">
<h4 class="crunch-top">View results in browser</h4>
<p class="crunch-bottom">pa11y uses HTML_CodeSniffer to find accessibility issues. <a href="http://squizlabs.github.io/HTML_CodeSniffer/">Use their bookmarklet</a> to view results on the page you are testing.</p>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -33,7 +41,7 @@
Errors ( {{mainResult.count.error}} ) Errors ( {{mainResult.count.error}} )
</div> </div>
<div class="task-danger tasks-list collapse clearfix in"> <div class="task-danger tasks-list collapse clearfix in">
<ul class="list-unstyled"> <ul class="list-unstyled">
{{#mainResult.errors}} {{#mainResult.errors}}
<li> <li>
@@ -89,25 +97,25 @@
<p class="heading label-info" id="notices">Well done! You have 0 notices. <span class="glyphicon glyphicon-ok pull-right"></span></p> <p class="heading label-info" id="notices">Well done! You have 0 notices. <span class="glyphicon glyphicon-ok pull-right"></span></p>
{{/if}} {{/if}}
{{#if mainResult.ignore.length}} {{#if task.ignore.length}}
<div class="heading label-default"> <div class="heading label-default">
<span data-role="expander" class="pull-right expander"> + </span> <span data-role="expander" class="pull-right expander"> + </span>
Ignored Rules ( {{mainResult.ignore.length}} ) Ignored Rules
</div> </div>
<div class="task-default tasks-list collapse clearfix"> <div class="task-default tasks-list collapse clearfix">
<ul class="list-unstyled"> <ul class="list-unstyled">
{{#mainResult.ignore}} {{#task.ignore}}
<li> <li>
<p class="crunch rule-name">{{name}}</p> <p class="crunch rule-name">{{name}}</p>
{{#if description}} {{#if description}}
<p>{{description}}</p> <p>{{description}}</p>
{{/if}} {{/if}}
</li> </li>
{{/mainResult.ignore}} {{/task.ignore}}
</ul> </ul>
<a class="pull-right" href="#top" data-role="top">Back to top</a> <a class="pull-right" href="#top" data-role="top">Back to top</a>
</div> </div>
{{else}} {{else}}
<p class="heading label-default">You have no ignored rules.</p> <p class="heading label-default">You have no ignored rules.</p>
{{/if}} {{/if}}
</div> </div>