diff options
author | Unknwon <u@gogs.io> | 2015-03-20 03:20:05 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-03-20 03:20:05 -0400 |
commit | b6f8b486c79a46219dd1d2f3136c411594cc8f6d (patch) | |
tree | 4f2162494661fad4cab02208155060ff6e0f5bf9 /public/less | |
parent | 62e436e6b7a41bac2e17a26f08649c144cef5b57 (diff) | |
download | gitea-b6f8b486c79a46219dd1d2f3136c411594cc8f6d.tar.gz gitea-b6f8b486c79a46219dd1d2f3136c411594cc8f6d.zip |
add sr-only class, change to new tag line
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_base.less | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/public/less/_base.less b/public/less/_base.less index 2fdcc18692..5f22bc3236 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 |