Sha256: 6418994e7745f74ef3dcc4952b72d2b587b446f7b1b4191663cff5b873fa5fae

Contents?: true

Size: 1.18 KB

Versions: 26

Compression:

Stored size: 1.18 KB

Contents

/* Subhead */

.Subhead {
  display: flex;
  padding-bottom: var(--stack-padding-condensed);
  margin-bottom: var(--stack-gap-normal);
  border-bottom: var(--borderWidth-thin) solid var(--borderColor-muted);
  flex-flow: row wrap;
  justify-content: flex-end; /* Keep actions right aligned. */
}

/* Modifier class to give a lot of breathing room between sections of content. */
.Subhead--spacious {
  margin-top: var(--base-size-40);
}

/* <h2> sized heading with normal font weight */
.Subhead-heading {
  font-size: 24px;
  font-weight: var(--base-text-weight-normal);
  flex: 1 1 auto;
  order: 0;
}

/* Make the text bold and red for dangerous content */
.Subhead-heading--danger {
  font-weight: var(--base-text-weight-semibold);
  color: var(--fgColor-danger);
}

/* One-liner of supporting text */
.Subhead-description {
  font-size: var(--text-body-size-medium);
  color: var(--fgColor-muted);
  flex: 1 100%;
  order: 2;
}

/* Add 1 or 2 buttons to the right of the heading */
.Subhead-actions {
  margin: var(--base-size-4) 0 var(--base-size-4) var(--base-size-4);
  align-self: center;
  justify-content: flex-end;
  order: 1;

  & + .Subhead-description {
    margin-top: var(--base-size-4);
  }
}

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.16.0 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.15.0 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.14.0 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.13.1 app/components/primer/beta/subhead.pcss
primer_view_components-0.13.2 app/components/primer/beta/subhead.pcss
primer_view_components-0.13.1 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.13.0 app/components/primer/beta/subhead.pcss
primer_view_components-0.13.0 app/components/primer/beta/subhead.pcss
primer_view_components-0.12.0 app/components/primer/beta/subhead.pcss
primer_view_components-0.11.0 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.12.1 app/components/primer/beta/subhead.pcss
primer_view_components-0.10.0 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.11.0 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.10.0 app/components/primer/beta/subhead.pcss
primer_view_components-0.9.0 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.9.1 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.9.0 app/components/primer/beta/subhead.pcss
openproject-primer_view_components-0.8.0 app/components/primer/beta/subhead.pcss
primer_view_components-0.8.0 app/components/primer/beta/subhead.pcss
primer_view_components-0.7.0 app/components/primer/beta/subhead.pcss