Sha256: 08587368226a37eaef408fd696b741691f305c8f28abfeffe4c7aa8af05c7721

Contents?: true

Size: 1.17 KB

Versions: 13

Compression:

Stored size: 1.17 KB

Contents

@import "govuk_publishing_components/individual_component_support";

.gem-c-chart {
  position: relative;

  // slight hack to hide the table automatically added by the charts JS
  // not needed as we already output the table manually in the component
  svg + div:has(table) {
    display: none;
  }

  .google-visualization-tooltip {
    background-color: govuk-colour("black");
    box-shadow: none;
    border: 0;

    span {
      color: govuk-colour("white");
      @include govuk-font($size: 16, $weight: bold);
    }
  }
}

.gem-c-chart__table-wrapper {
  overflow: auto;
}

.gem-c-chart__table {
  margin-top: govuk-spacing(3);

  .govuk-table {
    margin: 0;
  }

  .govuk-table .govuk-table__header {
    text-align: center;
  }

  .govuk-table .govuk-table__cell {
    text-align: center;
  }
}

.gem-c-chart--padding {
  .gem-c-chart__header,
  .gem-c-chart__footer {
    padding: 0 govuk-spacing(4);
  }
}

.gem-c-chart .gem-c-chart__a11y-note-link {
  display: none;
  margin-bottom: govuk-spacing(2);
}

.js-enabled {
  .gem-c-chart .gem-c-chart__a11y-note-link {
    display: inline;
  }

  .gem-c-chart .gem-c-chart__a11y-note-link:focus-within {
    display: inline-block;
  }
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
govuk_publishing_components-45.8.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.7.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.6.1 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.6.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.5.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.4.1 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.4.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.3.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.2.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.1.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-45.0.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-44.11.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-44.10.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss