sempli-website-lib 7.1.0-beta.2 → 7.1.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/README.md +25 -25
  2. package/assets/fonts/Lato/Lato-Black.ttf +0 -0
  3. package/assets/fonts/Lato/Lato-BlackItalic.ttf +0 -0
  4. package/assets/fonts/Lato/Lato-Bold.ttf +0 -0
  5. package/assets/fonts/Lato/Lato-BoldItalic.ttf +0 -0
  6. package/assets/fonts/Lato/Lato-Hairline.ttf +0 -0
  7. package/assets/fonts/Lato/Lato-HairlineItalic.ttf +0 -0
  8. package/assets/fonts/Lato/Lato-Italic.ttf +0 -0
  9. package/assets/fonts/Lato/Lato-Light.ttf +0 -0
  10. package/assets/fonts/Lato/Lato-LightItalic.ttf +0 -0
  11. package/assets/fonts/Lato/Lato-Regular.ttf +0 -0
  12. package/assets/fonts/Lato/OFL.txt +0 -0
  13. package/assets/interface/documents.svg +136 -136
  14. package/assets/interface/icons/alert-success.svg +17 -17
  15. package/assets/interface/icons/arrow-left.svg +8 -8
  16. package/assets/interface/icons/arrow-right-02.svg +10 -10
  17. package/assets/interface/icons/arrow-right.svg +8 -8
  18. package/assets/interface/icons/basic-check-magenta.svg +1 -1
  19. package/assets/interface/icons/bulb-example.svg +20 -20
  20. package/assets/interface/icons/bulb-tip.svg +32 -32
  21. package/assets/interface/icons/check-green-circle-large.svg +23 -23
  22. package/assets/interface/icons/check-green.svg +16 -16
  23. package/assets/interface/icons/check-purple.svg +20 -20
  24. package/assets/interface/icons/cloud-download.svg +20 -20
  25. package/assets/interface/icons/document-pdf.svg +13 -13
  26. package/assets/interface/icons/document-review.svg +20 -20
  27. package/assets/interface/icons/document-status-approved.svg +21 -21
  28. package/assets/interface/icons/document-status-empty.svg +18 -18
  29. package/assets/interface/icons/document-status-error.svg +23 -23
  30. package/assets/interface/icons/document-status-success.svg +19 -19
  31. package/assets/interface/icons/eye-action.svg +1 -1
  32. package/assets/interface/icons/hand-stop.svg +19 -19
  33. package/assets/interface/icons/happy-01.svg +0 -0
  34. package/assets/interface/icons/happy-02.svg +0 -0
  35. package/assets/interface/icons/happy-03.svg +0 -0
  36. package/assets/interface/icons/happy-04.svg +0 -0
  37. package/assets/interface/icons/happy-05.svg +0 -0
  38. package/assets/interface/icons/heart.svg +13 -13
  39. package/assets/interface/icons/intercom-messenger-icon.svg +1 -1
  40. package/assets/interface/icons/lock-icon.svg +1 -1
  41. package/assets/interface/icons/mail-circle.svg +32 -32
  42. package/assets/interface/icons/mail-edit.svg +20 -20
  43. package/assets/interface/icons/pen-edit.svg +22 -22
  44. package/assets/interface/icons/plus-circle.svg +22 -22
  45. package/assets/interface/icons/question-sign.svg +10 -10
  46. package/assets/interface/icons/shield.svg +31 -31
  47. package/assets/interface/icons/signature-modal-approved.svg +17 -17
  48. package/assets/interface/icons/signature-modal-waiting.svg +23 -23
  49. package/assets/interface/icons/signature-pending.svg +25 -25
  50. package/assets/interface/icons/signature-step-active.svg +19 -19
  51. package/assets/interface/icons/signature-step-completed.svg +19 -19
  52. package/assets/interface/icons/signature-step-default.svg +19 -19
  53. package/assets/interface/icons/skull.svg +23 -23
  54. package/assets/interface/icons/step-incomplete.svg +18 -18
  55. package/assets/interface/icons/trash-delete.svg +20 -20
  56. package/assets/interface/icons/warning-sign.svg +22 -22
  57. package/assets/interface/icons/x-circle.svg +14 -14
  58. package/assets/interface/sempli_2.0/17-dale_superpoderes.jpeg +0 -0
  59. package/assets/interface/sempli_2.0/17-dale_superpoderes.webp +0 -0
  60. package/assets/interface/sempli_2.0/5-seguridad-y-control-min.png +0 -0
  61. package/assets/interface/sempli_2.0/5-seguridad-y-control-min.webp +0 -0
  62. package/assets/interface/sempli_2.0/7-financia-tu-capital-de-trabajo2-01.webp +0 -0
  63. package/assets/interface/sempli_2.0/7-financia-tu-capital-de-trabajo2.webp +0 -0
  64. package/assets/interface/sempli_2.0/credito-a-termino.jpg +0 -0
  65. package/assets/interface/sempli_2.0/credito-a-termino.webp +0 -0
  66. package/assets/interface/sempli_2.0/credito-flexi-sub-img.jpg +0 -0
  67. package/assets/interface/sempli_2.0/credito-flexi-sub-img.webp +0 -0
  68. package/assets/interface/sempli_2.0/dale_superpoderes.jpg +0 -0
  69. package/assets/interface/sempli_2.0/dale_superpoderes.webp +0 -0
  70. package/assets/interface/sempli_2.0/flexi-01.webp +0 -0
  71. package/assets/interface/sempli_2.0/video-hero-main.mp4 +0 -0
  72. package/assets/interface/sempli_2.0/video-main.mp4 +0 -0
  73. package/assets/interface/sempli_2.0/video-main.webm +0 -0
  74. package/esm2022/lib/sempli-website-lib.module.mjs +5 -5
  75. package/esm2022/public-api.mjs +1 -1
  76. package/fesm2022/sempli-website-lib.mjs +4 -4
  77. package/fesm2022/sempli-website-lib.mjs.map +1 -1
  78. package/package.json +1 -1
  79. package/styles/_main.scss +2 -2
  80. package/styles/master-app.scss +17839 -18114
  81. package/styles/master-landing.scss +20644 -20834
  82. package/styles/modules/_functions.scss +37 -37
  83. package/styles/modules/_mixins.scss +68 -68
  84. package/styles/modules/_variables.scss +54 -54
  85. package/styles/partials/_base.scss +277 -277
  86. package/styles/partials/_buttons.scss +446 -453
  87. package/styles/partials/_fonts.scss +83 -83
  88. package/styles/partials/_forms.scss +839 -1107
  89. package/styles/partials/_icons.scss +12 -12
  90. package/styles/partials/_layout.scss +149 -149
  91. package/styles/partials/_modals.scss +254 -254
  92. package/styles/partials/_panels.scss +51 -51
  93. package/styles/partials/_progress-bars.scss +60 -60
  94. package/styles/partials/_tooltips.scss +128 -128
  95. package/styles/partials/_videos.scss +32 -32
  96. package/styles/partials/animations.scss +155 -155
  97. package/styles/partials/app/_blocks.scss +101 -101
  98. package/styles/partials/app/_cards.scss +155 -155
  99. package/styles/partials/app/_general.scss +1193 -1193
  100. package/styles/partials/app/_header.scss +713 -713
  101. package/styles/partials/app/_layout.scss +219 -219
  102. package/styles/partials/app/_my-account.scss +203 -203
  103. package/styles/partials/app/_my-loan-applications.scss +165 -165
  104. package/styles/partials/app/_my-products.scss +1019 -1019
  105. package/styles/partials/app/_signatures.scss +16 -16
  106. package/styles/partials/landing/_footer.scss +234 -234
  107. package/styles/partials/landing/_general.scss +2612 -2527
  108. package/styles/partials/landing/_header.scss +968 -968
  109. package/styles/partials/landing/_hero-wrappers.scss +650 -650
  110. package/styles/vendor/_animate.scss +3 -3
  111. package/styles/vendor/_compass.scss +4 -4
  112. package/styles/vendor/_lemonade.scss +37 -37
  113. package/styles/vendor/_modules_export.scss +11212 -11212
  114. package/styles/vendor/_normalize.scss +341 -341
  115. package/styles/vendor/animation/_animate.scss +31 -31
  116. package/styles/vendor/animation/_core.scss +127 -127
  117. package/styles/vendor/animation/_shared.scss +21 -21
  118. package/styles/vendor/animation/animate/_attention-seekers.scss +151 -151
  119. package/styles/vendor/animation/animate/_bouncing.scss +2 -2
  120. package/styles/vendor/animation/animate/_classes.scss +21 -21
  121. package/styles/vendor/animation/animate/_fading.scss +2 -2
  122. package/styles/vendor/animation/animate/_flippers.scss +87 -87
  123. package/styles/vendor/animation/animate/_lightspeed.scss +23 -23
  124. package/styles/vendor/animation/animate/_rotating.scss +3 -3
  125. package/styles/vendor/animation/animate/_specials.scss +42 -42
  126. package/styles/vendor/animation/animate/bouncing/_bouncing-entrances.scss +68 -68
  127. package/styles/vendor/animation/animate/bouncing/_bouncing-exits.scss +60 -60
  128. package/styles/vendor/animation/animate/fading/_fading-entrances.scss +86 -86
  129. package/styles/vendor/animation/animate/fading/_fading-exits.scss +86 -86
  130. package/styles/vendor/animation/animate/rotating/_rotating-entrances.scss +58 -58
  131. package/styles/vendor/animation/animate/rotating/_rotating-exits.scss +58 -58
  132. package/styles/vendor/compass/_css3.scss +21 -21
  133. package/styles/vendor/compass/_functions.scss +7 -7
  134. package/styles/vendor/compass/_layout.scss +3 -3
  135. package/styles/vendor/compass/_reset-legacy.scss +3 -3
  136. package/styles/vendor/compass/_reset.scss +3 -3
  137. package/styles/vendor/compass/_support.scss +40 -40
  138. package/styles/vendor/compass/_typography.scss +4 -4
  139. package/styles/vendor/compass/_utilities.scss +9 -9
  140. package/styles/vendor/compass/css3/_animation.scss +2 -2
  141. package/styles/vendor/compass/css3/_appearance.scss +16 -16
  142. package/styles/vendor/compass/css3/_background-clip.scss +43 -43
  143. package/styles/vendor/compass/css3/_background-origin.scss +42 -42
  144. package/styles/vendor/compass/css3/_background-size.scss +26 -26
  145. package/styles/vendor/compass/css3/_border-radius.scss +130 -130
  146. package/styles/vendor/compass/css3/_box-shadow.scss +76 -76
  147. package/styles/vendor/compass/css3/_box-sizing.scss +18 -18
  148. package/styles/vendor/compass/css3/_box.scss +110 -110
  149. package/styles/vendor/compass/css3/_columns.scss +157 -157
  150. package/styles/vendor/compass/css3/_filter.scss +24 -24
  151. package/styles/vendor/compass/css3/_flexbox.scss +86 -86
  152. package/styles/vendor/compass/css3/_font-face.scss +48 -48
  153. package/styles/vendor/compass/css3/_hyphenation.scss +77 -77
  154. package/styles/vendor/compass/css3/_images.scss +133 -133
  155. package/styles/vendor/compass/css3/_inline-block.scss +22 -22
  156. package/styles/vendor/compass/css3/_opacity.scss +19 -19
  157. package/styles/vendor/compass/css3/_pie.scss +73 -73
  158. package/styles/vendor/compass/css3/_regions.scss +21 -21
  159. package/styles/vendor/compass/css3/_shared.scss +38 -38
  160. package/styles/vendor/compass/css3/_text-shadow.scss +88 -88
  161. package/styles/vendor/compass/css3/_transform-legacy.scss +87 -87
  162. package/styles/vendor/compass/css3/_transform.scss +598 -598
  163. package/styles/vendor/compass/css3/_transition.scss +222 -222
  164. package/styles/vendor/compass/css3/_user-interface.scss +47 -47
  165. package/styles/vendor/compass/functions/_colors.scss +37 -37
  166. package/styles/vendor/compass/functions/_constants.scss +18 -18
  167. package/styles/vendor/compass/functions/_cross_browser_support.scss +72 -72
  168. package/styles/vendor/compass/functions/_display.scss +36 -36
  169. package/styles/vendor/compass/functions/_font_files.scss +95 -95
  170. package/styles/vendor/compass/functions/_gradient_support.scss +14 -14
  171. package/styles/vendor/compass/functions/_lists.scss +90 -90
  172. package/styles/vendor/compass/layout/_grid-background.scss +178 -178
  173. package/styles/vendor/compass/layout/_sticky-footer.scss +23 -23
  174. package/styles/vendor/compass/layout/_stretching.scss +23 -23
  175. package/styles/vendor/compass/reset/_utilities-legacy.scss +135 -135
  176. package/styles/vendor/compass/reset/_utilities.scss +142 -142
  177. package/styles/vendor/compass/typography/_links.scss +3 -3
  178. package/styles/vendor/compass/typography/_lists.scss +4 -4
  179. package/styles/vendor/compass/typography/_text.scss +4 -4
  180. package/styles/vendor/compass/typography/_vertical_rhythm.scss +229 -229
  181. package/styles/vendor/compass/typography/links/_hover-link.scss +5 -5
  182. package/styles/vendor/compass/typography/links/_link-colors.scss +28 -28
  183. package/styles/vendor/compass/typography/links/_unstyled-link.scss +7 -7
  184. package/styles/vendor/compass/typography/lists/_bullets.scss +34 -34
  185. package/styles/vendor/compass/typography/lists/_horizontal-list.scss +61 -61
  186. package/styles/vendor/compass/typography/lists/_inline-block-list.scss +50 -50
  187. package/styles/vendor/compass/typography/lists/_inline-list.scss +44 -44
  188. package/styles/vendor/compass/typography/text/_ellipsis.scss +25 -25
  189. package/styles/vendor/compass/typography/text/_force-wrap.scss +12 -12
  190. package/styles/vendor/compass/typography/text/_nowrap.scss +2 -2
  191. package/styles/vendor/compass/typography/text/_replacement.scss +68 -68
  192. package/styles/vendor/compass/utilities/_general.scss +6 -6
  193. package/styles/vendor/compass/utilities/_links.scss +5 -5
  194. package/styles/vendor/compass/utilities/_lists.scss +6 -6
  195. package/styles/vendor/compass/utilities/_print.scss +17 -17
  196. package/styles/vendor/compass/utilities/_sprites.scss +2 -2
  197. package/styles/vendor/compass/utilities/_tables.scss +3 -3
  198. package/styles/vendor/compass/utilities/_text.scss +5 -5
  199. package/styles/vendor/compass/utilities/color/_contrast.scss +27 -27
  200. package/styles/vendor/compass/utilities/general/_clearfix.scss +44 -44
  201. package/styles/vendor/compass/utilities/general/_float.scss +29 -29
  202. package/styles/vendor/compass/utilities/general/_hacks.scss +47 -47
  203. package/styles/vendor/compass/utilities/general/_min.scss +16 -16
  204. package/styles/vendor/compass/utilities/general/_reset.scss +2 -2
  205. package/styles/vendor/compass/utilities/general/_tabs.scss +1 -1
  206. package/styles/vendor/compass/utilities/general/_tag-cloud.scss +18 -18
  207. package/styles/vendor/compass/utilities/links/_hover-link.scss +3 -3
  208. package/styles/vendor/compass/utilities/links/_link-colors.scss +3 -3
  209. package/styles/vendor/compass/utilities/links/_unstyled-link.scss +3 -3
  210. package/styles/vendor/compass/utilities/lists/_bullets.scss +3 -3
  211. package/styles/vendor/compass/utilities/lists/_horizontal-list.scss +3 -3
  212. package/styles/vendor/compass/utilities/lists/_inline-block-list.scss +3 -3
  213. package/styles/vendor/compass/utilities/lists/_inline-list.scss +3 -3
  214. package/styles/vendor/compass/utilities/sprites/_base.scss +65 -65
  215. package/styles/vendor/compass/utilities/sprites/_sprite-img.scss +78 -78
  216. package/styles/vendor/compass/utilities/tables/_alternating-rows-and-columns.scss +22 -22
  217. package/styles/vendor/compass/utilities/tables/_borders.scss +33 -33
  218. package/styles/vendor/compass/utilities/tables/_scaffolding.scss +9 -9
  219. package/styles/vendor/compass/utilities/text/_ellipsis.scss +3 -3
  220. package/styles/vendor/compass/utilities/text/_nowrap.scss +3 -3
  221. package/styles/vendor/compass/utilities/text/_replacement.scss +3 -3
  222. package/assets/interface/icons/check-circle.svg +0 -1
  223. package/assets/interface/icons/x-circle-alert.svg +0 -1
  224. package/core/intelli-styles.js +0 -55
@@ -1,229 +1,229 @@
1
- @import "../layout/grid-background";
2
-
3
- // The base font size.
4
- $base-font-size: 16px !default;
5
-
6
- // The base line height determines the basic unit of vertical rhythm.
7
- $base-line-height: 24px !default;
8
-
9
- // Set the default border style for rhythm borders.
10
- $default-rhythm-border-style: solid !default;
11
-
12
- // The default font size in all browsers.
13
- $browser-default-font-size: 16px;
14
-
15
- // Set to false if you want to use absolute pixels in sizing your typography.
16
- $relative-font-sizing: true !default;
17
-
18
- // Allows the `adjust-font-size-to` mixin and the `lines-for-font-size` function
19
- // to round the line height to the nearest half line height instead of the
20
- // nearest integral line height to avoid large spacing between lines.
21
- $round-to-nearest-half-line: false !default;
22
-
23
- // Ensure there is at least this many pixels
24
- // of vertical padding above and below the text.
25
- $min-line-padding: 2px !default;
26
-
27
- // $base-font-size but in your output unit of choice.
28
- // Defaults to 1em when `$relative-font-sizing` is true.
29
- $font-unit: if($relative-font-sizing, 1em, $base-font-size) !default;
30
-
31
- // The basic unit of font rhythm.
32
- $base-rhythm-unit: calc($base-line-height / $base-font-size * $font-unit);
33
-
34
- // The leader is the amount of whitespace in a line.
35
- // It might be useful in your calculations.
36
- $base-leader: calc(($base-line-height - $base-font-size) * $font-unit / $base-font-size);
37
-
38
- // The half-leader is the amount of whitespace above and below a line.
39
- // It might be useful in your calculations.
40
- $base-half-leader: calc($base-leader / 2);
41
-
42
- // True if a number has a relative unit.
43
- @function relative-unit($number) {
44
- @return unit($number) == "%" or unit($number) == "em" or unit($number) == "rem"
45
- }
46
-
47
- // True if a number has an absolute unit.
48
- @function absolute-unit($number) {
49
- @return not(relative-unit($number) or unitless($number));
50
- }
51
-
52
- @if $relative-font-sizing and not(relative-unit($font-unit)) {
53
- @warn "$relative-font-sizing is true but $font-unit is set to #{$font-unit} which is not a relative unit.";
54
- }
55
-
56
- // Establishes a font baseline for the given font-size.
57
- @mixin establish-baseline($font-size: $base-font-size) {
58
- // IE 6 refuses to resize fonts set in pixels and it weirdly resizes fonts
59
- // whose root is set in ems. So we set the root font size in percentages of
60
- // the default font size.
61
- * html {
62
- font-size: 100% * calc($font-size / $browser-default-font-size);
63
- }
64
- html {
65
- font-size: $font-size;
66
- @include adjust-leading-to(1, if($relative-font-sizing, $font-size, $base-font-size));
67
- }
68
- }
69
-
70
- // Resets the line-height to 1 vertical rhythm unit.
71
- // Does not work on elements whose font-size is different from $base-font-size.
72
- //
73
- // @deprecated This mixin will be removed in the next release.
74
- // Please use the `adjust-leading-to` mixin instead.
75
- @mixin reset-baseline {
76
- @include adjust-leading-to(1, if($relative-font-sizing, $base-font-size, $base-font-size));
77
- }
78
-
79
- // Show a background image that can be used to debug your alignments.
80
- // Include the $img argument if you would rather use your own image than the
81
- // Compass default gradient image.
82
- @mixin debug-vertical-alignment($img: false) {
83
- @if $img {
84
- background: image-url($img);
85
- } @else {
86
- @include baseline-grid-background($base-rhythm-unit);
87
- }
88
- }
89
-
90
- // Adjust a block to have a different font size and line height to maintain the
91
- // rhythm. $lines specifies how many multiples of the baseline rhythm each line
92
- // of this font should use up. It does not have to be an integer, but it
93
- // defaults to the smallest integer that is large enough to fit the font.
94
- // Use $from-size to adjust from a font-size other than the base font-size.
95
- @mixin adjust-font-size-to($to-size, $lines: lines-for-font-size($to-size), $from-size: $base-font-size) {
96
- @if not($relative-font-sizing) and $from-size != $base-font-size {
97
- @warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to";
98
- }
99
- font-size: calc($font-unit * $to-size / $from-size);
100
- @include adjust-leading-to($lines, if($relative-font-sizing, $to-size, $base-font-size));
101
- }
102
-
103
- // Adjust a block to have different line height to maintain the rhythm.
104
- // $lines specifies how many multiples of the baseline rhythm each line of this
105
- // font should use up. It does not have to be an integer, but it defaults to the
106
- // smallest integer that is large enough to fit the font.
107
- @mixin adjust-leading-to($lines, $font-size: $base-font-size) {
108
- line-height: rhythm($lines, $font-size);
109
- }
110
-
111
- // Calculate rhythm units.
112
- @function rhythm(
113
- $lines: 1,
114
- $font-size: $base-font-size,
115
- $offset: 0
116
- ) {
117
- @if not($relative-font-sizing) and $font-size != $base-font-size {
118
- @warn "$relative-font-sizing is false but a relative font size was passed to the rhythm function";
119
- }
120
- $rhythm: calc($font-unit * ($lines * $base-line-height - $offset) / $font-size);
121
- // Round the pixels down to nearest integer.
122
- @if unit($rhythm) == px {
123
- $rhythm: floor($rhythm);
124
- }
125
- @return $rhythm;
126
- }
127
-
128
- // Calculate the minimum multiple of rhythm units needed to contain the font-size.
129
- @function lines-for-font-size($font-size) {
130
- $lines: if($round-to-nearest-half-line,
131
- ceil(2 * $font-size / $base-line-height) / 2,
132
- ceil($font-size / $base-line-height));
133
- @if $lines * $base-line-height - $font-size < $min-line-padding * 2 {
134
- $lines: $lines + if($round-to-nearest-half-line, 0.5, 1);
135
- }
136
- @return $lines;
137
- }
138
-
139
- // Apply leading whitespace. The $property can be margin or padding.
140
- @mixin leader($lines: 1, $font-size: $base-font-size, $property: margin) {
141
- #{$property}-top: rhythm($lines, $font-size);
142
- }
143
-
144
- // Apply leading whitespace as padding.
145
- @mixin padding-leader($lines: 1, $font-size: $base-font-size) {
146
- padding-top: rhythm($lines, $font-size);
147
- }
148
-
149
- // Apply leading whitespace as margin.
150
- @mixin margin-leader($lines: 1, $font-size: $base-font-size) {
151
- margin-top: rhythm($lines, $font-size);
152
- }
153
-
154
- // Apply trailing whitespace. The $property can be margin or padding.
155
- @mixin trailer($lines: 1, $font-size: $base-font-size, $property: margin) {
156
- #{$property}-bottom: rhythm($lines, $font-size);
157
- }
158
-
159
- // Apply trailing whitespace as padding.
160
- @mixin padding-trailer($lines: 1, $font-size: $base-font-size) {
161
- padding-bottom: rhythm($lines, $font-size);
162
- }
163
-
164
- // Apply trailing whitespace as margin.
165
- @mixin margin-trailer($lines: 1, $font-size: $base-font-size) {
166
- margin-bottom: rhythm($lines, $font-size);
167
- }
168
-
169
- // Shorthand mixin to apply whitespace for top and bottom margins and padding.
170
- @mixin rhythm($leader: 0, $padding-leader: 0, $padding-trailer: 0, $trailer: 0, $font-size: $base-font-size) {
171
- @include leader($leader, $font-size);
172
- @include padding-leader($padding-leader, $font-size);
173
- @include padding-trailer($padding-trailer, $font-size);
174
- @include trailer($trailer, $font-size);
175
- }
176
-
177
- // Apply a border and whitespace to any side without destroying the vertical
178
- // rhythm. The whitespace must be greater than the width of the border.
179
- @mixin apply-side-rhythm-border($side, $width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
180
- @if not($relative-font-sizing) and $font-size != $base-font-size {
181
- @warn "$relative-font-sizing is false but a relative font size was passed to apply-side-rhythm-border";
182
- }
183
- border-#{$side}-style: $border-style;
184
- border-#{$side}-width: calc($font-unit * $width / $font-size);
185
- padding-#{$side}: rhythm($lines, $font-size, $offset: $width);
186
- }
187
-
188
- // Apply borders and whitespace equally to all sides.
189
- @mixin rhythm-borders($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
190
- @if not($relative-font-sizing) and $font-size != $base-font-size {
191
- @warn "$relative-font-sizing is false but a relative font size was passed to rhythm-borders";
192
- }
193
- border: {
194
- style: $border-style;
195
- width: calc($font-unit * $width / $font-size);
196
- };
197
- padding: rhythm($lines, $font-size, $offset: $width);
198
- }
199
-
200
- // Apply a leading border.
201
- @mixin leading-border($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
202
- @include apply-side-rhythm-border(top, $width, $lines, $font-size, $border-style);
203
- }
204
-
205
- // Apply a trailing border.
206
- @mixin trailing-border($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
207
- @include apply-side-rhythm-border(bottom, $width, $lines, $font-size, $border-style);
208
- }
209
-
210
- // Apply both leading and trailing borders.
211
- @mixin horizontal-borders($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
212
- @include leading-border($width, $lines, $font-size, $border-style);
213
- @include trailing-border($width, $lines, $font-size, $border-style);
214
- }
215
-
216
- // Alias for `horizontal-borders` mixin.
217
- @mixin h-borders($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
218
- @include horizontal-borders($width, $lines, $font-size, $border-style);
219
- }
220
-
221
- // Shorthand mixin to apply whitespace for top and bottom margins.
222
- @mixin rhythm-margins(
223
- $leader: 1,
224
- $trailer: $leader,
225
- $font-size: $base-font-size
226
- ) {
227
- @include leader($leader, $font-size);
228
- @include trailer($trailer, $font-size);
229
- }
1
+ @import "../layout/grid-background";
2
+
3
+ // The base font size.
4
+ $base-font-size: 16px !default;
5
+
6
+ // The base line height determines the basic unit of vertical rhythm.
7
+ $base-line-height: 24px !default;
8
+
9
+ // Set the default border style for rhythm borders.
10
+ $default-rhythm-border-style: solid !default;
11
+
12
+ // The default font size in all browsers.
13
+ $browser-default-font-size: 16px;
14
+
15
+ // Set to false if you want to use absolute pixels in sizing your typography.
16
+ $relative-font-sizing: true !default;
17
+
18
+ // Allows the `adjust-font-size-to` mixin and the `lines-for-font-size` function
19
+ // to round the line height to the nearest half line height instead of the
20
+ // nearest integral line height to avoid large spacing between lines.
21
+ $round-to-nearest-half-line: false !default;
22
+
23
+ // Ensure there is at least this many pixels
24
+ // of vertical padding above and below the text.
25
+ $min-line-padding: 2px !default;
26
+
27
+ // $base-font-size but in your output unit of choice.
28
+ // Defaults to 1em when `$relative-font-sizing` is true.
29
+ $font-unit: if($relative-font-sizing, 1em, $base-font-size) !default;
30
+
31
+ // The basic unit of font rhythm.
32
+ $base-rhythm-unit: calc($base-line-height / $base-font-size * $font-unit);
33
+
34
+ // The leader is the amount of whitespace in a line.
35
+ // It might be useful in your calculations.
36
+ $base-leader: calc(($base-line-height - $base-font-size) * $font-unit / $base-font-size);
37
+
38
+ // The half-leader is the amount of whitespace above and below a line.
39
+ // It might be useful in your calculations.
40
+ $base-half-leader: calc($base-leader / 2);
41
+
42
+ // True if a number has a relative unit.
43
+ @function relative-unit($number) {
44
+ @return unit($number) == "%" or unit($number) == "em" or unit($number) == "rem"
45
+ }
46
+
47
+ // True if a number has an absolute unit.
48
+ @function absolute-unit($number) {
49
+ @return not(relative-unit($number) or unitless($number));
50
+ }
51
+
52
+ @if $relative-font-sizing and not(relative-unit($font-unit)) {
53
+ @warn "$relative-font-sizing is true but $font-unit is set to #{$font-unit} which is not a relative unit.";
54
+ }
55
+
56
+ // Establishes a font baseline for the given font-size.
57
+ @mixin establish-baseline($font-size: $base-font-size) {
58
+ // IE 6 refuses to resize fonts set in pixels and it weirdly resizes fonts
59
+ // whose root is set in ems. So we set the root font size in percentages of
60
+ // the default font size.
61
+ * html {
62
+ font-size: 100% * calc($font-size / $browser-default-font-size);
63
+ }
64
+ html {
65
+ font-size: $font-size;
66
+ @include adjust-leading-to(1, if($relative-font-sizing, $font-size, $base-font-size));
67
+ }
68
+ }
69
+
70
+ // Resets the line-height to 1 vertical rhythm unit.
71
+ // Does not work on elements whose font-size is different from $base-font-size.
72
+ //
73
+ // @deprecated This mixin will be removed in the next release.
74
+ // Please use the `adjust-leading-to` mixin instead.
75
+ @mixin reset-baseline {
76
+ @include adjust-leading-to(1, if($relative-font-sizing, $base-font-size, $base-font-size));
77
+ }
78
+
79
+ // Show a background image that can be used to debug your alignments.
80
+ // Include the $img argument if you would rather use your own image than the
81
+ // Compass default gradient image.
82
+ @mixin debug-vertical-alignment($img: false) {
83
+ @if $img {
84
+ background: image-url($img);
85
+ } @else {
86
+ @include baseline-grid-background($base-rhythm-unit);
87
+ }
88
+ }
89
+
90
+ // Adjust a block to have a different font size and line height to maintain the
91
+ // rhythm. $lines specifies how many multiples of the baseline rhythm each line
92
+ // of this font should use up. It does not have to be an integer, but it
93
+ // defaults to the smallest integer that is large enough to fit the font.
94
+ // Use $from-size to adjust from a font-size other than the base font-size.
95
+ @mixin adjust-font-size-to($to-size, $lines: lines-for-font-size($to-size), $from-size: $base-font-size) {
96
+ @if not($relative-font-sizing) and $from-size != $base-font-size {
97
+ @warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to";
98
+ }
99
+ font-size: calc($font-unit * $to-size / $from-size);
100
+ @include adjust-leading-to($lines, if($relative-font-sizing, $to-size, $base-font-size));
101
+ }
102
+
103
+ // Adjust a block to have different line height to maintain the rhythm.
104
+ // $lines specifies how many multiples of the baseline rhythm each line of this
105
+ // font should use up. It does not have to be an integer, but it defaults to the
106
+ // smallest integer that is large enough to fit the font.
107
+ @mixin adjust-leading-to($lines, $font-size: $base-font-size) {
108
+ line-height: rhythm($lines, $font-size);
109
+ }
110
+
111
+ // Calculate rhythm units.
112
+ @function rhythm(
113
+ $lines: 1,
114
+ $font-size: $base-font-size,
115
+ $offset: 0
116
+ ) {
117
+ @if not($relative-font-sizing) and $font-size != $base-font-size {
118
+ @warn "$relative-font-sizing is false but a relative font size was passed to the rhythm function";
119
+ }
120
+ $rhythm: calc($font-unit * ($lines * $base-line-height - $offset) / $font-size);
121
+ // Round the pixels down to nearest integer.
122
+ @if unit($rhythm) == px {
123
+ $rhythm: floor($rhythm);
124
+ }
125
+ @return $rhythm;
126
+ }
127
+
128
+ // Calculate the minimum multiple of rhythm units needed to contain the font-size.
129
+ @function lines-for-font-size($font-size) {
130
+ $lines: if($round-to-nearest-half-line,
131
+ ceil(2 * $font-size / $base-line-height) / 2,
132
+ ceil($font-size / $base-line-height));
133
+ @if $lines * $base-line-height - $font-size < $min-line-padding * 2 {
134
+ $lines: $lines + if($round-to-nearest-half-line, 0.5, 1);
135
+ }
136
+ @return $lines;
137
+ }
138
+
139
+ // Apply leading whitespace. The $property can be margin or padding.
140
+ @mixin leader($lines: 1, $font-size: $base-font-size, $property: margin) {
141
+ #{$property}-top: rhythm($lines, $font-size);
142
+ }
143
+
144
+ // Apply leading whitespace as padding.
145
+ @mixin padding-leader($lines: 1, $font-size: $base-font-size) {
146
+ padding-top: rhythm($lines, $font-size);
147
+ }
148
+
149
+ // Apply leading whitespace as margin.
150
+ @mixin margin-leader($lines: 1, $font-size: $base-font-size) {
151
+ margin-top: rhythm($lines, $font-size);
152
+ }
153
+
154
+ // Apply trailing whitespace. The $property can be margin or padding.
155
+ @mixin trailer($lines: 1, $font-size: $base-font-size, $property: margin) {
156
+ #{$property}-bottom: rhythm($lines, $font-size);
157
+ }
158
+
159
+ // Apply trailing whitespace as padding.
160
+ @mixin padding-trailer($lines: 1, $font-size: $base-font-size) {
161
+ padding-bottom: rhythm($lines, $font-size);
162
+ }
163
+
164
+ // Apply trailing whitespace as margin.
165
+ @mixin margin-trailer($lines: 1, $font-size: $base-font-size) {
166
+ margin-bottom: rhythm($lines, $font-size);
167
+ }
168
+
169
+ // Shorthand mixin to apply whitespace for top and bottom margins and padding.
170
+ @mixin rhythm($leader: 0, $padding-leader: 0, $padding-trailer: 0, $trailer: 0, $font-size: $base-font-size) {
171
+ @include leader($leader, $font-size);
172
+ @include padding-leader($padding-leader, $font-size);
173
+ @include padding-trailer($padding-trailer, $font-size);
174
+ @include trailer($trailer, $font-size);
175
+ }
176
+
177
+ // Apply a border and whitespace to any side without destroying the vertical
178
+ // rhythm. The whitespace must be greater than the width of the border.
179
+ @mixin apply-side-rhythm-border($side, $width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
180
+ @if not($relative-font-sizing) and $font-size != $base-font-size {
181
+ @warn "$relative-font-sizing is false but a relative font size was passed to apply-side-rhythm-border";
182
+ }
183
+ border-#{$side}-style: $border-style;
184
+ border-#{$side}-width: calc($font-unit * $width / $font-size);
185
+ padding-#{$side}: rhythm($lines, $font-size, $offset: $width);
186
+ }
187
+
188
+ // Apply borders and whitespace equally to all sides.
189
+ @mixin rhythm-borders($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
190
+ @if not($relative-font-sizing) and $font-size != $base-font-size {
191
+ @warn "$relative-font-sizing is false but a relative font size was passed to rhythm-borders";
192
+ }
193
+ border: {
194
+ style: $border-style;
195
+ width: calc($font-unit * $width / $font-size);
196
+ };
197
+ padding: rhythm($lines, $font-size, $offset: $width);
198
+ }
199
+
200
+ // Apply a leading border.
201
+ @mixin leading-border($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
202
+ @include apply-side-rhythm-border(top, $width, $lines, $font-size, $border-style);
203
+ }
204
+
205
+ // Apply a trailing border.
206
+ @mixin trailing-border($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
207
+ @include apply-side-rhythm-border(bottom, $width, $lines, $font-size, $border-style);
208
+ }
209
+
210
+ // Apply both leading and trailing borders.
211
+ @mixin horizontal-borders($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
212
+ @include leading-border($width, $lines, $font-size, $border-style);
213
+ @include trailing-border($width, $lines, $font-size, $border-style);
214
+ }
215
+
216
+ // Alias for `horizontal-borders` mixin.
217
+ @mixin h-borders($width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
218
+ @include horizontal-borders($width, $lines, $font-size, $border-style);
219
+ }
220
+
221
+ // Shorthand mixin to apply whitespace for top and bottom margins.
222
+ @mixin rhythm-margins(
223
+ $leader: 1,
224
+ $trailer: $leader,
225
+ $font-size: $base-font-size
226
+ ) {
227
+ @include leader($leader, $font-size);
228
+ @include trailer($trailer, $font-size);
229
+ }
@@ -1,5 +1,5 @@
1
- // a link that only has an underline when you hover over it
2
- @mixin hover-link {
3
- text-decoration: none;
4
- &:hover {
5
- text-decoration: underline; } }
1
+ // a link that only has an underline when you hover over it
2
+ @mixin hover-link {
3
+ text-decoration: none;
4
+ &:hover {
5
+ text-decoration: underline; } }
@@ -1,28 +1,28 @@
1
- // Set all the colors for a link with one mixin call.
2
- // Order of arguments is:
3
- //
4
- // 1. normal
5
- // 2. hover
6
- // 3. active
7
- // 4. visited
8
- // 5. focus
9
- //
10
- // Those states not specified will inherit.
11
- // Mixin to an anchor link like so:
12
- // a
13
- // +link-colors(#00c, #0cc, #c0c, #ccc, #cc0)
14
-
15
- @mixin link-colors($normal, $hover: false, $active: false, $visited: false, $focus: false) {
16
- color: $normal;
17
- @if $visited {
18
- &:visited {
19
- color: $visited; } }
20
- @if $focus {
21
- &:focus {
22
- color: $focus; } }
23
- @if $hover {
24
- &:hover {
25
- color: $hover; } }
26
- @if $active {
27
- &:active {
28
- color: $active; } } }
1
+ // Set all the colors for a link with one mixin call.
2
+ // Order of arguments is:
3
+ //
4
+ // 1. normal
5
+ // 2. hover
6
+ // 3. active
7
+ // 4. visited
8
+ // 5. focus
9
+ //
10
+ // Those states not specified will inherit.
11
+ // Mixin to an anchor link like so:
12
+ // a
13
+ // +link-colors(#00c, #0cc, #c0c, #ccc, #cc0)
14
+
15
+ @mixin link-colors($normal, $hover: false, $active: false, $visited: false, $focus: false) {
16
+ color: $normal;
17
+ @if $visited {
18
+ &:visited {
19
+ color: $visited; } }
20
+ @if $focus {
21
+ &:focus {
22
+ color: $focus; } }
23
+ @if $hover {
24
+ &:hover {
25
+ color: $hover; } }
26
+ @if $active {
27
+ &:active {
28
+ color: $active; } } }
@@ -1,7 +1,7 @@
1
- // A link that looks and acts like the text it is contained within
2
- @mixin unstyled-link {
3
- color: inherit;
4
- text-decoration: inherit;
5
- cursor: inherit;
6
- &:active, &:focus {
7
- outline: none; } }
1
+ // A link that looks and acts like the text it is contained within
2
+ @mixin unstyled-link {
3
+ color: inherit;
4
+ text-decoration: inherit;
5
+ cursor: inherit;
6
+ &:active, &:focus {
7
+ outline: none; } }
@@ -1,34 +1,34 @@
1
- // Turn off the bullet for an element of a list
2
- @mixin no-bullet {
3
- list-style-image : none;
4
- list-style-type : none;
5
- margin-left : 0;
6
- }
7
-
8
- // turns off the bullets for an entire list
9
- @mixin no-bullets {
10
- list-style: none;
11
- li { @include no-bullet; }
12
- }
13
-
14
- // Make a list(ul/ol) have an image bullet.
15
- //
16
- // The mixin should be used like this for an icon that is 5x7:
17
- //
18
- // ul.pretty
19
- // +pretty-bullets("my-icon.png", 5px, 7px)
20
- //
21
- // Additionally, if the image dimensions are not provided,
22
- // The image dimensions will be extracted from the image itself.
23
- //
24
- // ul.pretty
25
- // +pretty-bullets("my-icon.png")
26
- //
27
- @mixin pretty-bullets($bullet-icon, $width: image-width($bullet-icon), $height: image-height($bullet-icon), $line-height: 18px, $padding: 14px) {
28
- margin-left: 0;
29
- li {
30
- padding-left: $padding;
31
- background: image-url($bullet-icon) no-repeat ($padding - $width) / 2 ($line-height - $height) / 2;
32
- list-style-type: none;
33
- }
34
- }
1
+ // Turn off the bullet for an element of a list
2
+ @mixin no-bullet {
3
+ list-style-image : none;
4
+ list-style-type : none;
5
+ margin-left : 0;
6
+ }
7
+
8
+ // turns off the bullets for an entire list
9
+ @mixin no-bullets {
10
+ list-style: none;
11
+ li { @include no-bullet; }
12
+ }
13
+
14
+ // Make a list(ul/ol) have an image bullet.
15
+ //
16
+ // The mixin should be used like this for an icon that is 5x7:
17
+ //
18
+ // ul.pretty
19
+ // +pretty-bullets("my-icon.png", 5px, 7px)
20
+ //
21
+ // Additionally, if the image dimensions are not provided,
22
+ // The image dimensions will be extracted from the image itself.
23
+ //
24
+ // ul.pretty
25
+ // +pretty-bullets("my-icon.png")
26
+ //
27
+ @mixin pretty-bullets($bullet-icon, $width: image-width($bullet-icon), $height: image-height($bullet-icon), $line-height: 18px, $padding: 14px) {
28
+ margin-left: 0;
29
+ li {
30
+ padding-left: $padding;
31
+ background: image-url($bullet-icon) no-repeat ($padding - $width) / 2 ($line-height - $height) / 2;
32
+ list-style-type: none;
33
+ }
34
+ }