From b6f8b486c79a46219dd1d2f3136c411594cc8f6d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 20 Mar 2015 03:20:05 -0400 Subject: add sr-only class, change to new tag line --- public/less/_base.less | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'public/less') diff --git a/public/less/_base.less b/public/less/_base.less index 2fdcc186..5f22bc32 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -1,6 +1,6 @@ - @footer-margin: 40px; +@footer-margin: 40px; - body { +body { font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif,'微软雅黑'; background-color: #FFFFFF; } @@ -69,4 +69,25 @@ footer { height: (2px * @i); } .generate-img(@n, (@i + 1)); +} + +// Accessibility +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; } \ No newline at end of file -- cgit v1.2.3