bitstyles 0.8.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.github/PULL_REQUEST_TEMPLATE.md +6 -10
  3. data/.nvmrc +1 -1
  4. data/.stylelintrc +1 -164
  5. data/.travis.yml +19 -0
  6. data/README.md +66 -33
  7. data/bitstyles.gemspec +1 -1
  8. data/lib/bitstyles/version.rb +1 -1
  9. data/package.json +21 -17
  10. data/scss/bitstyles.scss +53 -45
  11. data/scss/bitstyles/base/_all.scss +7 -0
  12. data/scss/bitstyles/base/_figure.scss +1 -1
  13. data/scss/bitstyles/base/_forms.scss +31 -26
  14. data/scss/bitstyles/base/_hr.scss +1 -1
  15. data/scss/bitstyles/base/_images.scss +1 -1
  16. data/scss/bitstyles/base/_link.scss +2 -14
  17. data/scss/bitstyles/base/_media.scss +2 -2
  18. data/scss/bitstyles/base/_typography.scss +37 -89
  19. data/scss/bitstyles/components/_expander.scss +8 -5
  20. data/scss/bitstyles/components/_modal.scss +41 -26
  21. data/scss/bitstyles/generic/_all.scss +2 -0
  22. data/scss/bitstyles/layout/_content.scss +7 -3
  23. data/scss/bitstyles/layout/_grid.scss +46 -23
  24. data/scss/bitstyles/layout/_topbar.scss +19 -4
  25. data/scss/bitstyles/layout/_width.scss +18 -11
  26. data/scss/bitstyles/objects/_absolute-center.scss +8 -2
  27. data/scss/bitstyles/objects/_absolute-cover.scss +11 -2
  28. data/scss/bitstyles/objects/_block.scss +5 -2
  29. data/scss/bitstyles/objects/_bordered-header.scss +8 -3
  30. data/scss/bitstyles/objects/_break-long-words.scss +6 -3
  31. data/scss/bitstyles/objects/_button--icon.scss +8 -4
  32. data/scss/bitstyles/objects/_button.scss +22 -13
  33. data/scss/bitstyles/objects/_clearfix.scss +7 -4
  34. data/scss/bitstyles/objects/_fixed-ratio.scss +24 -9
  35. data/scss/bitstyles/objects/_flex.scss +12 -8
  36. data/scss/bitstyles/objects/_hidden.scss +10 -7
  37. data/scss/bitstyles/objects/_icon.scss +19 -11
  38. data/scss/bitstyles/objects/_input.scss +16 -9
  39. data/scss/bitstyles/objects/_label.scss +2 -2
  40. data/scss/bitstyles/objects/_link.scss +18 -15
  41. data/scss/bitstyles/objects/_list-inline.scss +26 -0
  42. data/scss/bitstyles/objects/_list-reset.scss +5 -3
  43. data/scss/bitstyles/objects/_media.scss +9 -2
  44. data/scss/bitstyles/objects/_object-cover.scss +20 -0
  45. data/scss/bitstyles/objects/_overflow.scss +20 -0
  46. data/scss/bitstyles/objects/_truncate-with-ellipsis.scss +4 -3
  47. data/scss/bitstyles/objects/_typography.scss +8 -62
  48. data/scss/bitstyles/objects/_vertical-center.scss +5 -2
  49. data/scss/bitstyles/objects/_visuallyhidden.scss +10 -6
  50. data/scss/bitstyles/settings/_button.scss +1 -1
  51. data/scss/bitstyles/settings/_content.scss +2 -3
  52. data/scss/bitstyles/settings/_fixed-ratio.scss +3 -0
  53. data/scss/bitstyles/settings/_global.breakpoints.scss +5 -5
  54. data/scss/bitstyles/settings/_global.color-palette.scss +47 -0
  55. data/scss/bitstyles/settings/_global.layout.scss +7 -5
  56. data/scss/bitstyles/settings/_global.typography.scss +25 -17
  57. data/scss/bitstyles/settings/_grid.scss +1 -1
  58. data/scss/bitstyles/settings/_hidden.scss +1 -1
  59. data/scss/bitstyles/settings/_icon.scss +3 -3
  60. data/scss/bitstyles/settings/_input.scss +4 -4
  61. data/scss/bitstyles/settings/_link.scss +4 -0
  62. data/scss/bitstyles/settings/_modal.scss +2 -1
  63. data/scss/bitstyles/settings/_topbar.scss +4 -2
  64. data/scss/bitstyles/settings/_visuallyhidden.scss +1 -1
  65. data/scss/bitstyles/settings/_width.scss +1 -1
  66. data/scss/bitstyles/tools/_absolute-center.scss +8 -3
  67. data/scss/bitstyles/tools/_absolute-cover.scss +8 -2
  68. data/scss/bitstyles/tools/_all.scss +23 -0
  69. data/scss/bitstyles/tools/_block.scss +5 -2
  70. data/scss/bitstyles/tools/_break-long-words.scss +6 -2
  71. data/scss/bitstyles/tools/_clearfix.scss +7 -2
  72. data/scss/bitstyles/tools/_fixed-ratio.scss +41 -4
  73. data/scss/bitstyles/tools/_flex.scss +7 -3
  74. data/scss/bitstyles/tools/_font-face.scss +11 -2
  75. data/scss/bitstyles/tools/_hidden.scss +5 -2
  76. data/scss/bitstyles/tools/_link.scss +25 -0
  77. data/scss/bitstyles/tools/_list-reset.scss +7 -3
  78. data/scss/bitstyles/tools/_media-query.scss +14 -7
  79. data/scss/bitstyles/tools/_media.scss +10 -3
  80. data/scss/bitstyles/tools/_overflow.scss +19 -0
  81. data/scss/bitstyles/tools/_palette.scss +28 -0
  82. data/scss/bitstyles/tools/_spacing.scss +22 -0
  83. data/scss/bitstyles/tools/_truncate-with-ellipsis.scss +7 -3
  84. data/scss/bitstyles/tools/_typography-conversions.scss +20 -7
  85. data/scss/bitstyles/tools/_typography.scss +124 -5
  86. data/scss/bitstyles/tools/_vertical-center.scss +5 -2
  87. data/scss/bitstyles/tools/_visuallyhidden.scss +9 -6
  88. data/scss/bitstyles/tools/_width.scss +10 -1
  89. data/scss/bitstyles/tools/_zindex.scss +34 -14
  90. data/scss/bitstyles/trumps/_background-color.scss +8 -3
  91. data/scss/bitstyles/trumps/_color.scss +8 -3
  92. data/scss/bitstyles/trumps/_margin.scss +5 -5
  93. data/scss/bitstyles/trumps/_no-margin.scss +5 -5
  94. data/scss/bitstyles/trumps/_no-padding.scss +5 -5
  95. data/scss/bitstyles/trumps/_padding.scss +5 -5
  96. data/scss/bitstyles/trumps/_text-align.scss +3 -4
  97. data/scss/bitstyles/trumps/_text-style.scss +4 -2
  98. data/scss/bitstyles/trumps/_text-weight.scss +6 -3
  99. data/yarn.lock +6511 -0
  100. metadata +16 -14
  101. data/build/.gitignore +0 -4
  102. data/scripts/styleguide.sh +0 -16
  103. data/scss/bitstyles/objects/_expander.scss +0 -45
  104. data/scss/bitstyles/settings/_global.color-theme.scss +0 -11
@@ -2,16 +2,17 @@
2
2
  //
3
3
  // Truncate with ellipsis
4
4
  //
5
- // Truncates text with an ellipsis (…). Parent element needs a set or limited width.
5
+ // **When text content is wider than parent width, truncate text with an ellipsis (…).**
6
+ // The parent element needs a set or limited width.
6
7
  // Note the exact algorithm is defined per browser and is of varying quality
7
- // — you may loose a couple of characters just to display an ellipsis instead.
8
+ // — you may lose a couple of characters just to display an ellipsis instead.
8
9
  //
9
10
  // markup:
10
11
  // <div class="l-width--2-of-12 background-grey">
11
12
  // <p class="o-truncate-with-ellipsis">Truncated content goes here</p>
12
13
  // </div>
13
14
  //
14
- // Styleguide 1.15
15
+ // Styleguide 4.19
15
16
 
16
17
  .#{$bitstyles-namespace}o-truncate-with-ellipsis {
17
18
  @include truncate-with-ellipsis;
@@ -1,9 +1,11 @@
1
1
  // Typography
2
2
  //
3
- // These typographic classes mimic the html elements `<h1>`..`<h6>` — use the semantically correct
4
- // element in markup, then apply the correct class to achieve the correct visual appearance.
5
- // Note the `.o-h0` has been added as an additional layer above `.o-h1`, use to acheive an extra-large
6
- // 'hero' (using Bootstrap nomenclature) text.
3
+ // **Typographic classes that mimic the html elements `<h1>`..`<h6>`**
4
+ //
5
+ // This means you can use the semantically correct element in your markup then apply
6
+ // the correct class to achieve the correct visual appearance.
7
+ // Note the `.o-h0` has been added as an additional layer above `.o-h1`, use it
8
+ // to acheive extra-large ‘hero’ text.
7
9
  //
8
10
  // Markup:
9
11
  // <h1 class="o-h0">Header 0</h1>
@@ -21,7 +23,7 @@
21
23
  // <h6 class="o-h1">Header 1</h6>
22
24
  // <h6 class="o-h0">Header 0</h6>
23
25
  //
24
- // Styleguide 1.20
26
+ // Styleguide 4.20
25
27
 
26
28
  .#{$bitstyles-namespace}o-h0,
27
29
  .#{$bitstyles-namespace}o-h1,
@@ -33,60 +35,4 @@
33
35
  @include generic-heading;
34
36
  }
35
37
 
36
- .#{$bitstyles-namespace}o-h0 {
37
- @include font-size($bitstyles-font-size-h0-small);
38
- }
39
-
40
- .#{$bitstyles-namespace}o-h1 {
41
- @include font-size($bitstyles-font-size-h1-small);
42
- }
43
-
44
- .#{$bitstyles-namespace}o-h2 {
45
- @include font-size($bitstyles-font-size-h2-small);
46
- }
47
-
48
- .#{$bitstyles-namespace}o-h3 {
49
- @include font-size($bitstyles-font-size-h3-small);
50
- }
51
-
52
- .#{$bitstyles-namespace}o-h4 {
53
- @include font-size($bitstyles-font-size-h4-small);
54
- }
55
-
56
- .#{$bitstyles-namespace}o-h5 {
57
- @include font-size($bitstyles-font-size-h5-small);
58
- }
59
-
60
- .#{$bitstyles-namespace}o-h6 {
61
- @include font-size($bitstyles-font-size-h6-small);
62
- }
63
-
64
- @include media-query($bitstyles-typography-breakpoint) {
65
- .#{$bitstyles-namespace}o-h0 {
66
- @include font-size($bitstyles-font-size-h0, $bitstyles-font-size-base);
67
- }
68
-
69
- .#{$bitstyles-namespace}o-h1 {
70
- @include font-size($bitstyles-font-size-h1, $bitstyles-font-size-base);
71
- }
72
-
73
- .#{$bitstyles-namespace}o-h2 {
74
- @include font-size($bitstyles-font-size-h2, $bitstyles-font-size-base);
75
- }
76
-
77
- .#{$bitstyles-namespace}o-h3 {
78
- @include font-size($bitstyles-font-size-h3, $bitstyles-font-size-base);
79
- }
80
-
81
- .#{$bitstyles-namespace}o-h4 {
82
- @include font-size($bitstyles-font-size-h4, $bitstyles-font-size-base);
83
- }
84
-
85
- .#{$bitstyles-namespace}o-h5 {
86
- @include font-size($bitstyles-font-size-h5, $bitstyles-font-size-base);
87
- }
88
-
89
- .#{$bitstyles-namespace}o-h6 {
90
- @include font-size($bitstyles-font-size-h6, $bitstyles-font-size-base);
91
- }
92
- }
38
+ @include generate-font-sizes('.o-', (h0, h1, h2, h3, h4, h5, h6));
@@ -2,14 +2,17 @@
2
2
  //
3
3
  // Vertical Centre
4
4
  //
5
- // Centres an element vertically (not horizontally). Uses absolute positioning, therefore outside the document flow.
5
+ // **Centres an element vertically (not horizontally)**
6
+ //
7
+ // Centres the element vertically, relative to its closest positioned parent.
8
+ // Uses absolute positioning, therefore the element will be outside the document flow.
6
9
  //
7
10
  // markup:
8
11
  // <div class="background-grey min-height-block">
9
12
  // <p class="o-vertical-center">Vertically-centred content here</p>
10
13
  // </div>
11
14
  //
12
- // Styleguide 1.12
15
+ // Styleguide 4.21
13
16
 
14
17
  .#{$bitstyles-namespace}o-vertical-center {
15
18
  @include vertical-center;
@@ -2,10 +2,14 @@
2
2
  //
3
3
  // Visuallyhidden
4
4
  //
5
- // Hide an element visually while leaving it readable & accessible by google & screenreaders.
6
- // Use to give more complete & understandable labels for UI e.g. display only 'next' on a button,
7
- // but use `.visuallyhidden` to hide a span containing a more descriptive label.
8
- // Available at every breakpoint set in `$visuallyhidden-breakpoints`.
5
+ // **Hide an element visually while leaving it readable & accessible by search engines & screenreaders**
6
+ //
7
+ // Use this to give more complete & understandable labels for UI and to help explain
8
+ // connections between content that may otherwise only be visually apparent
9
+ // e.g. visually display only 'next' on a button, but use `.o-visuallyhidden` to hide a span
10
+ // containing a more descriptive or specific label (see the markup below).
11
+ //
12
+ // Available at every breakpoint set in `$bitstyles-visuallyhidden-breakpoints`.
9
13
  //
10
14
  // markup:
11
15
  // <button class="o-button">
@@ -13,7 +17,7 @@
13
17
  // <span class="o-visuallyhidden">articles</span>
14
18
  // </button>
15
19
  //
16
- // Styleguide 1.14
20
+ // Styleguide 4.22
17
21
 
18
22
  @import '../settings/visuallyhidden';
19
23
 
@@ -21,7 +25,7 @@
21
25
  @include visuallyhidden;
22
26
  }
23
27
 
24
- @each $breakpoint in $visuallyhidden-breakpoints {
28
+ @each $breakpoint in $bitstyles-visuallyhidden-breakpoints {
25
29
  @include media-query($breakpoint) {
26
30
  .#{$bitstyles-namespace}o-visuallyhidden\@#{$breakpoint} {
27
31
  @include visuallyhidden;
@@ -15,4 +15,4 @@ $bitstyles-button-border-radius: 0.25rem !default;
15
15
 
16
16
  $bitstyles-button-transition: color $bitstyles-transition-duration $bitstyles-transition-easing, background-color $bitstyles-transition-duration $bitstyles-transition-easing !default;
17
17
 
18
- $bitstyles-button-icon-spacing: $bitstyles-spacing-horizontal / 2 !default;
18
+ $bitstyles-button-icon-spacing: spacing('small') !default;
@@ -1,5 +1,4 @@
1
1
  $bitstyles-content-max-width: 45rem !default;
2
- $bitstyles-content-horizontal-padding: $bitstyles-spacing !default;
3
-
4
- $bitstyles-content-horizontal-padding-large: $bitstyles-spacing * 2 !default;
2
+ $bitstyles-content-horizontal-padding: spacing('base') !default;
3
+ $bitstyles-content-horizontal-padding-large: spacing('large') !default;
5
4
  $bitstyles-content-large-breakpoint: 'large' !default; // The breakpoint at which we implement the above horizontal-padding value.
@@ -0,0 +1,3 @@
1
+ $fixed-ratio-default-ratio: (
2
+ 'width': 16,
3
+ 'height': 9) !default;
@@ -3,10 +3,10 @@ $bitstyles-breakpoint-small-medium-boundary: 45em !default;
3
3
  $bitstyles-breakpoint-medium-large-boundary: 64em !default;
4
4
 
5
5
  $bitstyles-breakpoints: (
6
- 'small': 'screen and (max-width: #{$bitstyles-breakpoint-small-medium-boundary - $bitstyles-breakpoint-boundary-width})',
7
- 'medium': 'screen and (min-width: #{$bitstyles-breakpoint-small-medium-boundary}) and (max-width: #{$bitstyles-breakpoint-medium-large-boundary - $bitstyles-breakpoint-boundary-width})',
8
- 'medium-and-up': 'screen and (min-width: #{$bitstyles-breakpoint-small-medium-boundary})',
9
- 'small-and-medium': 'screen and (max-width: #{$bitstyles-breakpoint-medium-large-boundary - $bitstyles-breakpoint-boundary-width})',
6
+ 'small-only': 'screen and (max-width: #{$bitstyles-breakpoint-small-medium-boundary - $bitstyles-breakpoint-boundary-width})',
7
+ 'medium': 'screen and (min-width: #{$bitstyles-breakpoint-small-medium-boundary})',
10
8
  'large': 'screen and (min-width: #{$bitstyles-breakpoint-medium-large-boundary})',
11
- 'hidpi': '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx)'
9
+ 'hidpi': '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx)',
10
+ 'landscape': 'all and (orientation:landscape)',
11
+ 'portrait': 'all and (orientation:portrait)'
12
12
  ) !default;
@@ -0,0 +1,47 @@
1
+ $bitstyles-color-primary: $bitstyles-color-gray-70 !default;
2
+ $bitstyles-color-secondary: $bitstyles-color-gray-20 !default;
3
+ $bitstyles-color-text: $bitstyles-color-gray-80 !default;
4
+ $bitstyles-color-background: $bitstyles-color-white !default;
5
+ $bitstyles-color-positive: #0f0 !default;
6
+ $bitstyles-color-negative: #f00 !default;
7
+ $bitstyles-color-tone-factor: 8% !default;
8
+
9
+ // Colour palette. Each colour has variants (each needs at least the `base`), defined
10
+ // in its child map. Naming: `base`, `light`, `lighter`, `dark`, `darker`
11
+ // Use Sass map functions to merge in extra colour maps in your project, or re-define
12
+ // the whole map.
13
+ $bitstyles-palette: (
14
+ 'primary': (
15
+ 'base': $bitstyles-color-primary,
16
+ 'light': lighten($bitstyles-color-primary, $bitstyles-color-tone-factor),
17
+ 'dark': darken($bitstyles-color-primary, $bitstyles-color-tone-factor)
18
+ ),
19
+ 'secondary': (
20
+ 'base': $bitstyles-color-secondary,
21
+ 'light': lighten($bitstyles-color-secondary, $bitstyles-color-tone-factor),
22
+ 'dark': darken($bitstyles-color-secondary, $bitstyles-color-tone-factor)
23
+ ),
24
+ 'text': (
25
+ 'base': $bitstyles-color-text,
26
+ 'light': lighten($bitstyles-color-text, $bitstyles-color-tone-factor),
27
+ 'dark': darken($bitstyles-color-text, $bitstyles-color-tone-factor)
28
+ ),
29
+ 'background': (
30
+ 'base': $bitstyles-color-background,
31
+ 'light': lighten($bitstyles-color-background, $bitstyles-color-tone-factor),
32
+ 'dark': darken($bitstyles-color-background, $bitstyles-color-tone-factor)
33
+ ),
34
+ 'positive': (
35
+ 'base': $bitstyles-color-positive,
36
+ 'light': lighten($bitstyles-color-positive, $bitstyles-color-tone-factor),
37
+ 'dark': darken($bitstyles-color-positive, $bitstyles-color-tone-factor)
38
+ ),
39
+ 'error': (
40
+ 'base': $bitstyles-color-negative,
41
+ 'light': lighten($bitstyles-color-negative, $bitstyles-color-tone-factor),
42
+ 'dark': darken($bitstyles-color-negative, $bitstyles-color-tone-factor)
43
+ )
44
+ ) !default;
45
+
46
+ $foreground-colors: ('primary', 'secondary', 'error') !default;
47
+ $background-colors: ('background', 'secondary') !default;
@@ -1,7 +1,9 @@
1
- $bitstyles-spacing: 1rem !default;
2
- $bitstyles-spacing-vertical: $bitstyles-spacing !default;
3
- $bitstyles-spacing-horizontal: $bitstyles-spacing !default;
4
-
5
1
  $bitstyles-global-z: topbar !default;
6
-
7
2
  $bitstyles-border-radius-round: 9999rem !default;
3
+
4
+ $bitstyles-spacing: 1rem !default;
5
+ $bitstyles-spacing-sizes: (
6
+ 'base': $bitstyles-spacing,
7
+ 'small': $bitstyles-spacing / 2,
8
+ 'large': $bitstyles-spacing * 2
9
+ ) !default;
@@ -7,22 +7,30 @@ $bitstyles-font-weight-light: 300 !default;
7
7
  $bitstyles-font-weight-normal: 400 !default;
8
8
  $bitstyles-font-weight-bold: 700 !default;
9
9
 
10
- $bitstyles-typography-breakpoint: medium-and-up !default;
11
-
12
10
  $bitstyles-font-size-base-small: 16px !default;
13
- $bitstyles-font-size-h0-small: 32px !default;
14
- $bitstyles-font-size-h1-small: 24px !default;
15
- $bitstyles-font-size-h2-small: 20px !default;
16
- $bitstyles-font-size-h3-small: 18px !default;
17
- $bitstyles-font-size-h4-small: $bitstyles-font-size-base-small !default;
18
- $bitstyles-font-size-h5-small: $bitstyles-font-size-base-small !default;
19
- $bitstyles-font-size-h6-small: $bitstyles-font-size-base-small !default;
20
-
21
11
  $bitstyles-font-size-base: 18px !default;
22
- $bitstyles-font-size-h0: 86px !default;
23
- $bitstyles-font-size-h1: 40px !default;
24
- $bitstyles-font-size-h2: 28px !default;
25
- $bitstyles-font-size-h3: 20px !default;
26
- $bitstyles-font-size-h4: $bitstyles-font-size-base !default;
27
- $bitstyles-font-size-h5: $bitstyles-font-size-base !default;
28
- $bitstyles-font-size-h6: $bitstyles-font-size-base !default;
12
+
13
+ $bitstyles-line-height-base: 1.5 !default;
14
+
15
+ $bitstyles-font-sizes: (
16
+ 'base': (
17
+ 'html': $bitstyles-font-size-base-small,
18
+ 'h0': 32px,
19
+ 'h1': 24px,
20
+ 'h2': 20px,
21
+ 'h3': 18px,
22
+ 'h4': $bitstyles-font-size-base-small,
23
+ 'h5': $bitstyles-font-size-base-small,
24
+ 'h6': $bitstyles-font-size-base-small
25
+ ),
26
+ 'medium': (
27
+ 'html': $bitstyles-font-size-base,
28
+ 'h0': 86px,
29
+ 'h1': 40px,
30
+ 'h2': 28px,
31
+ 'h3': 20px,
32
+ 'h4': $bitstyles-font-size-base,
33
+ 'h5': $bitstyles-font-size-base,
34
+ 'h6': $bitstyles-font-size-base
35
+ )
36
+ ) !default;
@@ -1 +1 @@
1
- $bitstyles-grid-gutter: $bitstyles-spacing-horizontal !default;
1
+ $bitstyles-grid-gutter: $bitstyles-spacing !default;
@@ -1 +1 @@
1
- $hidden-breakpoints: (small, large) !default;
1
+ $bitstyles-hidden-breakpoints: (small-only, large) !default;
@@ -1,5 +1,5 @@
1
1
  $bitstyles-icon-sizes: (
2
- 'small' 1rem,
3
- 'medium' 2rem,
4
- 'large' 3rem
2
+ 'small': 1rem,
3
+ 'medium': 2rem,
4
+ 'large': 3rem
5
5
  ) !default;
@@ -1,5 +1,5 @@
1
- $bitstyles-input-color: map-get($bitstyles-colors-theme, 'text') !default;
2
- $bitstyles-input-padding: $bitstyles-spacing / 2 !default;
1
+ $bitstyles-input-color: palette('text') !default;
2
+ $bitstyles-input-padding: spacing('small') !default;
3
3
  $bitstyles-input-border: 1px solid $bitstyles-color-gray-30 !default;
4
4
  $bitstyles-input-border-radius: 5px !default;
5
5
  $bitstyles-input-border-active: 1px solid $bitstyles-color-gray-50 !default;
@@ -7,6 +7,6 @@ $bitstyles-input-background: $bitstyles-color-white !default;
7
7
  $bitstyles-input-placeholder-color: $bitstyles-color-gray-50 !default;
8
8
 
9
9
  $bitstyles-input-background-color-disabled: $bitstyles-color-gray-10 !default;
10
- $bitstyles-input-color-disabled: map-get($bitstyles-colors-theme, 'text') !default;
10
+ $bitstyles-input-color-disabled: palette('text') !default;
11
11
 
12
- $bitstyles-input-checkbox-size: 1rem;
12
+ $bitstyles-input-checkbox-size: spacing('base');
@@ -1,4 +1,8 @@
1
+ $bitstyles-background-color-link: none !default;
1
2
  $bitstyles-color-link: $bitstyles-color-gray-50 !default;
2
3
  $bitstyles-color-link-visited: $bitstyles-color-gray-70 !default;
3
4
  $bitstyles-color-link-hover: $bitstyles-color-gray-20 !default;
4
5
  $bitstyles-link-transition: color $bitstyles-transition-duration $bitstyles-transition-easing !default;
6
+ $bitstyles-text-decoration-link: underline !default;
7
+ $bitstyles-text-decoration-link-hover: underline !default;
8
+ $bitstyles-text-decoration-skip-link: ink !default;
@@ -1,3 +1,4 @@
1
+ $bitstyles-modal-padding: spacing('base') !default;
1
2
  $bitstyles-modal-background-color: #d9d9d9 !default;
2
3
  $bitstyles-modal-overlay-color: rgba($bitstyles-color-black, 0.7) !default;
3
4
  $bitstyles-modal-transition-easing: ease-in-out !default;
@@ -6,4 +7,4 @@ $bitstyles-modal-transition-duration-smallscreen: 0.25s !default;
6
7
  $bitstyles-modal-transition-delay: 0.05s !default;
7
8
  $bitstyles-modal-will-change: opacity, transform, visibility !default;
8
9
  $bitstyles-modal-border-radius: 0 !default;
9
- $bitstyles-modal-breakpoint: medium-and-up !default;
10
+ $bitstyles-modal-breakpoint: medium !default;
@@ -1,2 +1,4 @@
1
- $bitstyles-topbar-vertical-padding: $bitstyles-spacing !default;
2
- $bitstyles-topbar-horizontal-padding: $bitstyles-spacing * 2 !default;
1
+ $bitstyles-topbar-vertical-padding: $bitstyles-spacing / 2 !default;
2
+ $bitstyles-topbar-horizontal-padding: $bitstyles-spacing !default;
3
+ $bitstyles-topbar-color: inherit !default;
4
+ $bitstyles-topbar-background-color: $bitstyles-color-white !default;
@@ -1 +1 @@
1
- $visuallyhidden-breakpoints: () !default;
1
+ $bitstyles-visuallyhidden-breakpoints: () !default;
@@ -8,5 +8,5 @@ $bitstyles-widths: (12) !default;
8
8
  // breakpoint.
9
9
  // If this is empty, no responsive breakpoints will be generated.
10
10
  $bitstyles-widths-breakpoints: (
11
- 'medium-and-up'
11
+ 'medium'
12
12
  ) !default;
@@ -1,9 +1,14 @@
1
1
  // Absolute Center
2
2
  //
3
- // Vertically & horizontally centred element.
4
- // Absolutely positioned, so centred relative to nearest relatively-positioned parent.
3
+ // **Centres an element vertically & horizontally**, relative to its closest non-statically
4
+ // positioned parent element.
5
5
  //
6
- // Styleguide 2.1
6
+ // This mixin makes use of `position: absolute`
7
+ // so the element is no longer in the document flow and has no width or height as
8
+ // far as the parent element is concerned — the parent element must instead provide
9
+ // the dimensions for this to align itself to.
10
+ //
11
+ // Styleguide 1.1
7
12
 
8
13
  @mixin absolute-center {
9
14
  position: absolute;
@@ -1,8 +1,14 @@
1
1
  // Absolute Cover
2
2
  //
3
- // An element that covers its nearest relatively-positioned parent from edge to edge.
3
+ // **An element that covers its parent element from edge to edge** — vertically and
4
+ // horizontally — **regardless of how it may stretch**.
4
5
  //
5
- // Styleguide 2.2
6
+ // Not recommended for images, media etc. (elements width inherent dimensions) due
7
+ // to that. This is most commonly used for container elements.
8
+ //
9
+ // @param {Number} $distance CSS dimension with unit. Distance from the edges of the closest parent element with non-static positioning.
10
+ //
11
+ // Styleguide 1.2
6
12
 
7
13
  @mixin absolute-cover($distance: 0) {
8
14
  position: absolute;
@@ -0,0 +1,23 @@
1
+ @import 'zindex';
2
+ @import 'absolute-cover';
3
+ @import 'fixed-ratio';
4
+ @import 'media-query';
5
+ @import 'absolute-center';
6
+ @import 'vertical-center';
7
+ @import 'break-long-words';
8
+ @import 'truncate-with-ellipsis';
9
+ @import 'clearfix';
10
+ @import 'hidden';
11
+ @import 'visuallyhidden';
12
+ @import 'list-reset';
13
+ @import 'font-face';
14
+ @import 'width';
15
+ @import 'typography';
16
+ @import 'typography-conversions';
17
+ @import 'block';
18
+ @import 'flex';
19
+ @import 'media';
20
+ @import 'palette';
21
+ @import 'overflow';
22
+ @import 'spacing';
23
+ @import 'link';