beyond-rails 0.0.139

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/src/font/icomoon.eot +0 -0
  3. data/src/font/icomoon.svg +125 -0
  4. data/src/font/icomoon.ttf +0 -0
  5. data/src/font/icomoon.woff +0 -0
  6. data/src/img/black-cat.svg +15 -0
  7. data/src/img/cart.svg +16 -0
  8. data/src/img/china-flag.svg +16 -0
  9. data/src/img/ecpay.svg +12 -0
  10. data/src/img/family-mart.svg +13 -0
  11. data/src/img/fb-messenger.svg +12 -0
  12. data/src/img/fb.svg +10 -0
  13. data/src/img/hct.svg +16 -0
  14. data/src/img/hi-life.svg +23 -0
  15. data/src/img/line.svg +14 -0
  16. data/src/img/ok-mart.svg +9 -0
  17. data/src/img/pelican.svg +33 -0
  18. data/src/img/seven-eleven.svg +13 -0
  19. data/src/img/smilepay.svg +13 -0
  20. data/src/img/taiwan-flag.svg +17 -0
  21. data/src/js/components/Alert.js +23 -0
  22. data/src/js/components/Autocomplete.js +110 -0
  23. data/src/js/components/AutocompleteMenu.js +88 -0
  24. data/src/js/components/Btn.js +41 -0
  25. data/src/js/components/Checkbox.js +24 -0
  26. data/src/js/components/DateInput.js +74 -0
  27. data/src/js/components/DateMenu.js +370 -0
  28. data/src/js/components/DateTimeRanger.js +436 -0
  29. data/src/js/components/Datepicker.js +250 -0
  30. data/src/js/components/DatepickerBtnArrow.js +18 -0
  31. data/src/js/components/Dropdown.js +137 -0
  32. data/src/js/components/Menu.js +43 -0
  33. data/src/js/components/Modal.js +76 -0
  34. data/src/js/components/Navbar.js +47 -0
  35. data/src/js/components/Radio.js +24 -0
  36. data/src/js/components/SearchDropdown.js +339 -0
  37. data/src/js/components/Sidebar.js +56 -0
  38. data/src/js/components/Tabbox.js +229 -0
  39. data/src/js/components/TimeInput.js +71 -0
  40. data/src/js/components/TimeMenu.js +117 -0
  41. data/src/js/components/Toast.js +47 -0
  42. data/src/js/components/ToastItem.js +62 -0
  43. data/src/js/components/Tooltip.js +94 -0
  44. data/src/js/consts/createdComponents.js +1 -0
  45. data/src/js/consts/index.js +5 -0
  46. data/src/js/helpers/bind.js +53 -0
  47. data/src/js/helpers/dateEq.js +5 -0
  48. data/src/js/helpers/dateGt.js +5 -0
  49. data/src/js/helpers/dateLt.js +5 -0
  50. data/src/js/helpers/docReady.js +10 -0
  51. data/src/js/helpers/getFloatedTargetPos.js +250 -0
  52. data/src/js/helpers/getKey.js +14 -0
  53. data/src/js/helpers/isTouchDevice.js +3 -0
  54. data/src/js/helpers/msToS.js +3 -0
  55. data/src/js/helpers/promisify.js +9 -0
  56. data/src/js/helpers/range.js +7 -0
  57. data/src/js/helpers/supportDom.js +46 -0
  58. data/src/js/helpers/toPixel.js +3 -0
  59. data/src/js/helpers/unbindAll.js +6 -0
  60. data/src/js/index.js +47 -0
  61. data/src/js/jquery/bindAlertFn.js +13 -0
  62. data/src/js/jquery/bindAutocompleteFn.js +13 -0
  63. data/src/js/jquery/bindBtnFn.js +17 -0
  64. data/src/js/jquery/bindCheckboxFn.js +13 -0
  65. data/src/js/jquery/bindDateTimeRangerFn.js +14 -0
  66. data/src/js/jquery/bindDatepickerFn.js +14 -0
  67. data/src/js/jquery/bindDropdownFn.js +14 -0
  68. data/src/js/jquery/bindMenuFn.js +13 -0
  69. data/src/js/jquery/bindModalFn.js +14 -0
  70. data/src/js/jquery/bindNavbarFn.js +13 -0
  71. data/src/js/jquery/bindRadioFn.js +13 -0
  72. data/src/js/jquery/bindSearchDropdownFn.js +14 -0
  73. data/src/js/jquery/bindSidebarFn.js +13 -0
  74. data/src/js/jquery/bindTabboxFn.js +13 -0
  75. data/src/js/jquery/bindToastFn.js +6 -0
  76. data/src/js/jquery/bindTooltipFn.js +13 -0
  77. data/src/js/jquery/index.js +52 -0
  78. data/src/js/polyfills/classList.js +263 -0
  79. data/src/js/polyfills/elementDataset.js +3 -0
  80. data/src/js/polyfills/nodeContains.js +17 -0
  81. data/src/js/polyfills/nodeHasAttribute.js +5 -0
  82. data/src/js/polyfills/nodeRemove.js +19 -0
  83. data/src/sass/_beyond-sprockets.scss +1 -0
  84. data/src/sass/_beyond.scss +50 -0
  85. data/src/sass/_main.scss +141 -0
  86. data/src/sass/abstracts/_mixins.scss +129 -0
  87. data/src/sass/abstracts/_placeholders.scss +43 -0
  88. data/src/sass/abstracts/_variables.scss +355 -0
  89. data/src/sass/base/_background.scss +10 -0
  90. data/src/sass/base/_typography.scss +183 -0
  91. data/src/sass/components/_alert.scss +50 -0
  92. data/src/sass/components/_autocomplete.scss +29 -0
  93. data/src/sass/components/_avatar.scss +28 -0
  94. data/src/sass/components/_badge.scss +29 -0
  95. data/src/sass/components/_breadcrumb.scss +17 -0
  96. data/src/sass/components/_btn-group.scss +19 -0
  97. data/src/sass/components/_btn.scss +172 -0
  98. data/src/sass/components/_card.scss +183 -0
  99. data/src/sass/components/_checkbox.scss +99 -0
  100. data/src/sass/components/_date-input.scss +28 -0
  101. data/src/sass/components/_date-menu.scss +85 -0
  102. data/src/sass/components/_date-time-ranger.scss +21 -0
  103. data/src/sass/components/_datepicker.scss +3 -0
  104. data/src/sass/components/_dropdown.scss +144 -0
  105. data/src/sass/components/_form.scss +383 -0
  106. data/src/sass/components/_icon.scss +371 -0
  107. data/src/sass/components/_input.scss +48 -0
  108. data/src/sass/components/_list.scss +23 -0
  109. data/src/sass/components/_modal.scss +72 -0
  110. data/src/sass/components/_nav.scss +75 -0
  111. data/src/sass/components/_navbar.scss +211 -0
  112. data/src/sass/components/_pagination.scss +64 -0
  113. data/src/sass/components/_radio.scss +71 -0
  114. data/src/sass/components/_search-dropdown.scss +28 -0
  115. data/src/sass/components/_select.scss +54 -0
  116. data/src/sass/components/_sidebar.scss +35 -0
  117. data/src/sass/components/_spinner.scss +79 -0
  118. data/src/sass/components/_tabbox.scss +83 -0
  119. data/src/sass/components/_table.scss +65 -0
  120. data/src/sass/components/_tag.scss +43 -0
  121. data/src/sass/components/_time-input.scss +28 -0
  122. data/src/sass/components/_time-menu.scss +24 -0
  123. data/src/sass/components/_toast.scss +51 -0
  124. data/src/sass/components/_tooltip.scss +10 -0
  125. data/src/sass/img/arrow-dropdown.svg +4 -0
  126. data/src/sass/img/arrow-select-ex.svg +18 -0
  127. data/src/sass/img/arrow-select.svg +18 -0
  128. data/src/sass/layout/_border-util.scss +36 -0
  129. data/src/sass/layout/_col.scss +90 -0
  130. data/src/sass/layout/_container.scss +44 -0
  131. data/src/sass/layout/_flex-util.scss +18 -0
  132. data/src/sass/layout/_offset-util.scss +20 -0
  133. data/src/sass/layout/_sizing-util.scss +14 -0
  134. data/src/sass/layout/_spacing-util.scss +9 -0
  135. data/src/sass/layout/_visibility-util.scss +25 -0
  136. data/src/sass/vendor/_normalize.scss +578 -0
  137. data/src/sass/vendor/_turbolink.scss +5 -0
  138. metadata +235 -0
@@ -0,0 +1,28 @@
1
+ .time-input {
2
+
3
+ width: 52px;
4
+ text-align: center;
5
+ height: 24px;
6
+ border: 0;
7
+ border-radius: 3px;
8
+ font-size: 13px;
9
+
10
+ &::placeholder {
11
+ font-size: 11px;
12
+ color: hsla(0, 0%, 100%, .6);
13
+ }
14
+ &.active {
15
+ background-color: #5469d4;
16
+ color: #fff
17
+ }
18
+ &.input.active {
19
+ color: #fff
20
+ }
21
+ &.active.danger {
22
+ background-color: #cd3d64;
23
+ color: #fff
24
+ }
25
+ &:focus {
26
+ outline: 0;
27
+ }
28
+ }
@@ -0,0 +1,24 @@
1
+ .time-menu {
2
+ display: none;
3
+ box-shadow: 0 0 0 1px rgba(136, 152, 170, .1),
4
+ 0 15px 35px 0 rgba(49, 49, 93, .1),
5
+ 0 5px 15px 0 rgba(0, 0, 0, .08);
6
+ background-color: #fff;
7
+ position: absolute;
8
+ height: 200px;
9
+ overflow-y: auto;
10
+ -webkit-overflow-scrolling: touch;
11
+
12
+ .time-menu-item {
13
+ color: #3c4257;
14
+ font-size: 14px;
15
+ &:hover {
16
+ background-color: #f7fafc;
17
+ }
18
+ &.active {
19
+ background-color: #eef0f3;
20
+ }
21
+ padding: 10px 14px;
22
+ width: 188px;
23
+ }
24
+ }
@@ -0,0 +1,51 @@
1
+ .toast {
2
+ font-size: 13px;
3
+ width: 300px;
4
+ position: fixed;
5
+ bottom: 0;
6
+ left: 0;
7
+ right: 0;
8
+ margin-left: auto;
9
+ margin-right: auto;
10
+ text-align: center;
11
+
12
+ .toast-item-box {
13
+ transition: .3s all;
14
+ opacity: 0;
15
+ transform: translateY(200%);
16
+ &.visible {
17
+ opacity: 1;
18
+ transform: translateY(0);
19
+ }
20
+ &.has-btn .toast-message {
21
+ padding-right: 14px;
22
+ }
23
+ }
24
+ .toast-item {
25
+ line-height: 1;
26
+ display: inline-block;
27
+ border-radius: 2px;
28
+ margin: 7px auto;
29
+ padding: 8px 12px;
30
+ background-color: #3c4257;
31
+ color: #fff;
32
+ white-space: nowrap;
33
+ }
34
+ .toast-message {
35
+ vertical-align: middle;
36
+ white-space: normal;
37
+ text-align: left;
38
+ max-width: 210px;
39
+ display: inline-block;
40
+ }
41
+ .toast-btn {
42
+ padding: 7px 14px 7px 24px;
43
+ white-space: nowrap;
44
+ border-right: 0;
45
+ border-top: 0;
46
+ border-bottom: 0;
47
+ border-left: 1px solid #a3acb9;
48
+ background-color: transparent;
49
+ color: #7dabf8;
50
+ }
51
+ }
@@ -0,0 +1,10 @@
1
+ .tooltip {
2
+ max-width: 400px;
3
+ border-radius: 4px;
4
+ display: none;
5
+ z-index: 1;
6
+ position: absolute;
7
+ padding: 7px 10px;
8
+ color: #fff;
9
+ background-color: #555;
10
+ }
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="12px" height="12px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill="#4f566b" d="M13.591 5.293a1 1 0 0 1 1.416 1.416l-6.3 6.3a1 1 0 0 1-1.414 0l-6.3-6.3A1 1 0 0 1 2.41 5.293L8 10.884z" fill-rule="evenodd"></path>
4
+ </svg>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="8px" height="10px" viewBox="0 0 8 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
4
+ <title>arrow-double-purple</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="-nav-dropdown" transform="translate(-70.000000, -9.000000)" stroke="#5469d4">
8
+ <g id="Icon/arrow-double">
9
+ <g transform="translate(71.000000, 8.000000)">
10
+ <g id="arrow-double" transform="translate(0.000000, 1.000000)">
11
+ <polyline id="Path" points="4.24660307e-15 7 3 10 6 7"></polyline>
12
+ <polyline id="Path" transform="translate(3.000000, 1.500000) rotate(180.000000) translate(-3.000000, -1.500000) " points="4.24660307e-15 0 3 3 6 0"></polyline>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="8px" height="10px" viewBox="0 0 8 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
4
+ <title>arrow-double-purple</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="-nav-dropdown" transform="translate(-70.000000, -9.000000)" stroke="#697396">
8
+ <g id="Icon/arrow-double">
9
+ <g transform="translate(71.000000, 8.000000)">
10
+ <g id="arrow-double" transform="translate(0.000000, 1.000000)">
11
+ <polyline id="Path" points="4.24660307e-15 7 3 10 6 7"></polyline>
12
+ <polyline id="Path" transform="translate(3.000000, 1.500000) rotate(180.000000) translate(-3.000000, -1.500000) " points="4.24660307e-15 0 3 3 6 0"></polyline>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,36 @@
1
+ .border {
2
+ border: 1px solid $border-color !important;
3
+ }
4
+ .border-top {
5
+ border-top: 1px solid $border-color !important;
6
+ }
7
+ .border-bottom {
8
+ border-bottom: 1px solid $border-color !important;
9
+ }
10
+ .border-left {
11
+ border-left: 1px solid $border-color !important;
12
+ }
13
+ .border-right {
14
+ border-right: 1px solid $border-color !important;
15
+ }
16
+ .border-0 {
17
+ border: 0;
18
+ }
19
+ .border-top-0 {
20
+ border-top: 0;
21
+ }
22
+ .border-bottom-0 {
23
+ border-bottom: 0;
24
+ }
25
+ .border-left-0 {
26
+ border-left: 0;
27
+ }
28
+ .border-right-0 {
29
+ border-right: 0;
30
+ }
31
+
32
+ @each $classname, $border-color in $borders {
33
+ .#{$classname} {
34
+ border-color: $border-color !important;
35
+ }
36
+ }
@@ -0,0 +1,90 @@
1
+ @mixin col-flex() {
2
+ -ms-flex-preferred-size: 0;
3
+ flex-basis: 0;
4
+ -ms-flex-positive: 1;
5
+ flex-grow: 1;
6
+ max-width: 100%;
7
+ }
8
+
9
+ @mixin col-num($i) {
10
+ $percent: (100% / $col-total) * $i;
11
+ flex: 0 0 #{$percent};
12
+ max-width: #{$percent};
13
+ }
14
+
15
+ @mixin col-basic() {
16
+ position: relative;
17
+ width: 100%;
18
+ min-height: 1px;
19
+ padding-right: 15px;
20
+ padding-left: 15px;
21
+ }
22
+
23
+ @mixin col-auto() {
24
+ flex: 0 0 auto;
25
+ width: auto;
26
+ max-width: none;
27
+ }
28
+
29
+ %col-basic {
30
+ @include col-basic;
31
+ }
32
+
33
+ %col-auto {
34
+ @include col-auto;
35
+ }
36
+
37
+ .row {
38
+ @extend %row;
39
+ }
40
+
41
+ .col {
42
+ @extend %col-basic;
43
+ @include col-flex;
44
+ }
45
+
46
+ .col-auto {
47
+ @extend %col-basic;
48
+ @extend %col-auto;
49
+ }
50
+
51
+ @for $i from 1 through length($breakpoints) {
52
+ $breakpoint: nth($breakpoints, $i);
53
+ $size: nth($screen-sizes, $i);
54
+ .col-#{$size} {
55
+ @extend %col-basic;
56
+ }
57
+ @for $j from 1 through $col-total {
58
+ .col-#{$i},
59
+ .col-#{$size}-#{$j} {
60
+ @extend %col-basic;
61
+ }
62
+ }
63
+ }
64
+
65
+ @for $i from 1 through $col-total {
66
+ .col-#{$i} {
67
+ @include col-num($i);
68
+ }
69
+ }
70
+
71
+ @for $i from 1 through length($breakpoints) {
72
+ $breakpoint: nth($breakpoints, $i);
73
+ $size: nth($screen-sizes, $i);
74
+ @media (min-width: $breakpoint) {
75
+ %col-auto-#{$size} {
76
+ @include col-auto;
77
+ }
78
+ .col-#{$size} {
79
+ @include col-flex;
80
+ }
81
+ @for $j from 1 through $col-total {
82
+ .col-#{$size}-#{$j} {
83
+ @include col-num($j);
84
+ }
85
+ }
86
+ .col-#{$size}-auto {
87
+ @extend %col-auto-#{$size};
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,44 @@
1
+ .container,
2
+ .container-sm,
3
+ .container-md,
4
+ .container-lg,
5
+ .container-xl,
6
+ .container-fluid {
7
+ width: 100%;
8
+ margin-left: auto;
9
+ margin-right: auto;
10
+ }
11
+
12
+ @media (min-width: $screen-sm) {
13
+ .container,
14
+ .container-sm {
15
+ max-width: 540px;
16
+ }
17
+ }
18
+
19
+ @media (min-width: $screen-md) {
20
+ .container,
21
+ .container-sm,
22
+ .container-md {
23
+ max-width: 720px;
24
+ }
25
+ }
26
+
27
+ @media (min-width: $screen-lg) {
28
+ .container,
29
+ .container-sm,
30
+ .container-md,
31
+ .container-lg {
32
+ max-width: 960px;
33
+ }
34
+ }
35
+
36
+ @media (min-width: $screen-xl) {
37
+ .container,
38
+ .container-sm,
39
+ .container-md,
40
+ .container-lg,
41
+ .container-xl {
42
+ max-width: 1140px;
43
+ }
44
+ }
@@ -0,0 +1,18 @@
1
+ .d-flex {
2
+ display: flex;
3
+ }
4
+ .justify-content-between {
5
+ justify-content: space-between;
6
+ }
7
+ .justify-content-start {
8
+ justify-content: flex-start;
9
+ }
10
+ .justify-content-center {
11
+ justify-content: center;
12
+ }
13
+ .justify-content-end {
14
+ justify-content: flex-end;
15
+ }
16
+ .align-items-center {
17
+ align-items: center;
18
+ }
@@ -0,0 +1,20 @@
1
+ @for $i from 1 through length($breakpoints) {
2
+ $breakpoint: nth($breakpoints, $i);
3
+ $size: nth($screen-sizes, $i);
4
+
5
+ @for $i from 1 through $col-total {
6
+ $percent: (100% / $col-total) * $i;
7
+ .offset-#{$i} {
8
+ margin-left: $percent;
9
+ }
10
+ }
11
+
12
+ @media (min-width: $breakpoint) {
13
+ @for $i from 1 through $col-total {
14
+ $percent: (100% / $col-total) * $i;
15
+ .offset-#{$size}-#{$i} {
16
+ margin-left: $percent;
17
+ }
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,14 @@
1
+ @each $size in $sizes {
2
+ .w-#{$size} {
3
+ width: #{$size * 1%};
4
+ }
5
+ .h-#{$size} {
6
+ height: #{$size * 1%};
7
+ }
8
+ .mw-#{$size} {
9
+ max-width: #{$size * 1%};
10
+ }
11
+ .mh-#{$size} {
12
+ max-height: #{$size * 1%};
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ @include each-space-props;
2
+
3
+ @for $i from 1 through length($breakpoints) {
4
+ $breakpoint: nth($breakpoints, $i);
5
+ $size: nth($screen-sizes, $i);
6
+ @media (min-width: $breakpoint) {
7
+ @include each-space-props($size);
8
+ }
9
+ }
@@ -0,0 +1,25 @@
1
+ @for $i from 1 through length($breakpoints) {
2
+ $breakpoint: nth($breakpoints, $i);
3
+ $size: nth($screen-sizes, $i);
4
+
5
+ .visible-#{$size}-block,
6
+ .visible-#{$size}-inline,
7
+ .visible-#{$size}-inline-block {
8
+ display: none !important;
9
+ }
10
+
11
+ @media (max-width: $breakpoint) {
12
+ .hidden-#{$size} {
13
+ display: none !important;
14
+ }
15
+ .visible-#{$size}-block {
16
+ display: block !important;
17
+ }
18
+ .visible-#{$size}-inline {
19
+ display: inline !important;
20
+ }
21
+ .visible-#{$size}-inline-block {
22
+ display: inline-block !important;
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,578 @@
1
+ /* ==========================================================================
2
+ Normalize.scss settings
3
+ ========================================================================== */
4
+ /**
5
+ * Includes legacy browser support IE6/7
6
+ *
7
+ * Set to false if you want to drop support for IE6 and IE7
8
+ */
9
+
10
+ $legacy_browser_support: false !default;
11
+
12
+ /* Base
13
+ ========================================================================== */
14
+
15
+ /**
16
+ * 1. Set default font family to sans-serif.
17
+ * 2. Prevent iOS and IE text size adjust after device orientation change,
18
+ * without disabling user zoom.
19
+ * 3. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
20
+ * `em` units.
21
+ */
22
+
23
+ html {
24
+ font-family: sans-serif; /* 1 */
25
+ -ms-text-size-adjust: 100%; /* 2 */
26
+ -webkit-text-size-adjust: 100%; /* 2 */
27
+ @if $legacy_browser_support {
28
+ *font-size: 100%; /* 3 */
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Remove default margin.
34
+ */
35
+
36
+ body {
37
+ margin: 0;
38
+ }
39
+
40
+ /* HTML5 display definitions
41
+ ========================================================================== */
42
+
43
+ /**
44
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
45
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11
46
+ * and Firefox.
47
+ * Correct `block` display not defined for `main` in IE 11.
48
+ */
49
+
50
+ article,
51
+ aside,
52
+ details,
53
+ figcaption,
54
+ figure,
55
+ footer,
56
+ header,
57
+ hgroup,
58
+ main,
59
+ menu,
60
+ nav,
61
+ section,
62
+ summary {
63
+ display: block;
64
+ }
65
+
66
+ /**
67
+ * 1. Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
68
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
69
+ */
70
+
71
+ audio,
72
+ canvas,
73
+ progress,
74
+ video {
75
+ display: inline-block; /* 1 */
76
+ vertical-align: baseline; /* 2 */
77
+ @if $legacy_browser_support {
78
+ *display: inline;
79
+ *zoom: 1;
80
+ }
81
+ }
82
+
83
+ /**
84
+ * Prevents modern browsers from displaying `audio` without controls.
85
+ * Remove excess height in iOS 5 devices.
86
+ */
87
+
88
+ audio:not([controls]) {
89
+ display: none;
90
+ height: 0;
91
+ }
92
+
93
+ /**
94
+ * Address `[hidden]` styling not present in IE 8/9/10.
95
+ * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
96
+ */
97
+
98
+ [hidden],
99
+ template {
100
+ display: none;
101
+ }
102
+
103
+ /* Links
104
+ ========================================================================== */
105
+
106
+ /**
107
+ * Remove the gray background color from active links in IE 10.
108
+ */
109
+
110
+ a {
111
+ background-color: transparent;
112
+ }
113
+
114
+ /**
115
+ * Improve readability of focused elements when they are also in an
116
+ * active/hover state.
117
+ */
118
+
119
+ a {
120
+ &:active, &:hover {
121
+ outline: 0;
122
+ };
123
+ }
124
+
125
+ /* Text-level semantics
126
+ ========================================================================== */
127
+
128
+ /**
129
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
130
+ */
131
+
132
+ abbr[title] {
133
+ border-bottom: 1px dotted;
134
+ }
135
+
136
+ /**
137
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
138
+ */
139
+
140
+ b,
141
+ strong {
142
+ font-weight: bold;
143
+ }
144
+
145
+ @if $legacy_browser_support {
146
+ blockquote {
147
+ margin: 1em 40px;
148
+ }
149
+ }
150
+
151
+ /**
152
+ * Address styling not present in Safari and Chrome.
153
+ */
154
+
155
+ dfn {
156
+ font-style: italic;
157
+ }
158
+
159
+ /**
160
+ * Address variable `h1` font-size and margin within `section` and `article`
161
+ * contexts in Firefox 4+, Safari, and Chrome.
162
+ */
163
+
164
+ h1 {
165
+ font-size: 2em;
166
+ margin: 0.67em 0;
167
+ }
168
+
169
+ @if $legacy_browser_support {
170
+ h2 {
171
+ font-size: 1.5em;
172
+ margin: 0.83em 0;
173
+ }
174
+
175
+ h3 {
176
+ font-size: 1.17em;
177
+ margin: 1em 0;
178
+ }
179
+
180
+ h4 {
181
+ font-size: 1em;
182
+ margin: 1.33em 0;
183
+ }
184
+
185
+ h5 {
186
+ font-size: 0.83em;
187
+ margin: 1.67em 0;
188
+ }
189
+
190
+ h6 {
191
+ font-size: 0.67em;
192
+ margin: 2.33em 0;
193
+ }
194
+ }
195
+
196
+ /**
197
+ * Addresses styling not present in IE 8/9.
198
+ */
199
+
200
+ mark {
201
+ background: #ff0;
202
+ color: #000;
203
+ }
204
+
205
+ @if $legacy_browser_support {
206
+
207
+ /**
208
+ * Addresses margins set differently in IE 6/7.
209
+ */
210
+
211
+ p,
212
+ pre {
213
+ *margin: 1em 0;
214
+ }
215
+
216
+ /*
217
+ * Addresses CSS quotes not supported in IE 6/7.
218
+ */
219
+
220
+ q {
221
+ *quotes: none;
222
+ }
223
+
224
+ /*
225
+ * Addresses `quotes` property not supported in Safari 4.
226
+ */
227
+
228
+ q:before,
229
+ q:after {
230
+ content: '';
231
+ content: none;
232
+ }
233
+ }
234
+
235
+ /**
236
+ * Address inconsistent and variable font size in all browsers.
237
+ */
238
+
239
+ small {
240
+ font-size: 80%;
241
+ }
242
+
243
+ /**
244
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
245
+ */
246
+
247
+ sub,
248
+ sup {
249
+ font-size: 75%;
250
+ line-height: 0;
251
+ position: relative;
252
+ vertical-align: baseline;
253
+ }
254
+
255
+ sup {
256
+ top: -0.5em;
257
+ }
258
+
259
+ sub {
260
+ bottom: -0.25em;
261
+ }
262
+
263
+ @if $legacy_browser_support {
264
+
265
+ /* ==========================================================================
266
+ Lists
267
+ ========================================================================== */
268
+
269
+ /*
270
+ * Addresses margins set differently in IE 6/7.
271
+ */
272
+
273
+ dl,
274
+ menu,
275
+ ol,
276
+ ul {
277
+ *margin: 1em 0;
278
+ }
279
+
280
+ dd {
281
+ *margin: 0 0 0 40px;
282
+ }
283
+
284
+ /*
285
+ * Addresses paddings set differently in IE 6/7.
286
+ */
287
+
288
+ menu,
289
+ ol,
290
+ ul {
291
+ *padding: 0 0 0 40px;
292
+ }
293
+
294
+ /*
295
+ * Corrects list images handled incorrectly in IE 7.
296
+ */
297
+
298
+ nav ul,
299
+ nav ol {
300
+ *list-style: none;
301
+ *list-style-image: none;
302
+ }
303
+
304
+ }
305
+
306
+ /* Embedded content
307
+ ========================================================================== */
308
+
309
+ /**
310
+ * 1. Remove border when inside `a` element in IE 8/9/10.
311
+ * 2. Improves image quality when scaled in IE 7.
312
+ */
313
+
314
+ img {
315
+ border: 0;
316
+ @if $legacy_browser_support {
317
+ *-ms-interpolation-mode: bicubic; /* 2 */
318
+ }
319
+ }
320
+
321
+ /**
322
+ * Correct overflow not hidden in IE 9/10/11.
323
+ */
324
+
325
+ svg:not(:root) {
326
+ overflow: hidden;
327
+ }
328
+
329
+ /* Grouping content
330
+ ========================================================================== */
331
+
332
+ /**
333
+ * Address margin not present in IE 8/9 and Safari.
334
+ */
335
+
336
+ figure {
337
+ margin: 1em 40px;
338
+ }
339
+
340
+ /**
341
+ * Address differences between Firefox and other browsers.
342
+ */
343
+
344
+ hr {
345
+ box-sizing: content-box;
346
+ height: 0;
347
+ }
348
+
349
+ /**
350
+ * Contain overflow in all browsers.
351
+ */
352
+
353
+ pre {
354
+ overflow: auto;
355
+ }
356
+
357
+ /**
358
+ * Address odd `em`-unit font size rendering in all browsers.
359
+ * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
360
+ */
361
+
362
+ code,
363
+ kbd,
364
+ pre,
365
+ samp {
366
+ font-family: monospace, monospace;
367
+ @if $legacy_browser_support {
368
+ _font-family: 'courier new', monospace;
369
+ }
370
+ font-size: 1em;
371
+ }
372
+
373
+ /* Forms
374
+ ========================================================================== */
375
+
376
+ /**
377
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
378
+ * styling of `select`, unless a `border` property is set.
379
+ */
380
+
381
+ /**
382
+ * 1. Correct color not being inherited.
383
+ * Known issue: affects color of disabled elements.
384
+ * 2. Correct font properties not being inherited.
385
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
386
+ * 4. Improves appearance and consistency in all browsers.
387
+ */
388
+
389
+ button,
390
+ input,
391
+ optgroup,
392
+ select,
393
+ textarea {
394
+ color: inherit; /* 1 */
395
+ font: inherit; /* 2 */
396
+ margin: 0; /* 3 */
397
+ @if $legacy_browser_support {
398
+ vertical-align: baseline; /* 3 */
399
+ *vertical-align: middle; /* 3 */
400
+ }
401
+ }
402
+
403
+ /**
404
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
405
+ */
406
+
407
+ button {
408
+ overflow: visible;
409
+ }
410
+
411
+ /**
412
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
413
+ * All other form control elements do not inherit `text-transform` values.
414
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
415
+ * Correct `select` style inheritance in Firefox.
416
+ */
417
+
418
+ button,
419
+ select {
420
+ text-transform: none;
421
+ }
422
+
423
+ /**
424
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
425
+ * and `video` controls.
426
+ * 2. Correct inability to style clickable `input` types in iOS.
427
+ * 3. Improve usability and consistency of cursor style between image-type
428
+ * `input` and others.
429
+ * 4. Removes inner spacing in IE 7 without affecting normal text inputs.
430
+ * Known issue: inner spacing remains in IE 6.
431
+ */
432
+
433
+ button,
434
+ html input[type="button"], /* 1 */
435
+ input[type="reset"],
436
+ input[type="submit"] {
437
+ -webkit-appearance: button; /* 2 */
438
+ cursor: pointer; /* 3 */
439
+ @if $legacy_browser_support {
440
+ *overflow: visible; /* 4 */
441
+ }
442
+ }
443
+
444
+ /**
445
+ * Re-set default cursor for disabled elements.
446
+ */
447
+
448
+ button[disabled],
449
+ html input[disabled] {
450
+ cursor: default;
451
+ }
452
+
453
+ /**
454
+ * Remove inner padding and border in Firefox 4+.
455
+ */
456
+
457
+ button::-moz-focus-inner,
458
+ input::-moz-focus-inner {
459
+ border: 0;
460
+ padding: 0;
461
+ }
462
+
463
+ /**
464
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
465
+ * the UA stylesheet.
466
+ */
467
+
468
+ input {
469
+ line-height: normal;
470
+ }
471
+
472
+ /**
473
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
474
+ * 2. Remove excess padding in IE 8/9/10.
475
+ * Known issue: excess padding remains in IE 6.
476
+ */
477
+
478
+ input[type="checkbox"],
479
+ input[type="radio"] {
480
+ box-sizing: border-box; /* 1 */
481
+ padding: 0; /* 2 */
482
+ @if $legacy_browser_support {
483
+ *height: 13px; /* 3 */
484
+ *width: 13px; /* 3 */
485
+ }
486
+ }
487
+
488
+ /**
489
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
490
+ * `font-size` values of the `input`, it causes the cursor style of the
491
+ * decrement button to change from `default` to `text`.
492
+ */
493
+
494
+ input[type="number"]::-webkit-inner-spin-button,
495
+ input[type="number"]::-webkit-outer-spin-button {
496
+ height: auto;
497
+ }
498
+
499
+ /**
500
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
501
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
502
+ */
503
+
504
+ input[type="search"] {
505
+ -webkit-appearance: textfield; /* 1 */
506
+ box-sizing: content-box; /* 2 */
507
+ }
508
+
509
+ /**
510
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
511
+ * Safari (but not Chrome) clips the cancel button when the search input has
512
+ * padding (and `textfield` appearance).
513
+ */
514
+
515
+ input[type="search"]::-webkit-search-cancel-button,
516
+ input[type="search"]::-webkit-search-decoration {
517
+ -webkit-appearance: none;
518
+ }
519
+
520
+ /**
521
+ * Define consistent border, margin, and padding.
522
+ */
523
+
524
+ fieldset {
525
+ border: 1px solid #c0c0c0;
526
+ margin: 0 2px;
527
+ padding: 0.35em 0.625em 0.75em;
528
+ }
529
+
530
+ /**
531
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
532
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
533
+ * 3. Corrects text not wrapping in Firefox 3.
534
+ * 4. Corrects alignment displayed oddly in IE 6/7.
535
+ */
536
+
537
+ legend {
538
+ border: 0; /* 1 */
539
+ padding: 0; /* 2 */
540
+ @if $legacy_browser_support {
541
+ white-space: normal; /* 3 */
542
+ *margin-left: -7px; /* 4 */
543
+ }
544
+ }
545
+
546
+ /**
547
+ * Remove default vertical scrollbar in IE 8/9/10/11.
548
+ */
549
+
550
+ textarea {
551
+ overflow: auto;
552
+ }
553
+
554
+ /**
555
+ * Don't inherit the `font-weight` (applied by a rule above).
556
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
557
+ */
558
+
559
+ optgroup {
560
+ font-weight: bold;
561
+ }
562
+
563
+ /* Tables
564
+ ========================================================================== */
565
+
566
+ /**
567
+ * Remove most spacing between table cells.
568
+ */
569
+
570
+ table {
571
+ border-collapse: collapse;
572
+ border-spacing: 0;
573
+ }
574
+
575
+ td,
576
+ th {
577
+ padding: 0;
578
+ }