on-standards-rails 1.5.1.1 → 2.0.0.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -3
- data/lib/on-standards-rails.rb +0 -3
- data/lib/on/standards/rails/version.rb +1 -1
- data/on-standards-rails.gemspec +1 -4
- data/vendor/assets/javascripts/on-standards.js +17552 -18
- data/vendor/assets/stylesheets/on-standards.scss +67 -0
- data/vendor/assets/stylesheets/on-standards/_alert.scss +65 -0
- data/vendor/assets/stylesheets/on-standards/_animation.scss +27 -0
- data/vendor/assets/stylesheets/on-standards/_baseline.scss +351 -0
- data/vendor/assets/stylesheets/on-standards/_block-grid.scss +501 -0
- data/vendor/assets/stylesheets/on-standards/_breadcrumb.scss +23 -0
- data/vendor/assets/stylesheets/on-standards/_button-group.scss +293 -0
- data/vendor/assets/stylesheets/on-standards/_buttons.scss +241 -0
- data/vendor/assets/stylesheets/on-standards/_card.scss +292 -0
- data/vendor/assets/stylesheets/on-standards/_carousel.scss +252 -0
- data/vendor/assets/stylesheets/on-standards/_close.scss +27 -0
- data/vendor/assets/stylesheets/on-standards/_code.scss +58 -0
- data/vendor/assets/stylesheets/on-standards/_colors.scss +85 -0
- data/vendor/assets/stylesheets/on-standards/_custom-forms.scss +226 -0
- data/vendor/assets/stylesheets/on-standards/_dropdown.scss +193 -0
- data/vendor/assets/stylesheets/on-standards/_forms.scss +489 -0
- data/vendor/assets/stylesheets/on-standards/_functions.scss +19 -0
- data/vendor/assets/stylesheets/on-standards/_grid.scss +76 -0
- data/vendor/assets/stylesheets/on-standards/_images.scss +53 -0
- data/vendor/assets/stylesheets/on-standards/_input-group.scss +194 -0
- data/vendor/assets/stylesheets/on-standards/_jumbotron.scss +20 -0
- data/vendor/assets/stylesheets/on-standards/_list-group.scss +140 -0
- data/vendor/assets/stylesheets/on-standards/_media.scss +90 -0
- data/vendor/assets/stylesheets/on-standards/_mixins.scss +56 -0
- data/vendor/assets/stylesheets/on-standards/_modal.scss +143 -0
- data/vendor/assets/stylesheets/on-standards/_nav.scss +162 -0
- data/vendor/assets/stylesheets/on-standards/_navbar.scss +230 -0
- data/vendor/assets/stylesheets/on-standards/_normalize.scss +417 -0
- data/vendor/assets/stylesheets/on-standards/_off-canvas.scss +201 -0
- data/vendor/assets/stylesheets/on-standards/_pager.scss +57 -0
- data/vendor/assets/stylesheets/on-standards/_pagination.scss +73 -0
- data/vendor/assets/stylesheets/on-standards/_popover.scss +140 -0
- data/vendor/assets/stylesheets/on-standards/_print.scss +88 -0
- data/vendor/assets/stylesheets/on-standards/_progress.scss +156 -0
- data/vendor/assets/stylesheets/on-standards/_responsive-embed.scss +39 -0
- data/vendor/assets/stylesheets/on-standards/_tables.scss +193 -0
- data/vendor/assets/stylesheets/on-standards/_tags.scss +94 -0
- data/vendor/assets/stylesheets/on-standards/_tooltip.scss +85 -0
- data/vendor/assets/stylesheets/on-standards/_utilities-background.scss +19 -0
- data/vendor/assets/stylesheets/on-standards/_utilities-responsive.scss +49 -0
- data/vendor/assets/stylesheets/on-standards/_utilities-spacing.scss +39 -0
- data/vendor/assets/stylesheets/on-standards/_utilities.scss +93 -0
- data/vendor/assets/stylesheets/on-standards/_variables.scss +727 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_alert.scss +18 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_background-variant.scss +13 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_border-radius.scss +35 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_breakpoints.scss +86 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_buttons.scss +157 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_cards.scss +38 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_center-block.scss +7 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_clearfix.scss +7 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_forms.scss +89 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_gradients.scss +43 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_grid-framework.scss +44 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_grid.scss +75 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_hover.scss +59 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_image.scss +34 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_list-group.scss +30 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_lists.scss +7 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_modernizr.scss +11 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_nav-divider.scss +10 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_navbar-align.scss +9 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_pagination.scss +22 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_progress.scss +18 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_pulls.scss +6 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_reset-filter.scss +8 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_reset-text.scss +18 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_resize.scss +6 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_screen-reader.scss +32 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_size.scss +6 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_tab-focus.scss +5 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_table-row.scss +30 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_tag.scss +30 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_text-emphasis.scss +12 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_text-hide.scss +8 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_text-truncate.scss +8 -0
- data/vendor/assets/stylesheets/on-standards/modules/_type.scss +171 -0
- metadata +83 -58
- data/vendor/assets/javascripts/on-standards/vendor/chosen.jquery.min.js +0 -2
- data/vendor/assets/javascripts/on-standards/vendor/jquery.tooltipster.min.js +0 -1
- data/vendor/assets/javascripts/on-standards/vendor/sweet-alert.min.js +0 -1
- data/vendor/assets/stylesheets/foundation_and_overrides.scss +0 -1450
- data/vendor/assets/stylesheets/on-overrides.sass +0 -0
- data/vendor/assets/stylesheets/on-standards.sass +0 -7
- data/vendor/assets/stylesheets/on-standards/church_to_church.sass +0 -1323
- data/vendor/assets/stylesheets/on-standards/vendor/chosen.min.css +0 -3
- data/vendor/assets/stylesheets/on-standards/vendor/sweet-alert.scss +0 -429
- data/vendor/assets/stylesheets/on-standards/vendor/tooltipster.css +0 -274
@@ -0,0 +1,43 @@
|
|
1
|
+
// Gradients
|
2
|
+
|
3
|
+
// Horizontal gradient, from left to right
|
4
|
+
//
|
5
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
6
|
+
// Color stops are not available in IE9.
|
7
|
+
@mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
8
|
+
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
9
|
+
background-repeat: repeat-x;
|
10
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9
|
11
|
+
}
|
12
|
+
|
13
|
+
// Vertical gradient, from top to bottom
|
14
|
+
//
|
15
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
16
|
+
// Color stops are not available in IE9.
|
17
|
+
@mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
18
|
+
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
19
|
+
background-repeat: repeat-x;
|
20
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9
|
21
|
+
}
|
22
|
+
|
23
|
+
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
|
24
|
+
background-repeat: repeat-x;
|
25
|
+
background-image: linear-gradient($deg, $start-color, $end-color);
|
26
|
+
}
|
27
|
+
@mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
28
|
+
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
29
|
+
background-repeat: no-repeat;
|
30
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 gets no color-stop at all for proper fallback
|
31
|
+
}
|
32
|
+
@mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
33
|
+
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
34
|
+
background-repeat: no-repeat;
|
35
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 gets no color-stop at all for proper fallback
|
36
|
+
}
|
37
|
+
@mixin gradient-radial($inner-color: #555, $outer-color: #333) {
|
38
|
+
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
39
|
+
background-repeat: no-repeat;
|
40
|
+
}
|
41
|
+
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
|
42
|
+
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
43
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// Framework grid generation
|
2
|
+
//
|
3
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
4
|
+
// any value of `$grid-columns`.
|
5
|
+
|
6
|
+
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
7
|
+
// Common properties for all breakpoints
|
8
|
+
%grid-column {
|
9
|
+
position: relative;
|
10
|
+
// Prevent columns from collapsing when empty
|
11
|
+
min-height: 1px;
|
12
|
+
// Inner gutter via padding
|
13
|
+
padding-left: ($gutter / 2);
|
14
|
+
padding-right: ($gutter / 2);
|
15
|
+
}
|
16
|
+
@each $breakpoint in map-keys($breakpoints) {
|
17
|
+
@for $i from 1 through $columns {
|
18
|
+
.col-#{$breakpoint}-#{$i} {
|
19
|
+
@extend %grid-column;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
@include media-breakpoint-up($breakpoint) {
|
23
|
+
// Work around cross-media @extend (https://github.com/sass/sass/issues/1050)
|
24
|
+
%grid-column-float-#{$breakpoint} {
|
25
|
+
float: left;
|
26
|
+
}
|
27
|
+
@for $i from 1 through $columns {
|
28
|
+
.col-#{$breakpoint}-#{$i} {
|
29
|
+
@if not $enable-flex {
|
30
|
+
@extend %grid-column-float-#{$breakpoint};
|
31
|
+
}
|
32
|
+
@include make-col-span($i, $columns);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
@each $modifier in (pull, push, offset) {
|
36
|
+
@for $i from 0 through $columns {
|
37
|
+
.col-#{$breakpoint}-#{$modifier}-#{$i} {
|
38
|
+
@include make-col-modifier($modifier, $i, $columns)
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/// Grid system
|
2
|
+
//
|
3
|
+
// Generate semantic grid columns with these mixins.
|
4
|
+
|
5
|
+
@mixin make-container($gutter: $grid-gutter-width) {
|
6
|
+
margin-left: auto;
|
7
|
+
margin-right: auto;
|
8
|
+
padding-left: ($gutter / 2);
|
9
|
+
padding-right: ($gutter / 2);
|
10
|
+
@if not $enable-flex {
|
11
|
+
@include clearfix();
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
// For each breakpoint, define the maximum width of the container in a media query
|
17
|
+
@mixin make-container-max-widths($max-widths: $container-max-widths) {
|
18
|
+
@each $breakpoint, $container-max-width in $max-widths {
|
19
|
+
@include media-breakpoint-up($breakpoint) {
|
20
|
+
max-width: $container-max-width;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
@mixin make-row($gutter: $grid-gutter-width) {
|
26
|
+
@if $enable-flex {
|
27
|
+
display: flex;
|
28
|
+
flex-wrap: wrap;
|
29
|
+
} @else {
|
30
|
+
@include clearfix();
|
31
|
+
}
|
32
|
+
margin-left: ($gutter / -2);
|
33
|
+
margin-right: ($gutter / -2);
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin make-col($gutter: $grid-gutter-width) {
|
37
|
+
position: relative;
|
38
|
+
@if not $enable-flex {
|
39
|
+
float: left;
|
40
|
+
}
|
41
|
+
min-height: 1px;
|
42
|
+
padding-left: ($gutter / 2);
|
43
|
+
padding-right: ($gutter / 2);
|
44
|
+
}
|
45
|
+
|
46
|
+
@mixin make-col-span($size, $columns: $grid-columns) {
|
47
|
+
@if $enable-flex {
|
48
|
+
flex: 0 0 percentage($size / $columns);
|
49
|
+
} @else {
|
50
|
+
width: percentage($size / $columns);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
@mixin make-col-offset($size, $columns: $grid-columns) {
|
55
|
+
margin-left: percentage($size / $columns);
|
56
|
+
}
|
57
|
+
|
58
|
+
@mixin make-col-push($size, $columns: $grid-columns) {
|
59
|
+
left: if($size > 0, percentage($size / $columns), auto);
|
60
|
+
}
|
61
|
+
|
62
|
+
@mixin make-col-pull($size, $columns: $grid-columns) {
|
63
|
+
right: if($size > 0, percentage($size / $columns), auto);
|
64
|
+
}
|
65
|
+
|
66
|
+
@mixin make-col-modifier($type, $size, $columns) {
|
67
|
+
// Work around the lack of dynamic mixin @include support (https://github.com/sass/sass/issues/626)
|
68
|
+
@if $type == push {
|
69
|
+
@include make-col-push($size, $columns);
|
70
|
+
} @else if $type == pull {
|
71
|
+
@include make-col-pull($size, $columns);
|
72
|
+
} @else if $type == offset {
|
73
|
+
@include make-col-offset($size, $columns);
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
@mixin hover {
|
2
|
+
@if $enable-hover-media-query {
|
3
|
+
// See Media Queries Level 4: http://drafts.csswg.org/mediaqueries/#hover
|
4
|
+
// Currently shimmed by https://github.com/twbs/mq4-hover-shim
|
5
|
+
@media (hover: hover) {
|
6
|
+
&:hover { @content }
|
7
|
+
}
|
8
|
+
}
|
9
|
+
@else {
|
10
|
+
&:hover { @content }
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
@mixin hover-focus {
|
15
|
+
@if $enable-hover-media-query {
|
16
|
+
&:focus { @content }
|
17
|
+
@include hover { @content }
|
18
|
+
}
|
19
|
+
@else {
|
20
|
+
&:focus,
|
21
|
+
&:hover {
|
22
|
+
@content
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin plain-hover-focus {
|
28
|
+
@if $enable-hover-media-query {
|
29
|
+
&,
|
30
|
+
&:focus {
|
31
|
+
@content
|
32
|
+
}
|
33
|
+
@include hover { @content }
|
34
|
+
}
|
35
|
+
@else {
|
36
|
+
&,
|
37
|
+
&:focus,
|
38
|
+
&:hover {
|
39
|
+
@content
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin hover-focus-active {
|
45
|
+
@if $enable-hover-media-query {
|
46
|
+
&:focus,
|
47
|
+
&:active {
|
48
|
+
@content
|
49
|
+
}
|
50
|
+
@include hover { @content }
|
51
|
+
}
|
52
|
+
@else {
|
53
|
+
&:focus,
|
54
|
+
&:active,
|
55
|
+
&:hover {
|
56
|
+
@content
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// Image Mixins
|
2
|
+
// - Responsive image
|
3
|
+
// - Retina image
|
4
|
+
|
5
|
+
|
6
|
+
// Responsive image
|
7
|
+
//
|
8
|
+
// Keep images from scaling beyond the width of their parents.
|
9
|
+
|
10
|
+
@mixin img-fluid($display: block) {
|
11
|
+
display: $display;
|
12
|
+
max-width: 100%; // Part 1: Set a maximum relative to the parent
|
13
|
+
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
|
14
|
+
}
|
15
|
+
|
16
|
+
|
17
|
+
// Retina image
|
18
|
+
//
|
19
|
+
// Short retina mixin for setting background-image and -size.
|
20
|
+
|
21
|
+
@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {
|
22
|
+
background-image: url($file-1x);
|
23
|
+
|
24
|
+
// Autoprefixer takes care of adding -webkit-min-device-pixel-ratio and -o-min-device-pixel-ratio,
|
25
|
+
// but doesn't convert dppx=>dpi.
|
26
|
+
// There's no such thing as unprefixed min-device-pixel-ratio since it's nonstandard.
|
27
|
+
// Compatibility info: http://caniuse.com/#feat=css-media-resolution
|
28
|
+
@media
|
29
|
+
only screen and (min-resolution: 192dpi), // IE9-11 don't support dppx
|
30
|
+
only screen and (min-resolution: 2dppx) { // Standardized
|
31
|
+
background-image: url($file-2x);
|
32
|
+
background-size: $width-1x $height-1x;
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// List Groups
|
2
|
+
|
3
|
+
@mixin list-group-item-variant($state, $background, $color) {
|
4
|
+
.list-group-item-#{$state} {
|
5
|
+
color: $color;
|
6
|
+
background-color: $background;
|
7
|
+
}
|
8
|
+
|
9
|
+
a.list-group-item-#{$state},
|
10
|
+
button.list-group-item-#{$state} {
|
11
|
+
color: $color;
|
12
|
+
|
13
|
+
.list-group-item-heading {
|
14
|
+
color: inherit;
|
15
|
+
}
|
16
|
+
|
17
|
+
@include hover-focus {
|
18
|
+
color: $color;
|
19
|
+
background-color: darken($background, 5%);
|
20
|
+
}
|
21
|
+
|
22
|
+
&.active {
|
23
|
+
@include plain-hover-focus {
|
24
|
+
color: #fff;
|
25
|
+
background-color: $color;
|
26
|
+
border-color: $color;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// Navbar vertical align
|
2
|
+
//
|
3
|
+
// Vertically center elements in the navbar.
|
4
|
+
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
|
5
|
+
|
6
|
+
// @mixin navbar-vertical-align($element-height) {
|
7
|
+
// margin-top: (($navbar-height - $element-height) / 2);
|
8
|
+
// margin-bottom: (($navbar-height - $element-height) / 2);
|
9
|
+
// }
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// Pagination
|
2
|
+
|
3
|
+
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
4
|
+
.page-link {
|
5
|
+
padding: $padding-vertical $padding-horizontal;
|
6
|
+
font-size: $font-size;
|
7
|
+
line-height: $line-height;
|
8
|
+
}
|
9
|
+
|
10
|
+
.page-item {
|
11
|
+
&:first-child {
|
12
|
+
.page-link {
|
13
|
+
@include border-left-radius($border-radius);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
&:last-child {
|
17
|
+
.page-link {
|
18
|
+
@include border-right-radius($border-radius);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Progress bars
|
2
|
+
|
3
|
+
@mixin progress-variant($color) {
|
4
|
+
&[value]::-webkit-progress-value {
|
5
|
+
background-color: $color;
|
6
|
+
}
|
7
|
+
|
8
|
+
&[value]::-moz-progress-bar {
|
9
|
+
background-color: $color;
|
10
|
+
}
|
11
|
+
|
12
|
+
// IE9
|
13
|
+
@media screen and (min-width:0\0) {
|
14
|
+
.progress-bar {
|
15
|
+
background-color: $color;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@mixin reset-text {
|
2
|
+
font-family: $font-family-base;
|
3
|
+
// We deliberately do NOT reset font-size.
|
4
|
+
font-style: normal;
|
5
|
+
font-weight: normal;
|
6
|
+
letter-spacing: normal;
|
7
|
+
line-break: auto;
|
8
|
+
line-height: $line-height;
|
9
|
+
text-align: left; // Fallback for where `start` is not supported
|
10
|
+
text-align: start;
|
11
|
+
text-decoration: none;
|
12
|
+
text-shadow: none;
|
13
|
+
text-transform: none;
|
14
|
+
white-space: normal;
|
15
|
+
word-break: normal;
|
16
|
+
word-spacing: normal;
|
17
|
+
word-wrap: normal;
|
18
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
// Only display content to screen readers
|
2
|
+
//
|
3
|
+
// See: http://a11yproject.com/posts/how-to-hide-content/
|
4
|
+
|
5
|
+
@mixin sr-only {
|
6
|
+
position: absolute;
|
7
|
+
width: 1px;
|
8
|
+
height: 1px;
|
9
|
+
padding: 0;
|
10
|
+
margin: -1px;
|
11
|
+
overflow: hidden;
|
12
|
+
clip: rect(0,0,0,0);
|
13
|
+
border: 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
// Use in conjunction with .sr-only to only display content when it's focused.
|
17
|
+
//
|
18
|
+
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
19
|
+
//
|
20
|
+
// Credit: HTML5 Boilerplate
|
21
|
+
|
22
|
+
@mixin sr-only-focusable {
|
23
|
+
&:active,
|
24
|
+
&:focus {
|
25
|
+
position: static;
|
26
|
+
width: auto;
|
27
|
+
height: auto;
|
28
|
+
margin: 0;
|
29
|
+
overflow: visible;
|
30
|
+
clip: auto;
|
31
|
+
}
|
32
|
+
}
|