Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/scss/_utilities.scss

Issue 29588576: Issue 5635 - Implement website-default navbar component (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Oct. 25, 2017, 10:02 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/scss/_utilities.scss
===================================================================
--- a/static/scss/_utilities.scss
+++ b/static/scss/_utilities.scss
@@ -37,8 +37,29 @@
display: table;
content: " ";
}
.clearfix:after
{
clear: both;
}
+
+/**
+ * Screen reader only
+ * Use this class to add screen reader / web crawler only content
+ *
+ * EG:
+ * - An h1 for SEO that is not visible
+ * - A skip-to link for screen readers
+ */
+
+.sr-only
+{
+ position: absolute;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ width: 1px;
+ height: 1px;
+ margin: -1px;
+ padding: 0;
+ border: 0;
+}
« pages/navbar.md ('K') | « static/scss/_navbar.scss ('k') | static/scss/main.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld