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

Unified Diff: static/scss/_utilities.scss

Issue 29592630: Issue 5734 - Add utility classes to website-defaults (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Oct. 30, 2017, 4:18 p.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
« no previous file with comments | « pages/utilities.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/scss/_utilities.scss
===================================================================
--- a/static/scss/_utilities.scss
+++ b/static/scss/_utilities.scss
@@ -47,31 +47,57 @@
******************************************************************************/
.phone-width { width: $phone-width; }
.phablet-width { width: $phablet-width; }
.tablet-width { width: $tablet-width; }
.desktop-width { width: $desktop-width; }
.large-desktop-width { width: $large-desktop-width; }
+/* Text alignment
ire 2017/10/30 16:19:56 I don't know if we need/want all of this. The util
+ ******************************************************************************/
+
+.text-center { text-align: center; }
+.text-left { text-align: left; }
+.text-right { text-align: right; }
+.text-start { text-align: left; }
+[dir="rtl"] .text-start { text-align: right; }
+.text-end { text-align: right; }
+[dir="rtl"] .text-end { text-align: left; }
+
/* Clearfix
******************************************************************************/
.clearfix:after,
.clearfix:before
{
display: table;
content: " ";
}
.clearfix:after
{
clear: both;
}
+/* Screen reader only
+ ******************************************************************************/
+
+.sr-only
+{
+ position: absolute;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ width: 1px;
+ height: 1px;
+ margin: -1px;
+ padding: 0;
+ border: 0;
+}
+
/* Backgrounds
******************************************************************************/
.bg-primary
{
color: $primary-light;
background-color: $primary-dark;
}
« no previous file with comments | « pages/utilities.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld