mod-base 1.0.2-beta.3 → 1.0.3-beta.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-base",
3
- "version": "1.0.2-beta.3",
3
+ "version": "1.0.3-beta.1",
4
4
  "description": "Base Styles for S3 Sites",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -11,14 +11,14 @@
11
11
  }
12
12
 
13
13
  @mixin breakpoint-phone {
14
- @include media-max-width(767.9px) {
14
+ @include media-max-width(767.98px) {
15
15
  @content;
16
16
  }
17
17
  }
18
18
 
19
19
  // Mobile first breakpoint mixins
20
20
  @mixin breakpoint-sm {
21
- @include media-min-width(500px) {
21
+ @include media-min-width(576px) {
22
22
  @content;
23
23
  }
24
24
  }
@@ -41,7 +41,7 @@
41
41
  }
42
42
  }
43
43
 
44
- @mixin breakpoint-2xl {
44
+ @mixin breakpoint-xxl {
45
45
  @include media-min-width(1440px) {
46
46
  @content;
47
47
  }
@@ -14,5 +14,76 @@
14
14
  }
15
15
 
16
16
  /**
17
- * Show / hide an element based on screen size
17
+ * Show an element based on screen size;
18
+ * Hidden class should be added in comibnation with a visible class —
19
+ * Except for .visible-sm-down (this will be our "mobile only" class)
18
20
  */
21
+ .hidden,
22
+ .visible-sm-up
23
+ .visible-md-up,
24
+ .visible-lg-up,
25
+ .visible-xl-up,
26
+ .visible-xxl-up,
27
+ .visible-sm, /* Add with .hidden class to show for that breakpoint only */
28
+ .visible-md,
29
+ .visible-lg,
30
+ .visible-xl,
31
+ .visible-xxl {
32
+ display: none;
33
+ }
34
+
35
+ .visible-sm-down {
36
+ display: block;
37
+ }
38
+
39
+ @include breakpoing-sm {
40
+ .visible-sm-up,
41
+ .visible-sm {
42
+ display: block;
43
+ }
44
+ }
45
+
46
+ @include breakpoing-md {
47
+ .visible-md-up,
48
+ .visible-md {
49
+ display: block;
50
+ }
51
+
52
+ .visible-sm-down,
53
+ .visible-sm {
54
+ display: none;
55
+ }
56
+ }
57
+
58
+ @include breakpoing-lg {
59
+ .visible-lg-up,
60
+ .visible-lg {
61
+ display: block;
62
+ }
63
+
64
+ .visible-md {
65
+ display: none;
66
+ }
67
+ }
68
+
69
+ @include breakpoing-xl {
70
+ .visible-xl-up,
71
+ .visible-xl {
72
+ display: block;
73
+ }
74
+
75
+ .visible-lg {
76
+ display: none;
77
+ }
78
+ }
79
+
80
+ @include breakpoing-xxl {
81
+ .visible-xxl-up,
82
+ .visible-xxl {
83
+ display: block;
84
+ }
85
+
86
+ .visible-xl {
87
+ display: none;
88
+ }
89
+ }
@@ -150,3 +150,9 @@ table {
150
150
  border-collapse: collapse;
151
151
  border-spacing: 0;
152
152
  }
153
+
154
+ *,
155
+ :after,
156
+ :before {
157
+ box-sizing: border-box;
158
+ }