@carbon/styles 0.3.0-rc.0 → 0.3.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/styles",
3
3
  "description": "Styles for the Carbon Design System",
4
- "version": "0.3.0-rc.0",
4
+ "version": "0.3.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -20,18 +20,18 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@carbon/colors": "^10.31.0-rc.0",
23
+ "@carbon/colors": "^10.31.0",
24
24
  "@carbon/feature-flags": "^0.6.0",
25
- "@carbon/grid": "^10.34.0-rc.0",
26
- "@carbon/layout": "^10.30.0-rc.0",
27
- "@carbon/motion": "^10.23.0-rc.0",
28
- "@carbon/themes": "^10.41.0-rc.0",
29
- "@carbon/type": "^10.34.0-rc.0",
25
+ "@carbon/grid": "^10.34.0",
26
+ "@carbon/layout": "^10.30.0",
27
+ "@carbon/motion": "^10.23.0",
28
+ "@carbon/themes": "^10.41.0",
29
+ "@carbon/type": "^10.34.0",
30
30
  "@ibm/plex": "6.0.0-next.6"
31
31
  },
32
32
  "devDependencies": {
33
- "@carbon/test-utils": "^10.18.0-rc.0",
33
+ "@carbon/test-utils": "^10.18.0",
34
34
  "css": "^3.0.0"
35
35
  },
36
- "gitHead": "2eac7d860eb728c8f0a3d3fd1fb0823f7a9623bb"
36
+ "gitHead": "1b4811e1ef0be1d058e63a90242d9d48f0bff445"
37
37
  }
@@ -41,6 +41,7 @@
41
41
  @use 'radio-button';
42
42
  @use 'search';
43
43
  @use 'select';
44
+ @use 'skeleton-styles';
44
45
  @use 'slider';
45
46
  @use 'structured-list';
46
47
  @use 'tabs';
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright IBM Corp. 2018, 2018
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @forward 'skeleton-styles';
9
+ @use 'skeleton-styles';
10
+
11
+ @include skeleton-styles.skeleton-styles;
@@ -0,0 +1,47 @@
1
+ //
2
+ // Copyright IBM Corp. 2016, 2018
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use '../../config' as *;
9
+ @use '../../utilities/skeleton' as *;
10
+ @use '../../utilities/convert' as *;
11
+ @use '../../spacing' as *;
12
+
13
+ /// Skeleton styles
14
+ /// @access public
15
+ /// @group skeleton
16
+ @mixin skeleton-styles {
17
+ //skeleton icon
18
+ .#{$prefix}--icon--skeleton {
19
+ @include skeleton;
20
+
21
+ display: inline-block;
22
+ width: rem(16px);
23
+ height: rem(16px);
24
+ }
25
+
26
+ //skeleton placeholder
27
+ .#{$prefix}--skeleton__placeholder {
28
+ @include skeleton;
29
+
30
+ width: rem(100px);
31
+
32
+ height: rem(100px);
33
+ }
34
+
35
+ //skeleton text
36
+ .#{$prefix}--skeleton__text {
37
+ @include skeleton;
38
+
39
+ width: 100%;
40
+ height: 1rem;
41
+ margin-bottom: $spacing-03;
42
+ }
43
+
44
+ .#{$prefix}--skeleton__heading {
45
+ height: 1.5rem;
46
+ }
47
+ }