Sha256: 77c4de693230d92b8fb5653f57ca8eafd79b14a3d415566d446e931e9f7a24a3

Contents?: true

Size: 1.73 KB

Versions: 43

Compression:

Stored size: 1.73 KB

Contents

@include govuk-exports("govuk/component/panel") {
  .govuk-panel {
    @include govuk-font($size: 19);

    box-sizing: border-box;

    margin-bottom: govuk-spacing(3);
    padding: govuk-spacing(7) - $govuk-border-width;

    border: $govuk-border-width solid transparent;

    text-align: center;

    @include govuk-media-query($until: tablet) {
      padding: govuk-spacing(3) - $govuk-border-width;

      // This is an if-all-else-fails attempt to stop long words from overflowing the container
      // on very narrow viewports by forcing them to break and wrap instead. This
      // overflowing is more likely to happen when user increases text size on a mobile eg. using
      // iOS Safari text resize controls.
      //
      // The overflowing is a particular problem with the panel component since it uses white
      // text: when the text overflows the container, it is invisible on the white (page)
      // background. When the text in our other components overflow, the user might have to scroll
      // horizontally to view it but the the text remains legible.
      overflow-wrap: break-word;
      word-wrap: break-word; // Support IE (autoprefixer doesn't add this as it's not a prefix)
    }
  }

  .govuk-panel--confirmation {
    color: govuk-colour("white");
    background: govuk-colour("green", $legacy: "turquoise");

    @include govuk-media-query($media-type: print) {
      border-color: currentColor;
      color: $govuk-print-text-colour;
      background: none;
    }
  }

  .govuk-panel__title {
    margin-top: 0;
    margin-bottom: govuk-spacing(6);

    @include govuk-font($size: 48, $weight: bold);
  }

  .govuk-panel__title:last-child {
    margin-bottom: 0;
  }

  .govuk-panel__body {
    @include govuk-font($size: 36);
  }
}

Version data entries

43 entries across 43 versions & 4 rubygems

Version Path
defra_ruby_template-3.15.1 node_modules/govuk-frontend/govuk/components/panel/_index.scss
defra_ruby_template-3.15.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
dxw_govuk_frontend_rails-4.0.0 vendor/assets/stylesheets/components/panel/_index.scss
govuk_publishing_components-29.9.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.8.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_tech_docs-3.2.1 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.7.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.6.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.5.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.4.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.3.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.2.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.1.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.0.1 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-29.0.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-28.9.2 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_tech_docs-3.2.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-28.9.1 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-28.9.0 node_modules/govuk-frontend/govuk/components/panel/_index.scss
govuk_publishing_components-28.8.1 node_modules/govuk-frontend/govuk/components/panel/_index.scss