gatsby-theme-carbon 3.1.14 → 3.1.16

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": "gatsby-theme-carbon",
3
- "version": "3.1.14",
3
+ "version": "3.1.16",
4
4
  "main": "index.js",
5
5
  "author": "vpicone <vp@vincepic.one> (@vpicone)",
6
6
  "repository": {
@@ -63,7 +63,6 @@
63
63
 
64
64
  // At the moment, we force 16:9 for medium posts, this
65
65
  // is how we would force 16:9 for all article cards
66
- //
67
66
  // .cds--article-card__img {
68
67
  // aspect-ratio: 16 / 9;
69
68
  // }
@@ -1,11 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import cx from 'classnames';
4
- import {
5
- FlexGrid,
6
- Row as CarbonRow,
7
- Column as CarbonColumn,
8
- } from '@carbon/react';
4
+ import { FlexGrid, Column as CarbonColumn } from '@carbon/react';
9
5
  import { column } from './Grid.module.scss';
10
6
 
11
7
  export const Grid = ({ children, className, ...rest }) => (
@@ -8,7 +8,6 @@
8
8
  width: calc(100% + 4px);
9
9
  left: -2px;
10
10
  }
11
- //
12
11
 
13
12
  // Creates the blue line under the active accordion menu item
14
13
  .currentPageAccordion::after {
@@ -52,5 +51,3 @@
52
51
  background-color: $gray-80;
53
52
  color: $white-0;
54
53
  }
55
-
56
- //
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import cx from 'classnames';
4
- import { InlineNotification as CarbonInlineNotification } from '@carbon/react';
5
4
  import {
6
5
  ErrorFilled,
7
6
  CheckmarkFilled,
@@ -64,8 +64,9 @@ nav.side-nav--dark :global(svg) {
64
64
 
65
65
  // Background for selected top level accordion when *not* hovering
66
66
  .side-nav--dark
67
- :global(.cds--side-nav__item--active
68
- .cds--side-nav__submenu[aria-expanded='false']) {
67
+ :global(
68
+ .cds--side-nav__item--active .cds--side-nav__submenu[aria-expanded='false']
69
+ ) {
69
70
  background: $gray-80;
70
71
  }
71
72
 
@@ -78,8 +79,9 @@ nav.side-nav--dark :global(svg) {
78
79
 
79
80
  // Background color for nested accordion items
80
81
  .side-nav--dark.side-nav--dark
81
- :global(.cds--side-nav__menu
82
- .cds--side-nav__link.cds--side-nav__link--current) {
82
+ :global(
83
+ .cds--side-nav__menu .cds--side-nav__link.cds--side-nav__link--current
84
+ ) {
83
85
  background: $gray-80;
84
86
  }
85
87
 
@@ -195,8 +195,9 @@ ul :global(.cds--list--unordered) {
195
195
  text-indent: 0;
196
196
  }
197
197
 
198
- :global(.cds--list--ordered:not(.cds--list--nested)
199
- > .cds--list__item::before) {
198
+ :global(
199
+ .cds--list--ordered:not(.cds--list--nested) > .cds--list__item::before
200
+ ) {
200
201
  display: none;
201
202
  }
202
203
 
@@ -128,7 +128,9 @@
128
128
  .cds--side-nav__item:not(.cds--side-nav__item--active):hover
129
129
  > .cds--side-nav__submenu,
130
130
  .cds--side-nav__menu
131
- a.cds--side-nav__link:not(.cds--side-nav__link--current):not([aria-current='page']):hover,
131
+ a.cds--side-nav__link:not(.cds--side-nav__link--current):not(
132
+ [aria-current='page']
133
+ ):hover,
132
134
  .cds--side-nav__item:not(.cds--side-nav__item--active):hover
133
135
  > .cds--side-nav__link {
134
136
  background-color: #353535;
@@ -148,7 +150,9 @@
148
150
  > .cds--side-nav__submenu,
149
151
  .cds--side-nav--website--light
150
152
  .cds--side-nav__menu
151
- a.cds--side-nav__link:not(.cds--side-nav__link--current):not([aria-current='page']):hover,
153
+ a.cds--side-nav__link:not(.cds--side-nav__link--current):not(
154
+ [aria-current='page']
155
+ ):hover,
152
156
  .cds--side-nav--website--light
153
157
  .cds--side-nav__item:not(.cds--side-nav__item--active):hover
154
158
  > .cds--side-nav__link {
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
2
  import Layout from '../components/Layout';
3
- import { HomepageBanner, HomepageCallout } from '../components/Homepage';
4
- import Carbon from '../images/carbon.jpg';
5
3
  import Main from '../components/Main';
6
4
  import useMetadata from '../util/hooks/useMetadata';
7
5
  import Utils from '../components/Utils';