Browse Source

changed css

master
rdrew 1 year ago
parent
commit
198b27470e
  1. 72
      css/base/base.css
  2. 86
      css/base/fonts.css
  3. 58
      css/base/fonts.pcss.css
  4. 167
      css/base/variables.css
  5. 1
      css/base/variables.pcss.css
  6. 46
      css/components/action-links.css
  7. 76
      css/components/ajax-progress.module.css
  8. 30
      css/components/autocomplete-loading.module.css
  9. 16
      css/components/block.css
  10. 189
      css/components/book.css
  11. 201
      css/components/breadcrumb.css
  12. 107
      css/components/button.css
  13. 305
      css/components/comments.css
  14. 6
      css/components/container-inline.module.css
  15. 137
      css/components/content-moderation.css
  16. 90
      css/components/details.css
  17. 84
      css/components/dropbutton.css
  18. 203
      css/components/embedded-media.css
  19. 27
      css/components/feed.css
  20. 39
      css/components/field.css
  21. 156
      css/components/fieldset.css
  22. 46
      css/components/footer.css
  23. 70
      css/components/form-boolean.css
  24. 65
      css/components/form-select.css
  25. 65
      css/components/form-text.css
  26. 13
      css/components/form-textarea.css
  27. 89
      css/components/form.css
  28. 13
      css/components/forum.css
  29. 33
      css/components/header-buttons-mobile.css
  30. 155
      css/components/header-navigation.css
  31. 178
      css/components/header-search-narrow.css
  32. 226
      css/components/header-search-wide.css
  33. 129
      css/components/header-site-branding.css
  34. 28
      css/components/header-sticky-toggle.css
  35. 53
      css/components/hero.css
  36. 64
      css/components/links.css
  37. 19
      css/components/maintenance-page.css
  38. 177
      css/components/messages.css
  39. 59
      css/components/navigation/menu-sidebar.css
  40. 98
      css/components/navigation/nav-button-mobile.css
  41. 66
      css/components/navigation/nav-primary-button.css
  42. 136
      css/components/navigation/nav-primary-no-js.css
  43. 178
      css/components/navigation/nav-primary-wide.css
  44. 227
      css/components/navigation/nav-primary.css
  45. 110
      css/components/navigation/nav-secondary.css
  46. 66
      css/components/navigation/wide-nav-expand.css
  47. 55
      css/components/node-preview-container.css
  48. 128
      css/components/node-teaser.css
  49. 40
      css/components/node.css
  50. 13
      css/components/page-title.css
  51. 52
      css/components/pager.css
  52. 30
      css/components/powered-by-block.css
  53. 21
      css/components/progress.css
  54. 92
      css/components/search-results.css
  55. 40
      css/components/site-header.css
  56. 44
      css/components/skip-link.css
  57. 145
      css/components/table.css
  58. 42
      css/components/tabledrag.css
  59. 212
      css/components/tabs.css
  60. 137
      css/components/tags.css
  61. 181
      css/components/text-content.css
  62. 19
      css/components/ui-dialog.css
  63. 102
      css/components/vertical-tabs.css
  64. 84
      css/components/wide-image.css
  65. 34
      css/layout/grid.css
  66. 71
      css/layout/layout-builder-fourcol-section.css
  67. 46
      css/layout/layout-builder-threecol-section.css
  68. 120
      css/layout/layout-builder-twocol-section.css
  69. 41
      css/layout/layout-content-medium.css
  70. 139
      css/layout/layout-content-narrow.css
  71. 21
      css/layout/layout-discovery-section-layout.css
  72. 43
      css/layout/layout-footer.css
  73. 48
      css/layout/layout-sidebar.css
  74. 21
      css/layout/layout-views-grid.css
  75. 38
      css/layout/layout.css
  76. 58
      css/layout/region-content-below.css
  77. 21
      css/layout/region-content.css
  78. 15
      css/layout/region-hero.css
  79. 21
      css/layout/region-secondary-menu.css
  80. 21
      css/layout/region.css
  81. 118
      css/layout/social-bar.css
  82. 20
      css/layout/views.css
  83. 39
      css/theme/filter.theme.css

72
css/base/base.css

@ -10,19 +10,6 @@
* Generic base elements. * Generic base elements.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
*, *,
*::before, *::before,
*::after { *::after {
@ -42,7 +29,7 @@ body {
color: var(--color-text-neutral-medium); color: var(--color-text-neutral-medium);
background-color: var(--color--gray-100); background-color: var(--color--gray-100);
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='50' height='84' viewBox='0 0 50 84'%3e %3cpath opacity='0.05' fill='%230e6ba6' d='M25,61.7C25,68.5,19.4,74,12.5,74S0,68.5,0,61.7c0-5.7,3.9-9.6,7.4-12.9c2.3-2.2,4.5-4.4,5.1-6.8c0.7,2.4,2.8,4.6,5.1,6.8C21.1,52.2,25,56,25,61.7z M42.6,6.8c-2.3-2.2-4.5-4.4-5.1-6.8c-0.7,2.4-2.9,4.6-5.1,6.8C28.9,10.2,25,14,25,19.7C25,26.5,30.6,32,37.5,32S50,26.5,50,19.7C50,14,46.1,10.2,42.6,6.8z'/%3e%3c/svg%3e"); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='50' height='84' viewBox='0 0 50 84'%3e %3cpath opacity='0.05' fill='%230e6ba6' d='M25,61.7C25,68.5,19.4,74,12.5,74S0,68.5,0,61.7c0-5.7,3.9-9.6,7.4-12.9c2.3-2.2,4.5-4.4,5.1-6.8c0.7,2.4,2.8,4.6,5.1,6.8C21.1,52.2,25,56,25,61.7z M42.6,6.8c-2.3-2.2-4.5-4.4-5.1-6.8c-0.7,2.4-2.9,4.6-5.1,6.8C28.9,10.2,25,14,25,19.7C25,26.5,30.6,32,37.5,32S50,26.5,50,19.7C50,14,46.1,10.2,42.6,6.8z'/%3e%3c/svg%3e");
background-position: top left /* LTR */ background-position: top left; /* LTR */
} }
body.is-fixed { body.is-fixed {
@ -56,7 +43,7 @@ body.is-fixed {
} }
a { a {
color: var(--color-text-primary-medium) color: var(--color-text-primary-medium);
} }
a:hover { a:hover {
@ -87,41 +74,38 @@ audio {
h1 { h1 {
letter-spacing: -0.01em; letter-spacing: -0.01em;
font-size: 1.75rem; font-size: 1.75rem;
line-height: var(--sp2) line-height: var(--sp2);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
h1 { h1 {
font-size: 3.75rem; font-size: 3.75rem;
line-height: var(--sp4) line-height: var(--sp4);
} }
} }
h2 { h2 {
letter-spacing: -0.01em; letter-spacing: -0.01em;
font-size: 1.5rem; font-size: 1.5rem;
line-height: var(--sp2) line-height: var(--sp2);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
h2 { h2 {
font-size: 2.25rem; font-size: 2.25rem;
line-height: var(--sp3) line-height: var(--sp3);
} }
} }
h3 { h3 {
font-size: 1.25rem; font-size: 1.25rem;
line-height: var(--sp1-5) line-height: var(--sp1-5);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
h3 { h3 {
font-size: 1.5rem; font-size: 1.5rem;
line-height: var(--sp2) line-height: var(--sp2);
} }
} }
@ -146,53 +130,29 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
margin-top: var(--sp); margin-block: var(--sp);
margin-bottom: var(--sp);
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
font-family: var(--font-sans); font-family: var(--font-sans);
font-weight: bold font-weight: bold;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
h1, h1,
h2, h2,
h3, h3,
h4, h4,
h5, h5,
h6 { h6 {
margin-top: var(--sp2); margin-block: var(--sp2);
margin-bottom: var(--sp2)
} }
} }
[dir="ltr"] ul {
margin-left: 1.5em;
}
[dir="rtl"] ul {
margin-right: 1.5em;
}
[dir="ltr"] ul {
margin-right: 0;
}
[dir="rtl"] ul {
margin-left: 0;
}
[dir="ltr"] ul {
padding-left: 0;
}
[dir="rtl"] ul {
padding-right: 0;
}
ul { ul {
margin-top: 0.25em; margin-block-start: 0.25em;
margin-bottom: 0.25em; margin-block-end: 0.25em;
margin-inline-start: 1.5em;
margin-inline-end: 0;
padding-inline-start: 0;
list-style-type: disc; list-style-type: disc;
list-style-image: none; list-style-image: none;
} }

86
css/base/fonts.css

@ -10,77 +10,6 @@
* Base Fonts. * Base Fonts.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
@font-face {
font-family: 'Libre Bodoni';
src: url('../../fonts/LibreBodoni-Bold.woff2') format('woff2'),
url('../../fonts/LibreBodoni-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Libre Bodoni';
src: url('../../fonts/LibreBodoni-Italic.woff2') format('woff2'),
url('../../fonts/LibreBodoni-Italic.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Libre Bodoni';
src: url('../../fonts/LibreBodoni-Regular.woff2') format('woff2'),
url('../../fonts/LibreBodoni-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Sans 3';
src: url('../../fonts/SourceSans3-Bold.woff2') format('woff2'),
url('../../fonts/SourceSans3-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Sans 3';
src: url('../../fonts/SourceSans3-Regular.woff2') format('woff2'),
url('../../fonts/SourceSans3-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Sans 3';
src: url('../../fonts/SourceSans3-Italic.woff2') format('woff2'),
url('../../fonts/SourceSans3-Italic.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: swap;
}
/*
*old stuff
*/
@font-face { @font-face {
font-family: metropolis; font-family: metropolis;
src: url("../../fonts/metropolis/Metropolis-Regular.woff2") format("woff2"); src: url("../../fonts/metropolis/Metropolis-Regular.woff2") format("woff2");
@ -109,10 +38,7 @@
@font-face { @font-face {
font-family: Lora; font-family: Lora;
src: src: local("Lora Regular"), local("Lora-Regular"), url("../../fonts/lora/lora-v14-latin-regular.woff2") format("woff2");
local("Lora Regular"),
local("Lora-Regular"),
url("../../fonts/lora/lora-v14-latin-regular.woff2") format("woff2");
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
@ -122,10 +48,7 @@
@font-face { @font-face {
font-family: Lora; font-family: Lora;
src: src: local("Lora Italic"), local("Lora-Italic"), url("../../fonts/lora/lora-v14-latin-italic.woff2") format("woff2");
local("Lora Italic"),
local("Lora-Italic"),
url("../../fonts/lora/lora-v14-latin-italic.woff2") format("woff2");
font-weight: 400; font-weight: 400;
font-style: italic; font-style: italic;
font-display: swap; font-display: swap;
@ -135,10 +58,7 @@
@font-face { @font-face {
font-family: Lora; font-family: Lora;
src: src: local("Lora Bold"), local("Lora-Bold"), url("../../fonts/lora/lora-v14-latin-700.woff2") format("woff2");
local("Lora Bold"),
local("Lora-Bold"),
url("../../fonts/lora/lora-v14-latin-700.woff2") format("woff2");
font-weight: 700; font-weight: 700;
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;

58
css/base/fonts.pcss.css

@ -5,64 +5,6 @@
@import "media-queries.pcss.css"; @import "media-queries.pcss.css";
@font-face {
font-family: 'Libre Bodoni';
src: url('../../fonts/LibreBodoni-Bold.woff2') format('woff2'),
url('../../fonts/LibreBodoni-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Libre Bodoni';
src: url('../../fonts/LibreBodoni-Italic.woff2') format('woff2'),
url('../../fonts/LibreBodoni-Italic.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Libre Bodoni';
src: url('../../fonts/LibreBodoni-Regular.woff2') format('woff2'),
url('../../fonts/LibreBodoni-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Sans 3';
src: url('../../fonts/SourceSans3-Bold.woff2') format('woff2'),
url('../../fonts/SourceSans3-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Sans 3';
src: url('../../fonts/SourceSans3-Regular.woff2') format('woff2'),
url('../../fonts/SourceSans3-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Sans 3';
src: url('../../fonts/SourceSans3-Italic.woff2') format('woff2'),
url('../../fonts/SourceSans3-Italic.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: swap;
}
/*
*old stuff
*/
@font-face { @font-face {
font-family: metropolis; font-family: metropolis;
src: url("../../fonts/metropolis/Metropolis-Regular.woff2") format("woff2"); src: url("../../fonts/metropolis/Metropolis-Regular.woff2") format("woff2");

167
css/base/variables.css

@ -9,102 +9,157 @@
Global CSS custom properties. Global CSS custom properties.
*/ */
/* /* stylelint-disable */
* Media query breakpoints.
* Processed by postcss/postcss-custom-media. :root {
--font-sans: "metropolis", sans-serif;
--font-serif: "Lora", "georgia", serif;
/* Typography helpers. */
--font-size-base: 1rem;
--font-size-l: 1.125rem;
--font-size-s: 0.875rem;
--font-size-xs: 0.8125rem;
--font-size-xxs: 0.75rem;
--line-height-base: 1.6875rem;
--line-height-s: 1.125rem;
/* Layout helpers. */
--max-width: 84.375rem;
--max-bg-color: 98.125rem; /* Width to which the background color extends to. */
--sp: 1.125rem;
--content-left: 5.625rem;
--site-header-height-wide: var(--sp10);
--container-padding: var(--sp);
/**
* Grid helpers.
*
* These variables help authors apply widths and negative margins to break items out of
* the grid, while still conforming to the larger grid system.
*/ */
--scrollbar-width: 0px; /* Unit must be specified here for calc() to work properly.*/
--grid-col-count: 6;
--grid-gap: var(--sp);
--grid-gap-count: calc(var(--grid-col-count) - 1); /* Count of grid-gaps. */
--grid-full-width: calc(100vw - var(--sp2) - var(--scrollbar-width)); /* Width of the entire grid. */
--grid-col-width: calc((var(--grid-full-width) - (var(--grid-gap-count) * var(--grid-gap))) / var(--grid-col-count));
/* Navigation related breakpoints */ /* Layout helpers */
--sp0-25: calc(0.25 * var(--sp));
--sp0-5: calc(0.5 * var(--sp));
--sp0-75: calc(0.75 * var(--sp));
--sp1: calc(1 * var(--sp));
--sp1-5: calc(1.5 * var(--sp));
--sp2: calc(2 * var(--sp));
--sp2-5: calc(2.5 * var(--sp));
--sp3: calc(3 * var(--sp));
--sp4: calc(4 * var(--sp));
--sp5: calc(5 * var(--sp));
--sp6: calc(6 * var(--sp));
--sp7: calc(7 * var(--sp));
--sp8: calc(8 * var(--sp));
--sp9: calc(9 * var(--sp));
--sp10: calc(10 * var(--sp));
--sp11: calc(11 * var(--sp));
--sp12: calc(12 * var(--sp));
/* Grid related breakpoints */ /**
* Gray colors.
*
* Color number roughly corresponds to its luminosity.
*/
--color--gray-hue: 201;
--color--gray-saturation: 15%;
--color--gray-5: hsl(var(--color--gray-hue), var(--color--gray-saturation), 5%); /* Black */
--color--gray-10: hsl(var(--color--gray-hue), var(--color--gray-saturation), 11%);
--color--gray-20: hsl(var(--color--gray-hue), var(--color--gray-saturation), 20%); /* Black 2 */
--color--gray-45: hsl(var(--color--gray-hue), var(--color--gray-saturation), 44%); /* Gray Dark */
--color--gray-60: hsl(var(--color--gray-hue), var(--color--gray-saturation), 57%); /* Gray medium */
--color--gray-65: hsl(var(--color--gray-hue), var(--color--gray-saturation), 63%); /* Black 4 */
--color--gray-70: hsl(var(--color--gray-hue), var(--color--gray-saturation), 72%); /* Gray medium 2 */
--color--gray-90: hsl(var(--color--gray-hue), var(--color--gray-saturation), 88%); /* Gray light */
--color--gray-95: hsl(var(--color--gray-hue), var(--color--gray-saturation), 93%); /* Gray light 1 */
--color--gray-100: hsl(var(--color--gray-hue), var(--color--gray-saturation), 97%);
/* Grid shifts from 6 to 14 columns. */ /**
* Primary colors.
*
* Color number roughly corresponds to its luminosity.
*/
--color--primary-hue: 202;
--color--primary-saturation: 79%;
--color--primary-lightness: 50;
--color--primary-30: hsl(var(--color--primary-hue), var(--color--primary-saturation), calc(1% * (var(--color--primary-lightness) - (0.36 * var(--color--primary-lightness)))));
--color--primary-40: hsl(var(--color--primary-hue), var(--color--primary-saturation), calc(1% * (var(--color--primary-lightness) - (0.24 * var(--color--primary-lightness))))); /* Blue dark */
--color--primary-50: hsl(var(--color--primary-hue), var(--color--primary-saturation), calc(1% * var(--color--primary-lightness))); /* Blue medium */
--color--primary-60: hsl(var(--color--primary-hue), var(--color--primary-saturation), calc(1% * (var(--color--primary-lightness) + (0.24 * (100 - var(--color--primary-lightness)))))); /* Blue bright */
--color--primary-80: hsl(var(--color--primary-hue), var(--color--primary-saturation), calc(1% * (var(--color--primary-lightness) + (0.85 * (100 - var(--color--primary-lightness))))));
/* Width of the entire grid maxes out. */ /**
* Variables specific to text.
*/
--color-text-neutral-soft: var(--color--gray-45);
--color-text-neutral-medium: var(--color--gray-20);
--color-text-neutral-loud: var(--color--gray-5);
/* stylelint-disable */ --color-text-primary-medium: var(--color--primary-40);
--color-text-primary-loud: var(--color--primary-30);
:root { /**
/*--font-serif: "Libre Bodoni", "georgia", serif;*/ * Named Colors.
*/
--color--black: #000; /* Black */
--color--white: #fff; /* White */
--color--red: #e33f1e; /* Red */
--color--gold: #fdca40; /* Gold */
--color--green: #3fa21c;
/* Typography helpers. */ /* Header */
--header-height-wide-when-fixed: calc(6 * var(--sp));
/* Width of slide out navigation */
--mobile-nav-width: 31.25rem;
/* Layout helpers. */ /* Width to which the background color extends to. */ /* Inline padding on .container elements. */ /* Border radius */
--border-radius: 0.1875rem; /* Inline padding on .container elements. */
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
:root { :root {
--container-padding: var(--sp2); --container-padding: var(--sp2);
} }
} }
:root { /* Green */
/** /* Width of a grid column. */
* Grid helpers.
*
* These variables help authors apply widths and negative margins to break items out of
* the grid, while still conforming to the larger grid system.
*/ /* Unit must be specified here for calc() to work properly.*/ /* Count of grid-gaps. */ /* Width of the entire grid. */ /* Width of a grid column. */
}
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
:root { :root {
--grid-col-count: 14; --grid-col-count: 14;
--grid-gap: var(--sp2); --grid-gap: var(--sp2);
} }
} }
@media (min-width: 62.5rem) { /* Blue very bright */
@media (min-width: 62.5rem) {
:root { :root {
--scrollbar-width: 0.9375rem; /* Approximate width of a scrollbar. Doesn't have to be perfect. */ --scrollbar-width: 0.9375rem; /* Approximate width of a scrollbar. Doesn't have to be perfect. */
} }
} }
@media (min-width: 75rem) { /* Gray light 2 */
@media (min-width: 75rem) {
:root { :root {
--grid-full-width: calc(100vw - var(--scrollbar-width) - var(--content-left) - var(--sp4)); --grid-full-width: calc(100vw - var(--scrollbar-width) - var(--content-left) - var(--sp4));
} }
} }
@media (min-width: 90rem) { @media (min-width: 90rem) {
:root { :root {
--grid-full-width: calc(var(--max-width) - var(--sp4)); --grid-full-width: calc(var(--max-width) - var(--sp4));
} }
} }
:root {
/* Layout helpers */
/**
* Gray colors.
*
* Color number roughly corresponds to its luminosity.
*/ /* Black */ /* Black 2 */ /* Gray Dark */ /* Gray medium */ /* Black 4 */ /* Gray medium 2 */ /* Gray light */ /* Gray light 1 */ /* Gray light 2 */
/**
* Primary colors.
*
* Color number roughly corresponds to its luminosity.
*/ /* Blue dark */ /* Blue medium */ /* Blue bright */ /* Blue very bright */
/**
* Variables specific to text.
*/
/**
* Named Colors.
*/ /* Black */ /* White */ /* Red */ /* Gold */ /* Green */
/* Header */
/* Width of slide out navigation */
/* Border radius */
}

1
css/base/variables.pcss.css

@ -9,7 +9,6 @@
:root { :root {
--font-sans: "metropolis", sans-serif; --font-sans: "metropolis", sans-serif;
--font-serif: "Lora", "georgia", serif; --font-serif: "Lora", "georgia", serif;
/*--font-serif: "Libre Bodoni", "georgia", serif;*/
/* Typography helpers. */ /* Typography helpers. */
--font-size-base: 16px; --font-size-base: 16px;

46
css/components/action-links.css

@ -8,47 +8,17 @@
* @file * @file
* Styles for action links. * Styles for action links.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .action-links {
margin-left: 0
}
[dir="rtl"] .action-links {
margin-right: 0
}
[dir="ltr"] .action-links {
margin-right: 0
}
[dir="rtl"] .action-links {
margin-left: 0
}
[dir="ltr"] .action-links {
padding-left: 0
}
[dir="rtl"] .action-links {
padding-right: 0
}
[dir="ltr"] .action-links {
padding-right: 0
}
[dir="rtl"] .action-links {
padding-left: 0
}
.action-links { .action-links {
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
list-style: none padding-inline-start: 0;
padding-inline-end: 0;
list-style: none;
} }
.action-links li { .action-links li {
display: inline-block display: inline-block;
} }
.action-links li a { .action-links li a {
color: var(--color-text-primary-medium); color: var(--color-text-primary-medium);

76
css/components/ajax-progress.module.css

@ -10,19 +10,6 @@
* Visual styles for ajax-progress throbber. * Visual styles for ajax-progress throbber.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.ajax-progress { .ajax-progress {
display: inline-block; display: inline-block;
} }
@ -31,29 +18,15 @@
* Throbber. * Throbber.
*/ */
[dir="ltr"] .ajax-progress-throbber {
margin-left: var(--sp0-5);
}
[dir="rtl"] .ajax-progress-throbber {
margin-right: var(--sp0-5);
}
[dir="ltr"] .ajax-progress-throbber {
margin-right: var(--sp0-5);
}
[dir="rtl"] .ajax-progress-throbber {
margin-left: var(--sp0-5);
}
.ajax-progress-throbber { .ajax-progress-throbber {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
align-content: center; align-content: center;
height: 1.125rem; height: 1.125rem;
margin-top: -0.1875rem; margin-block-start: -0.1875rem;
margin-bottom: 0; margin-block-end: 0;
margin-inline-start: var(--sp0-5);
margin-inline-end: var(--sp0-5);
vertical-align: middle; vertical-align: middle;
white-space: nowrap; white-space: nowrap;
line-height: 1.125rem; line-height: 1.125rem;
@ -66,16 +39,9 @@
border-color: var(--color--primary-50) transparent var(--color--primary-50) var(--color--primary-50); border-color: var(--color--primary-50) transparent var(--color--primary-50) var(--color--primary-50);
} }
[dir="ltr"] .ajax-progress-throbber .message {
padding-left: var(--sp0-5);
}
[dir="rtl"] .ajax-progress-throbber .message {
padding-right: var(--sp0-5);
}
.ajax-progress-throbber .message { .ajax-progress-throbber .message {
display: inline-block; display: inline-block;
padding-inline-start: var(--sp0-5);
font-size: var(--font-size-s); font-size: var(--font-size-s);
font-weight: 400; font-weight: 400;
} }
@ -84,38 +50,24 @@
* Full screen throbber. * Full screen throbber.
*/ */
[dir="ltr"] .ajax-progress-fullscreen {
left: 50%;
}
[dir="rtl"] .ajax-progress-fullscreen {
right: 50%;
}
.ajax-progress-fullscreen { .ajax-progress-fullscreen {
position: fixed; position: fixed;
z-index: 1000; z-index: 1000;
top: 50%; inset-block-start: 50%;
inset-inline-start: 50%;
width: 3.5rem; width: 3.5rem;
height: 3.5rem; height: 3.5rem;
margin: -1.75rem; margin: -1.75rem;
border: 1px solid var(--color--gray-70); border: 1px solid var(--color--gray-70);
border-radius: 3.5rem; border-radius: 3.5rem;
background-color: var(--color--white); background-color: var(--color--white);
box-shadow: 0 0.25rem 0.625rem rgba(34, 35, 48, 0.1) /* LTR */ box-shadow: 0 0.25rem 0.625rem rgba(34, 35, 48, 0.1); /* LTR */
}
[dir="ltr"] .ajax-progress-fullscreen::before {
left: 50%;
}
[dir="rtl"] .ajax-progress-fullscreen::before {
right: 50%;
} }
.ajax-progress-fullscreen::before { .ajax-progress-fullscreen::before {
position: absolute; position: absolute;
top: 50%; inset-block-start: 50%;
inset-inline-start: 50%;
width: 1.75rem; width: 1.75rem;
height: 1.75rem; height: 1.75rem;
margin: -0.875rem; margin: -0.875rem;
@ -144,12 +96,8 @@
* have a large margin set. * have a large margin set.
*/ */
html[dir="ltr"].js .button:not(.js-hide) + .ajax-progress-throbber { html.js .button:not(.js-hide) + .ajax-progress-throbber {
margin-left: 0; margin-inline-start: 0;
}
html[dir="rtl"].js .button:not(.js-hide) + .ajax-progress-throbber {
margin-right: 0;
} }
@keyframes olives-throbber { @keyframes olives-throbber {

30
css/components/autocomplete-loading.module.css

@ -10,42 +10,22 @@
* Visual styles for autocomplete input field. * Visual styles for autocomplete input field.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] [type].form-autocomplete {
padding-right: var(--sp3);
}
[dir="rtl"] [type].form-autocomplete {
padding-left: var(--sp3);
}
[type].form-autocomplete { [type].form-autocomplete {
padding-inline-end: var(--sp3);
background-color: var(--color--white); background-color: var(--color--white);
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18.8' viewBox='0 0 18 18.8'%3e %3cpath fill='%237e96a7' d='M17.8,17.4l-3.6-3.6c1.4-1.5,2.2-3.4,2.2-5.6c0-4.5-3.7-8.2-8.2-8.2S0,3.7,0,8.2s3.7,8.2,8.2,8.2c1.8,0,3.4-0.6,4.7-1.5l3.7,3.7c0.3,0.3,0.8,0.3,1.2,0C18.1,18.3,18.1,17.7,17.8,17.4z M8.2,14.7c-3.6,0-6.5-2.9-6.5-6.5s2.9-6.5,6.5-6.5s6.5,2.9,6.5,6.5S11.8,14.7,8.2,14.7z'/%3e%3c/svg%3e"); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18.8' viewBox='0 0 18 18.8'%3e %3cpath fill='%237e96a7' d='M17.8,17.4l-3.6-3.6c1.4-1.5,2.2-3.4,2.2-5.6c0-4.5-3.7-8.2-8.2-8.2S0,3.7,0,8.2s3.7,8.2,8.2,8.2c1.8,0,3.4-0.6,4.7-1.5l3.7,3.7c0.3,0.3,0.8,0.3,1.2,0C18.1,18.3,18.1,17.7,17.8,17.4z M8.2,14.7c-3.6,0-6.5-2.9-6.5-6.5s2.9-6.5,6.5-6.5s6.5,2.9,6.5,6.5S11.8,14.7,8.2,14.7z'/%3e%3c/svg%3e");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right var(--sp1) center /* LTR */ background-position: right var(--sp1) center; /* LTR */
} }
[type].form-autocomplete:disabled { .form-autocomplete[type]:disabled {
background-color: var(--color--gray-100); background-color: var(--color--gray-100);
} }
[type].form-autocomplete.ui-autocomplete-loading { .form-autocomplete.ui-autocomplete-loading[type] {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 10 10'%3e %3cstyle type='text/css'%3e%40keyframes s%7b0%25%7btransform:rotate(0deg) translate(-50%25,-50%25)%7d50%25%7btransform:rotate(430deg) translate(-50%25,-50%25);stroke-dashoffset:20%7d100%25%7btransform:rotate(720deg) translate(-50%25,-50%25)%7d%7dellipse%7banimation:s 1s linear infinite%7d%3c/style%3e %3cg transform='translate(5 5)'%3e %3cellipse fill='none' ry='4' rx='4' cy='5' cx='5' stroke='%237e96a7' stroke-width='1' stroke-dashoffset='6.125' stroke-dasharray='25' transform='translate(-5 -5)'/%3e %3c/g%3e%3c/svg%3e"); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 10 10'%3e %3cstyle type='text/css'%3e%40keyframes s%7b0%25%7btransform:rotate(0deg) translate(-50%25,-50%25)%7d50%25%7btransform:rotate(430deg) translate(-50%25,-50%25);stroke-dashoffset:20%7d100%25%7btransform:rotate(720deg) translate(-50%25,-50%25)%7d%7dellipse%7banimation:s 1s linear infinite%7d%3c/style%3e %3cg transform='translate(5 5)'%3e %3cellipse fill='none' ry='4' rx='4' cy='5' cx='5' stroke='%237e96a7' stroke-width='1' stroke-dashoffset='6.125' stroke-dasharray='25' transform='translate(-5 -5)'/%3e %3c/g%3e%3c/svg%3e");
} }
[dir="rtl"] [type].form-autocomplete { [dir="rtl"] .form-autocomplete[type] {
background-position: left var(--sp1) center; background-position: left var(--sp1) center;
} }

16
css/components/block.css

@ -10,22 +10,8 @@
* Block styling. * Block styling.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.block__title { .block__title {
margin-top: 0; margin-block: 0 var(--sp);
margin-bottom: var(--sp);
letter-spacing: 0.02em; letter-spacing: 0.02em;
color: var(--color-text-neutral-soft); color: var(--color-text-neutral-soft);
font-size: var(--font-size-s); font-size: var(--font-size-s);

189
css/components/book.css

@ -10,101 +10,46 @@
* Book module styling. * Book module styling.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .book-pager {
margin-left: 0;
}
[dir="rtl"] .book-pager {
margin-right: 0;
}
[dir="ltr"] .book-pager {
margin-right: 0;
}
[dir="rtl"] .book-pager {
margin-left: 0;
}
[dir="ltr"] .book-pager {
padding-left: 0;
}
[dir="rtl"] .book-pager {
padding-right: 0;
}
[dir="ltr"] .book-pager {
padding-right: 0;
}
[dir="rtl"] .book-pager {
padding-left: 0;
}
.book-pager { .book-pager {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 0 var(--sp); margin-block-start: 0 var(--sp);
padding-top: 0; margin-inline-start: 0;
padding-bottom: var(--sp); margin-inline-end: 0;
padding-block: 0 var(--sp);
padding-inline-start: 0;
padding-inline-end: 0;
list-style: none; list-style: none;
border-bottom: solid 1px var(--color--primary-40); border-block-end: solid 1px var(--color--primary-40);
} }
.book-pager__item { .book-pager__item {
display: inline-block display: inline-block;
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.book-pager__item { .book-pager__item {
flex: 0 0 33.33% flex: 0 0 33.33%;
} }
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.book-pager__item--center { .book-pager__item--center {
text-align: center text-align: center;
} }
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.book-pager__item--next {
[dir="ltr"] .book-pager__item--next { margin-inline-start: auto;
margin-left: auto; text-align: end;
}
[dir="rtl"] .book-pager__item--next {
margin-right: auto;
}
[dir="ltr"] .book-pager__item--next {
text-align: right;
}
[dir="rtl"] .book-pager__item--next {
text-align: left;
} }
} }
.book-pager__link { .book-pager__link {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-primary-medium); color: var(--color-text-primary-medium);
font-family: var(--font-serif); font-family: var(--font-serif);
@ -112,117 +57,43 @@
font-weight: 600; font-weight: 600;
} }
[dir="ltr"] .book-pager__link--previous::before {
margin-right: 0.25em;
}
[dir="rtl"] .book-pager__link--previous::before {
margin-left: 0.25em;
}
[dir="ltr"] .book-pager__link--previous::before {
border-left: solid 3px currentColor;
}
[dir="rtl"] .book-pager__link--previous::before {
border-right: solid 3px currentColor;
}
.book-pager__link--previous::before { .book-pager__link--previous::before {
display: block; display: block;
width: var(--sp0-5); width: var(--sp0-5);
height: var(--sp0-5); height: var(--sp0-5);
margin-inline-end: 0.25em;
content: ""; content: "";
transform: rotate(-45deg); transform: rotate(-45deg);
border-top: solid 3px currentColor; border-block-start: solid 0.1875rem currentColor;
} border-inline-start: solid 0.1875rem currentColor;
[dir="ltr"] .book-pager__link--next::after {
margin-left: 0.25em;
}
[dir="rtl"] .book-pager__link--next::after {
margin-right: 0.25em;
}
[dir="ltr"] .book-pager__link--next::after {
border-left: solid 3px currentColor;
}
[dir="rtl"] .book-pager__link--next::after {
border-right: solid 3px currentColor;
} }
.book-pager__link--next::after { .book-pager__link--next::after {
display: block; display: block;
width: var(--sp0-5); width: var(--sp0-5);
height: var(--sp0-5); height: var(--sp0-5);
margin-inline-start: 0.25em;
content: ""; content: "";
transform: rotate(135deg); transform: rotate(135deg);
border-top: solid 3px currentColor; border-block-start: solid 0.1875rem currentColor;
} border-inline-start: solid 0.1875rem currentColor;
[dir="ltr"] .book-navigation__menu {
margin-left: 0;
}
[dir="rtl"] .book-navigation__menu {
margin-right: 0;
}
[dir="ltr"] .book-navigation__menu {
margin-right: 0;
}
[dir="rtl"] .book-navigation__menu {
margin-left: 0;
}
[dir="ltr"] .book-navigation__menu {
padding-left: 0;
}
[dir="rtl"] .book-navigation__menu {
padding-right: 0;
}
[dir="ltr"] .book-navigation__menu {
padding-right: 0;
}
[dir="rtl"] .book-navigation__menu {
padding-left: 0;
} }
.book-navigation__menu { .book-navigation__menu {
margin-top: var(--sp2); margin-block: var(--sp2);
margin-bottom: var(--sp2); margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
list-style: none; list-style: none;
} }
[dir="ltr"] .book-navigation__item {
padding-left: 0;
}
[dir="rtl"] .book-navigation__item {
padding-right: 0;
}
[dir="ltr"] .book-navigation__item {
padding-right: 0;
}
[dir="rtl"] .book-navigation__item {
padding-left: 0;
}
.book-navigation__item { .book-navigation__item {
margin-top: 0; margin-block: 0;
margin-bottom: 0; padding-block: 0;
padding-top: 0; padding-inline-start: 0;
padding-bottom: 0; padding-inline-end: 0;
list-style: none; list-style: none;
} }

201
css/components/breadcrumb.css

@ -10,56 +10,34 @@
* Breadcrumb region. * Breadcrumb region.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.breadcrumb { .breadcrumb {
position: relative; position: relative;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: bold; font-weight: bold;
line-height: var(--sp1) line-height: var(--sp1);
/* Shadow on the right side of breadcrumbs for narrow screens. */ /* Shadow on the right side of breadcrumbs for narrow screens. */
} }
[dir="ltr"] .breadcrumb::after {
right: calc(var(--sp1)*-1)
}
[dir="rtl"] .breadcrumb::after {
left: calc(var(--sp1)*-1)
}
.breadcrumb::after { .breadcrumb::after {
position: absolute; position: absolute;
top: 0; inset-block-start: 0;
inset-inline-end: calc(var(--sp1) * -1);
width: var(--sp3); width: var(--sp3);
height: var(--sp2); height: var(--sp2);
content: ""; content: "";
background: linear-gradient(to left, var(--color--white) 0%, rgba(255, 255, 255, 0) 100%) /* LTR */ background: linear-gradient(to left, var(--color--white) 0%, rgba(255, 255, 255, 0) 100%); /* LTR */
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.breadcrumb::after { .breadcrumb::after {
content: none content: none;
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.breadcrumb { .breadcrumb {
position: static position: static;
} }
} }
@ -67,173 +45,70 @@
background: linear-gradient(to right, var(--color--white) 0%, rgba(255, 255, 255, 0) 100%); background: linear-gradient(to right, var(--color--white) 0%, rgba(255, 255, 255, 0) 100%);
} }
[dir="ltr"] .breadcrumb__content {
margin-left: calc(var(--sp0-5)*-1)
}
[dir="rtl"] .breadcrumb__content {
margin-right: calc(var(--sp0-5)*-1)
}
[dir="ltr"] .breadcrumb__content {
margin-right: calc(var(--sp1)*-1)
}
[dir="rtl"] .breadcrumb__content {
margin-left: calc(var(--sp1)*-1)
}
[dir="ltr"] .breadcrumb__content {
padding-left: var(--sp0-5)
}
[dir="rtl"] .breadcrumb__content {
padding-right: var(--sp0-5)
}
.breadcrumb__content { .breadcrumb__content {
overflow: auto; overflow: auto;
margin-top: calc(var(--sp0-5)*-1); margin-block-start: calc(var(--sp0-5) * -1);
margin-bottom: calc(var(--sp0-5)*-1); margin-block-end: calc(var(--sp0-5) * -1);
padding-top: var(--sp0-5); margin-inline-start: calc(var(--sp0-5) * -1);
padding-bottom: var(--sp0-5); margin-inline-end: calc(var(--sp1) * -1);
-webkit-overflow-scrolling: touch padding-block-start: var(--sp0-5);
padding-block-end: var(--sp0-5);
padding-inline-start: var(--sp0-5);
-webkit-overflow-scrolling: touch;
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.breadcrumb__content {
[dir="ltr"] .breadcrumb__content { margin-inline-end: 0;
margin-right: 0
}
[dir="rtl"] .breadcrumb__content {
margin-left: 0
}
}
[dir="ltr"] .breadcrumb__list {
margin-left: calc(var(--sp1)*-1)
}
[dir="rtl"] .breadcrumb__list {
margin-right: calc(var(--sp1)*-1)
}
[dir="ltr"] .breadcrumb__list {
margin-right: calc(var(--sp1)*-1)
}
[dir="rtl"] .breadcrumb__list {
margin-left: calc(var(--sp1)*-1)
}
[dir="ltr"] .breadcrumb__list {
padding-left: var(--sp1)
}
[dir="rtl"] .breadcrumb__list {
padding-right: var(--sp1)
}
[dir="ltr"] .breadcrumb__list {
padding-right: 0
} }
[dir="rtl"] .breadcrumb__list {
padding-left: 0
} }
.breadcrumb__list { .breadcrumb__list {
overflow-x: auto; overflow-x: auto;
width: max-content; width: max-content;
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: calc(var(--sp1) * -1);
padding-top: 0; margin-inline-end: calc(var(--sp1) * -1);
padding-bottom: var(--sp1); padding-block: 0 var(--sp1);
padding-inline-start: var(--sp1);
padding-inline-end: 0;
list-style: none; list-style: none;
white-space: nowrap white-space: nowrap;
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
[dir="ltr"] .breadcrumb__list {
margin-left: 0
}
[dir="rtl"] .breadcrumb__list {
margin-right: 0
}
[dir="ltr"] .breadcrumb__list {
margin-right: 0
}
[dir="rtl"] .breadcrumb__list {
margin-left: 0
}
[dir="ltr"] .breadcrumb__list {
padding-left: 0
}
[dir="rtl"] .breadcrumb__list {
padding-right: 0
}
.breadcrumb__list { .breadcrumb__list {
overflow: visible; overflow: visible;
padding-bottom: 0; margin-inline-start: 0;
white-space: normal margin-inline-end: 0;
padding-block-end: 0;
padding-inline-start: 0;
white-space: normal;
} }
} }
.breadcrumb__item { .breadcrumb__item {
display: inline-block display: inline-block;
}
[dir="ltr"] .breadcrumb__item:nth-child(n+2)::before {
margin-left: 1rem;
margin-right: 1.25rem
}
[dir="rtl"] .breadcrumb__item:nth-child(n+2)::before {
margin-right: 1rem;
margin-left: 1.25rem
}
[dir="ltr"] .breadcrumb__item:nth-child(n+2)::before {
border-right: 2px solid var(--color--gray-45)
}
[dir="rtl"] .breadcrumb__item:nth-child(n+2)::before {
border-left: 2px solid var(--color--gray-45)
} }
.breadcrumb__item:nth-child(n + 2)::before { .breadcrumb__item:nth-child(n + 2)::before {
display: inline-block; display: inline-block;
width: 0.5rem; width: 0.5rem;
height: 0.5rem; height: 0.5rem;
margin-inline: 1rem 1.25rem;
content: ""; content: "";
transform: rotate(45deg); /* LTR */ transform: rotate(45deg); /* LTR */
border-top: 2px solid var(--color--gray-45); border-block-start: 2px solid var(--color--gray-45);
border-inline-end: 2px solid var(--color--gray-45);
} }
[dir="ltr"] .breadcrumb__item:last-child { .breadcrumb__item:last-child {
margin-right: var(--sp3) margin-inline-end: var(--sp3);
}
[dir="rtl"] .breadcrumb__item:last-child {
margin-left: var(--sp3)
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.breadcrumb__item:last-child {
[dir="ltr"] .breadcrumb__item:last-child { margin-inline-end: 0;
margin-right: 0
}
[dir="rtl"] .breadcrumb__item:last-child {
margin-left: 0
} }
} }
@ -242,11 +117,13 @@
} }
.breadcrumb__link { .breadcrumb__link {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-primary-medium) color: var(--color-text-primary-medium);
} }
.breadcrumb__link:hover, .breadcrumb__link:hover,
.breadcrumb__link:focus { .breadcrumb__link:focus {
-webkit-text-decoration: underline;
text-decoration: underline; text-decoration: underline;
} }

107
css/components/button.css

@ -10,46 +10,17 @@
* Buttons. * Buttons.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .button {
margin-left: 0
}
[dir="rtl"] .button {
margin-right: 0
}
[dir="ltr"] .button {
margin-right: var(--sp1)
}
[dir="rtl"] .button {
margin-left: var(--sp1)
}
.button { .button {
display: inline-block; display: inline-block;
height: var(--sp3); height: var(--sp3);
margin-top: var(--sp1); margin-block: var(--sp1);
margin-bottom: var(--sp1); margin-inline-start: 0;
padding-top: calc(var(--sp3)/2 - var(--line-height-s)/2); margin-inline-end: var(--sp1);
padding-bottom: calc(var(--sp3)/2 - var(--line-height-s)/2); padding-block: calc((var(--sp3) - var(--line-height-s)) / 2);
padding-left: var(--sp1-5); padding-inline: var(--sp1-5);
padding-right: var(--sp1-5);
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-primary-medium); color: var(--color-text-primary-medium);
border: solid 2px currentColor; border: solid 2px currentColor;
@ -60,11 +31,12 @@
font-weight: 700; font-weight: 700;
-webkit-appearance: none; -webkit-appearance: none;
appearance: none; appearance: none;
-webkit-font-smoothing: antialiased -webkit-font-smoothing: antialiased;
} }
.button:hover, .button:hover,
.button:focus { .button:focus {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-primary-loud); color: var(--color-text-primary-loud);
border: solid 2px currentColor; border: solid 2px currentColor;
@ -89,58 +61,35 @@
border-color: var(--color--gray-90); border-color: var(--color--gray-90);
} }
.button {
/* /*
IE11 doesn't work properly on button elements so we only do IE11 doesn't work properly on button elements so we only do
inline-flex on modern browsers. inline-flex on modern browsers.
*/ */
}
@supports (display: inline-flex) { @supports (display: inline-flex) {
.button { .button {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
/* Top padding accounts for font not being vertically centered within line-height. */ /* Top padding accounts for font not being vertically centered within line-height. */
padding-top: 1px; padding-block: 1px 0;
padding-bottom: 0; padding-inline: var(--sp1-5);
padding-left: var(--sp1-5); line-height: var(--line-height-s);
padding-right: var(--sp1-5);
line-height: var(--line-height-s)
} }
} }
/* No margin if is part of a menu. */ /* No margin if is part of a menu. */
[dir="ltr"] .menu .button {
margin-left: 0
}
[dir="rtl"] .menu .button {
margin-right: 0
}
[dir="ltr"] .menu .button {
margin-right: 0
}
[dir="rtl"] .menu .button {
margin-left: 0
}
.menu .button { .menu .button {
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
margin-inline-end: 0;
} }
.button--small { .button--small {
height: var(--sp2-5); height: var(--sp2-5);
padding-top: calc(var(--sp2-5)/2 - var(--line-height-s)/2); padding-block: calc((var(--sp2-5) - var(--line-height-s)) / 2);
padding-bottom: calc(var(--sp2-5)/2 - var(--line-height-s)/2); padding-inline: var(--sp);
padding-left: var(--sp);
padding-right: var(--sp);
font-size: var(--font-size-base); font-size: var(--font-size-base);
line-height: normal; line-height: normal;
} }
@ -148,7 +97,7 @@
.button--primary { .button--primary {
color: var(--color--white); color: var(--color--white);
border-color: var(--color--primary-40); border-color: var(--color--primary-40);
background-color: var(--color--primary-40) background-color: var(--color--primary-40);
} }
.button--primary:hover, .button--primary:hover,
@ -171,32 +120,18 @@
.button--icon-back { .button--icon-back {
display: inline-flex; display: inline-flex;
align-items: center align-items: center;
}
[dir="ltr"] .button--icon-back::before {
margin-right: 0.5em
}
[dir="rtl"] .button--icon-back::before {
margin-left: 0.5em
}
[dir="ltr"] .button--icon-back::before {
border-left: solid 2px currentColor
}
[dir="rtl"] .button--icon-back::before {
border-right: solid 2px currentColor
} }
.button--icon-back::before { .button--icon-back::before {
display: block; display: block;
width: 0.5em; width: 0.5em;
height: 0.5em; height: 0.5em;
margin-inline-end: 0.5em;
content: ""; content: "";
transform: rotate(45deg); /* LTR */ transform: rotate(45deg); /* LTR */
border-bottom: solid 2px currentColor; border-block-end: solid 2px currentColor;
border-inline-start: solid 2px currentColor;
} }
[dir="rtl"] .button--icon-back::before { [dir="rtl"] .button--icon-back::before {

305
css/components/comments.css

@ -10,144 +10,77 @@
* Comment section and individual comments. * Comment section and individual comments.
*/ */
/* :root {
* Media query breakpoints. --comment-indentation: var(--sp2);
* Processed by postcss/postcss-custom-media. --comment-indentation--md: var(--sp4);
*/ }
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.comment--level-1 { .comment--level-1 {
border-top: 2px solid var(--color--gray-95) border-block-start: 2px solid var(--color--gray-95);
} }
.comment--level-1 ~ .comment--level-1 { .comment--level-1 ~ .comment--level-1 {
margin-top: var(--sp2); margin-block-start: var(--sp2);
} }
.comments__title { .comments__title {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 0; margin-block-start: 0;
}
[dir="ltr"] .comments__count {
margin-left: var(--sp)
}
[dir="rtl"] .comments__count {
margin-right: var(--sp)
}
[dir="ltr"] .comments__count {
margin-right: var(--sp)
}
[dir="rtl"] .comments__count {
margin-left: var(--sp)
}
[dir="ltr"] .comments__count {
padding-left: 0.3125rem
}
[dir="rtl"] .comments__count {
padding-right: 0.3125rem
}
[dir="ltr"] .comments__count {
padding-right: 0.3125rem
}
[dir="rtl"] .comments__count {
padding-left: 0.3125rem
} }
.comments__count { .comments__count {
position: relative; position: relative;
display: inline-block; display: inline-block;
min-width: 2.125rem; min-width: 2.125rem;
margin-top: 0; margin-block-start: 0;
margin-bottom: var(--sp0-5); margin-block-end: var(--sp0-5);
padding-top: 0; margin-inline-start: var(--sp);
padding-bottom: 0; margin-inline-end: var(--sp);
padding-block: 0;
padding-inline-start: 0.3125rem;
padding-inline-end: 0.3125rem;
text-align: center; text-align: center;
color: var(--color--white); color: var(--color--white);
border-radius: 2px; border-radius: 2px;
background-color: var(--color--primary-40); background-color: var(--color--primary-40);
font-size: 0.6875rem; font-size: 0.6875rem;
line-height: 1.3125rem line-height: 1.3125rem;
}
[dir="ltr"] .comments__count::after {
left: 0.5rem
}
[dir="rtl"] .comments__count::after {
right: 0.5rem
}
[dir="ltr"] .comments__count::after {
border-right: 8px solid transparent
}
[dir="rtl"] .comments__count::after {
border-left: 8px solid transparent
} }
.comments__count::after { .comments__count::after {
position: absolute; position: absolute;
bottom: -0.4375rem; inset-block-end: -0.4375rem;
inset-inline-start: 0.5rem;
width: 0; width: 0;
height: 0; height: 0;
content: ""; content: "";
border-top: 7px solid var(--color--primary-40); border-block-start: 0.4375rem solid var(--color--primary-40);
border-inline-end: 0.5rem solid transparent;
} }
.comment-form { .comment-form {
padding-bottom: var(--sp2); padding-block-end: var(--sp2);
}
[dir="ltr"] .add-comment__form {
padding-left: 0
}
[dir="rtl"] .add-comment__form {
padding-right: 0
}
[dir="ltr"] .comment {
padding-left: var(--sp3)
} }
[dir="rtl"] .comment { .add-comment__form {
padding-right: var(--sp3) padding-inline-start: 0;
} }
.comment { .comment {
position: relative; position: relative;
padding-top: var(--sp2) padding-block-start: var(--sp2);
padding-inline-start: var(--sp3);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.comment {
[dir="ltr"] .comment { padding-inline-start: 0;
padding-left: 0
}
[dir="rtl"] .comment {
padding-right: 0
} }
} }
.comment__text-content { .comment__text-content {
font-size: 1rem font-size: 1rem;
} }
.comment__text-content blockquote { .comment__text-content blockquote {
@ -155,73 +88,63 @@
line-height: var(--sp2); line-height: var(--sp2);
} }
.comment__text-content {
/* Override for .field:not(:last-child) */ /* Override for .field:not(:last-child) */
}
.comment__text-content:not(:last-child) { .comment__text-content:not(:last-child) {
margin-bottom: 0; margin-block-end: 0;
} }
.comment__links { .comment__links {
margin-top: var(--sp); margin-block: var(--sp) 0;
margin-bottom: 0;
} }
.comment__links-link { .comment__links-link {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: bold; font-weight: bold;
line-height: var(--sp) line-height: var(--sp);
} }
.comment__links-link:hover { .comment__links-link:hover {
-webkit-text-decoration: underline;
text-decoration: underline; text-decoration: underline;
} }
.add-comment__picture-wrapper { .add-comment__picture-wrapper {
top: calc(var(--line-height-base) + var(--sp0-5)); inset-block-start: calc(var(--line-height-base) + var(--sp0-5));
}
[dir="ltr"] .add-comment__picture,[dir="ltr"]
.comment__picture {
left: 0
}
[dir="rtl"] .add-comment__picture,[dir="rtl"]
.comment__picture {
right: 0
} }
.add-comment__picture, .add-comment__picture,
.comment__picture { .comment__picture {
position: absolute; position: absolute;
inset-inline-start: 0;
overflow: hidden; overflow: hidden;
width: var(--sp2); width: var(--sp2);
height: var(--sp2); height: var(--sp2);
border-radius: 50%; border-radius: 50%;
background-color: var(--color--gray-95) background-color: var(--color--gray-95);
} }
.add-comment__picture *:not(img), .comment__picture *:not(img) { .add-comment__picture *:not(img),
.comment__picture *:not(img) {
display: inherit; display: inherit;
width: inherit; width: inherit;
height: inherit; height: inherit;
} }
.add-comment__picture img, .comment__picture img { .add-comment__picture img,
.comment__picture img {
width: 100%; width: 100%;
height: 100%; height: 100%;
-o-object-fit: cover; object-fit: cover;
object-fit: cover
/* @TODO: create image-style for profile's avatar to have image squared by default. */ /* @TODO: create image-style for profile's avatar to have image squared by default. */
} }
@media all and (-ms-high-contrast: active), (-ms-high-contrast: none) { @media all and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.add-comment__picture img,
.add-comment__picture img, .comment__picture img { .comment__picture img {
position: absolute; position: absolute;
/* stylelint-disable csstools/use-logical */ /* stylelint-disable csstools/use-logical */
top: 50%; top: 50%;
@ -229,42 +152,24 @@
/* stylelint-enable csstools/use-logical */ /* stylelint-enable csstools/use-logical */
width: 100%; width: 100%;
height: auto; height: auto;
transform: translate(-50%, -50%) transform: translate(-50%, -50%);
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .add-comment__picture,[dir="ltr"]
.comment__picture {
left: calc(var(--sp5)*-1)
}
[dir="rtl"] .add-comment__picture,[dir="rtl"]
.comment__picture {
right: calc(var(--sp5)*-1)
}
.add-comment__picture, .add-comment__picture,
.comment__picture { .comment__picture {
inset-inline-start: calc(-1 * var(--sp5));
width: var(--sp3); width: var(--sp3);
height: var(--sp3) height: var(--sp3);
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .indented .comment__picture {
left: calc(var(--sp4)*-1)
}
[dir="rtl"] .indented .comment__picture {
right: calc(var(--sp4)*-1)
}
.indented .comment__picture { .indented .comment__picture {
inset-inline-start: calc(-1 * var(--sp4));
width: var(--sp2); width: var(--sp2);
height: var(--sp2) height: var(--sp2);
} }
} }
@ -272,22 +177,16 @@
display: inline; display: inline;
} }
[dir="ltr"] .comment__author {
margin-right: var(--sp)
}
[dir="rtl"] .comment__author {
margin-left: var(--sp)
}
.comment__author { .comment__author {
margin-inline-end: var(--sp);
font-family: var(--font-sans); font-family: var(--font-sans);
font-size: 1rem; font-size: 1rem;
font-weight: 700; font-weight: 700;
line-height: var(--sp) line-height: var(--sp);
} }
.comment__author a { .comment__author a {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
} }
@ -299,97 +198,40 @@
line-height: var(--sp); line-height: var(--sp);
} }
[dir="ltr"] .indented { .indented {
margin-left: var(--sp2) margin-inline-start: var(--comment-indentation);
}
[dir="rtl"] .indented {
margin-right: var(--sp2)
}
[dir="ltr"] .indented > .comment:not(:last-of-type):not(.has-children)::before {
left: calc(var(--sp2)*-1 - var(--sp))
}
[dir="rtl"] .indented > .comment:not(:last-of-type):not(.has-children)::before {
right: calc(var(--sp2)*-1 - var(--sp))
}
[dir="ltr"] .indented > .comment:not(:last-of-type):not(.has-children)::before {
border-left: solid 1px var(--color--gray-95)
}
[dir="rtl"] .indented > .comment:not(:last-of-type):not(.has-children)::before {
border-right: solid 1px var(--color--gray-95)
} }
.indented > .comment:not(:last-of-type):not(.has-children)::before { .indented > .comment:not(:last-of-type, .has-children)::before {
position: absolute; position: absolute;
top: var(--sp2); /* Comment's padding-top */ inset-block-start: var(--sp2);
inset-inline-start: calc(-1 * var(--comment-indentation) - var(--sp)); /* Comment's padding-top */
width: 0; width: 0;
height: 100%; height: 100%;
content: "" content: "";
border-inline-start: solid 1px var(--color--gray-95);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.indented > .comment:not(:last-of-type, .has-children)::before {
[dir="ltr"] .indented > .comment:not(:last-of-type):not(.has-children)::before { inset-inline-start: calc(-1 * var(--comment-indentation--md) + var(--sp));
left: calc(var(--sp4)*-1 + var(--sp))
}
[dir="rtl"] .indented > .comment:not(:last-of-type):not(.has-children)::before {
right: calc(var(--sp4)*-1 + var(--sp))
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.indented {
[dir="ltr"] .indented { margin-inline-start: var(--comment-indentation--md);
margin-left: var(--sp4)
}
[dir="rtl"] .indented {
margin-right: var(--sp4)
} }
} }
[dir="ltr"] .show-hide-btn {
margin-left: var(--sp3)
}
[dir="rtl"] .show-hide-btn {
margin-right: var(--sp3)
}
[dir="ltr"] .show-hide-btn {
margin-right: 0
}
[dir="rtl"] .show-hide-btn {
margin-left: 0
}
[dir="ltr"] .show-hide-btn {
padding-left: 0
}
[dir="rtl"] .show-hide-btn {
padding-right: 0
}
[dir="ltr"] .show-hide-btn {
padding-right: 0
}
[dir="rtl"] .show-hide-btn {
padding-left: 0
}
.show-hide-btn { .show-hide-btn {
margin-top: var(--sp2); margin-block-start: var(--sp2);
margin-bottom: 0; margin-block-end: 0;
padding-top: 0; margin-inline-start: var(--sp3);
padding-bottom: 0; margin-inline-end: 0;
padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
cursor: pointer; cursor: pointer;
color: var(--color-text-neutral-medium); color: var(--color-text-neutral-medium);
border: 0; border: 0;
@ -398,7 +240,7 @@
font-weight: 600; font-weight: 600;
line-height: 1.125rem; line-height: 1.125rem;
-webkit-appearance: none; -webkit-appearance: none;
appearance: none appearance: none;
} }
.show-hide-btn[aria-expanded="true"]::after { .show-hide-btn[aria-expanded="true"]::after {
@ -410,12 +252,7 @@
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.show-hide-btn {
[dir="ltr"] .show-hide-btn { margin-inline-start: 0;
margin-left: 0
}
[dir="rtl"] .show-hide-btn {
margin-right: 0
} }
} }

6
css/components/container-inline.module.css

@ -16,12 +16,10 @@
} }
.form-items-inline { .form-items-inline {
margin-top: -0.125em; margin-block: -0.125em; /* 2px */
margin-bottom: -0.125em; /* 2px */
} }
.form-items-inline > .form-item { .form-items-inline > .form-item {
display: inline-block; display: inline-block;
margin-top: 0.125em; margin-block: 0.125em;
margin-bottom: 0.125em;
} }

137
css/components/content-moderation.css

@ -10,39 +10,12 @@
* Styles for content moderation toolbar. * Styles for content moderation toolbar.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .entity-moderation-form {
padding-left: var(--sp)
}
[dir="rtl"] .entity-moderation-form {
padding-right: var(--sp)
}
[dir="ltr"] .entity-moderation-form {
padding-right: var(--sp)
}
[dir="rtl"] .entity-moderation-form {
padding-left: var(--sp)
}
.entity-moderation-form { .entity-moderation-form {
flex-direction: column; flex-direction: column;
padding-inline-start: var(--sp);
padding-inline-end: var(--sp);
border: 1px solid var(--color--gray-95); border: 1px solid var(--color--gray-95);
background-color: var(--color--gray-100) background-color: var(--color--gray-100);
} }
.entity-moderation-form select, .entity-moderation-form select,
@ -51,105 +24,71 @@
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.entity-moderation-form { .entity-moderation-form {
flex-direction: row flex-direction: row;
}
} }
[dir="ltr"] .entity-moderation-form__item {
margin-right: var(--sp)
}
[dir="rtl"] .entity-moderation-form__item {
margin-left: var(--sp)
} }
.entity-moderation-form__item { .entity-moderation-form__item {
flex-basis: 0 flex-basis: 0;
} margin-inline-end: var(--sp);
[dir="ltr"] .entity-moderation-form__item:last-child {
margin-right: 0
}
[dir="rtl"] .entity-moderation-form__item:last-child {
margin-left: 0
} }
.entity-moderation-form__item:last-child { .entity-moderation-form__item:last-child {
align-self: flex-start align-self: flex-start;
margin-inline-end: 0;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.entity-moderation-form__item:last-child { .entity-moderation-form__item:last-child {
align-self: flex-end align-self: flex-end;
}
} }
[dir="ltr"] .layout--content-narrow .entity-moderation-form,[dir="ltr"] .layout--pass--content-narrow > * .entity-moderation-form,[dir="ltr"] .layout--content-medium .entity-moderation-form,[dir="ltr"] .layout--pass--content-medium > * .entity-moderation-form {
margin-left: 0
}
[dir="rtl"] .layout--content-narrow .entity-moderation-form,[dir="rtl"] .layout--pass--content-narrow > * .entity-moderation-form,[dir="rtl"] .layout--content-medium .entity-moderation-form,[dir="rtl"] .layout--pass--content-medium > * .entity-moderation-form {
margin-right: 0
} }
.layout--content-narrow .entity-moderation-form, .layout--pass--content-narrow > * .entity-moderation-form, .layout--content-medium .entity-moderation-form, .layout--pass--content-medium > * .entity-moderation-form { .layout--content-narrow .entity-moderation-form,
width: 100% .layout--pass--content-narrow > * .entity-moderation-form,
.layout--content-medium .entity-moderation-form,
.layout--pass--content-medium > * .entity-moderation-form {
width: 100%;
margin-inline-start: 0;
} }
@supports (width: max-content) { @supports (width: max-content) {
.layout--content-narrow .entity-moderation-form,
.layout--content-narrow .entity-moderation-form, .layout--pass--content-narrow > * .entity-moderation-form, .layout--content-medium .entity-moderation-form, .layout--pass--content-medium > * .entity-moderation-form { .layout--pass--content-narrow > * .entity-moderation-form,
width: max-content .layout--content-medium .entity-moderation-form,
.layout--pass--content-medium > * .entity-moderation-form {
width: max-content;
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow .entity-moderation-form,
[dir="ltr"] .layout--content-narrow .entity-moderation-form,[dir="ltr"] .layout--pass--content-narrow > * .entity-moderation-form,[dir="ltr"] .layout--content-medium .entity-moderation-form,[dir="ltr"] .layout--pass--content-medium > * .entity-moderation-form { .layout--pass--content-narrow > * .entity-moderation-form,
margin-left: calc(var(--grid-col-width)*-2 + var(--grid-gap)*-2) .layout--content-medium .entity-moderation-form,
} .layout--pass--content-medium > * .entity-moderation-form {
[dir="rtl"] .layout--content-narrow .entity-moderation-form,[dir="rtl"] .layout--pass--content-narrow > * .entity-moderation-form,[dir="rtl"] .layout--content-medium .entity-moderation-form,[dir="rtl"] .layout--pass--content-medium > * .entity-moderation-form {
margin-right: calc(var(--grid-col-width)*-2 + var(--grid-gap)*-2)
}
.layout--content-narrow .entity-moderation-form, .layout--pass--content-narrow > * .entity-moderation-form, .layout--content-medium .entity-moderation-form, .layout--pass--content-medium > * .entity-moderation-form {
width: calc(var(--grid-col-count) * var(--grid-col-width) + var(--grid-gap-count) * var(--grid-gap)); width: calc(var(--grid-col-count) * var(--grid-col-width) + var(--grid-gap-count) * var(--grid-gap));
margin-top: var(--sp2); margin-block: var(--sp2) var(--sp4);
margin-bottom: var(--sp4) margin-inline-start: calc(-2 * (var(--grid-col-width) + var(--grid-gap)));
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--content-narrow .entity-moderation-form,
[dir="ltr"] .layout--content-narrow .entity-moderation-form,[dir="ltr"] .layout--pass--content-narrow > * .entity-moderation-form,[dir="ltr"] .layout--content-medium .entity-moderation-form,[dir="ltr"] .layout--pass--content-medium > * .entity-moderation-form { .layout--pass--content-narrow > * .entity-moderation-form,
margin-left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1) .layout--content-medium .entity-moderation-form,
} .layout--pass--content-medium > * .entity-moderation-form {
width: calc(12 * var(--grid-col-width) + 11 * var(--grid-gap));
[dir="rtl"] .layout--content-narrow .entity-moderation-form,[dir="rtl"] .layout--pass--content-narrow > * .entity-moderation-form,[dir="rtl"] .layout--content-medium .entity-moderation-form,[dir="rtl"] .layout--pass--content-medium > * .entity-moderation-form { margin-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
margin-right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
.layout--content-narrow .entity-moderation-form, .layout--pass--content-narrow > * .entity-moderation-form, .layout--content-medium .entity-moderation-form, .layout--pass--content-medium > * .entity-moderation-form {
width: calc(var(--grid-col-width)*12 + var(--grid-gap)*11)
} }
} }
@media (min-width: 90rem) { @media (min-width: 90rem) {
.layout--content-narrow .entity-moderation-form,
[dir="ltr"] .layout--content-narrow .entity-moderation-form,[dir="ltr"] .layout--pass--content-narrow > * .entity-moderation-form,[dir="ltr"] .layout--content-medium .entity-moderation-form,[dir="ltr"] .layout--pass--content-medium > * .entity-moderation-form { .layout--pass--content-narrow > * .entity-moderation-form,
margin-left: 0 .layout--content-medium .entity-moderation-form,
} .layout--pass--content-medium > * .entity-moderation-form {
width: calc(10 * var(--grid-col-width) + 11 * var(--grid-gap));
[dir="rtl"] .layout--content-narrow .entity-moderation-form,[dir="rtl"] .layout--pass--content-narrow > * .entity-moderation-form,[dir="rtl"] .layout--content-medium .entity-moderation-form,[dir="rtl"] .layout--pass--content-medium > * .entity-moderation-form { margin-inline-start: 0;
margin-right: 0
}
.layout--content-narrow .entity-moderation-form, .layout--pass--content-narrow > * .entity-moderation-form, .layout--content-medium .entity-moderation-form, .layout--pass--content-medium > * .entity-moderation-form {
width: calc(var(--grid-col-width)*10 + var(--grid-gap)*11)
} }
} }

90
css/components/details.css

@ -10,57 +10,32 @@
* Collapsible details. * Collapsible details.
*/ */
/* :root {
* Media query breakpoints. --details-border-width: 1px;
* Processed by postcss/postcss-custom-media. --details-summary-transition: background-color 0.12s ease-in-out;
*/ }
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.olives-details { .olives-details {
display: block; display: block;
margin-top: var(--sp1); margin-block: var(--sp1);
margin-bottom: var(--sp1);
color: inherit; color: inherit;
border: 1px solid var(--color--gray-95); border: var(--details-border-width) solid var(--color--gray-95);
border-radius: var(--border-radius); border-radius: var(--border-radius);
box-shadow: 0 1px 4px var(--color--gray-90); box-shadow: 0 1px 4px var(--color--gray-90);
} }
/* Details summary styles */ /* Details summary styles */
[dir="ltr"] .olives-details__summary {
padding-left: var(--sp2);
}
[dir="rtl"] .olives-details__summary {
padding-right: var(--sp2);
}
[dir="ltr"] .olives-details__summary {
padding-right: var(--sp1);
}
[dir="rtl"] .olives-details__summary {
padding-left: var(--sp1);
}
.olives-details__summary { .olives-details__summary {
position: relative; position: relative;
padding-top: var(--sp1); padding-block: var(--sp1);
padding-bottom: var(--sp1); padding-inline-start: var(--sp2);
padding-inline-end: var(--sp1);
list-style: none; list-style: none;
cursor: pointer; cursor: pointer;
transition: background-color 0.12s ease-in-out; transition: var(--details-summary-transition);
word-wrap: break-word; word-wrap: break-word;
-webkit-hyphens: auto; -webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto; hyphens: auto;
color: inherit; color: inherit;
background-color: var(--color--gray-100); background-color: var(--color--gray-100);
@ -71,17 +46,10 @@
/* Arrow icon */ /* Arrow icon */
[dir="ltr"] .olives-details__summary::before {
left: var(--sp0-75);
}
[dir="rtl"] .olives-details__summary::before {
right: var(--sp0-75);
}
.olives-details__summary::before { .olives-details__summary::before {
position: absolute; position: absolute;
top: 50%; inset-block-start: 50%;
inset-inline-start: var(--sp0-75);
display: block; display: block;
width: 0.625rem; width: 0.625rem;
height: 0.625rem; height: 0.625rem;
@ -99,10 +67,7 @@
.olives-details__summary::after { .olives-details__summary::after {
position: absolute; position: absolute;
top: -1px; inset: calc(var(--details-border-width) * -1);
right: -1px;
bottom: -1px;
left: -1px;
content: ""; content: "";
pointer-events: none; pointer-events: none;
opacity: 0; opacity: 0;
@ -139,44 +104,29 @@
/* Rotate arrow icon of the details summary, when details expanded */ /* Rotate arrow icon of the details summary, when details expanded */
.olives-details[open] > .olives-details__summary::before { .olives-details[open] > .olives-details__summary::before {
margin-top: -2px; margin-block-start: -2px;
transform: translateY(-50%) rotate(135deg); transform: translateY(-50%) rotate(135deg);
} }
/* Details content wrapper */ /* Details content wrapper */
.olives-details__wrapper { .olives-details__wrapper {
margin: var(--sp1) margin: var(--sp1);
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
[dir="ltr"] .olives-details__wrapper {
margin-left: var(--sp2);
}
[dir="rtl"] .olives-details__wrapper {
margin-right: var(--sp2);
}
[dir="ltr"] .olives-details__wrapper {
margin-right: var(--sp2);
}
[dir="rtl"] .olives-details__wrapper {
margin-left: var(--sp2);
}
.olives-details__wrapper { .olives-details__wrapper {
margin-top: var(--sp1-5); margin-block-start: var(--sp1-5);
margin-bottom: var(--sp1-5) margin-block-end: var(--sp1-5);
margin-inline-start: var(--sp2);
margin-inline-end: var(--sp2);
} }
} }
/* Description */ /* Description */
.olives-details__description { .olives-details__description {
margin-bottom: var(--sp1); margin-block-end: var(--sp1);
color: var(--color-text-neutral-medium); color: var(--color-text-neutral-medium);
font-size: var(--font-size-xs); font-size: var(--font-size-xs);
line-height: var(--line-height-s); line-height: var(--line-height-s);

84
css/components/dropbutton.css

@ -18,7 +18,7 @@
--dropbutton--border-radius: var(--border-radius); --dropbutton--border-radius: var(--border-radius);
--dropbutton--font-size: var(--font-size-s); --dropbutton--font-size: var(--font-size-s);
--dropbutton--text-color: var(--color-text-neutral-medium); /* Minimum 4.5:1 contrast ratio against --dropbutton--active-bg-color and --dropbutton--secondary-bg-color. */ --dropbutton--text-color: var(--color-text-neutral-medium); /* Minimum 4.5:1 contrast ratio against --dropbutton--active-bg-color and --dropbutton--secondary-bg-color. */
--dropbutton--text-hover-color: var(--color-text-primary-medium) /* Minimum 4.5:1 contrast ratio against --dropbutton--active-bg-color and --dropbutton--secondary-bg-color. */ --dropbutton--text-hover-color: var(--color-text-primary-medium); /* Minimum 4.5:1 contrast ratio against --dropbutton--active-bg-color and --dropbutton--secondary-bg-color. */
} }
.dropbutton-wrapper.open { .dropbutton-wrapper.open {
@ -27,70 +27,37 @@
filter: drop-shadow(0 2px 2px var(--dropbutton--active-bg-color)); filter: drop-shadow(0 2px 2px var(--dropbutton--active-bg-color));
} }
[dir="ltr"] .dropbutton-widget {
padding-right: var(--dropbutton--height);
}
[dir="rtl"] .dropbutton-widget {
padding-left: var(--dropbutton--height);
}
.dropbutton-widget { .dropbutton-widget {
position: relative; position: relative;
width: max-content; width: max-content;
height: var(--dropbutton--height); height: var(--dropbutton--height);
border-radius: var(--dropbutton--border-radius) padding-inline-end: var(--dropbutton--height);
border-radius: var(--dropbutton--border-radius);
} }
[dir="ltr"] .dropbutton-single .dropbutton-widget { .dropbutton-single .dropbutton-widget {
padding-right: 0; padding-inline-end: 0;
}
[dir="rtl"] .dropbutton-single .dropbutton-widget {
padding-left: 0;
} }
.dropbutton-wrapper.open .dropbutton-widget { .dropbutton-wrapper.open .dropbutton-widget {
border-radius: var(--dropbutton--border-radius) var(--dropbutton--border-radius) 0 0 border-radius: var(--dropbutton--border-radius) var(--dropbutton--border-radius) 0 0;
}
[dir="ltr"] .dropbutton {
margin-left: 0;
}
[dir="rtl"] .dropbutton {
margin-right: 0;
}
[dir="ltr"] .dropbutton {
padding-left: 0;
}
[dir="rtl"] .dropbutton {
padding-right: 0;
} }
.dropbutton { .dropbutton {
height: var(--dropbutton--height); height: var(--dropbutton--height);
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-inline-start: 0;
list-style: none; list-style: none;
font-size: var(--dropbutton--font-size); font-size: var(--dropbutton--font-size);
} }
/* This is the button that expands/collapses the secondary options. */ /* This is the button that expands/collapses the secondary options. */
[dir="ltr"] .dropbutton-toggle button {
right: 0;
}
[dir="rtl"] .dropbutton-toggle button {
left: 0;
}
.dropbutton-toggle button { .dropbutton-toggle button {
position: absolute; position: absolute;
top: 0; top: 0;
inset-inline-end: 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -100,7 +67,7 @@
cursor: pointer; cursor: pointer;
border-color: transparent; border-color: transparent;
border-radius: 0 var(--border-radius) var(--border-radius) 0; /* LTR */ border-radius: 0 var(--border-radius) var(--border-radius) 0; /* LTR */
background: var(--dropbutton--active-bg-color) background: var(--dropbutton--active-bg-color);
} }
.dropbutton-toggle button:focus { .dropbutton-toggle button:focus {
@ -115,11 +82,11 @@
content: ""; content: "";
transform: translateY(-25%) rotate(45deg); transform: translateY(-25%) rotate(45deg);
border-right: solid 2px var(--dropbutton--outline-color); border-right: solid 2px var(--dropbutton--outline-color);
border-bottom: solid 2px var(--dropbutton--outline-color) border-bottom: solid 2px var(--dropbutton--outline-color);
} }
.dropbutton-wrapper.open .dropbutton-toggle button::before { .dropbutton-wrapper.open :is(.dropbutton-toggle button::before) {
transform: translateY(25%) rotate(225deg) transform: translateY(25%) rotate(225deg);
} }
[dir="rtl"] .dropbutton-toggle button { [dir="rtl"] .dropbutton-toggle button {
@ -128,18 +95,11 @@
/* This is the first <li> element in the list of actions. */ /* This is the first <li> element in the list of actions. */
[dir="ltr"] .dropbutton-action:first-child {
margin-right: 2px;
}
[dir="rtl"] .dropbutton-action:first-child {
margin-left: 2px;
}
.dropbutton-action:first-child { .dropbutton-action:first-child {
margin-inline-end: 2px;
border: solid 1px transparent; border: solid 1px transparent;
border-radius: var(--dropbutton--border-radius) 0 0 var(--dropbutton--border-radius); /* LTR */ border-radius: var(--dropbutton--border-radius) 0 0 var(--dropbutton--border-radius); /* LTR */
background: var(--dropbutton--active-bg-color) background: var(--dropbutton--active-bg-color);
} }
[dir="rtl"] .dropbutton-action:first-child { [dir="rtl"] .dropbutton-action:first-child {
@ -152,9 +112,10 @@
align-items: center; align-items: center;
margin-bottom: -2px; /* Account for borders. */ margin-bottom: -2px; /* Account for borders. */
padding: 0 0.5625rem; padding: 0 0.5625rem;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--dropbutton--text-color); color: var(--dropbutton--text-color);
font-weight: 600 font-weight: 600;
} }
.dropbutton-action a:hover { .dropbutton-action a:hover {
@ -166,14 +127,11 @@
outline-offset: -1px; /* Overlap parent container by 1px. */ outline-offset: -1px; /* Overlap parent container by 1px. */
} }
.dropbutton-action {
/* Special rules if there is only one action. */ /* Special rules if there is only one action. */
}
.dropbutton-single .dropbutton-action:first-child { .dropbutton-single .dropbutton-action:first-child {
border-right: solid 1px transparent; /* LTR */ border-right: solid 1px transparent; /* LTR */
border-radius: var(--dropbutton--border-radius) border-radius: var(--dropbutton--border-radius);
} }
[dir="rtl"] .dropbutton-single .dropbutton-action:first-child { [dir="rtl"] .dropbutton-single .dropbutton-action:first-child {
@ -191,7 +149,7 @@
width: calc(100% + var(--dropbutton--height)); width: calc(100% + var(--dropbutton--height));
border-right: 1px solid var(--dropbutton--active-bg-color); border-right: 1px solid var(--dropbutton--active-bg-color);
border-left: 1px solid var(--dropbutton--active-bg-color); border-left: 1px solid var(--dropbutton--active-bg-color);
background: var(--dropbutton--secondary-bg-color) background: var(--dropbutton--secondary-bg-color);
} }
.secondary-action:last-child { .secondary-action:last-child {
@ -203,5 +161,5 @@
} }
.dropbutton-wrapper.open .secondary-action { .dropbutton-wrapper.open .secondary-action {
visibility: visible visibility: visible;
} }

203
css/components/embedded-media.css

@ -10,120 +10,46 @@
* Embedded Media. * Embedded Media.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
figure { figure {
background: var(--color--gray-100); background: var(--color--gray-100);
} }
[dir="ltr"] figcaption {
padding-left: var(--sp0-5);
}
[dir="rtl"] figcaption {
padding-right: var(--sp0-5);
}
[dir="ltr"] figcaption {
padding-right: var(--sp0-5);
}
[dir="rtl"] figcaption {
padding-left: var(--sp0-5);
}
figcaption { figcaption {
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5); padding-inline-start: var(--sp0-5);
padding-inline-end: var(--sp0-5);
color: var(--color-text-neutral-medium); color: var(--color-text-neutral-medium);
background: var(--color--gray-100); background: var(--color--gray-100);
font-family: var(--font-serif); font-family: var(--font-serif);
font-size: 0.875rem; font-size: 0.875rem;
font-style: italic; font-style: italic;
line-height: var(--sp) line-height: var(--sp);
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
[dir="ltr"] figcaption {
padding-left: var(--sp);
}
[dir="rtl"] figcaption {
padding-right: var(--sp);
}
[dir="ltr"] figcaption {
padding-right: var(--sp);
}
[dir="rtl"] figcaption {
padding-left: var(--sp);
}
figcaption { figcaption {
padding-top: var(--sp); padding-block: var(--sp);
padding-bottom: var(--sp) padding-inline-start: var(--sp);
padding-inline-end: var(--sp);
} }
} }
[dir="ltr"] .align-right {
margin-left: 0;
}
[dir="rtl"] .align-right {
margin-right: 0;
}
[dir="ltr"] .align-right {
margin-right: 0;
}
[dir="rtl"] .align-right {
margin-left: 0;
}
.align-right { .align-right {
float: none; /* Override core's align.module.css. */ float: none; /* Override core's align.module.css. */
max-width: 100%; max-width: 100%;
margin-top: var(--sp3); margin-block: var(--sp3);
margin-bottom: var(--sp3) margin-inline-start: 0;
margin-inline-end: 0;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .align-right {
margin-left: var(--sp);
}
[dir="rtl"] .align-right {
margin-right: var(--sp);
}
[dir="ltr"] .align-right {
margin-right: 0;
}
[dir="rtl"] .align-right {
margin-left: 0;
}
.align-right { .align-right {
float: right; /* LTR */ float: right; /* LTR */
max-width: 50%; max-width: 50%;
margin-top: var(--sp); margin-block-start: var(--sp);
margin-bottom: var(--sp) margin-block-end: var(--sp);
margin-inline-start: var(--sp);
margin-inline-end: 0;
/** /**
* Chromium and Webkit do not yet support flow relative logical properties, * Chromium and Webkit do not yet support flow relative logical properties,
@ -141,109 +67,53 @@ figcaption {
/* Pull out of grid if nested in content narrow layout. */ /* Pull out of grid if nested in content narrow layout. */
.layout--content-narrow .align-right,
.layout--pass--content-narrow > * .align-right {
/* @todo this can be simplified. */ /* @todo this can be simplified. */
}
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow .align-right,
[dir="ltr"] .layout--content-narrow .align-right,[dir="ltr"]
.layout--pass--content-narrow > * .align-right {
margin-right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1);
}
[dir="rtl"] .layout--content-narrow .align-right,[dir="rtl"]
.layout--pass--content-narrow > * .align-right { .layout--pass--content-narrow > * .align-right {
margin-left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1); margin-inline-end: calc(-1 * ((var(--grid-col-width) + var(--grid-gap))));
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--content-narrow .align-right,
[dir="ltr"] .layout--content-narrow .align-right,[dir="ltr"]
.layout--pass--content-narrow > * .align-right {
margin-right: calc(var(--grid-col-width)*-2 + var(--grid-gap)*-2);
}
[dir="rtl"] .layout--content-narrow .align-right,[dir="rtl"]
.layout--pass--content-narrow > * .align-right { .layout--pass--content-narrow > * .align-right {
margin-left: calc(var(--grid-col-width)*-2 + var(--grid-gap)*-2); margin-inline-end: calc(-2 * ((var(--grid-col-width) + var(--grid-gap))));
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.layout--content-narrow .align-right,
[dir="ltr"] .layout--content-narrow .align-right,[dir="ltr"]
.layout--pass--content-narrow > * .align-right {
margin-right: calc(var(--grid-col-width)*-3 + var(--grid-gap)*-3);
}
[dir="rtl"] .layout--content-narrow .align-right,[dir="rtl"]
.layout--pass--content-narrow > * .align-right { .layout--pass--content-narrow > * .align-right {
margin-left: calc(var(--grid-col-width)*-3 + var(--grid-gap)*-3); margin-inline-end: calc(-3 * ((var(--grid-col-width) + var(--grid-gap))));
} }
} }
@media (min-width: 90rem) { @media (min-width: 90rem) {
.layout--content-narrow .align-right,
[dir="ltr"] .layout--content-narrow .align-right,[dir="ltr"]
.layout--pass--content-narrow > * .align-right {
margin-right: calc(var(--grid-col-width)*-3 + var(--grid-gap)*-3);
}
[dir="rtl"] .layout--content-narrow .align-right,[dir="rtl"]
.layout--pass--content-narrow > * .align-right { .layout--pass--content-narrow > * .align-right {
margin-left: calc(var(--grid-col-width)*-3 + var(--grid-gap)*-3); margin-inline-end: calc(-3 * ((var(--grid-col-width) + var(--grid-gap))));
}
}
[dir="ltr"] .align-left {
margin-left: 0;
}
[dir="rtl"] .align-left {
margin-right: 0;
}
[dir="ltr"] .align-left {
margin-right: 0;
} }
[dir="rtl"] .align-left {
margin-left: 0;
} }
.align-left { .align-left {
float: none; /* Override core's align.module.css. */ float: none; /* Override core's align.module.css. */
max-width: 100%; max-width: 100%;
margin-top: var(--sp3); margin-block-start: var(--sp3);
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
margin-inline-start: 0;
margin-inline-end: 0;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .align-left {
margin-left: 0;
}
[dir="rtl"] .align-left {
margin-right: 0;
}
[dir="ltr"] .align-left {
margin-right: var(--sp2);
}
[dir="rtl"] .align-left {
margin-left: var(--sp2);
}
.align-left { .align-left {
float: left; /* LTR */ float: left; /* LTR */
max-width: 50%; max-width: 50%;
margin-top: var(--sp); margin-block-start: var(--sp);
margin-bottom: var(--sp) /* Extra right margins in case of aligning next to lists. */ margin-block-end: var(--sp);
margin-inline-start: 0;
margin-inline-end: var(--sp2); /* Extra right margins in case of aligning next to lists. */
/** /**
* Chromium and Webkit do not yet support flow relative logical properties, * Chromium and Webkit do not yet support flow relative logical properties,
@ -262,23 +132,16 @@ figcaption {
/* Pull out of grid if nested in content narrow layout. */ /* Pull out of grid if nested in content narrow layout. */
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow .align-left,
[dir="ltr"] .layout--content-narrow .align-left,[dir="ltr"]
.layout--pass--content-narrow > * .align-left {
margin-left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1);
}
[dir="rtl"] .layout--content-narrow .align-left,[dir="rtl"]
.layout--pass--content-narrow > * .align-left { .layout--pass--content-narrow > * .align-left {
margin-right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1); margin-inline-start: calc(-1 * ((var(--grid-col-width) + var(--grid-gap))));
} }
} }
.align-center img, .align-center img,
.align-center video, .align-center video,
.align-center audio { .align-center audio {
margin-left: auto; margin-inline: auto;
margin-right: auto;
} }
.media-oembed-content { .media-oembed-content {

27
css/components/feed.css

@ -10,24 +10,12 @@
* RSS feed. * RSS feed.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.feed-icon { .feed-icon {
display: flex; display: flex;
align-items: center; align-items: center;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-neutral-soft) color: var(--color-text-neutral-soft);
} }
.feed-icon:hover { .feed-icon:hover {
@ -41,14 +29,6 @@
font-weight: 600; font-weight: 600;
} }
[dir="ltr"] .feed-icon__icon {
margin-left: var(--sp0-5)
}
[dir="rtl"] .feed-icon__icon {
margin-right: var(--sp0-5)
}
.feed-icon__icon { .feed-icon__icon {
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
@ -56,8 +36,9 @@
justify-content: center; justify-content: center;
width: var(--sp1-5); width: var(--sp1-5);
height: var(--sp1-5); height: var(--sp1-5);
margin-inline-start: var(--sp0-5);
color: var(--color--white); color: var(--color--white);
background-color: var(--color--primary-50) background-color: var(--color--primary-50);
} }
.feed-icon__icon svg { .feed-icon__icon svg {

39
css/components/field.css

@ -10,35 +10,21 @@
* Visual styles for fields. * Visual styles for fields.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.field:not(:last-child) { .field:not(:last-child) {
margin-bottom: var(--sp2); margin-block-end: var(--sp2);
} }
.node--view-mode-teaser .field { .node--view-mode-teaser .field {
margin-bottom: var(--sp) margin-block-end: var(--sp);
} }
.node--view-mode-teaser .field:last-child { .node--view-mode-teaser .field:last-child {
margin-bottom: 0; margin-block-end: 0;
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.node--view-mode-teaser .field { .node--view-mode-teaser .field {
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
} }
@ -48,7 +34,7 @@
.field--label-inline .field__label, .field--label-inline .field__label,
.field--label-inline .field__items { .field--label-inline .field__items {
float: left /* LTR */ float: left; /* LTR */
/** /**
* Chromium and Webkit do not yet support flow relative logical properties, * Chromium and Webkit do not yet support flow relative logical properties,
@ -60,20 +46,15 @@
*/ */
} }
[dir="rtl"] .field--label-inline .field__label,[dir="rtl"] .field--label-inline .field__items { [dir="rtl"] .field--label-inline .field__label,
[dir="rtl"] .field--label-inline .field__items {
float: right; float: right;
} }
[dir="ltr"] .field--label-inline .field__label,[dir="ltr"] .field--label-inline .field__label,
.field--label-inline > .field__item,[dir="ltr"] .field--label-inline > .field__item,
.field--label-inline .field__items {
padding-right: 0.5em;
}
[dir="rtl"] .field--label-inline .field__label,[dir="rtl"]
.field--label-inline > .field__item,[dir="rtl"]
.field--label-inline .field__items { .field--label-inline .field__items {
padding-left: 0.5em; padding-inline-end: 0.5em;
} }
.field--label-inline .field__label::after { .field--label-inline .field__label::after {

156
css/components/fieldset.css

@ -10,57 +10,14 @@
* Fieldset. * Fieldset.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .fieldset {
margin-left: 0;
}
[dir="rtl"] .fieldset {
margin-right: 0;
}
[dir="ltr"] .fieldset {
margin-right: 0;
}
[dir="rtl"] .fieldset {
margin-left: 0;
}
[dir="ltr"] .fieldset {
padding-left: 0;
}
[dir="rtl"] .fieldset {
padding-right: 0;
}
[dir="ltr"] .fieldset {
padding-right: 0;
}
[dir="rtl"] .fieldset {
padding-left: 0;
}
.fieldset { .fieldset {
min-width: 0; min-width: 0;
margin-top: var(--sp1); margin-block: var(--sp1);
margin-bottom: var(--sp1); margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
color: inherit; color: inherit;
border: solid 2px var(--color--gray-45); border: solid 2px var(--color--gray-45);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -85,7 +42,7 @@
background-color: var(--color--gray-45); background-color: var(--color--gray-45);
font-size: var(--font-size-l); font-size: var(--font-size-l);
font-weight: 700; font-weight: 700;
line-height: var(--line-height-base) line-height: var(--line-height-base);
} }
.fieldset__legend + * { .fieldset__legend + * {
@ -97,7 +54,7 @@
} }
.fieldset__legend--composite { .fieldset__legend--composite {
margin-top: 2px; margin-block-start: 2px;
color: inherit; color: inherit;
} }
@ -109,26 +66,11 @@
color: inherit; color: inherit;
} }
[dir="ltr"] .fieldset__label {
padding-left: var(--sp1);
}
[dir="rtl"] .fieldset__label {
padding-right: var(--sp1);
}
[dir="ltr"] .fieldset__label {
padding-right: var(--sp1);
}
[dir="rtl"] .fieldset__label {
padding-left: var(--sp1);
}
.fieldset__label { .fieldset__label {
display: block; display: block;
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5); padding-inline-start: var(--sp1);
padding-inline-end: var(--sp1);
color: var(--color--white); color: var(--color--white);
line-height: var(--line-height-s); line-height: var(--line-height-s);
} }
@ -138,8 +80,7 @@
} }
.fieldset__description { .fieldset__description {
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5);
font-size: var(--font-size-xs); font-size: var(--font-size-xs);
line-height: var(--line-height-s); line-height: var(--line-height-s);
} }
@ -148,30 +89,21 @@
color: var(--input--disabled-fg-color); color: var(--input--disabled-fg-color);
} }
[dir="ltr"] .fieldset__error-message {
padding-left: var(--sp1-5);
}
[dir="rtl"] .fieldset__error-message {
padding-right: var(--sp1-5);
}
.fieldset__error-message { .fieldset__error-message {
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5); padding-inline-start: var(--sp1-5);
color: var(--color--red); color: var(--color--red);
background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23E33F1E' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23E33F1E' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: left top; /* LTR */ background-position: left top; /* LTR */
background-size: var(--sp1) var(--sp1); background-size: var(--sp1) var(--sp1);
font-size: var(--font-size-s); font-size: var(--font-size-s);
line-height: var(--line-height-s) line-height: var(--line-height-s);
} }
@media screen and (-ms-high-contrast: active) { @media screen and (-ms-high-contrast: active) {
.fieldset__error-message { .fieldset__error-message {
background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E") background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E");
} }
} }
@ -179,18 +111,10 @@
background-position: left top; background-position: left top;
} }
[dir="ltr"] .fieldset__wrapper {
padding-left: var(--sp);
}
[dir="rtl"] .fieldset__wrapper {
padding-right: var(--sp);
}
.fieldset__wrapper { .fieldset__wrapper {
margin-top: 0; margin-block-start: 0;
padding-top: var(--sp); padding-block: var(--sp);
padding-bottom: var(--sp); padding-inline-start: var(--sp);
} }
.fieldset--group .fieldset__legend--visible ~ .fieldset__wrapper { .fieldset--group .fieldset__legend--visible ~ .fieldset__wrapper {
@ -199,44 +123,14 @@
border-bottom-left-radius: var(--border-radius); border-bottom-left-radius: var(--border-radius);
} }
[dir="ltr"] .fieldset__wrapper--group {
margin-left: 0;
}
[dir="rtl"] .fieldset__wrapper--group {
margin-right: 0;
}
[dir="ltr"] .fieldset__wrapper--group {
margin-right: 0;
}
[dir="rtl"] .fieldset__wrapper--group {
margin-left: 0;
}
.fieldset__wrapper--group { .fieldset__wrapper--group {
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
} margin-inline-end: 0;
[dir="ltr"] .fieldset__wrapper > .container-inline {
padding-left: 0;
}
[dir="rtl"] .fieldset__wrapper > .container-inline {
padding-right: 0;
}
[dir="ltr"] .fieldset__wrapper > .container-inline {
padding-right: 0;
}
[dir="rtl"] .fieldset__wrapper > .container-inline {
padding-left: 0;
} }
.fieldset__wrapper > .container-inline { .fieldset__wrapper > .container-inline {
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
padding-inline-end: 0;
} }

46
css/components/footer.css

@ -10,62 +10,36 @@
* Footer regions. * Footer regions.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.site-footer { .site-footer {
position: relative; /* stack above left social bar */ position: relative; /* stack above left social bar */
color: var(--color--gray-65); color: var(--color--gray-65);
background: linear-gradient(180deg, var(--color--gray-5) 0%, var(--color--gray-10) 100%) background: linear-gradient(180deg, var(--color--gray-5) 0%, var(--color--gray-10) 100%);
}
[dir="ltr"] .site-footer .menu {
margin-left: 0
}
[dir="rtl"] .site-footer .menu {
margin-right: 0
} }
.site-footer .menu { .site-footer .menu {
list-style: none margin-inline-start: 0;
list-style: none;
} }
[dir="ltr"] .site-footer .menu ul { .site-footer .menu ul {
margin-left: var(--sp) margin-inline-start: var(--sp);
}
[dir="rtl"] .site-footer .menu ul {
margin-right: var(--sp)
} }
.site-footer .menu li { .site-footer .menu li {
margin-bottom: var(--sp0-5); margin-block-end: var(--sp0-5);
} }
.site-footer a { .site-footer a {
color: inherit color: inherit;
} }
.site-footer a:hover { .site-footer a:hover {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] body:not(.is-always-mobile-nav) .site-footer { body:not(.is-always-mobile-nav) .site-footer {
border-left: solid var(--content-left) var(--color--black) border-inline-start: solid var(--content-left) var(--color--black);
}
[dir="rtl"] body:not(.is-always-mobile-nav) .site-footer {
border-right: solid var(--content-left) var(--color--black)
} }
} }

70
css/components/form-boolean.css

@ -10,19 +10,6 @@
* Checkbox and radio input elements. * Checkbox and radio input elements.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
input[type="checkbox"], input[type="checkbox"],
input[type="radio"] { input[type="radio"] {
display: inline-block; display: inline-block;
@ -37,63 +24,65 @@ input[type="radio"] {
background-position: 50% 50%; background-position: 50% 50%;
background-size: var(--sp1) var(--sp1); background-size: var(--sp1) var(--sp1);
-webkit-appearance: none; -webkit-appearance: none;
appearance: none appearance: none;
} }
input[type="checkbox"]:focus, input[type="radio"]:focus { input[type="checkbox"]:focus,
input[type="radio"]:focus {
border: solid 2px var(--color--primary-50); border: solid 2px var(--color--primary-50);
outline: solid 2px var(--color--primary-50) outline: solid 2px var(--color--primary-50);
} }
@supports (outline-style: double) { @supports (outline-style: double) {
input[type="checkbox"]:focus,
input[type="checkbox"]:focus, input[type="radio"]:focus { input[type="radio"]:focus {
border-width: 1px; border-width: 1px;
outline-width: 6px; outline-width: 6px;
outline-style: double; outline-style: double;
outline-offset: -1px outline-offset: -1px;
} }
} }
input[type="checkbox"]:hover, input[type="radio"]:hover { input[type="checkbox"]:hover,
input[type="radio"]:hover {
border-color: var(--color--primary-60); border-color: var(--color--primary-60);
} }
input[type="checkbox"][disabled], input[type="radio"][disabled] { input[type="checkbox"][disabled],
background-color: var(--color--gray-100) input[type="radio"][disabled] {
background-color: var(--color--gray-100);
} }
input[type="checkbox"][disabled]:hover, input[type="radio"][disabled]:hover { input[type="checkbox"][disabled]:hover,
input[type="radio"][disabled]:hover {
border-color: var(--color--gray-60); border-color: var(--color--gray-60);
} }
input[type="checkbox"][disabled]:checked, input[type="radio"][disabled]:checked { input[type="checkbox"][disabled]:checked,
input[type="radio"][disabled]:checked {
border-width: 1px; border-width: 1px;
} }
input[type="checkbox"]:checked, input[type="radio"]:checked { input[type="checkbox"]:checked,
input[type="radio"]:checked {
border-width: 2px; border-width: 2px;
} }
input[type="checkbox"].error, input[type="radio"].error { input.error[type="checkbox"],
border: solid 2px var(--color--red) input.error[type="radio"] {
border: solid 2px var(--color--red);
} }
input[type="checkbox"].error:focus, input[type="radio"].error:focus { input.error[type="checkbox"]:focus,
input.error[type="radio"]:focus {
outline-color: var(--color--red); outline-color: var(--color--red);
outline-offset: -2px; outline-offset: -2px;
} }
[dir="ltr"] input[type="checkbox"] + label,[dir="ltr"] input[type="radio"] + label { input[type="checkbox"] + label,
padding-left: var(--sp0-5) input[type="radio"] + label {
}
[dir="rtl"] input[type="checkbox"] + label,[dir="rtl"] input[type="radio"] + label {
padding-right: var(--sp0-5)
}
input[type="checkbox"] + label, input[type="radio"] + label {
display: inline-block; display: inline-block;
padding-inline-start: var(--sp0-5);
} }
input[type="checkbox"]:checked { input[type="checkbox"]:checked {
@ -101,7 +90,7 @@ input[type="checkbox"]:checked {
} }
input[type="radio"] { input[type="radio"] {
border-radius: 50% border-radius: 50%;
} }
input[type="radio"]:checked { input[type="radio"]:checked {
@ -116,12 +105,11 @@ input[type="radio"]:focus {
box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color--primary-50); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color--primary-50);
} }
input[type="radio"].error:focus { input.error[type="radio"]:focus {
outline-color: transparent; outline-color: transparent;
box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color--red); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color--red);
} }
.form-type-boolean { .form-type-boolean {
margin-top: var(--sp1); margin-block: var(--sp1);
margin-bottom: var(--sp1);
} }

65
css/components/form-select.css

@ -10,65 +10,40 @@
* Select input elements. * Select input elements.
*/ */
/* :root {
* Media query breakpoints. --form-element-select-icon: url("data:image/svg+xml,%3csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 1.49699C18 1.35271 17.9279 1.19038 17.8196 1.08216L16.9178 0.18036C16.8096 0.0721439 16.6473 0 16.503 0C16.3587 0 16.1964 0.0721439 16.0882 0.18036L9 7.26854L1.91182 0.18036C1.80361 0.0721439 1.64128 0 1.49699 0C1.33467 0 1.19038 0.0721439 1.08216 0.18036L0.180361 1.08216C0.0721442 1.19038 0 1.35271 0 1.49699C0 1.64128 0.0721442 1.80361 0.180361 1.91182L8.58517 10.3166C8.69339 10.4248 8.85571 10.497 9 10.497C9.14429 10.497 9.30661 10.4248 9.41483 10.3166L17.8196 1.91182C17.9279 1.80361 18 1.64128 18 1.49699Z' fill='%235D7585'/%3e%3c/svg%3e");
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] select {
padding-left: var(--sp)
}
[dir="rtl"] select {
padding-right: var(--sp)
}
[dir="ltr"] select {
padding-right: var(--sp3)
}
[dir="rtl"] select {
padding-left: var(--sp3)
} }
select { select {
max-width: 100%; max-width: 100%;
height: var(--sp3); height: var(--sp3);
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: var(--sp);
padding-inline-end: var(--sp3);
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
border: 1px solid var(--color--gray-60); border: 1px solid var(--color--gray-60);
border-radius: var(--border-radius); border-radius: var(--border-radius);
background-color: var(--color--white); background-color: var(--color--white);
background-image: url("data:image/svg+xml,%3csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 1.49699C18 1.35271 17.9279 1.19038 17.8196 1.08216L16.9178 0.18036C16.8096 0.0721439 16.6473 0 16.503 0C16.3587 0 16.1964 0.0721439 16.0882 0.18036L9 7.26854L1.91182 0.18036C1.80361 0.0721439 1.64128 0 1.49699 0C1.33467 0 1.19038 0.0721439 1.08216 0.18036L0.180361 1.08216C0.0721442 1.19038 0 1.35271 0 1.49699C0 1.64128 0.0721442 1.80361 0.180361 1.91182L8.58517 10.3166C8.69339 10.4248 8.85571 10.497 9 10.497C9.14429 10.497 9.30661 10.4248 9.41483 10.3166L17.8196 1.91182C17.9279 1.80361 18 1.64128 18 1.49699Z' fill='%235D7585'/%3e%3c/svg%3e"); background-image: var(--form-element-select-icon);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right var(--sp) center; /* LTR */ background-position: right var(--sp) center; /* LTR */
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
-webkit-appearance: none; -webkit-appearance: none;
appearance: none appearance: none;
} }
select:focus { select:focus {
border: solid 2px var(--color--primary-50); border: solid 2px var(--color--primary-50);
outline: solid 2px var(--color--primary-50) outline: solid 2px var(--color--primary-50);
} }
@supports (outline-style: double) { @supports (outline-style: double) {
select:focus { select:focus {
border-width: 1px; border-width: 1px;
outline-width: 6px; outline-width: 6px;
outline-style: double; outline-style: double;
outline-offset: -1px outline-offset: -1px;
} }
} }
@ -78,7 +53,7 @@ select[disabled] {
} }
select.error { select.error {
border: solid 2px var(--color--red) border: solid 2px var(--color--red);
} }
select.error:focus { select.error:focus {
@ -89,7 +64,7 @@ select[multiple] {
height: auto; height: auto;
padding: var(--sp0-5); padding: var(--sp0-5);
background-image: none; background-image: none;
line-height: 1 /* Needed by non-Chromium based MS Edge browsers. */ line-height: 1; /* Needed by non-Chromium based MS Edge browsers. */
} }
select[multiple] option { select[multiple] option {
@ -100,33 +75,21 @@ select.form-element--small {
height: var(--sp2-5); height: var(--sp2-5);
} }
select {
/* Necessary to show chevron in forced colors mode in modern browsers. */ /* Necessary to show chevron in forced colors mode in modern browsers. */
}
@media (forced-colors: active) { @media (forced-colors: active) {
[dir="ltr"] select {
padding-right: var(--sp)
}
[dir="rtl"] select {
padding-left: var(--sp)
}
select { select {
padding-inline-end: var(--sp);
background-image: none; background-image: none;
-webkit-appearance: listbox; -webkit-appearance: listbox;
appearance: listbox /* Default <select> appearance value for modern browsers. */ appearance: listbox; /* Default <select> appearance value for modern browsers. */
/* Lets browser set <select> appearance to whatever the browser's default is. */ /* Lets browser set <select> appearance to whatever the browser's default is. */
} }
@supports ((-webkit-appearance: revert) or (appearance: revert)) { @supports ((-webkit-appearance: revert) or (appearance: revert)) {
select { select {
-webkit-appearance: revert; -webkit-appearance: revert;
appearance: revert appearance: revert;
} }
} }
} }

65
css/components/form-text.css

@ -10,19 +10,6 @@
* Text input elements. * Text input elements.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[type="color"], [type="color"],
[type="date"], [type="date"],
[type="datetime-local"], [type="datetime-local"],
@ -49,48 +36,46 @@ textarea {
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
-webkit-appearance: none; -webkit-appearance: none;
appearance: none appearance: none;
} }
[type="color"]:focus, [type="date"]:focus, [type="datetime-local"]:focus, [type="email"]:focus, [type="file"]:focus, [type="month"]:focus, [type="number"]:focus, [type="password"]:focus, [type="search"]:focus, [type="tel"]:focus, [type="text"]:focus, [type="time"]:focus, [type="url"]:focus, [type="week"]:focus, textarea:focus { :is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea):focus {
border: solid 2px var(--color--primary-50); border: solid 2px var(--color--primary-50);
outline: solid 2px var(--color--primary-50) outline: solid 2px var(--color--primary-50);
} }
@supports (outline-style: double) { @supports (outline-style: double) {
:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea):focus {
[type="color"]:focus, [type="date"]:focus, [type="datetime-local"]:focus, [type="email"]:focus, [type="file"]:focus, [type="month"]:focus, [type="number"]:focus, [type="password"]:focus, [type="search"]:focus, [type="tel"]:focus, [type="text"]:focus, [type="time"]:focus, [type="url"]:focus, [type="week"]:focus, textarea:focus {
border-width: 1px; border-width: 1px;
outline-width: 6px; outline-width: 6px;
outline-style: double; outline-style: double;
outline-offset: -1px outline-offset: -1px;
} }
} }
[type="color"][disabled], [type="date"][disabled], [type="datetime-local"][disabled], [type="email"][disabled], [type="file"][disabled], [type="month"][disabled], [type="number"][disabled], [type="password"][disabled], [type="search"][disabled], [type="tel"][disabled], [type="text"][disabled], [type="time"][disabled], [type="url"][disabled], [type="week"][disabled], textarea[disabled] { [disabled]:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea) {
color: var(--color--gray-60); color: var(--color--gray-60);
background-color: var(--color--gray-100); background-color: var(--color--gray-100);
} }
[type="color"].error, [type="date"].error, [type="datetime-local"].error, [type="email"].error, [type="file"].error, [type="month"].error, [type="number"].error, [type="password"].error, [type="search"].error, [type="tel"].error, [type="text"].error, [type="time"].error, [type="url"].error, [type="week"].error, textarea.error { .error:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea) {
border: solid 2px var(--color--red) border: solid 2px var(--color--red);
} }
[type="color"].error:focus, [type="date"].error:focus, [type="datetime-local"].error:focus, [type="email"].error:focus, [type="file"].error:focus, [type="month"].error:focus, [type="number"].error:focus, [type="password"].error:focus, [type="search"].error:focus, [type="tel"].error:focus, [type="text"].error:focus, [type="time"].error:focus, [type="url"].error:focus, [type="week"].error:focus, textarea.error:focus { .error:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea):focus {
outline-color: var(--color--red); outline-color: var(--color--red);
outline-offset: -2px; outline-offset: -2px;
} }
[type="color"].error + .ck-editor > .ck-editor__main, [type="date"].error + .ck-editor > .ck-editor__main, [type="datetime-local"].error + .ck-editor > .ck-editor__main, [type="email"].error + .ck-editor > .ck-editor__main, [type="file"].error + .ck-editor > .ck-editor__main, [type="month"].error + .ck-editor > .ck-editor__main, [type="number"].error + .ck-editor > .ck-editor__main, [type="password"].error + .ck-editor > .ck-editor__main, [type="search"].error + .ck-editor > .ck-editor__main, [type="tel"].error + .ck-editor > .ck-editor__main, [type="text"].error + .ck-editor > .ck-editor__main, [type="time"].error + .ck-editor > .ck-editor__main, [type="url"].error + .ck-editor > .ck-editor__main, [type="week"].error + .ck-editor > .ck-editor__main, textarea.error + .ck-editor > .ck-editor__main { .error:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea) + .ck-editor > .ck-editor__main {
border: solid 2px var(--color--red); border: solid 2px var(--color--red);
} }
[type="color"].form-element--small, [type="date"].form-element--small, [type="datetime-local"].form-element--small, [type="email"].form-element--small, [type="file"].form-element--small, [type="month"].form-element--small, [type="number"].form-element--small, [type="password"].form-element--small, [type="search"].form-element--small, [type="tel"].form-element--small, [type="text"].form-element--small, [type="time"].form-element--small, [type="url"].form-element--small, [type="week"].form-element--small, textarea.form-element--small { .form-element--small:is([type="color"], [type="date"], [type="datetime-local"], [type="email"], [type="file"], [type="month"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], textarea) {
min-height: var(--sp2-5); min-height: var(--sp2-5);
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
[type="color"], [type="color"],
[type="date"], [type="date"],
[type="datetime-local"], [type="datetime-local"],
@ -106,39 +91,21 @@ textarea {
[type="url"], [type="url"],
[type="week"], [type="week"],
textarea { textarea {
width: auto width: auto;
} }
} }
[type="date"] {
/* Ensure that date field isn't larger than other fields. */ /* Ensure that date field isn't larger than other fields. */
}
[dir="ltr"] [type="date"]::-webkit-datetime-edit-fields-wrapper {
padding-left: 0
}
[dir="rtl"] [type="date"]::-webkit-datetime-edit-fields-wrapper {
padding-right: 0
}
[dir="ltr"] [type="date"]::-webkit-datetime-edit-fields-wrapper {
padding-right: 0
}
[dir="rtl"] [type="date"]::-webkit-datetime-edit-fields-wrapper {
padding-left: 0
}
[type="date"]::-webkit-datetime-edit-fields-wrapper { [type="date"]::-webkit-datetime-edit-fields-wrapper {
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
padding-inline-end: 0;
} }
[type="file"] { [type="file"] {
height: auto; height: auto;
padding-top: var(--sp0-75); padding-block: var(--sp0-75);
padding-bottom: var(--sp0-75);
} }
[type="color"] { [type="color"] {

13
css/components/form-textarea.css

@ -10,19 +10,6 @@
* Textarea. * Textarea.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
textarea { textarea {
display: block; display: block;
width: 100%; width: 100%;

89
css/components/form.css

@ -10,23 +10,6 @@
* Main form and form item styles. * Main form and form item styles.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
:-ms-input-placeholder {
color: var(--color--gray-60);
}
::placeholder { ::placeholder {
color: var(--color--gray-60); color: var(--color--gray-60);
} }
@ -36,13 +19,11 @@
*/ */
.form-item { .form-item {
margin-top: var(--sp1); margin-block: var(--sp1);
margin-bottom: var(--sp1);
} }
.form-item__label--multiple-value-form { .form-item__label--multiple-value-form {
margin-top: 0; margin-block: 0;
margin-bottom: 0;
font-size: inherit; font-size: inherit;
font-weight: inherit; font-weight: inherit;
line-height: inherit; line-height: inherit;
@ -56,8 +37,7 @@
tr .form-item, tr .form-item,
.container-inline .form-item { .container-inline .form-item {
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5);
} }
/** /**
@ -66,21 +46,15 @@ tr .form-item,
.form-item__label { .form-item__label {
display: block; display: block;
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5);
} }
[dir="ltr"] .container-inline .form-item__label { .container-inline .form-item__label {
margin-right: 1em; margin-inline-end: 1em;
}
[dir="rtl"] .container-inline .form-item__label {
margin-left: 1em;
} }
.form-item__label--multiple-value-form { .form-item__label--multiple-value-form {
margin-top: 0; margin-block: 0;
margin-bottom: 0;
font-size: inherit; font-size: inherit;
font-weight: inherit; font-weight: inherit;
line-height: inherit; line-height: inherit;
@ -110,22 +84,20 @@ tr .form-item,
display: inline-block; display: inline-block;
width: 0.5rem; width: 0.5rem;
height: 0.5rem; height: 0.5rem;
margin-left: 0.3em; margin-inline: 0.3em;
margin-right: 0.3em;
content: ""; content: "";
vertical-align: text-top; vertical-align: text-top;
/* Use a background image to prevent screen readers from announcing the text. */ /* Use a background image to prevent screen readers from announcing the text. */
background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m0 7.562 1.114-3.438c2.565.906 4.43 1.688 5.59 2.35-.306-2.921-.467-4.93-.484-6.027h3.511c-.05 1.597-.234 3.6-.558 6.003 1.664-.838 3.566-1.613 5.714-2.325l1.113 3.437c-2.05.678-4.06 1.131-6.028 1.356.984.856 2.372 2.381 4.166 4.575l-2.906 2.059c-.935-1.274-2.041-3.009-3.316-5.206-1.194 2.275-2.244 4.013-3.147 5.206l-2.856-2.059c1.872-2.307 3.211-3.832 4.017-4.575-2.081-.402-4.058-.856-5.93-1.356' fill='%232494DB'/%3E%3C/svg%3E%0A"); background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m0 7.562 1.114-3.438c2.565.906 4.43 1.688 5.59 2.35-.306-2.921-.467-4.93-.484-6.027h3.511c-.05 1.597-.234 3.6-.558 6.003 1.664-.838 3.566-1.613 5.714-2.325l1.113 3.437c-2.05.678-4.06 1.131-6.028 1.356.984.856 2.372 2.381 4.166 4.575l-2.906 2.059c-.935-1.274-2.041-3.009-3.316-5.206-1.194 2.275-2.244 4.013-3.147 5.206l-2.856-2.059c1.872-2.307 3.211-3.832 4.017-4.575-2.081-.402-4.058-.856-5.93-1.356' fill='%232494DB'/%3E%3C/svg%3E%0A");
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 0.5rem 0.5rem background-size: 0.5rem 0.5rem;
} }
@media screen and (-ms-high-contrast: active) { @media screen and (-ms-high-contrast: active) {
.form-item__label.form-required::after, .form-item__label.form-required::after,
.fieldset__label.form-required::after, .fieldset__label.form-required::after,
.required-mark::after { .required-mark::after {
background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m0 7.562 1.114-3.438c2.565.906 4.43 1.688 5.59 2.35-.306-2.921-.467-4.93-.484-6.027h3.511c-.05 1.597-.234 3.6-.558 6.003 1.664-.838 3.566-1.613 5.714-2.325l1.113 3.437c-2.05.678-4.06 1.131-6.028 1.356.984.856 2.372 2.381 4.166 4.575l-2.906 2.059c-.935-1.274-2.041-3.009-3.316-5.206-1.194 2.275-2.244 4.013-3.147 5.206l-2.856-2.059c1.872-2.307 3.211-3.832 4.017-4.575-2.081-.402-4.058-.856-5.93-1.356' fill='%23ffffff'/%3E%3C/svg%3E%0A") background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m0 7.562 1.114-3.438c2.565.906 4.43 1.688 5.59 2.35-.306-2.921-.467-4.93-.484-6.027h3.511c-.05 1.597-.234 3.6-.558 6.003 1.664-.838 3.566-1.613 5.714-2.325l1.113 3.437c-2.05.678-4.06 1.131-6.028 1.356.984.856 2.372 2.381 4.166 4.575l-2.906 2.059c-.935-1.274-2.041-3.009-3.316-5.206-1.194 2.275-2.244 4.013-3.147 5.206l-2.856-2.059c1.872-2.307 3.211-3.832 4.017-4.575-2.081-.402-4.058-.856-5.93-1.356' fill='%23ffffff'/%3E%3C/svg%3E%0A");
} }
} }
@ -134,45 +106,35 @@ tr .form-item,
*/ */
.form-item__description { .form-item__description {
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5);
max-width: 60ch; max-width: 60ch;
font-size: var(--font-size-s); font-size: var(--font-size-s);
line-height: var(--line-height-s); line-height: var(--line-height-s);
} }
.field-multiple-table + .form-item__description { .field-multiple-table + .form-item__description {
margin-top: 0; margin-block-start: 0;
} }
/** /**
* Error message (Inline form errors). * Error message (Inline form errors).
*/ */
[dir="ltr"] .form-item--error-message {
padding-left: var(--sp1-5);
}
[dir="rtl"] .form-item--error-message {
padding-right: var(--sp1-5);
}
.form-item--error-message { .form-item--error-message {
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5); padding-inline-start: var(--sp1-5);
color: var(--color--red); color: var(--color--red);
background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23E33F1E' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23E33F1E' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: left top; /* LTR */ background-position: left top; /* LTR */
background-size: var(--sp1) var(--sp1); background-size: var(--sp1) var(--sp1);
font-size: var(--font-size-s); font-size: var(--font-size-s);
line-height: var(--line-height-s) line-height: var(--line-height-s);
} }
@media screen and (-ms-high-contrast: active) { @media screen and (-ms-high-contrast: active) {
.form-item--error-message { .form-item--error-message {
background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E") background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M9 0C4.03125 0 0 4.03125 0 9C0 13.9688 4.03125 18 9 18C13.9687 18 18 13.9688 18 9C18 4.03125 13.9687 0 9 0ZM10.5 14.6133C10.5 14.8242 10.3359 15 10.1367 15H7.88672C7.67578 15 7.5 14.8242 7.5 14.6133V12.3867C7.5 12.1758 7.67578 12 7.88672 12H10.1367C10.3359 12 10.5 12.1758 10.5 12.3867V14.6133ZM10.4766 10.582C10.4648 10.7461 10.2891 10.875 10.0781 10.875H7.91016C7.6875 10.875 7.51172 10.7461 7.51172 10.582L7.3125 3.30469C7.3125 3.22266 7.34766 3.14063 7.42969 3.09375C7.5 3.03516 7.60547 3 7.71094 3H10.2891C10.3945 3 10.5 3.03516 10.5703 3.09375C10.6523 3.14063 10.6875 3.22266 10.6875 3.30469L10.4766 10.582Z'/%3E%3C/svg%3E");
} }
} }
@ -188,18 +150,15 @@ tr .form-item,
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: flex-start; align-items: flex-start;
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5);
} }
.form-actions .button, .form-actions .button,
.form-actions .action-link { .form-actions .action-link {
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5);
} }
.form-actions .ajax-progress--throbber { .form-actions .ajax-progress--throbber {
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
@ -221,16 +180,10 @@ tr .form-item,
min-width: 1px; min-width: 1px;
} }
[dir="ltr"] .form-item--editor-format .form-item__label,[dir="ltr"] .form-item--editor-format .form-item__label,
.form-item--editor-format .form-item__prefix,[dir="ltr"] .form-item--editor-format .form-item__prefix,
.form-item--editor-format .form-item__suffix {
margin-right: var(--sp0-5);
}
[dir="rtl"] .form-item--editor-format .form-item__label,[dir="rtl"]
.form-item--editor-format .form-item__prefix,[dir="rtl"]
.form-item--editor-format .form-item__suffix { .form-item--editor-format .form-item__suffix {
margin-left: var(--sp0-5); margin-inline-end: var(--sp0-5);
} }
.form-item--editor-format .form-item__description, .form-item--editor-format .form-item__description,

13
css/components/forum.css

@ -10,19 +10,6 @@
* Forum specific styles. * Forum specific styles.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.forum table { .forum table {
width: 100%; width: 100%;
} }

33
css/components/header-buttons-mobile.css

@ -10,49 +10,26 @@
* Header Mobile Buttons. * Header Mobile Buttons.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .mobile-buttons {
margin-left: auto
}
[dir="rtl"] .mobile-buttons {
margin-right: auto
}
.mobile-buttons { .mobile-buttons {
margin-top: var(--sp0-5) margin-block-start: var(--sp0-5);
margin-inline-start: auto;
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.mobile-buttons { .mobile-buttons {
margin-top: var(--sp2) margin-block-start: var(--sp2);
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.mobile-buttons { .mobile-buttons {
margin-top: var(--sp4) margin-block-start: var(--sp4);
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.mobile-buttons { .mobile-buttons {
margin-top: var(--sp6) margin-block-start: var(--sp6);
} }
} }

155
css/components/header-navigation.css

@ -10,47 +10,11 @@
* Navigation in header. * Navigation in header.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .header-nav {
left: 100%
}
[dir="rtl"] .header-nav {
right: 100%
}
[dir="ltr"] .header-nav {
padding-left: var(--sp)
}
[dir="rtl"] .header-nav {
padding-right: var(--sp)
}
[dir="ltr"] .header-nav {
padding-right: var(--sp)
}
[dir="rtl"] .header-nav {
padding-left: var(--sp)
}
.header-nav { .header-nav {
position: fixed; position: fixed;
z-index: 501; /* Appear above overlay and contextual links in header. */ z-index: 501; /* Appear above overlay and contextual links in header. */
top: 0; inset-block-start: 0;
inset-inline-start: 100%;
visibility: hidden; visibility: hidden;
overflow: auto; overflow: auto;
/* Ensure that header nav not use additional space and force system branding /* Ensure that header nav not use additional space and force system branding
@ -59,69 +23,54 @@
width: 100%; width: 100%;
max-width: var(--mobile-nav-width); max-width: var(--mobile-nav-width);
height: 100%; height: 100%;
padding-top: 0; padding-block: 0 var(--sp);
padding-bottom: var(--sp); padding-inline-start: var(--sp);
padding-inline-end: var(--sp);
/* Create room for the "close" button. We cannot use margin because the /* Create room for the "close" button. We cannot use margin because the
* mobile navigation needs to slide beneath the button, but we also cannot * mobile navigation needs to slide beneath the button, but we also cannot
* use padding because that would enable the button to scroll out of the * use padding because that would enable the button to scroll out of the
* viewport on short screens. */ * viewport on short screens. */
border-top: solid var(--color--white) calc(var(--sp3)); border-block-start: solid var(--color--white) calc(var(--sp3) + var(--drupal-displace-offset-top, 0px));
background-color: var(--color--white); background-color: var(--color--white);
box-shadow: 0 0 72px rgba(0, 0, 0, 0.1) box-shadow: 0 0 72px rgba(0, 0, 0, 0.1);
} }
.header-nav.is-active { .header-nav.is-active {
visibility: visible; visibility: visible;
transform: translateX(-100%) /* LTR */ transform: translateX(calc(-100% - var(--drupal-displace-offset-right, 0px))); /* LTR */
} }
[dir="rtl"] .header-nav.is-active { [dir="rtl"] .header-nav.is-active {
transform: translateX(100%); transform: translateX(calc(100% + var(--drupal-displace-offset-left, 0px)));
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.header-nav { .header-nav {
border-top-width: calc(var(--sp5)) border-top-width: calc(var(--sp5) + var(--drupal-displace-offset-top, 0px));
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .header-nav {
padding-left: var(--sp3)
}
[dir="rtl"] .header-nav {
padding-right: var(--sp3)
}
.header-nav { .header-nav {
padding-bottom: var(--sp3); padding-block-end: var(--sp3);
border-top-width: calc(var(--sp7)) padding-inline-start: var(--sp3);
border-top-width: calc(var(--sp7) + var(--drupal-displace-offset-top, 0px));
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.header-nav { .header-nav {
-ms-grid-column: 5; grid-column: 5 / 14;
-ms-grid-column-span: 9;
grid-column: 5 / 14
} }
} }
.header-nav {
/* /*
* Ensure top border has the same color as the background when in forced colors. * Ensure top border has the same color as the background when in forced colors.
*/ */
}
@media (forced-colors: active) { @media (forced-colors: active) {
.header-nav { .header-nav {
border-top-color: canvas border-top-color: canvas;
} }
} }
@ -135,104 +84,62 @@ html.js .header-nav {
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] body:not(.is-always-mobile-nav) .header-nav {
padding-left: 0
}
[dir="rtl"] body:not(.is-always-mobile-nav) .header-nav {
padding-right: 0
}
[dir="ltr"] body:not(.is-always-mobile-nav) .header-nav {
padding-right: 0
}
[dir="rtl"] body:not(.is-always-mobile-nav) .header-nav {
padding-left: 0
}
body:not(.is-always-mobile-nav) .header-nav { body:not(.is-always-mobile-nav) .header-nav {
position: static; position: static;
display: flex; display: flex;
visibility: visible; visibility: visible;
overflow: visible; overflow: visible;
-ms-grid-column: 5;
-ms-grid-column-span: 10;
grid-column: 5 / 15; grid-column: 5 / 15;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
max-width: none; max-width: none;
height: var(--header-height-wide-when-fixed); height: var(--header-height-wide-when-fixed);
margin-top: auto; margin-block-start: auto;
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
padding-inline-end: 0;
transition: transform 0.2s; transition: transform 0.2s;
transform: none; transform: none;
border-top: 0; border-block-start: 0;
box-shadow: none box-shadow: none;
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] body.is-always-mobile-nav .header-nav {
padding-right: var(--sp)
}
[dir="rtl"] body.is-always-mobile-nav .header-nav {
padding-left: var(--sp)
}
body.is-always-mobile-nav .header-nav { body.is-always-mobile-nav .header-nav {
overflow: auto; overflow: auto;
max-width: calc(var(--grid-col-width)*7 + var(--grid-gap)*7); max-width: calc((7 * (var(--grid-col-width) + var(--grid-gap))));
padding-inline-end: var(--sp);
transition: transform 0.2s, visibility 0.2s; transition: transform 0.2s, visibility 0.2s;
border-top-width: calc(var(--sp11)) border-top-width: calc(var(--drupal-displace-offset-top, 0px) + var(--sp11));
} }
} }
@media (min-width: 90rem) { @media (min-width: 90rem) {
[dir="ltr"] body.is-always-mobile-nav .header-nav {
padding-right: calc(100vw - var(--max-width) - var(--content-left) + var(--sp))
}
[dir="rtl"] body.is-always-mobile-nav .header-nav {
padding-left: calc(100vw - var(--max-width) - var(--content-left) + var(--sp))
}
body.is-always-mobile-nav .header-nav { body.is-always-mobile-nav .header-nav {
max-width: calc(100vw - var(--max-width) - var(--content-left) + var(--grid-col-width)*7 + var(--grid-gap)*7) max-width: calc(100vw - (var(--max-width) + var(--content-left)) + ((7 * (var(--grid-col-width) + var(--grid-gap)))));
} padding-inline-end: calc(100vw - (var(--max-width) + var(--content-left) - var(--sp)));
}
[dir="ltr"] .header-nav-overlay {
left: 0
} }
[dir="rtl"] .header-nav-overlay {
right: 0
} }
.header-nav-overlay { .header-nav-overlay {
position: fixed; position: fixed;
z-index: 101; z-index: 101;
top: 0; inset-block-start: 0;
inset-inline-start: 0;
display: none; display: none;
width: 100%; width: 100%;
height: 100vh; height: 100vh;
opacity: 0.2; opacity: 0.2;
background: var(--color--gray-5) background: var(--color--gray-5);
} }
@media (forced-colors: active) { @media (forced-colors: active) {
.header-nav-overlay { .header-nav-overlay {
background: canvastext background: canvastext;
} }
} }
.is-overlay-active .header-nav-overlay { .is-overlay-active .header-nav-overlay {
display: block display: block;
} }

178
css/components/header-search-narrow.css

@ -10,24 +10,10 @@
* Header Search Narrow Block. * Header Search Narrow Block.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.block-search-narrow { .block-search-narrow {
margin-left: calc(var(--sp)*-1); margin-inline: calc(-1 * var(--sp));
margin-right: calc(var(--sp)*-1); margin-block-end: var(--sp2);
margin-bottom: var(--sp2); background: var(--color--black);
background: var(--color--black)
} }
.block-search-narrow .search-block-form { .block-search-narrow .search-block-form {
@ -43,27 +29,12 @@
margin: 0; margin: 0;
} }
[dir="ltr"] .block-search-narrow input[type="search"] {
padding-left: var(--sp)
}
[dir="rtl"] .block-search-narrow input[type="search"] {
padding-right: var(--sp)
}
[dir="ltr"] .block-search-narrow input[type="search"] {
padding-right: var(--sp)
}
[dir="rtl"] .block-search-narrow input[type="search"] {
padding-left: var(--sp)
}
.block-search-narrow input[type="search"] { .block-search-narrow input[type="search"] {
width: calc(100% + var(--sp2)); width: calc(100% + var(--sp2));
height: calc(var(--sp)*3); height: calc(3 * var(--sp));
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: var(--sp);
padding-inline-end: var(--sp);
transition: background-size 0.4s; transition: background-size 0.4s;
color: var(--color--white); color: var(--color--white);
border: solid 1px transparent; border: solid 1px transparent;
@ -75,7 +46,7 @@
box-shadow: none; box-shadow: none;
font-family: var(--font-serif); font-family: var(--font-serif);
font-size: 1rem; font-size: 1rem;
-webkit-appearance: none -webkit-appearance: none;
} }
.block-search-narrow input[type="search"]:focus { .block-search-narrow input[type="search"]:focus {
@ -85,74 +56,28 @@
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .block-search-narrow input[type="search"] {
padding-left: var(--sp2)
}
[dir="rtl"] .block-search-narrow input[type="search"] {
padding-right: var(--sp2)
}
[dir="ltr"] .block-search-narrow input[type="search"] {
padding-right: var(--sp2)
}
[dir="rtl"] .block-search-narrow input[type="search"] {
padding-left: var(--sp2)
}
.block-search-narrow input[type="search"] { .block-search-narrow input[type="search"] {
height: calc(var(--sp)*4) height: calc(4 * var(--sp));
padding-inline-start: var(--sp2);
padding-inline-end: var(--sp2);
} }
} }
[dir="ltr"] .block-search-narrow .search-form__submit {
margin-left: 0
}
[dir="rtl"] .block-search-narrow .search-form__submit {
margin-right: 0
}
[dir="ltr"] .block-search-narrow .search-form__submit {
margin-right: 0
}
[dir="rtl"] .block-search-narrow .search-form__submit {
margin-left: 0
}
[dir="ltr"] .block-search-narrow .search-form__submit {
padding-left: 0
}
[dir="rtl"] .block-search-narrow .search-form__submit {
padding-right: 0
}
[dir="ltr"] .block-search-narrow .search-form__submit {
padding-right: 0
}
[dir="rtl"] .block-search-narrow .search-form__submit {
padding-left: 0
}
.block-search-narrow .search-form__submit { .block-search-narrow .search-form__submit {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
-ms-grid-row-align: stretch;
align-self: stretch; align-self: stretch;
width: var(--sp3); width: var(--sp3);
height: auto; height: auto;
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
cursor: pointer; cursor: pointer;
border-color: transparent; border-color: transparent;
background-color: transparent background-color: transparent;
/* /*
When in Windows high contrast mode, FF will not output either background When in Windows high contrast mode, FF will not output either background
@ -160,17 +85,10 @@
*/ */
} }
[dir="ltr"] .block-search-narrow .search-form__submit .icon--search {
left: 0
}
[dir="rtl"] .block-search-narrow .search-form__submit .icon--search {
right: 0
}
.block-search-narrow .search-form__submit .icon--search { .block-search-narrow .search-form__submit .icon--search {
position: absolute; position: absolute;
top: 0; inset-block-start: 0;
inset-inline-start: 0;
display: block; display: block;
width: 100%; /* Width of the SVG background image. */ width: 100%; /* Width of the SVG background image. */
height: 100%; height: 100%;
@ -178,31 +96,23 @@
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e"); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
background-size: auto background-size: auto;
}
[dir="ltr"] .block-search-narrow .search-form__submit .icon--search::after {
left: 0
}
[dir="rtl"] .block-search-narrow .search-form__submit .icon--search::after {
right: 0
} }
.block-search-narrow .search-form__submit .icon--search::after { .block-search-narrow .search-form__submit .icon--search::after {
position: absolute; position: absolute;
bottom: 0; inset-block-end: 0;
inset-inline-start: 0;
width: 100%; width: 100%;
height: 0; height: 0;
content: ""; content: "";
transition: transform 0.2s; transition: transform 0.2s;
transform: scaleX(0); transform: scaleX(0);
transform-origin: left; /* LTR */ transform-origin: left; /* LTR */
border-top: solid 5px var(--color--primary-50); border-block-start: solid 0.3125rem var(--color--primary-50);
} }
@media (forced-colors: active) { @media (forced-colors: active) {
.block-search-narrow .search-form__submit .icon--search { .block-search-narrow .search-form__submit .icon--search {
background: buttontext; background: buttontext;
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e"); -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e");
@ -210,14 +120,14 @@
-webkit-mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat; mask-repeat: no-repeat;
-webkit-mask-position: center; -webkit-mask-position: center;
mask-position: center mask-position: center;
} }
} }
.block-search-narrow .search-form__submit:focus { .block-search-narrow .search-form__submit:focus {
outline: solid 4px transparent; outline: solid 4px transparent;
outline-offset: -4px; outline-offset: -4px;
box-shadow: none box-shadow: none;
} }
.block-search-narrow .search-form__submit:focus span::after { .block-search-narrow .search-form__submit:focus span::after {
@ -225,9 +135,8 @@
} }
@media screen and (-ms-high-contrast: active) { @media screen and (-ms-high-contrast: active) {
.block-search-narrow .search-form__submit:focus { .block-search-narrow .search-form__submit:focus {
border-bottom-width: var(--sp0-5) border-bottom-width: var(--sp0-5);
} }
.block-search-narrow .search-form__submit:focus span::after { .block-search-narrow .search-form__submit:focus span::after {
@ -236,17 +145,13 @@
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.block-search-narrow .search-form__submit { .block-search-narrow .search-form__submit {
width: 5rem width: 5rem;
} }
} }
@media screen and (-ms-high-contrast: active) { @media screen and (-ms-high-contrast: active) {
.block-search-narrow .search-form__submit {
/* IE11's high contrast show will not show the background image, so we show the text. */ /* IE11's high contrast show will not show the background image, so we show the text. */
}
.block-search-narrow .search-form__submit .visually-hidden { .block-search-narrow .search-form__submit .visually-hidden {
position: static; position: static;
overflow: visible; overflow: visible;
@ -256,43 +161,24 @@
text-align: center; text-align: center;
} }
.block-search-narrow .search-form__submit {
/* Edge's high contrast does show the background image, so we hide it. */ /* Edge's high contrast does show the background image, so we hide it. */
}
.block-search-narrow .search-form__submit .icon--search { .block-search-narrow .search-form__submit .icon--search {
display: none; display: none;
} }
} }
.block-search-narrow {
/* 500px is the width of the primary nav at mobile. */ /* 500px is the width of the primary nav at mobile. */
}
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.block-search-narrow {
[dir="ltr"] .block-search-narrow { margin-inline-start: 0;
margin-left: 0 margin-inline-end: 0;
}
[dir="rtl"] .block-search-narrow {
margin-right: 0
}
[dir="ltr"] .block-search-narrow {
margin-right: 0
}
[dir="rtl"] .block-search-narrow {
margin-left: 0
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
body:not(.is-always-mobile-nav) .block-search-narrow { body:not(.is-always-mobile-nav) .block-search-narrow {
display: none display: none;
} }
} }

226
css/components/header-search-wide.css

@ -10,77 +10,17 @@
* Header Search Wide Block. * Header Search Wide Block.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
/* Override contextual links so we can position against .site-header. */ /* Override contextual links so we can position against .site-header. */
.block-search-wide.contextual-region { .block-search-wide.contextual-region {
position: static; position: static;
} }
[dir="ltr"] .block-search-wide__wrapper {
left: calc(var(--content-left)*-1);
}
[dir="rtl"] .block-search-wide__wrapper {
right: calc(var(--content-left)*-1);
}
[dir="ltr"] .block-search-wide__wrapper {
margin-left: 0;
}
[dir="rtl"] .block-search-wide__wrapper {
margin-right: 0;
}
[dir="ltr"] .block-search-wide__wrapper {
margin-right: 0;
}
[dir="rtl"] .block-search-wide__wrapper {
margin-left: 0;
}
[dir="ltr"] .block-search-wide__wrapper {
padding-left: 0;
}
[dir="rtl"] .block-search-wide__wrapper {
padding-right: 0;
}
[dir="ltr"] .block-search-wide__wrapper {
padding-right: 0;
}
[dir="rtl"] .block-search-wide__wrapper {
padding-left: 0;
}
[dir="ltr"] .block-search-wide__wrapper {
border-left: solid var(--content-left) var(--color--gray-20);
}
[dir="rtl"] .block-search-wide__wrapper {
border-right: solid var(--content-left) var(--color--gray-20);
}
.block-search-wide__wrapper { .block-search-wide__wrapper {
position: absolute; position: absolute;
z-index: 1; /* Ensure left border shows above social region in IE11. */ z-index: 1; /* Ensure left border shows above social region in IE11. */
top: 100%; inset-block-start: 100%;
inset-inline-start: calc(-1 * var(--content-left));
display: none; display: none;
visibility: hidden; visibility: hidden;
overflow: hidden; overflow: hidden;
@ -88,12 +28,15 @@
max-width: var(--max-bg-color); max-width: var(--max-bg-color);
height: var(--sp8); height: var(--sp8);
max-height: 0; max-height: 0;
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
transition: all 0.2s; transition: all 0.2s;
background: var(--color--black) border-inline-start: solid var(--content-left) var(--color--gray-20);
background: var(--color--black);
} }
.block-search-wide__wrapper.is-active { .block-search-wide__wrapper.is-active {
@ -103,39 +46,22 @@
.block-search-wide__wrapper form { .block-search-wide__wrapper form {
display: flex; display: flex;
-ms-grid-column: 1;
-ms-grid-column-span: 13;
grid-column: 1 / 14; grid-column: 1 / 14;
} }
[dir="ltr"] .block-search-wide__wrapper input[type="search"] {
padding-left: var(--sp12);
}
[dir="rtl"] .block-search-wide__wrapper input[type="search"] {
padding-right: var(--sp12);
}
[dir="ltr"] .block-search-wide__wrapper input[type="search"] {
padding-right: 0;
}
[dir="rtl"] .block-search-wide__wrapper input[type="search"] {
padding-left: 0;
}
.block-search-wide__wrapper input[type="search"] { .block-search-wide__wrapper input[type="search"] {
width: calc(100% + var(--sp2)); width: calc(100% + var(--sp2));
height: var(--sp8); height: var(--sp8);
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: var(--sp12);
padding-inline-end: 0;
transition: background-size 0.4s; transition: background-size 0.4s;
color: var(--color--white); color: var(--color--white);
border: solid 1px transparent; border: solid 1px transparent;
box-shadow: none; box-shadow: none;
font-family: var(--font-serif); font-family: var(--font-serif);
font-size: 2rem; font-size: 2rem;
-webkit-appearance: none -webkit-appearance: none;
} }
.block-search-wide__wrapper input[type="search"]:focus { .block-search-wide__wrapper input[type="search"]:focus {
@ -153,52 +79,21 @@
margin: 0; margin: 0;
} }
[dir="ltr"] .block-search-wide__wrapper .search-form__submit {
margin-left: 0;
}
[dir="rtl"] .block-search-wide__wrapper .search-form__submit {
margin-right: 0;
}
[dir="ltr"] .block-search-wide__wrapper .search-form__submit {
margin-right: 0;
}
[dir="rtl"] .block-search-wide__wrapper .search-form__submit {
margin-left: 0;
}
[dir="ltr"] .block-search-wide__wrapper .search-form__submit {
padding-left: 0;
}
[dir="rtl"] .block-search-wide__wrapper .search-form__submit {
padding-right: 0;
}
[dir="ltr"] .block-search-wide__wrapper .search-form__submit {
padding-right: 0;
}
[dir="rtl"] .block-search-wide__wrapper .search-form__submit {
padding-left: 0;
}
.block-search-wide__wrapper .search-form__submit { .block-search-wide__wrapper .search-form__submit {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
-ms-grid-row-align: stretch;
align-self: stretch; align-self: stretch;
width: 6.25rem; width: 6.25rem;
height: auto; height: auto;
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
cursor: pointer; cursor: pointer;
border-color: transparent; border-color: transparent;
background-color: transparent background-color: transparent;
/* /*
When in Windows high contrast mode, FF will not output either background When in Windows high contrast mode, FF will not output either background
@ -206,17 +101,10 @@
*/ */
} }
[dir="ltr"] .block-search-wide__wrapper .search-form__submit .icon--search {
right: 0;
}
[dir="rtl"] .block-search-wide__wrapper .search-form__submit .icon--search {
left: 0;
}
.block-search-wide__wrapper .search-form__submit .icon--search { .block-search-wide__wrapper .search-form__submit .icon--search {
position: absolute; position: absolute;
top: 0; inset-block-start: 0;
inset-inline-end: 0;
display: block; display: block;
width: 1.5rem; /* Width of the SVG background image. */ width: 1.5rem; /* Width of the SVG background image. */
height: 100%; height: 100%;
@ -224,33 +112,26 @@
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e"); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
background-size: contain background-size: contain;
}
[dir="ltr"] .block-search-wide__wrapper .search-form__submit .icon--search::after {
left: 0;
}
[dir="rtl"] .block-search-wide__wrapper .search-form__submit .icon--search::after {
right: 0;
} }
.block-search-wide__wrapper .search-form__submit .icon--search::after { .block-search-wide__wrapper .search-form__submit .icon--search::after {
position: absolute; position: absolute;
bottom: 0; inset-block-end: 0;
inset-inline-start: 0;
width: 100%; width: 100%;
height: 0; height: 0;
content: ""; content: "";
transition: transform 0.2s; transition: transform 0.2s;
transform: scaleX(0); transform: scaleX(0);
transform-origin: left; transform-origin: left;
border-top: solid var(--sp0-5) var(--color--primary-50); border-block-start: solid var(--sp0-5) var(--color--primary-50);
} }
.block-search-wide__wrapper .search-form__submit:focus { .block-search-wide__wrapper .search-form__submit:focus {
outline: solid 4px transparent; outline: solid 4px transparent;
outline-offset: -4px; outline-offset: -4px;
box-shadow: none box-shadow: none;
} }
.block-search-wide__wrapper .search-form__submit:focus span::after { .block-search-wide__wrapper .search-form__submit:focus span::after {
@ -258,9 +139,8 @@
} }
@media screen and (-ms-high-contrast: active) { @media screen and (-ms-high-contrast: active) {
.block-search-wide__wrapper .search-form__submit:focus { .block-search-wide__wrapper .search-form__submit:focus {
border-bottom-width: var(--sp0-5) border-bottom-width: var(--sp0-5);
} }
.block-search-wide__wrapper .search-form__submit:focus span::after { .block-search-wide__wrapper .search-form__submit:focus span::after {
@ -269,31 +149,19 @@
} }
@media screen and (-ms-high-contrast: active) { @media screen and (-ms-high-contrast: active) {
.block-search-wide__wrapper .search-form__submit {
/* Edge's high contrast does show the background image, so we hide it. */ /* Edge's high contrast does show the background image, so we hide it. */
}
.block-search-wide__wrapper .search-form__submit .icon--search { .block-search-wide__wrapper .search-form__submit .icon--search {
display: none; display: none;
} }
} }
[dir="ltr"] .block-search-wide__container {
padding-right: var(--sp2);
}
[dir="rtl"] .block-search-wide__container {
padding-left: var(--sp2);
}
.block-search-wide__container { .block-search-wide__container {
max-width: var(--max-width); max-width: var(--max-width);
padding-inline-end: var(--sp2);
} }
.block-search-wide__grid { .block-search-wide__grid {
display: -ms-grid;
display: grid; display: grid;
-ms-grid-columns: (1fr)[var(--grid-col-count)];
grid-template-columns: repeat(var(--grid-col-count), 1fr); grid-template-columns: repeat(var(--grid-col-count), 1fr);
grid-column-gap: var(--grid-gap); grid-column-gap: var(--grid-gap);
} }
@ -305,7 +173,6 @@
} }
.container-inline .block-search-wide__grid { .container-inline .block-search-wide__grid {
display: -ms-grid;
display: grid; display: grid;
} }
@ -318,12 +185,12 @@
color: var(--color-text-neutral-loud); /* Affects SVG search icon. */ color: var(--color-text-neutral-loud); /* Affects SVG search icon. */
border: 0; border: 0;
background: transparent; background: transparent;
-webkit-appearance: none -webkit-appearance: none;
} }
.block-search-wide__button:focus { .block-search-wide__button:focus {
position: relative; position: relative;
outline: 0 outline: 0;
} }
.block-search-wide__button:focus::after { .block-search-wide__button:focus::after {
@ -339,7 +206,7 @@
} }
.block-search-wide__button[aria-expanded="true"] { .block-search-wide__button[aria-expanded="true"] {
background: var(--color--black) background: var(--color--black);
} }
.block-search-wide__button[aria-expanded="true"]:focus::after { .block-search-wide__button[aria-expanded="true"]:focus::after {
@ -354,7 +221,7 @@
width: var(--sp1-5); width: var(--sp1-5);
height: 0; height: 0;
content: ""; content: "";
border-top: solid 2px var(--color--white); border-block-start: solid 2px var(--color--white);
} }
.block-search-wide__button[aria-expanded="true"] .block-search-wide__button-close::before { .block-search-wide__button[aria-expanded="true"] .block-search-wide__button-close::before {
@ -369,26 +236,14 @@
display: none; display: none;
} }
[dir="ltr"] .block-search-wide__button svg { .block-search-wide__button svg {
margin-left: auto; margin-inline-start: auto;
} margin-inline-end: auto;
[dir="rtl"] .block-search-wide__button svg {
margin-right: auto;
}
[dir="ltr"] .block-search-wide__button svg {
margin-right: auto;
}
[dir="rtl"] .block-search-wide__button svg {
margin-left: auto;
} }
@media (forced-colors: active) { @media (forced-colors: active) {
.block-search-wide__button { .block-search-wide__button {
background: ButtonFace background: ButtonFace;
} }
.block-search-wide__button path { .block-search-wide__button path {
@ -410,7 +265,7 @@ html:not(.js) .search-block-form:focus-within .block-search-wide__wrapper {
background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */ background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom left; /* LTR */ background-position: bottom left; /* LTR */
background-size: 0% 0.625rem background-size: 0% 0.625rem;
} }
[dir] .block-search-wide__wrapper input[type="search"]:focus { [dir] .block-search-wide__wrapper input[type="search"]:focus {
@ -426,9 +281,8 @@ html:not(.js) .search-block-form:focus-within .block-search-wide__wrapper {
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
body:not(.is-always-mobile-nav) .block-search-wide__wrapper, body:not(.is-always-mobile-nav) .block-search-wide__wrapper,
body:not(.is-always-mobile-nav) .block-search-wide__button { body:not(.is-always-mobile-nav) .block-search-wide__button {
display: block display: block;
} }
} }

129
css/components/header-site-branding.css

@ -10,93 +10,44 @@
* Site branding in header. * Site branding in header.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .site-branding {
margin-left: calc(var(--container-padding)*-1);
margin-right: var(--sp)
}
[dir="rtl"] .site-branding {
margin-right: calc(var(--container-padding)*-1);
margin-left: var(--sp)
}
[dir="ltr"] .site-branding {
padding-left: var(--container-padding)
}
[dir="rtl"] .site-branding {
padding-right: var(--container-padding)
}
[dir="ltr"] .site-branding {
padding-right: var(--container-padding)
}
[dir="rtl"] .site-branding {
padding-left: var(--container-padding)
}
.site-branding { .site-branding {
display: flex; display: flex;
flex-shrink: 1; flex-shrink: 1;
align-items: flex-end; align-items: flex-end;
min-width: calc(var(--grid-col-width)*2 + var(--grid-gap)*2 + var(--container-padding)); /* Span minimum of 2 column widths. */ min-width: calc((2 * var(--grid-col-width)) + (2 * var(--grid-gap)) + var(--container-padding)); /* Span minimum of 2 column widths. */
min-height: var(--sp3); /* Negative margin to break out of .container element. */ min-height: var(--sp3);
padding-top: 0; margin-inline: calc(-1 * var(--container-padding)) var(--sp); /* Negative margin to break out of .container element. */
padding-bottom: var(--sp0-5); padding-block: 0 var(--sp0-5);
background-image: linear-gradient(160deg, var(--color--primary-50) 0%, var(--color--primary-40) 78.66%) padding-inline-start: var(--container-padding);
padding-inline-end: var(--container-padding);
background-image: linear-gradient(160deg, var(--color--primary-50) 0%, var(--color--primary-40) 78.66%);
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.site-branding { .site-branding {
min-height: var(--sp4) min-height: var(--sp4);
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.site-branding { .site-branding {
min-width: calc(var(--grid-col-width)*4 + var(--grid-gap)*4 + var(--container-padding)); /* Span minimum of 4 column widths. */ min-width: calc((4 * var(--grid-col-width)) + (4 * var(--grid-gap)) + var(--container-padding)); /* Span minimum of 4 column widths. */
min-height: var(--sp6); min-height: var(--sp6);
padding-bottom: var(--sp) padding-block-end: var(--sp);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.site-branding { .site-branding {
min-width: calc(var(--grid-col-width)*2 + var(--grid-gap)*2 + var(--container-padding)) /* Span minimum of 2 column widths. */ min-width: calc((2 * var(--grid-col-width)) + (2 * var(--grid-gap)) + var(--container-padding)); /* Span minimum of 2 column widths. */
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] .site-branding {
margin-left: calc(var(--container-padding)*-1)
}
[dir="rtl"] .site-branding {
margin-right: calc(var(--container-padding)*-1)
}
.site-branding { .site-branding {
min-height: var(--site-header-height-wide); min-height: var(--site-header-height-wide);
padding-top: 0; margin-inline-start: calc(-1 * var(--container-padding));
padding-bottom: 0 padding-block: 0;
} }
} }
@ -114,74 +65,56 @@
.site-branding__inner { .site-branding__inner {
display: flex; display: flex;
align-items: center align-items: center;
} }
.site-branding__inner a { .site-branding__inner a {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] .site-branding__inner {
padding-left: 0
}
[dir="rtl"] .site-branding__inner {
padding-right: 0
}
[dir="ltr"] .site-branding__inner {
padding-right: 0
}
[dir="rtl"] .site-branding__inner {
padding-left: 0
}
.site-branding__inner { .site-branding__inner {
height: var(--header-height-wide-when-fixed); height: var(--header-height-wide-when-fixed);
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5) padding-inline-start: 0;
padding-inline-end: 0;
} }
} }
.site-branding__logo { .site-branding__logo {
flex-shrink: 0; flex-shrink: 0;
max-width: 100% max-width: 100%;
} }
.site-branding__logo img { .site-branding__logo img {
width: auto; width: auto;
max-width: 100%; max-width: 100%;
max-height: var(--sp2) max-height: var(--sp2);
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.site-branding__logo img { .site-branding__logo img {
max-height: var(--sp3) max-height: var(--sp3);
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.site-branding__logo img { .site-branding__logo img {
max-height: var(--sp4) max-height: var(--sp4);
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.site-branding__logo img { .site-branding__logo img {
max-height: calc(var(--header-height-wide-when-fixed) - var(--sp)) max-height: calc(var(--header-height-wide-when-fixed) - var(--sp));
} }
} }
.site-branding__text { .site-branding__text {
color: var(--color--white); color: var(--color--white);
font-size: 1.125rem; font-size: 1.125rem;
font-weight: bold font-weight: bold;
} }
.site-branding__text a { .site-branding__text a {
@ -189,19 +122,17 @@
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.site-branding__text { .site-branding__text {
font-size: 1.75rem; font-size: 1.75rem;
line-height: 1.75rem line-height: 1.75rem;
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.site-branding__text { .site-branding__text {
letter-spacing: 0.02em; letter-spacing: 0.02em;
font-size: 2rem; font-size: 2rem;
line-height: var(--sp2) line-height: var(--sp2);
} }
} }
@ -210,10 +141,6 @@
color: var(--color--primary-50); color: var(--color--primary-50);
} }
[dir="ltr"] .site-branding__logo + .site-branding__text { .site-branding__logo + .site-branding__text {
margin-left: 0.75rem margin-inline-start: 0.75rem;
}
[dir="rtl"] .site-branding__logo + .site-branding__text {
margin-right: 0.75rem
} }

28
css/components/header-sticky-toggle.css

@ -13,25 +13,11 @@
* toggles fixing the header to the top of the viewport. * toggles fixing the header to the top of the viewport.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.sticky-header-toggle { .sticky-header-toggle {
display: none display: none;
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.sticky-header-toggle { .sticky-header-toggle {
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
@ -43,7 +29,7 @@
opacity: 0; opacity: 0;
border: 0; border: 0;
outline: 0; outline: 0;
background-color: var(--color--primary-50) background-color: var(--color--primary-50);
} }
.sticky-header-toggle:focus { .sticky-header-toggle:focus {
@ -56,16 +42,14 @@
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
body:not(.is-always-mobile-nav) .is-fixed .sticky-header-toggle { body:not(.is-always-mobile-nav) .is-fixed .sticky-header-toggle {
visibility: visible visibility: visible;
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
body.is-always-mobile-nav .sticky-header-toggle { body.is-always-mobile-nav .sticky-header-toggle {
visibility: hidden visibility: hidden;
} }
} }
@ -77,11 +61,11 @@ body.is-always-mobile-nav .sticky-header-toggle {
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
width: var(--sp2); width: var(--sp2);
height: calc(var(--icon-bar-height)*3 + var(--icon-bar-space)*2); height: calc((var(--icon-bar-height) * 3) + (var(--icon-bar-space) * 2));
/* Height = 3 bars + 2 spaces */ /* Height = 3 bars + 2 spaces */
transition: opacity 0.2s; transition: opacity 0.2s;
pointer-events: none; pointer-events: none;
transform-style: preserve-3d transform-style: preserve-3d;
} }
.sticky-header-toggle__icon > span { .sticky-header-toggle__icon > span {

53
css/components/hero.css

@ -10,49 +10,27 @@
* Main Hero. * Main Hero.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.hero__content { .hero__content {
-ms-grid-column: 1; grid-column: 1 / 7;
-ms-grid-column-span: 6;
grid-column: 1 / 7
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.hero__content {
.hero__content { /* 700px */ /* 700px */
-ms-grid-column: 3; grid-column: 3 / 13;
-ms-grid-column-span: 10;
grid-column: 3 / 13
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.hero__content { .hero__content {
-ms-grid-column: 3; grid-column: 3 / 11;
-ms-grid-column-span: 8;
grid-column: 3 / 11
} }
} }
.hero__img { .hero__img {
-ms-grid-column: 1;
-ms-grid-column-span: 6;
grid-column: 1 / 7; grid-column: 1 / 7;
margin-top: var(--sp2); margin-block-start: var(--sp2);
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
.hero__img img { .hero__img img {
@ -60,29 +38,22 @@
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.hero__img { .hero__img {
margin-top: var(--sp3); margin-block-start: var(--sp3);
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.hero__img { .hero__img {
-ms-grid-column: 1;
-ms-grid-column-span: 14;
grid-column: 1 / 15; grid-column: 1 / 15;
margin-top: var(--sp4); margin-block-start: var(--sp4);
margin-bottom: var(--sp4) margin-block-end: var(--sp4);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.hero__img { .hero__img {
-ms-grid-column: 2; grid-column: 2 / 14;
-ms-grid-column-span: 12;
grid-column: 2 / 14
} }
} }

64
css/components/links.css

@ -10,68 +10,24 @@
* Links component. * Links component.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .links.inline {
margin-left: 0
}
[dir="rtl"] .links.inline {
margin-right: 0
}
[dir="ltr"] .links.inline {
padding-left: 0
}
[dir="rtl"] .links.inline {
padding-right: 0
}
[dir="ltr"] .links.inline {
padding-right: 0
}
[dir="rtl"] .links.inline {
padding-left: 0
}
.links.inline { .links.inline {
padding-top: 0; margin-inline-start: 0;
padding-bottom: 0; padding-block: 0;
list-style: none padding-inline-start: 0;
padding-inline-end: 0;
list-style: none;
} }
.links.inline > * { .links.inline > * {
display: inline display: inline;
}
[dir="ltr"] .links.inline > *:not(:last-child) {
padding-right: 1em
} }
[dir="rtl"] .links.inline > *:not(:last-child) { .links.inline > *:not(:last-child) {
padding-left: 1em padding-inline-end: 1em;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.node--type-book .links.inline {
[dir="ltr"] .node--type-book .links.inline { text-align: end;
text-align: right
}
[dir="rtl"] .node--type-book .links.inline {
text-align: left
} }
} }

19
css/components/maintenance-page.css

@ -10,24 +10,10 @@
* Maintenance page. * Maintenance page.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
@media (min-width: 75rem) { @media (min-width: 75rem) {
.maintenance-page .site-header__initial { .maintenance-page .site-header__initial {
flex-shrink: 0; flex-shrink: 0;
width: var(--content-left) width: var(--content-left);
} }
} }
@ -37,8 +23,7 @@
.maintenance-page-icon { .maintenance-page-icon {
display: block; display: block;
margin-top: var(--sp3); margin-block: var(--sp3);
margin-bottom: var(--sp3)
} }
.maintenance-page-icon path { .maintenance-page-icon path {

177
css/components/messages.css

@ -10,200 +10,94 @@
* Messages. * Messages.
*/ */
/* :root {
* Media query breakpoints. --messages-icon-size: 2rem;
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .messages-list {
padding-left: 0;
}
[dir="rtl"] .messages-list {
padding-right: 0;
}
[dir="ltr"] .messages-list {
padding-right: 0;
}
[dir="rtl"] .messages-list {
padding-left: 0;
} }
.messages-list { .messages-list {
margin-top: var(--sp1); margin-block: var(--sp1);
margin-bottom: var(--sp1); padding-block: 0;
padding-top: 0; padding-inline-start: 0;
padding-bottom: 0; padding-inline-end: 0;
list-style: none; list-style: none;
} }
[dir="ltr"] .messages {
padding-left: var(--sp1-5);
}
[dir="rtl"] .messages {
padding-right: var(--sp1-5);
}
[dir="ltr"] .messages {
padding-right: var(--sp1-5);
}
[dir="rtl"] .messages {
padding-left: var(--sp1-5);
}
.messages { .messages {
min-height: calc(2rem + var(--sp1)*2); min-height: calc(var(--messages-icon-size) + 2 * var(--sp1));
padding-top: var(--sp1); padding-block: var(--sp1);
padding-bottom: var(--sp1); padding-inline-start: var(--sp1-5);
padding-inline-end: var(--sp1-5);
color: var(--color--white); color: var(--color--white);
outline: solid 1px transparent; outline: solid 1px transparent;
background-color: var(--color--gray-5) background-color: var(--color--gray-5);
} }
.messages * { .messages * {
color: inherit; color: inherit;
} }
.messages {
/* Additional specificity to override contrib modules. */ /* Additional specificity to override contrib modules. */
}
.messages.messages-list__item { .messages.messages-list__item {
background-image: none; background-image: none;
} }
[dir="ltr"] .messages__list {
margin-left: 0;
}
[dir="rtl"] .messages__list {
margin-right: 0;
}
[dir="ltr"] .messages__list {
margin-right: 0;
}
[dir="rtl"] .messages__list {
margin-left: 0;
}
[dir="ltr"] .messages__list {
padding-left: 0;
}
[dir="rtl"] .messages__list {
padding-right: 0;
}
[dir="ltr"] .messages__list {
padding-right: 0;
}
[dir="rtl"] .messages__list {
padding-left: 0;
}
.messages__list { .messages__list {
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
list-style: none; list-style: none;
} }
.messages:not(.hidden) ~ .messages { .messages:not(.hidden) ~ .messages {
margin-top: var(--sp1); margin-block-start: var(--sp1);
} }
.messages__item + .messages__item { .messages__item + .messages__item {
margin-top: var(--sp0-5); margin-block-start: var(--sp0-5);
} }
.messages__container { .messages__container {
display: flex; display: flex;
} }
[dir="ltr"] .messages__header {
margin-right: var(--sp1);
}
[dir="rtl"] .messages__header {
margin-left: var(--sp1);
}
.messages__header { .messages__header {
flex-shrink: 0 flex-shrink: 0;
} margin-inline-end: var(--sp1);
[dir="ltr"] .messages__header.no-icon {
margin-right: 0;
} }
[dir="rtl"] .messages__header.no-icon { .messages__header.no-icon {
margin-left: 0; margin-inline-end: 0;
} }
.messages__content { .messages__content {
overflow: auto; /* Ensure large code blocks can be scrolled to. */ overflow: auto; /* Ensure large code blocks can be scrolled to. */
flex: 1; flex: 1;
padding-top: 0.1875rem; padding-block-start: 0.1875rem;
}
[dir="ltr"] .messages__button {
margin-left: var(--sp1);
}
[dir="rtl"] .messages__button {
margin-right: var(--sp1);
} }
.messages__button { .messages__button {
flex-shrink: 0; flex-shrink: 0;
padding-top: 0.1875rem; margin-inline-start: var(--sp1);
} padding-block-start: 0.1875rem;
[dir="ltr"] .messages__close {
padding-left: 0;
}
[dir="rtl"] .messages__close {
padding-right: 0;
}
[dir="ltr"] .messages__close {
padding-right: 0;
}
[dir="rtl"] .messages__close {
padding-left: 0;
} }
.messages__close { .messages__close {
position: relative; position: relative;
width: 1.5625rem; width: 1.5625rem;
height: 1.5625rem; height: 1.5625rem;
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
padding-inline-end: 0;
cursor: pointer; cursor: pointer;
vertical-align: top; vertical-align: top;
border: 0; border: 0;
background: none; background: none;
-webkit-appearance: none; -webkit-appearance: none;
appearance: none appearance: none;
} }
.messages__close::before, .messages__close::before,
@ -264,14 +158,7 @@
margin: 0; margin: 0;
} }
[dir="ltr"] .js-form-managed-file .messages {
border-left: solid 6px var(--color--red);
}
[dir="rtl"] .js-form-managed-file .messages {
border-right: solid 6px var(--color--red);
}
.js-form-managed-file .messages { .js-form-managed-file .messages {
margin-bottom: var(--sp1); margin-block-end: var(--sp1);
border-inline-start: solid 0.375rem var(--color--red);
} }

59
css/components/navigation/menu-sidebar.css

@ -10,21 +10,8 @@
* Styles for menu placed in sidebar region. * Styles for menu placed in sidebar region.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.menu--sidebar { .menu--sidebar {
list-style: none list-style: none;
} }
.menu--sidebar .menu { .menu--sidebar .menu {
@ -35,65 +22,41 @@
margin: 0; margin: 0;
} }
[dir="ltr"] .menu--sidebar .menu__link {
padding-left: 0
}
[dir="rtl"] .menu--sidebar .menu__link {
padding-right: 0
}
[dir="ltr"] .menu--sidebar .menu__link {
padding-right: 0
}
[dir="rtl"] .menu--sidebar .menu__link {
padding-left: 0
}
.menu--sidebar .menu__link { .menu--sidebar .menu__link {
position: relative; position: relative;
display: block; display: block;
padding-top: var(--sp0-75); padding-block: var(--sp0-75);
padding-bottom: var(--sp0-75); padding-inline-start: 0;
padding-inline-end: 0;
font-family: var(--font-serif); font-family: var(--font-serif);
font-size: 1.125rem font-size: 1.125rem;
/* Bottom divider line. */ /* Bottom divider line. */
} }
[dir="ltr"] .menu--sidebar .menu__link::after {
left: 0
}
[dir="rtl"] .menu--sidebar .menu__link::after {
right: 0
}
.menu--sidebar .menu__link::after { .menu--sidebar .menu__link::after {
position: absolute; position: absolute;
bottom: 0; inset-block-end: 0;
inset-inline-start: 0;
width: var(--sp4); width: var(--sp4);
height: 0; height: 0;
content: ""; content: "";
border-top: solid 2px var(--color--gray-95); border-block-start: solid 2px var(--color--gray-95);
} }
.menu--sidebar .menu__link--link { .menu--sidebar .menu__link--link {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
font-weight: 600 font-weight: 600;
} }
.menu--sidebar .menu__link--link:hover { .menu--sidebar .menu__link--link:hover {
color: var(--color--primary-50); color: var(--color--primary-50);
} }
.menu--sidebar {
/* No bottom divider line for last menu item. */ /* No bottom divider line for last menu item. */
}
.menu--sidebar .menu__item--level-1:last-child > .menu__link:last-child::after, .menu--sidebar .menu__item--level-1:last-child > .menu__item--level-2:last-child > .menu__link:last-child::after { :is(.menu--sidebar .menu__item--level-1:last-child > .menu__link:last-child, .menu--sidebar .menu__item--level-1:last-child > .menu__item--level-2:last-child > .menu__link:last-child)::after {
content: none; content: none;
} }

98
css/components/navigation/nav-button-mobile.css

@ -10,67 +10,24 @@
* Nav Button Mobile. * Nav Button Mobile.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .mobile-nav-button {
margin-left: auto
}
[dir="rtl"] .mobile-nav-button {
margin-right: auto
}
[dir="ltr"] .mobile-nav-button {
margin-right: -0.375rem
}
[dir="rtl"] .mobile-nav-button {
margin-left: -0.375rem
}
[dir="ltr"] .mobile-nav-button {
padding-left: 0.375rem
}
[dir="rtl"] .mobile-nav-button {
padding-right: 0.375rem
}
[dir="ltr"] .mobile-nav-button {
padding-right: 0.375rem
}
[dir="rtl"] .mobile-nav-button {
padding-left: 0.375rem
}
.mobile-nav-button { .mobile-nav-button {
position: relative; position: relative;
z-index: 505; /* Appear above mobile nav. */ z-index: 505; /* Appear above mobile nav. */
display: flex; display: flex;
align-items: center; align-items: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
width: var(--sp2); width: var(--sp2);
height: var(--sp2); height: var(--sp2);
padding-top: 0; margin-inline-start: auto;
padding-bottom: 0; margin-inline-end: -0.375rem;
padding-block: 0;
padding-inline-start: 0.375rem;
padding-inline-end: 0.375rem;
cursor: pointer; cursor: pointer;
border: none; border: none;
background: transparent; background: transparent;
-webkit-appearance: none; -webkit-appearance: none;
appearance: none appearance: none;
} }
.mobile-nav-button:focus { .mobile-nav-button:focus {
@ -82,18 +39,10 @@
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
[dir="ltr"] .mobile-nav-button {
padding-left: var(--sp)
}
[dir="rtl"] .mobile-nav-button {
padding-right: var(--sp)
}
.mobile-nav-button { .mobile-nav-button {
display: inline-flex; display: inline-flex;
width: auto width: auto;
padding-inline-start: var(--sp);
} }
} }
@ -106,28 +55,20 @@
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
width: 1px; width: 1px;
height: 1px; height: 1px;
word-wrap: normal word-wrap: normal;
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
[dir="ltr"] .mobile-nav-button__label {
margin-right: 0.75rem
}
[dir="rtl"] .mobile-nav-button__label {
margin-left: 0.75rem
}
.mobile-nav-button__label { .mobile-nav-button__label {
position: static; position: static;
overflow: visible; overflow: visible;
clip: auto; clip: auto;
width: auto; width: auto;
height: auto; height: auto;
margin-inline-end: 0.75rem;
letter-spacing: 0.05em; letter-spacing: 0.05em;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600 font-weight: 600;
} }
} }
@ -136,23 +77,14 @@
display: block; display: block;
width: var(--sp2); width: var(--sp2);
height: 0; height: 0;
border-top: solid 3px var(--color--primary-50) border-top: solid 3px var(--color--primary-50);
}
[dir="ltr"] .mobile-nav-button__icon::before,[dir="ltr"]
.mobile-nav-button__icon::after {
left: 0
}
[dir="rtl"] .mobile-nav-button__icon::before,[dir="rtl"]
.mobile-nav-button__icon::after {
right: 0
} }
.mobile-nav-button__icon::before, .mobile-nav-button__icon::before,
.mobile-nav-button__icon::after { .mobile-nav-button__icon::after {
position: absolute; position: absolute;
top: 0; inset-block-start: 0;
inset-inline-start: 0;
width: 100%; width: 100%;
height: 0; height: 0;
content: ""; content: "";
@ -169,7 +101,7 @@
} }
.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon { .mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon {
border-top-color: transparent border-top-color: transparent;
} }
.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon::before { .mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon::before {

66
css/components/navigation/nav-primary-button.css

@ -10,48 +10,20 @@
* Button that expands second level nav when clicked. * Button that expands second level nav when clicked.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .primary-nav__button-toggle {
padding-left: 0
}
[dir="rtl"] .primary-nav__button-toggle {
padding-right: 0
}
[dir="ltr"] .primary-nav__button-toggle {
padding-right: 0
}
[dir="rtl"] .primary-nav__button-toggle {
padding-left: 0
}
.primary-nav__button-toggle { .primary-nav__button-toggle {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
width: var(--sp2); width: var(--sp2);
height: var(--sp2); height: var(--sp2);
margin-top: var(--sp0-5); /* Visually align button with menu link text. */ margin-block-start: var(--sp0-5); /* Visually align button with menu link text. */
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
padding-inline-end: 0;
cursor: pointer; cursor: pointer;
text-indent: -62.4375rem; text-indent: -62.4375rem;
border: 0; border: 0;
background: transparent; background: transparent;
-webkit-appearance: none -webkit-appearance: none;
} }
.primary-nav__button-toggle:focus { .primary-nav__button-toggle:focus {
@ -69,7 +41,7 @@
height: 1rem; height: 1rem;
transition: background-color 0.2s; transition: background-color 0.2s;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
border-radius: 2px border-radius: 2px;
} }
.primary-nav__button-toggle .icon--menu-toggle::before, .primary-nav__button-toggle .icon--menu-toggle::before,
@ -96,36 +68,27 @@
opacity: 0; opacity: 0;
} }
.primary-nav__button-toggle {
/* aria-hidden attribute is removed by JS. Button is non-functional /* aria-hidden attribute is removed by JS. Button is non-functional
until JS is enabled. until JS is enabled.
*/ */
}
.primary-nav__button-toggle[aria-hidden="true"] { .primary-nav__button-toggle[aria-hidden="true"] {
pointer-events: none; pointer-events: none;
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__button-toggle {
margin-right: calc(var(--sp2)*-1)
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__button-toggle {
margin-left: calc(var(--sp2)*-1)
}
body:not(.is-always-mobile-nav) .primary-nav__button-toggle { body:not(.is-always-mobile-nav) .primary-nav__button-toggle {
flex-shrink: 0; flex-shrink: 0;
-ms-grid-row-align: stretch;
align-self: stretch; align-self: stretch;
width: calc(var(--sp2) + 0.5rem); width: calc(var(--sp2) + 0.5rem);
height: auto; height: auto;
margin-top: 0 margin-block-start: 0;
margin-inline-end: calc(-1 * var(--sp2));
} }
body:not(.is-always-mobile-nav) .primary-nav__button-toggle:focus { body:not(.is-always-mobile-nav) .primary-nav__button-toggle:focus {
border: 0; border: 0;
outline: 0 outline: 0;
} }
body:not(.is-always-mobile-nav) .primary-nav__button-toggle:focus .icon--menu-toggle { body:not(.is-always-mobile-nav) .primary-nav__button-toggle:focus .icon--menu-toggle {
@ -141,19 +104,12 @@
opacity: 0.8; opacity: 0.8;
} }
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle {
left: 0.1875rem
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle {
right: 0.1875rem
}
body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle { body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle {
inset-inline-start: 0.1875rem;
width: 1.125rem; width: 1.125rem;
transform: translateY(-50%); transform: translateY(-50%);
border-radius: 0.25rem; border-radius: 0.25rem;
background-color: var(--color--white) background-color: var(--color--white);
} }
body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle::before { body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle::before {

136
css/components/navigation/nav-primary-no-js.css

@ -10,29 +10,19 @@
* Styles for primary navigation when JavaScript is disabled. * Styles for primary navigation when JavaScript is disabled.
*/ */
/* :root {
* Media query breakpoints. --no-js-nav-column-width: 18.75rem;
* Processed by postcss/postcss-custom-media. --no-js-nav-column-gap: var(--sp2);
*/ }
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
html:not(.js) {
/** /**
* Mobile styles for primary navigation when JS is disabled. * Mobile styles for primary navigation when JS is disabled.
*/ */
}
@media (max-width: 75rem) { @media (max-width: 75rem) {
html:not(.js) .primary-nav__menu--level-1 { html:not(.js) .primary-nav__menu--level-1 {
column-width: 18.75rem; column-width: var(--no-js-nav-column-width);
grid-column-gap: var(--sp2); column-gap: var(--no-js-nav-column-gap);
} }
html:not(.js) .primary-nav__menu-item { html:not(.js) .primary-nav__menu-item {
@ -48,36 +38,8 @@ html:not(.js) {
display: none; display: none;
} }
html[dir="ltr"]:not(.js) .header-nav { html:not(.js) .header-nav {
margin-left: var(--sp2); border: solid 1px var(--color--gray-95) !important;
}
html[dir="rtl"]:not(.js) .header-nav {
margin-right: var(--sp2);
}
html[dir="ltr"]:not(.js) .header-nav {
margin-right: var(--sp2);
}
html[dir="rtl"]:not(.js) .header-nav {
margin-left: var(--sp2);
}
html[dir="ltr"]:not(.js) .header-nav {
padding-left: var(--sp2);
}
html[dir="rtl"]:not(.js) .header-nav {
padding-right: var(--sp2);
}
html[dir="ltr"]:not(.js) .header-nav {
padding-right: var(--sp2);
}
html[dir="rtl"]:not(.js) .header-nav {
padding-left: var(--sp2);
} }
html:not(.js) .header-nav { html:not(.js) .header-nav {
@ -86,21 +48,18 @@ html:not(.js) {
flex-basis: 100%; flex-basis: 100%;
width: 100%; width: 100%;
max-width: none; max-width: none;
margin-top: var(--sp2); margin-block: var(--sp2) 0;
margin-bottom: 0; margin-inline-start: var(--sp2);
padding-top: var(--sp2); margin-inline-end: var(--sp2);
padding-bottom: 0; padding-block: var(--sp2) 0;
padding-inline-start: var(--sp2);
padding-inline-end: var(--sp2);
transform: none; transform: none;
border: solid 1px var(--color--gray-95) !important;
box-shadow: 0 0 36px var(--color--gray-90); box-shadow: 0 0 36px var(--color--gray-90);
} }
html[dir="ltr"]:not(.js) .primary-nav__menu--level-2 { html:not(.js) .primary-nav__menu--level-2 {
border-left: 0; border-inline-start: 0;
}
html[dir="rtl"]:not(.js) .primary-nav__menu--level-2 {
border-right: 0;
} }
html:not(.js) .primary-nav__button-toggle { html:not(.js) .primary-nav__button-toggle {
@ -113,15 +72,12 @@ html:not(.js) {
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
html:not(.js) {
/** /**
* Styles for 'always on mobile navigation' when JS is disabled. * Styles for 'always on mobile navigation' when JS is disabled.
*/ */
}
html:not(.js) body.is-always-mobile-nav .primary-nav__menu--level-1 { html:not(.js) body.is-always-mobile-nav .primary-nav__menu--level-1 {
column-width: 18.75rem; column-width: var(--no-js-nav-column-width);
grid-column-gap: var(--sp2); column-gap: var(--no-js-nav-column-gap);
} }
html:not(.js) body.is-always-mobile-nav .primary-nav__menu-item { html:not(.js) body.is-always-mobile-nav .primary-nav__menu-item {
@ -137,36 +93,8 @@ html:not(.js) {
display: none; display: none;
} }
html[dir="ltr"]:not(.js) body.is-always-mobile-nav .header-nav { html:not(.js) body.is-always-mobile-nav .header-nav {
margin-left: var(--sp2); border: solid 1px var(--color--gray-95) !important;
}
html[dir="rtl"]:not(.js) body.is-always-mobile-nav .header-nav {
margin-right: var(--sp2);
}
html[dir="ltr"]:not(.js) body.is-always-mobile-nav .header-nav {
margin-right: var(--sp2);
}
html[dir="rtl"]:not(.js) body.is-always-mobile-nav .header-nav {
margin-left: var(--sp2);
}
html[dir="ltr"]:not(.js) body.is-always-mobile-nav .header-nav {
padding-left: var(--sp2);
}
html[dir="rtl"]:not(.js) body.is-always-mobile-nav .header-nav {
padding-right: var(--sp2);
}
html[dir="ltr"]:not(.js) body.is-always-mobile-nav .header-nav {
padding-right: var(--sp2);
}
html[dir="rtl"]:not(.js) body.is-always-mobile-nav .header-nav {
padding-left: var(--sp2);
} }
html:not(.js) body.is-always-mobile-nav .header-nav { html:not(.js) body.is-always-mobile-nav .header-nav {
@ -175,21 +103,18 @@ html:not(.js) {
flex-basis: 100%; flex-basis: 100%;
width: 100%; width: 100%;
max-width: none; max-width: none;
margin-top: var(--sp2); margin-block: var(--sp2) 0;
margin-bottom: 0; margin-inline-start: var(--sp2);
padding-top: var(--sp2); margin-inline-end: var(--sp2);
padding-bottom: 0; padding-block: var(--sp2) 0;
padding-inline-start: var(--sp2);
padding-inline-end: var(--sp2);
transform: none; transform: none;
border: solid 1px var(--color--gray-95) !important;
box-shadow: 0 0 36px var(--color--gray-90); box-shadow: 0 0 36px var(--color--gray-90);
} }
html[dir="ltr"]:not(.js) body.is-always-mobile-nav .primary-nav__menu--level-2 { html:not(.js) body.is-always-mobile-nav .primary-nav__menu--level-2 {
border-left: 0; border-inline-start: 0;
}
html[dir="rtl"]:not(.js) body.is-always-mobile-nav .primary-nav__menu--level-2 {
border-right: 0;
} }
html:not(.js) body.is-always-mobile-nav .primary-nav__button-toggle { html:not(.js) body.is-always-mobile-nav .primary-nav__button-toggle {
@ -200,25 +125,20 @@ html:not(.js) {
content: none; content: none;
} }
html:not(.js) {
/** /**
* Styles for traditional dropdown primary navigation when JS is disabled. * Styles for traditional dropdown primary navigation when JS is disabled.
*/ */
}
html:not(.js) body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:hover .primary-nav__menu--level-2, html:not(.js) body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:hover .primary-nav__menu--level-2,
html:not(.js) body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:hover .primary-nav__menu-🥕 { html:not(.js) body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:hover .primary-nav__menu-🥕 {
visibility: visible; visibility: visible;
transform: translate(-50%, 0); transform: translate(-50%, 0);
opacity: 1; opacity: 1;
} }
html:not(.js) body:not(.is-always-mobile-nav) {
/* /*
* Cannot combine the focus-within pseudo selector with other selectors, * Cannot combine the focus-within pseudo selector with other selectors,
* because it will break IE11 and earlier versions of MS Edge. * because it will break IE11 and earlier versions of MS Edge.
*/ */
}
html:not(.js) body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:focus-within .primary-nav__menu--level-2, html:not(.js) body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:focus-within .primary-nav__menu--level-2,
html:not(.js) body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:focus-within .primary-nav__menu-🥕 { html:not(.js) body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:focus-within .primary-nav__menu-🥕 {
visibility: visible; visibility: visible;

178
css/components/navigation/nav-primary-wide.css

@ -10,32 +10,16 @@
* Nav Primary (wide widths). * Nav Primary (wide widths).
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
@media (min-width: 75rem) { @media (min-width: 75rem) {
body:not(.is-always-mobile-nav) .primary-nav__menu-item { body:not(.is-always-mobile-nav) .primary-nav__menu-item {
flex-wrap: nowrap /* Ensure that sub navigation toggle button doesn't wrap underneath link. */ flex-wrap: nowrap; /* Ensure that sub navigation toggle button doesn't wrap underneath link. */
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--link, body:not(.is-always-mobile-nav) .primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--link,
body:not(.is-always-mobile-nav) .primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--nolink { body:not(.is-always-mobile-nav) .primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--nolink {
flex-basis: auto; flex-basis: auto;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-item.primary-nav__menu-item--has-children {
/* Remove hover state if submenu exists. */ /* Remove hover state if submenu exists. */
}
body:not(.is-always-mobile-nav) .primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--level-1 .primary-nav__menu-link-inner::after { body:not(.is-always-mobile-nav) .primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--level-1 .primary-nav__menu-link-inner::after {
content: none; content: none;
} }
@ -43,12 +27,12 @@
body:not(.is-always-mobile-nav) .primary-nav__menu-link { body:not(.is-always-mobile-nav) .primary-nav__menu-link {
letter-spacing: 0.02em; letter-spacing: 0.02em;
font-size: 1rem; font-size: 1rem;
line-height: var(--sp1-5) line-height: var(--sp1-5);
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-link:focus { body:not(.is-always-mobile-nav) .primary-nav__menu-link:focus {
position: relative; position: relative;
outline: 0 outline: 0;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-link:focus::before { body:not(.is-always-mobile-nav) .primary-nav__menu-link:focus::before {
@ -62,14 +46,9 @@
border: solid 2px var(--color--primary-50); border: solid 2px var(--color--primary-50);
border-radius: 0.25rem; border-radius: 0.25rem;
} }
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children {
padding-right: 0.5625rem;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children {
padding-left: 0.5625rem;
}
body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children { body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children {
overflow: visible /* Necessary to view icon in IE11 */ overflow: visible; /* Necessary to view icon in IE11 */
padding-inline-end: 0.5625rem;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children:focus::before { body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children:focus::before {
@ -80,22 +59,15 @@
body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children::before { body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children::before {
content: none; content: none;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children {
/* Chevron icon for desktop navigation. */ /* Chevron icon for desktop navigation. */
}
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
left: calc(100% - 0.1875rem);
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
right: calc(100% - 0.1875rem);
}
body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children::after { body:not(.is-always-mobile-nav) .primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
position: absolute; position: absolute;
top: 50%; inset-block-start: 50%;
inset-inline-start: calc(100% - 0.1875rem);
width: 0.5rem; width: 0.5rem;
height: 0.5rem; height: 0.5rem;
margin-top: -2px; margin-block-start: -2px;
transform: translateY(-50%) rotate(45deg); transform: translateY(-50%) rotate(45deg);
/* Intentionally not using CSS logical properties. */ /* Intentionally not using CSS logical properties. */
border-top: 0; border-top: 0;
@ -107,25 +79,10 @@
opacity: 1; opacity: 1;
} }
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner {
padding-left: 0;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner {
padding-right: 0;
}
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner {
padding-right: 0;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner {
padding-left: 0;
}
body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner { body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner {
padding-top: var(--sp2); padding-block: var(--sp2);
padding-bottom: var(--sp2) padding-inline-start: 0;
padding-inline-end: 0;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner::after { body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner::after {
@ -133,33 +90,10 @@
border-top-width: var(--sp0-5); border-top-width: var(--sp0-5);
} }
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu--level-1 {
margin-right: var(--sp);
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu--level-1 {
margin-left: var(--sp);
}
body:not(.is-always-mobile-nav) .primary-nav__menu--level-1 { body:not(.is-always-mobile-nav) .primary-nav__menu--level-1 {
display: flex; display: flex;
align-items: stretch; align-items: stretch;
} margin-inline-end: var(--sp);
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1 {
margin-left: 0;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1 {
margin-right: 0;
}
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1 {
margin-right: 0;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1 {
margin-left: 0;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1 { body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1 {
@ -168,56 +102,31 @@
align-items: center; align-items: center;
width: max-content; width: max-content;
max-width: 12.5rem; max-width: 12.5rem;
margin-top: 0; margin-block: 0;
margin-bottom: 0 margin-inline-start: 0;
} margin-inline-end: 0;
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:not(:last-child) {
margin-right: var(--sp2);
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:not(:last-child) {
margin-left: var(--sp2);
}
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu--level-2 {
margin-left: 0;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu--level-2 {
margin-right: 0;
}
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu--level-2 {
padding-left: var(--sp2);
} }
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu--level-2 { body:not(.is-always-mobile-nav) .primary-nav__menu-item--level-1:not(:last-child) {
padding-right: var(--sp2); margin-inline-end: var(--sp2);
}
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu--level-2 {
padding-right: var(--sp2);
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu--level-2 {
padding-left: var(--sp2);
} }
body:not(.is-always-mobile-nav) .primary-nav__menu--level-2 { body:not(.is-always-mobile-nav) .primary-nav__menu--level-2 {
position: absolute; position: absolute;
z-index: 105; /* Appear above search container. */ z-index: 105; /* Appear above search container. */
top: calc(100% - var(--sp)*0.5); top: calc(100% - (0.5 * var(--sp)));
left: 50%; left: 50%;
visibility: hidden; visibility: hidden;
overflow: auto; overflow: auto;
width: 15.625rem; width: 15.625rem;
/* Ensure that long level-2 menus will never overflow viewport (focused /* Ensure that long level-2 menus will never overflow viewport (focused
* elements should always be in viewport per accessibility guidelines). */ * elements should always be in viewport per accessibility guidelines). */
max-height: calc(100vh - var(--site-header-height-wide) - var(--sp)); max-height: calc(100vh - var(--site-header-height-wide) - var(--drupal-displace-offset-top, 0px) - var(--drupal-displace-offset-bottom, 0px) - var(--sp));
margin-top: 0; margin-block-start: 0;
padding-top: calc(var(--sp)*3); margin-inline-start: 0;
padding-bottom: calc(var(--sp)*3); padding-block: calc(3 * var(--sp));
padding-inline-start: var(--sp2);
padding-inline-end: var(--sp2);
transition: none; transition: none;
transform: translate(-50%, -1.25rem); transform: translate(-50%, -1.25rem);
opacity: 0; opacity: 0;
@ -228,18 +137,18 @@
border-left: solid 1px transparent; border-left: solid 1px transparent;
border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px;
background: var(--color--white); background: var(--color--white);
box-shadow: 0 1px 36px rgba(0, 0, 0, 0.08) box-shadow: 0 1px 36px rgba(0, 0, 0, 0.08);
} }
body:not(.is-always-mobile-nav) .primary-nav__menu--level-2.is-active-menu-parent { body:not(.is-always-mobile-nav) .primary-nav__menu--level-2.is-active-menu-parent {
visibility: visible; visibility: visible;
margin-top: 0; margin-block-start: 0;
transform: translate(-50%, 0); transform: translate(-50%, 0);
opacity: 1; opacity: 1;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 { body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 {
display: block display: block;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2:focus::before { body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2:focus::before {
@ -249,43 +158,25 @@
transform: none; transform: none;
} }
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner {
padding-left: 0;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner {
padding-right: 0;
}
[dir="ltr"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner {
padding-right: 0;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner {
padding-left: 0;
}
body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner { body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner {
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5) padding-inline-start: 0;
padding-inline-end: 0;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner::after { body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner::after {
transform-origin: left; /* LTR */ transform-origin: left; /* LTR */
border-top-width: 3px border-top-width: 3px;
} }
[dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner::after { [dir="rtl"] body:not(.is-always-mobile-nav) .primary-nav__menu-link--level-2 .primary-nav__menu-link-inner::after {
transform-origin: right; transform-origin: right;
} }
body:not(.is-always-mobile-nav) {
/** /**
* Arrow is placed outside of submenu because the submenu has the * Arrow is placed outside of submenu because the submenu has the
* `overflow: hidden` CSS rule applied. * `overflow: hidden` CSS rule applied.
*/ */
}
body:not(.is-always-mobile-nav) .primary-nav__menu-🥕 { body:not(.is-always-mobile-nav) .primary-nav__menu-🥕 {
position: absolute; position: absolute;
z-index: 105; /* Match level 2 menus. */ z-index: 105; /* Match level 2 menus. */
@ -299,7 +190,7 @@ body:not(.is-always-mobile-nav) {
/* Intentionally not using CSS logical properties. */ /* Intentionally not using CSS logical properties. */
border-right: solid 10px transparent; border-right: solid 10px transparent;
border-bottom: solid 10px var(--color--primary-50); border-bottom: solid 10px var(--color--primary-50);
border-left: solid 10px transparent border-left: solid 10px transparent;
} }
body:not(.is-always-mobile-nav) .primary-nav__menu-🥕.is-active-menu-parent { body:not(.is-always-mobile-nav) .primary-nav__menu-🥕.is-active-menu-parent {
@ -308,15 +199,12 @@ body:not(.is-always-mobile-nav) {
opacity: 1; opacity: 1;
} }
body:not(.is-always-mobile-nav) {
/** /**
* When ensuring that long menus don't overflow viewport, we can give a * When ensuring that long menus don't overflow viewport, we can give a
* little extra room when the toolbar is fixed (and is shorter). * little extra room when the toolbar is fixed (and is shorter).
*/ */
}
body:not(.is-always-mobile-nav) .is-fixed .primary-nav__menu--level-2 { body:not(.is-always-mobile-nav) .is-fixed .primary-nav__menu--level-2 {
max-height: calc(100vh - var(--site-header-height-wide) - var(--sp) + var(--sp4)); max-height: calc(100vh - var(--site-header-height-wide) - var(--drupal-displace-offset-top, 0px) - var(--drupal-displace-offset-bottom, 0px) - var(--sp) + var(--sp4));
} }
} }

227
css/components/navigation/nav-primary.css

@ -10,36 +10,23 @@
* Nav Primary. * Nav Primary.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.primary-nav__menu { .primary-nav__menu {
flex-wrap: wrap; flex-wrap: wrap;
list-style: none; list-style: none;
} }
.primary-nav__menu-item { .primary-nav__menu-item {
margin-bottom: var(--sp0-5) margin-block-end: var(--sp0-5);
} }
.primary-nav__menu-item:last-child { .primary-nav__menu-item:last-child {
margin-bottom: 0; margin-block-end: 0;
} }
.primary-nav__menu-item.primary-nav__menu-item--has-children { .primary-nav__menu-item.primary-nav__menu-item--has-children {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between justify-content: space-between;
} }
.primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--link, .primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--link,
@ -50,11 +37,12 @@
.primary-nav__menu-link { .primary-nav__menu-link {
flex-grow: 1; flex-grow: 1;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
font-size: 1.75rem; font-size: 1.75rem;
font-weight: bold; font-weight: bold;
line-height: var(--sp2) line-height: var(--sp2);
} }
.primary-nav__menu-link:hover { .primary-nav__menu-link:hover {
@ -66,89 +54,36 @@
outline-offset: 2px; outline-offset: 2px;
} }
[dir="ltr"] .primary-nav__menu-link--nolink {
padding-left: 0;
}
[dir="rtl"] .primary-nav__menu-link--nolink {
padding-right: 0;
}
[dir="ltr"] .primary-nav__menu-link--nolink {
padding-right: 0;
}
[dir="rtl"] .primary-nav__menu-link--nolink {
padding-left: 0;
}
.primary-nav__menu-link--nolink { .primary-nav__menu-link--nolink {
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5); padding-inline-start: 0;
padding-inline-end: 0;
color: var(--color-text-neutral-soft); color: var(--color-text-neutral-soft);
font-weight: normal; font-weight: normal;
} }
[dir="ltr"] .primary-nav__menu-link--button {
padding-left: 0;
}
[dir="rtl"] .primary-nav__menu-link--button {
padding-right: 0;
}
[dir="ltr"] .primary-nav__menu-link--button {
padding-right: 0;
}
[dir="rtl"] .primary-nav__menu-link--button {
padding-left: 0;
}
[dir="ltr"] .primary-nav__menu-link--button {
text-align: left;
}
[dir="rtl"] .primary-nav__menu-link--button {
text-align: right;
}
.primary-nav__menu-link--button { .primary-nav__menu-link--button {
position: relative; position: relative;
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
padding-inline-end: 0;
cursor: pointer; cursor: pointer;
text-align: start;
border: 0; border: 0;
background: transparent background: transparent;
/* Plus icon for mobile navigation. */ /* Plus icon for mobile navigation. */
} }
[dir="ltr"] .primary-nav__menu-link--button.primary-nav__menu-link--has-children { .primary-nav__menu-link--button.primary-nav__menu-link--has-children {
padding-right: var(--sp3); padding-inline-end: var(--sp3); /* Ensure text does not overlap icon. */
}
[dir="rtl"] .primary-nav__menu-link--button.primary-nav__menu-link--has-children {
padding-left: var(--sp3);
}
.primary-nav__menu-link--button.primary-nav__menu-link--has-children { /* Ensure text does not overlap icon. */
}
[dir="ltr"] .primary-nav__menu-link--button.primary-nav__menu-link--has-children::before,[dir="ltr"]
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
right: 0.5625rem;
}
[dir="rtl"] .primary-nav__menu-link--button.primary-nav__menu-link--has-children::before,[dir="rtl"]
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
left: 0.5625rem;
} }
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::before, .primary-nav__menu-link--button.primary-nav__menu-link--has-children::before,
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::after { .primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
position: absolute; position: absolute;
top: calc(var(--sp0-5) + 1.0625rem); /* Visually align button with menu link text. */ inset-inline-end: 0.5625rem;
inset-block-start: calc(var(--sp0-5) + 1.0625rem); /* Visually align button with menu link text. */
width: 1.125rem; width: 1.125rem;
height: 0; height: 0;
content: ""; content: "";
@ -165,41 +100,19 @@
opacity: 0; opacity: 0;
} }
[dir="ltr"] .primary-nav__menu-link-inner {
padding-left: 0;
}
[dir="rtl"] .primary-nav__menu-link-inner {
padding-right: 0;
}
[dir="ltr"] .primary-nav__menu-link-inner {
padding-right: 0;
}
[dir="rtl"] .primary-nav__menu-link-inner {
padding-left: 0;
}
.primary-nav__menu-link-inner { .primary-nav__menu-link-inner {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5) padding-inline-start: 0;
} padding-inline-end: 0;
[dir="ltr"] .primary-nav__menu-link-inner::after {
left: 0;
}
[dir="rtl"] .primary-nav__menu-link-inner::after {
right: 0;
} }
.primary-nav__menu-link-inner::after { .primary-nav__menu-link-inner::after {
position: absolute; position: absolute;
bottom: 0; inset-block-end: 0;
inset-inline-start: 0;
width: 100%; width: 100%;
height: 0; height: 0;
content: ""; content: "";
@ -211,50 +124,20 @@
} }
.primary-nav__menu-link:hover .primary-nav__menu-link-inner::after { .primary-nav__menu-link:hover .primary-nav__menu-link-inner::after {
transform: scaleX(1) transform: scaleX(1);
} }
/* /*
Top level specific styles. Top level specific styles.
*/ */
[dir="ltr"] .primary-nav__menu--level-1 {
margin-left: 0;
}
[dir="rtl"] .primary-nav__menu--level-1 {
margin-right: 0;
}
[dir="ltr"] .primary-nav__menu--level-1 {
margin-right: 0;
}
[dir="rtl"] .primary-nav__menu--level-1 {
margin-left: 0;
}
[dir="ltr"] .primary-nav__menu--level-1 {
padding-left: 0;
}
[dir="rtl"] .primary-nav__menu--level-1 {
padding-right: 0;
}
[dir="ltr"] .primary-nav__menu--level-1 {
padding-right: 0;
}
[dir="rtl"] .primary-nav__menu--level-1 {
padding-left: 0;
}
.primary-nav__menu--level-1 { .primary-nav__menu--level-1 {
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
} }
.primary-nav__menu-link--level-1 { .primary-nav__menu-link--level-1 {
@ -267,64 +150,30 @@
Secondary menu specific styles. Secondary menu specific styles.
*/ */
[dir="ltr"] .primary-nav__menu--level-2 {
margin-left: calc(var(--sp)*-1);
}
[dir="rtl"] .primary-nav__menu--level-2 {
margin-right: calc(var(--sp)*-1);
}
[dir="ltr"] .primary-nav__menu--level-2 {
padding-left: var(--sp2-5);
}
[dir="rtl"] .primary-nav__menu--level-2 {
padding-right: var(--sp2-5);
}
[dir="ltr"] .primary-nav__menu--level-2 {
border-left: solid var(--sp) var(--color--primary-50);
}
[dir="rtl"] .primary-nav__menu--level-2 {
border-right: solid var(--sp) var(--color--primary-50);
}
.primary-nav__menu--level-2 { .primary-nav__menu--level-2 {
visibility: hidden; visibility: hidden;
overflow: hidden; overflow: hidden;
flex-basis: 100%; flex-basis: 100%;
max-height: 0; max-height: 0;
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: calc(-1 * var(--sp));
padding-inline-start: var(--sp2-5);
transition: opacity 0.2s, visibility 0.2s, max-height 0.2s; transition: opacity 0.2s, visibility 0.2s, max-height 0.2s;
opacity: 0 opacity: 0;
border-inline-start: solid var(--sp) var(--color--primary-50);
} }
.primary-nav__menu--level-2.is-active-menu-parent { .primary-nav__menu--level-2.is-active-menu-parent {
visibility: visible; visibility: visible;
max-height: none; max-height: none;
margin-top: var(--sp1-5); margin-block-start: var(--sp1-5);
opacity: 1; opacity: 1;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.primary-nav__menu--level-2 {
[dir="ltr"] .primary-nav__menu--level-2 { margin-inline-start: calc(-1 * var(--sp3));
margin-left: calc(var(--sp3)*-1); padding-inline-start: var(--sp3);
}
[dir="rtl"] .primary-nav__menu--level-2 {
margin-right: calc(var(--sp3)*-1);
}
[dir="ltr"] .primary-nav__menu--level-2 {
padding-left: var(--sp3);
}
[dir="rtl"] .primary-nav__menu--level-2 {
padding-right: var(--sp3);
} }
} }

110
css/components/navigation/nav-secondary.css

@ -10,84 +10,36 @@
* Secondary navigation styling. * Secondary navigation styling.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.secondary-nav { .secondary-nav {
letter-spacing: 0.02em; letter-spacing: 0.02em;
font-size: var(--font-size-s); font-size: var(--font-size-s);
font-weight: 600; font-weight: 600;
} }
[dir="ltr"] .secondary-nav__menu {
margin-left: 0;
}
[dir="rtl"] .secondary-nav__menu {
margin-right: 0;
}
[dir="ltr"] .secondary-nav__menu {
margin-right: 0;
}
[dir="rtl"] .secondary-nav__menu {
margin-left: 0;
}
[dir="ltr"] .secondary-nav__menu {
padding-left: 0;
}
[dir="rtl"] .secondary-nav__menu {
padding-right: 0;
}
[dir="ltr"] .secondary-nav__menu {
padding-right: 0;
}
[dir="rtl"] .secondary-nav__menu {
padding-left: 0;
}
.secondary-nav__menu { .secondary-nav__menu {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-top: 0; margin-inline-end: 0;
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
list-style: none; list-style: none;
} }
.secondary-nav__menu-item { .secondary-nav__menu-item {
/* @todo should this be scoped to desktop nav? */
width: max-content;
max-width: 12.5rem;
/* Parent element is set to flex-basis: 0. We /* Parent element is set to flex-basis: 0. We
* don't want text to wrap unless it goes over a * don't want text to wrap unless it goes over a
* certain arbitrary width. * certain arbitrary width.
*/ */
/* @todo should this be scoped to desktop nav? */
width: max-content;
max-width: 12.5rem
} }
[dir="ltr"] .secondary-nav__menu-item:not(:last-child) { .secondary-nav__menu-item:not(:last-child) {
margin-right: var(--sp1-5); margin-inline-end: var(--sp1-5);
}
[dir="rtl"] .secondary-nav__menu-item:not(:last-child) {
margin-left: var(--sp1-5);
} }
.secondary-nav__menu-link { .secondary-nav__menu-link {
@ -95,8 +47,9 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
height: var(--sp2); height: var(--sp2);
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: inherit color: inherit;
} }
.secondary-nav__menu-link::after { .secondary-nav__menu-link::after {
@ -119,34 +72,17 @@
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] body:not(.is-always-mobile-nav) .secondary-nav {
margin-left: var(--sp);
}
[dir="rtl"] body:not(.is-always-mobile-nav) .secondary-nav {
margin-right: var(--sp);
}
[dir="ltr"] body:not(.is-always-mobile-nav) .secondary-nav {
padding-left: var(--sp2);
}
[dir="rtl"] body:not(.is-always-mobile-nav) .secondary-nav {
padding-right: var(--sp2);
}
body:not(.is-always-mobile-nav) .secondary-nav { body:not(.is-always-mobile-nav) .secondary-nav {
position: relative; position: relative;
display: flex display: flex;
} margin-inline-start: var(--sp);
padding-inline-start: var(--sp2);
[dir="ltr"] body:not(.is-always-mobile-nav) .secondary-nav::before {
left: 0;
}
[dir="rtl"] body:not(.is-always-mobile-nav) .secondary-nav::before {
right: 0;
} }
body:not(.is-always-mobile-nav) .secondary-nav::before { body:not(.is-always-mobile-nav) .secondary-nav::before {
position: absolute; position: absolute;
top: 50%; inset-block-start: 50%;
inset-inline-start: 0;
width: 2px; width: 2px;
height: var(--sp2); height: var(--sp2);
content: ""; content: "";
@ -154,16 +90,12 @@
background-color: var(--color--gray-90); background-color: var(--color--gray-90);
} }
[dir="ltr"] body:not(.is-always-mobile-nav) .secondary-nav__menu-item:not(:last-child) { body:not(.is-always-mobile-nav) .secondary-nav__menu-item:not(:last-child) {
margin-right: var(--sp2); margin-inline-end: var(--sp2);
}
[dir="rtl"] body:not(.is-always-mobile-nav) .secondary-nav__menu-item:not(:last-child) {
margin-left: var(--sp2);
} }
body:not(.is-always-mobile-nav) .secondary-nav__menu-link:focus { body:not(.is-always-mobile-nav) .secondary-nav__menu-link:focus {
position: relative; position: relative;
outline: 0 outline: 0;
} }
body:not(.is-always-mobile-nav) .secondary-nav__menu-link:focus::before { body:not(.is-always-mobile-nav) .secondary-nav__menu-link:focus::before {

66
css/components/navigation/wide-nav-expand.css

@ -10,25 +10,11 @@
* Button which expands the navigation at wide viewport widths. * Button which expands the navigation at wide viewport widths.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.wide-nav-expand { .wide-nav-expand {
display: none display: none;
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.wide-nav-expand { .wide-nav-expand {
display: flex; display: flex;
visibility: hidden; visibility: hidden;
@ -41,7 +27,7 @@
pointer-events: auto; pointer-events: auto;
color: var(--color--white); color: var(--color--white);
border: 0; border: 0;
background-color: var(--color--primary-50) background-color: var(--color--primary-50);
} }
.wide-nav-expand:focus { .wide-nav-expand:focus {
@ -51,16 +37,14 @@
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
body:not(.is-always-mobile-nav) .is-fixed .wide-nav-expand { body:not(.is-always-mobile-nav) .is-fixed .wide-nav-expand {
visibility: visible visibility: visible;
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
body.is-always-mobile-nav .wide-nav-expand { body.is-always-mobile-nav .wide-nav-expand {
visibility: hidden visibility: hidden;
} }
} }
@ -71,62 +55,40 @@ body.is-always-mobile-nav .wide-nav-expand {
transition: opacity 0.2s; transition: opacity 0.2s;
pointer-events: none; pointer-events: none;
opacity: 0; opacity: 0;
transform-style: preserve-3d transform-style: preserve-3d;
} }
.wide-nav-expand__icon > span { .wide-nav-expand__icon > span {
display: block; display: block;
height: 0; height: 0;
/* Intentionally not using CSS logical properties. */ /* Intentionally not using CSS logical properties. */
border-top: solid 3px currentColor border-top: solid 3px currentColor;
}
[dir="ltr"] .wide-nav-expand__icon > span:nth-child(1) {
left: 0
}
[dir="rtl"] .wide-nav-expand__icon > span:nth-child(1) {
right: 0
} }
.wide-nav-expand__icon > span:nth-child(1) { .wide-nav-expand__icon > span:nth-child(1) {
position: absolute; position: absolute;
top: 0; inset-block-start: 0;
inset-inline-start: 0;
width: 100%; width: 100%;
height: 0; height: 0;
transition: transform 0.2s; transition: transform 0.2s;
background-color: currentColor; background-color: currentColor;
} }
[dir="ltr"] .wide-nav-expand__icon > span:nth-child(2) {
left: 0
}
[dir="rtl"] .wide-nav-expand__icon > span:nth-child(2) {
right: 0
}
.wide-nav-expand__icon > span:nth-child(2) { .wide-nav-expand__icon > span:nth-child(2) {
position: absolute; position: absolute;
top: 0.5625rem; inset-block-start: 0.5625rem;
inset-inline-start: 0;
width: 100%; width: 100%;
height: 0; height: 0;
transition: opacity 0.2s; transition: opacity 0.2s;
background-color: currentColor; background-color: currentColor;
} }
[dir="ltr"] .wide-nav-expand__icon > span:nth-child(3) {
left: 0
}
[dir="rtl"] .wide-nav-expand__icon > span:nth-child(3) {
right: 0
}
.wide-nav-expand__icon > span:nth-child(3) { .wide-nav-expand__icon > span:nth-child(3) {
position: absolute; position: absolute;
top: auto; inset-block: auto 0;
bottom: 0; inset-inline-start: 0;
width: 100%; width: 100%;
height: 0; height: 0;
transition: transform 0.2s; transition: transform 0.2s;
@ -138,7 +100,7 @@ body.is-always-mobile-nav .wide-nav-expand {
} }
[aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(1) { [aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(1) {
top: 0.5625rem; inset-block-start: 0.5625rem;
transform: rotate(-45deg); transform: rotate(-45deg);
} }
@ -147,6 +109,6 @@ body.is-always-mobile-nav .wide-nav-expand {
} }
[aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(3) { [aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(3) {
top: 0.5625rem; inset-block-start: 0.5625rem;
transform: rotate(45deg); transform: rotate(45deg);
} }

55
css/components/node-preview-container.css

@ -10,38 +10,10 @@
* Node preview container styling. * Node preview container styling.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .node-preview-container {
padding-left: var(--sp0-5);
}
[dir="rtl"] .node-preview-container {
padding-right: var(--sp0-5);
}
[dir="ltr"] .node-preview-container {
padding-right: var(--sp0-5);
}
[dir="rtl"] .node-preview-container {
padding-left: var(--sp0-5);
}
.node-preview-container { .node-preview-container {
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: var(--sp0-5);
padding-inline-end: var(--sp0-5);
background: var(--color--white); background: var(--color--white);
box-shadow: -36px 1px 36px rgba(0, 0, 0, 0.08); /* LTR */ box-shadow: -36px 1px 36px rgba(0, 0, 0, 0.08); /* LTR */
} }
@ -60,23 +32,8 @@
align-items: center; align-items: center;
} }
[dir="ltr"] .node-preview-backlink {
margin-left: 0;
}
[dir="rtl"] .node-preview-backlink {
margin-right: 0;
}
[dir="ltr"] .node-preview-backlink {
margin-right: auto;
}
[dir="rtl"] .node-preview-backlink {
margin-left: auto;
}
.node-preview-backlink { .node-preview-backlink {
margin-top: var(--sp0-5); margin-block: var(--sp0-5);
margin-bottom: var(--sp0-5); margin-inline-start: 0;
margin-inline-end: auto;
} }

128
css/components/node-teaser.css

@ -10,27 +10,14 @@
* Node Teaser specific styles. * Node Teaser specific styles.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.node--view-mode-teaser { .node--view-mode-teaser {
position: relative; /* Anchor after pseudo-element. */ position: relative; /* Anchor after pseudo-element. */
margin-bottom: var(--sp1-5) margin-block-end: var(--sp1-5);
} }
.node--view-mode-teaser::after { .node--view-mode-teaser::after {
position: absolute; position: absolute;
bottom: 0; inset-block-end: 0;
width: var(--sp3); width: var(--sp3);
height: 0; height: 0;
content: ""; content: "";
@ -39,7 +26,7 @@
} }
.node--view-mode-teaser .node__meta { .node--view-mode-teaser .node__meta {
margin-bottom: var(--sp) margin-block-end: var(--sp);
} }
.node--view-mode-teaser .node__meta a { .node--view-mode-teaser .node__meta a {
@ -51,40 +38,31 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
margin: 0 margin: 0;
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.node--view-mode-teaser .node__top-wrapper { .node--view-mode-teaser .node__top-wrapper {
position: relative /* Anchor the image */ position: relative; /* Anchor the image */
}
} }
[dir="ltr"] .node--view-mode-teaser .primary-image {
margin-right: var(--sp1)
}
[dir="rtl"] .node--view-mode-teaser .primary-image {
margin-left: var(--sp1)
} }
.node--view-mode-teaser .primary-image { .node--view-mode-teaser .primary-image {
flex-shrink: 0; flex-shrink: 0;
margin: 0; margin: 0;
margin-bottom: var(--sp1) margin-block-end: var(--sp1);
margin-inline-end: var(--sp1);
/* Ensure title does not wrap under image until necessary. */ /* Ensure title does not wrap under image until necessary. */
} }
.node--view-mode-teaser .primary-image + .node__title { :is(.node--view-mode-teaser .primary-image) + .node__title {
flex-basis: calc(100% - var(--sp)*4.5) flex-basis: calc(100% - calc(4.5 * var(--sp)));
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
:is(.node--view-mode-teaser .primary-image) + .node__title {
.node--view-mode-teaser .primary-image + .node__title { flex-basis: auto;
flex-basis: auto
} }
} }
@ -93,108 +71,66 @@
} }
.node--view-mode-teaser .primary-image img { .node--view-mode-teaser .primary-image img {
width: calc(var(--sp)*3.5); width: calc(3.5 * var(--sp));
height: calc(var(--sp)*3.5); height: calc(3.5 * var(--sp));
-o-object-fit: cover;
object-fit: cover; object-fit: cover;
border-radius: 50% border-radius: 50%;
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.node--view-mode-teaser .primary-image img { .node--view-mode-teaser .primary-image img {
width: var(--grid-col-width); width: var(--grid-col-width);
height: var(--grid-col-width) height: var(--grid-col-width);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
[dir="ltr"] .node--view-mode-teaser .primary-image {
left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
[dir="rtl"] .node--view-mode-teaser .primary-image {
right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
.node--view-mode-teaser .primary-image { .node--view-mode-teaser .primary-image {
position: absolute; position: absolute;
top: 0; inset-block-start: 0;
margin: 0 inset-inline-start: calc(-1 * ((var(--grid-col-width) + var(--grid-gap))));
margin: 0;
} }
} }
.node--view-mode-teaser .node__title { .node--view-mode-teaser .node__title {
margin: 0; margin: 0;
margin-bottom: var(--sp1); margin-block-end: var(--sp1);
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
font-size: 1.5rem; font-size: 1.5rem;
line-height: var(--line-height-base) line-height: var(--line-height-base);
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.node--view-mode-teaser .node__title { .node--view-mode-teaser .node__title {
font-size: var(--sp2); font-size: var(--sp2);
line-height: var(--sp3) line-height: var(--sp3);
}
}
[dir="ltr"] .node--view-mode-teaser .field--tag-ref {
margin-left: 0
}
[dir="rtl"] .node--view-mode-teaser .field--tag-ref {
margin-right: 0
}
[dir="ltr"] .node--view-mode-teaser .field--tag-ref {
margin-right: 0
}
[dir="rtl"] .node--view-mode-teaser .field--tag-ref {
margin-left: 0
}
[dir="ltr"] .node--view-mode-teaser .field--tag-ref {
padding-left: 0
}
[dir="rtl"] .node--view-mode-teaser .field--tag-ref {
padding-right: 0
} }
[dir="ltr"] .node--view-mode-teaser .field--tag-ref {
padding-right: 0
}
[dir="rtl"] .node--view-mode-teaser .field--tag-ref {
padding-left: 0
} }
.node--view-mode-teaser .field--tag-ref { .node--view-mode-teaser .field--tag-ref {
margin-top: var(--sp1); margin-block-start: var(--sp1);
margin-bottom: 0; margin-block-end: 0;
padding-top: 0; margin-inline-start: 0;
padding-bottom: 0; margin-inline-end: 0;
background-color: transparent padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
background-color: transparent;
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.node--view-mode-teaser .field--tag-ref { .node--view-mode-teaser .field--tag-ref {
margin-top: var(--sp2) margin-block-start: var(--sp2);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.node--view-mode-teaser { .node--view-mode-teaser {
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
} }
} }
.views-row:last-child .node--view-mode-teaser { .views-row:last-child .node--view-mode-teaser {
margin-bottom: 0; margin-block-end: 0;
} }

40
css/components/node.css

@ -10,26 +10,13 @@
* Node specific styles. * Node specific styles.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.node__meta { .node__meta {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: var(--sp1); margin-block-end: var(--sp1);
color: var(--color-text-neutral-soft); color: var(--color-text-neutral-soft);
font-size: 0.875rem; font-size: 0.875rem;
line-height: var(--sp) line-height: var(--sp);
} }
.node__meta a { .node__meta a {
@ -37,38 +24,30 @@
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.node__meta { .node__meta {
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
}
}
[dir="ltr"] .node__author-image img {
margin-right: var(--sp0-5)
} }
[dir="rtl"] .node__author-image img {
margin-left: var(--sp0-5)
} }
.node__author-image img { .node__author-image img {
width: var(--sp2-5); width: var(--sp2-5);
height: var(--sp2-5); height: var(--sp2-5);
-o-object-fit: cover; margin-inline-end: var(--sp0-5);
object-fit: cover; object-fit: cover;
border-radius: 50%; border-radius: 50%;
} }
.node__title a { .node__title a {
padding-bottom: 0.1875rem; padding-block-end: 0.1875rem;
transition: background-size 0.2s, color 0.2s; transition: background-size 0.2s, color 0.2s;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
background-color: transparent; background-color: transparent;
background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */ background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom left; /* LTR */ background-position: bottom left; /* LTR */
background-size: 0 0.1875rem background-size: 0 0.1875rem;
} }
.node__title a:hover, .node__title a:hover,
@ -81,13 +60,12 @@
} }
.node__content { .node__content {
padding-bottom: var(--sp1-5) padding-block-end: var(--sp1-5);
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.node__content { .node__content {
padding-bottom: var(--sp3) padding-block-end: var(--sp3);
} }
} }

13
css/components/page-title.css

@ -10,19 +10,6 @@
* Page title. * Page title.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.page-title { .page-title {
/* /*
Necessary to properly display the star icon from core's shortcut Necessary to properly display the star icon from core's shortcut

52
css/components/pager.css

@ -10,51 +10,15 @@
* Styles for pagination. * Styles for pagination.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .pager__items {
margin-left: 0;
}
[dir="rtl"] .pager__items {
margin-right: 0;
}
[dir="ltr"] .pager__items {
padding-left: 0;
}
[dir="rtl"] .pager__items {
padding-right: 0;
}
[dir="ltr"] .pager__items {
padding-right: 0;
}
[dir="rtl"] .pager__items {
padding-left: 0;
}
.pager__items { .pager__items {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: flex-end; align-items: flex-end;
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
padding-inline-end: 0;
list-style: none; list-style: none;
font-weight: bold; font-weight: bold;
} }
@ -67,14 +31,13 @@
height: var(--sp2-5); height: var(--sp2-5);
cursor: default; cursor: default;
color: var(--color-text-neutral-soft); color: var(--color-text-neutral-soft);
background-color: var(--color--white) background-color: var(--color--white);
} }
@media (min-width: 31.25rem) { @media (min-width: 31.25rem) {
.pager__item { .pager__item {
width: var(--sp3); width: var(--sp3);
height: var(--sp3) height: var(--sp3);
} }
} }
@ -99,6 +62,7 @@
justify-content: center; justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-neutral-soft); color: var(--color-text-neutral-soft);
} }

30
css/components/powered-by-block.css

@ -10,45 +10,27 @@
* Powered by block specific styles. * Powered by block specific styles.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.block-system-powered-by-block { .block-system-powered-by-block {
letter-spacing: 0.02em; letter-spacing: 0.02em;
font-size: 0.875rem; font-size: 0.875rem;
line-height: var(--sp) line-height: var(--sp);
} }
.block-system-powered-by-block a { .block-system-powered-by-block a {
text-decoration: underline -webkit-text-decoration: underline;
text-decoration: underline;
} }
.block-system-powered-by-block a:hover, .block-system-powered-by-block a:hover,
.block-system-powered-by-block a:focus { .block-system-powered-by-block a:focus {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
} }
[dir="ltr"] .block-system-powered-by-block .drupal-logo {
margin-left: calc(var(--sp)/4)
}
[dir="rtl"] .block-system-powered-by-block .drupal-logo {
margin-right: calc(var(--sp)/4)
}
.block-system-powered-by-block .drupal-logo { .block-system-powered-by-block .drupal-logo {
display: inline-block; display: inline-block;
margin-top: calc(var(--sp)*-1/4); margin-block-start: calc(-1 * var(--sp) / 4);
margin-inline-start: calc(var(--sp) / 4);
} }
.block-system-powered-by-block svg { .block-system-powered-by-block svg {

21
css/components/progress.css

@ -10,19 +10,6 @@
* Progress bar specific styles. * Progress bar specific styles.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.progress__track { .progress__track {
overflow: hidden; overflow: hidden;
height: var(--sp); height: var(--sp);
@ -35,10 +22,6 @@
background-color: var(--color--primary-40); background-color: var(--color--primary-40);
} }
[dir="ltr"] .progress__percentage { .progress__percentage {
margin-left: 1rem; margin-inline-start: 1rem;
}
[dir="rtl"] .progress__percentage {
margin-right: 1rem;
} }

92
css/components/search-results.css

@ -10,82 +10,39 @@
* Search results specific styles. * Search results specific styles.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .search-results {
padding-left: 0
}
[dir="rtl"] .search-results {
padding-right: 0
}
[dir="ltr"] .search-results {
padding-right: 0
}
[dir="rtl"] .search-results {
padding-left: 0
}
.search-results { .search-results {
margin-bottom: var(--sp2); margin-block-end: var(--sp2);
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
list-style: none padding-inline-end: 0;
list-style: none;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.search-results { .search-results {
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
} }
} }
[dir="ltr"] .search-result__title {
margin-left: 0
}
[dir="rtl"] .search-result__title {
margin-right: 0
}
[dir="ltr"] .search-result__title {
margin-right: 0
}
[dir="rtl"] .search-result__title {
margin-left: 0
}
.search-result__title { .search-result__title {
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline-start: 0;
margin-inline-end: 0;
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
font-size: 1.25rem; font-size: 1.25rem;
line-height: var(--line-height-base) line-height: var(--line-height-base);
} }
.search-result__title a { .search-result__title a {
padding-bottom: 0.1875rem; padding-block-end: 0.1875rem;
transition: background-size 0.2s, color 0.2s; transition: background-size 0.2s, color 0.2s;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
background-color: transparent; background-color: transparent;
background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */ background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom left; /* LTR */ background-position: bottom left; /* LTR */
background-size: 0 0.1875rem background-size: 0 0.1875rem;
} }
.search-result__title a:hover { .search-result__title a:hover {
@ -93,11 +50,10 @@
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.search-result__title { .search-result__title {
margin-bottom: var(--sp1); margin-block-end: var(--sp1);
font-size: 1.875rem; font-size: 1.875rem;
line-height: var(--sp3) line-height: var(--sp3);
} }
} }
@ -106,23 +62,22 @@
} }
.search-result__snippet { .search-result__snippet {
padding-bottom: calc(var(--sp1-5) - 2px) padding-block-end: calc(var(--sp1-5) - 2px);
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.search-result__snippet { .search-result__snippet {
padding-bottom: var(--sp3) padding-block-end: var(--sp3);
} }
} }
.search-result__meta { .search-result__meta {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: var(--sp1); margin-block-end: var(--sp1);
color: var(--color-text-neutral-soft); color: var(--color-text-neutral-soft);
font-size: 0.875rem; font-size: 0.875rem;
line-height: var(--sp) line-height: var(--sp);
} }
.search-result__meta a { .search-result__meta a {
@ -132,12 +87,12 @@
.search-results__item { .search-results__item {
position: relative; /* Anchor after pseudo-element. */ position: relative; /* Anchor after pseudo-element. */
margin-bottom: var(--sp1-5) margin-block-end: var(--sp1-5);
} }
.search-results__item::after { .search-results__item::after {
position: absolute; position: absolute;
bottom: 0; inset-block-end: 0;
width: var(--sp3); width: var(--sp3);
height: 0; height: 0;
content: ""; content: "";
@ -146,12 +101,11 @@
} }
.search-results__item:last-child { .search-results__item:last-child {
margin-bottom: 0; margin-block-end: 0;
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.search-results__item { .search-results__item {
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
} }
} }

40
css/components/site-header.css

@ -10,34 +10,20 @@
* Site header. * Site header.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.site-header { .site-header {
position: relative; position: relative;
/** /**
* Ensure mobile site header is always above other elements including * Ensure mobile site header is always above other elements including
* contextual links, and Tour. * contextual links, and Tour.
*/ */
z-index: 101 z-index: 101;
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.site-header { .site-header {
/* Necessary to keep the content from jumping up when header transitions to fixed. */ /* Necessary to keep the content from jumping up when header transitions to fixed. */
min-height: var(--site-header-height-wide); min-height: var(--site-header-height-wide);
border-bottom: solid 1px transparent /* Will show in Windows high contrast mode. */ border-block-end: solid 1px transparent; /* Will show in Windows high contrast mode. */
} }
} }
@ -46,7 +32,6 @@
z-index: 102; z-index: 102;
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
-ms-grid-row-align: stretch;
align-self: stretch; align-self: stretch;
background-color: var(--color--primary-50); background-color: var(--color--primary-50);
} }
@ -54,7 +39,7 @@
.site-header__fixable { .site-header__fixable {
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
transition: all 0.5s transition: all 0.5s;
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
@ -67,7 +52,7 @@
body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed { body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed {
position: fixed; position: fixed;
z-index: 102; /* Appear above body content that is position: relative */ z-index: 102; /* Appear above body content that is position: relative */
top: calc(0px - var(--sp4)); inset-block-start: calc(var(--drupal-displace-offset-top, 0px) - var(--sp4));
max-width: var(--max-bg-color); max-width: var(--max-bg-color);
} }
} }
@ -76,7 +61,7 @@
position: relative; position: relative;
z-index: 1; /* Appear in front of Drupal's tabs. */ z-index: 1; /* Appear in front of Drupal's tabs. */
flex-grow: 1; flex-grow: 1;
width: calc(100vw - var(--content-left)); width: calc(100vw - var(--content-left) - var(--drupal-displace-offset-left, 0px) - var(--drupal-displace-offset-right, 0px));
background: var(--color--white); background: var(--color--white);
} }
@ -86,40 +71,35 @@
*/ */
@media (min-width: 75rem) { @media (min-width: 75rem) {
html.js body:not(.is-always-mobile-nav) .site-header__inner { html.js body:not(.is-always-mobile-nav) .site-header__inner {
transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.site-header__fixable.is-expanded .site-header__inner { .site-header__fixable.is-expanded .site-header__inner {
box-shadow: -36px 1px 36px rgba(0, 0, 0, 0.08) /* LTR */ box-shadow: -36px 1px 36px rgba(0, 0, 0, 0.08); /* LTR */
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="rtl"] .site-header__fixable.is-expanded .site-header__inner { [dir="rtl"] .site-header__fixable.is-expanded .site-header__inner {
box-shadow: 36px 1px 36px rgba(0, 0, 0, 0.08) box-shadow: 36px 1px 36px rgba(0, 0, 0, 0.08);
} }
} }
/* Hide the desktop nav when it's fixed and not active. */ /* Hide the desktop nav when it's fixed and not active. */
@media (min-width: 75rem) { @media (min-width: 75rem) {
body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed:not(.is-expanded) .site-header__inner { body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed:not(.is-expanded) .site-header__inner {
transform: translateX(-101%); /* LTR */ transform: translateX(-101%); /* LTR */
opacity: 0 opacity: 0;
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="rtl"] body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed:not(.is-expanded) .site-header__inner { [dir="rtl"] body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed:not(.is-expanded) .site-header__inner {
transform: translateX(101%) transform: translateX(101%);
} }
} }

44
css/components/skip-link.css

@ -12,48 +12,22 @@
* Allows keyboard users to quickly skip to the main content of the page. * Allows keyboard users to quickly skip to the main content of the page.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .skip-link {
padding-left: var(--sp)
}
[dir="rtl"] .skip-link {
padding-right: var(--sp)
}
[dir="ltr"] .skip-link {
padding-right: var(--sp)
}
[dir="rtl"] .skip-link {
padding-left: var(--sp)
}
.skip-link { .skip-link {
display: block; display: block;
width: 100%; width: 100%;
max-width: var(--max-bg-color); max-width: var(--max-bg-color);
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5); padding-inline-start: var(--sp);
padding-inline-end: var(--sp);
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color--white); color: var(--color--white);
outline: 0; outline: 0;
background-color: var(--color--gray-5) background-color: var(--color--gray-5);
} }
.skip-link:hover { .skip-link:hover {
-webkit-text-decoration: underline;
text-decoration: underline; text-decoration: underline;
color: var(--color--white); color: var(--color--white);
} }
@ -63,7 +37,11 @@
} }
.skip-link.focusable:focus { .skip-link.focusable:focus {
position: absolute !important; /* Override position from module file. */ position: absolute !important;
}
.skip-link.focusable:focus {
/* Override position from module file. */
z-index: 503; z-index: 503;
width: 100%; width: 100%;
height: 2.5rem; height: 2.5rem;

145
css/components/table.css

@ -10,44 +10,24 @@
* User generated tables. * User generated tables.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.forum table, .forum table,
.text-content table, .text-content table,
.views-table, .views-table,
.draggable-table { .draggable-table {
margin-top: var(--sp2); margin-block-start: var(--sp2);
margin-bottom: var(--sp2); margin-block-end: var(--sp2);
border-spacing: 0; border-spacing: 0;
color: var(--color-text-neutral-medium); color: var(--color-text-neutral-medium);
border: 0; border: 0;
border-collapse: collapse; border-collapse: collapse;
font-family: var(--font-sans); font-family: var(--font-sans);
font-size: 1rem; font-size: 1rem;
line-height: var(--sp1-5) line-height: var(--sp1-5);
}
[dir="ltr"] .forum table caption,[dir="ltr"] .text-content table caption,[dir="ltr"] .views-table caption,[dir="ltr"] .draggable-table caption {
text-align: left
}
[dir="rtl"] .forum table caption,[dir="rtl"] .text-content table caption,[dir="rtl"] .views-table caption,[dir="rtl"] .draggable-table caption {
text-align: right
} }
.forum table caption, .text-content table caption, .views-table caption, .draggable-table caption { :is(.forum table, .text-content table, .views-table, .draggable-table) caption {
margin-bottom: var(--sp1); margin-block-end: var(--sp1);
text-align: start;
color: var(--color-text-neutral-medium); color: var(--color-text-neutral-medium);
font-family: var(--font-serif); font-family: var(--font-serif);
font-size: 0.875rem; font-size: 0.875rem;
@ -55,115 +35,38 @@
line-height: var(--sp); line-height: var(--sp);
} }
.forum table tr:last-child td, .text-content table tr:last-child td, .views-table tr:last-child td, .draggable-table tr:last-child td { :is(.forum table, .text-content table, .views-table, .draggable-table) tr:last-child td {
border-bottom: 0; border-block-end: 0;
}
[dir="ltr"] .forum table td,[dir="ltr"]
.forum table th,[dir="ltr"]
.text-content table td,[dir="ltr"]
.text-content table th,[dir="ltr"]
.views-table td,[dir="ltr"]
.views-table th,[dir="ltr"]
.draggable-table td,[dir="ltr"]
.draggable-table th {
padding-left: 0
}
[dir="rtl"] .forum table td,[dir="rtl"]
.forum table th,[dir="rtl"]
.text-content table td,[dir="rtl"]
.text-content table th,[dir="rtl"]
.views-table td,[dir="rtl"]
.views-table th,[dir="rtl"]
.draggable-table td,[dir="rtl"]
.draggable-table th {
padding-right: 0
}
[dir="ltr"] .forum table td,[dir="ltr"]
.forum table th,[dir="ltr"]
.text-content table td,[dir="ltr"]
.text-content table th,[dir="ltr"]
.views-table td,[dir="ltr"]
.views-table th,[dir="ltr"]
.draggable-table td,[dir="ltr"]
.draggable-table th {
padding-right: var(--sp1)
}
[dir="rtl"] .forum table td,[dir="rtl"]
.forum table th,[dir="rtl"]
.text-content table td,[dir="rtl"]
.text-content table th,[dir="rtl"]
.views-table td,[dir="rtl"]
.views-table th,[dir="rtl"]
.draggable-table td,[dir="rtl"]
.draggable-table th {
padding-left: var(--sp1)
} }
.forum table td, :is(.forum table, .text-content table, .views-table, .draggable-table) td,
.forum table th, :is(.forum table, .text-content table, .views-table, .draggable-table) th {
.text-content table td, padding-block: var(--sp1);
.text-content table th, padding-inline-start: 0;
.views-table td, padding-inline-end: var(--sp1);
.views-table th,
.draggable-table td,
.draggable-table th {
padding-top: var(--sp1);
padding-bottom: var(--sp1);
vertical-align: top; vertical-align: top;
} }
[dir="ltr"] .forum table th,[dir="ltr"] .text-content table th,[dir="ltr"] .views-table th,[dir="ltr"] .draggable-table th { :is(.forum table, .text-content table, .views-table, .draggable-table) th {
margin-left: 0 margin-block: 0;
} margin-inline-start: 0;
margin-inline-end: 0;
[dir="rtl"] .forum table th,[dir="rtl"] .text-content table th,[dir="rtl"] .views-table th,[dir="rtl"] .draggable-table th { text-align: start;
margin-right: 0
}
[dir="ltr"] .forum table th,[dir="ltr"] .text-content table th,[dir="ltr"] .views-table th,[dir="ltr"] .draggable-table th {
margin-right: 0
}
[dir="rtl"] .forum table th,[dir="rtl"] .text-content table th,[dir="rtl"] .views-table th,[dir="rtl"] .draggable-table th {
margin-left: 0
}
[dir="ltr"] .forum table th,[dir="ltr"] .text-content table th,[dir="ltr"] .views-table th,[dir="ltr"] .draggable-table th {
text-align: left
}
[dir="rtl"] .forum table th,[dir="rtl"] .text-content table th,[dir="rtl"] .views-table th,[dir="rtl"] .draggable-table th {
text-align: right
}
.forum table th, .text-content table th, .views-table th, .draggable-table th {
margin-top: 0;
margin-bottom: 0;
letter-spacing: 0.02em; letter-spacing: 0.02em;
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
border-bottom: 2px solid var(--color--primary-50); border-block-end: 2px solid var(--color--primary-50);
font-family: var(--font-sans); font-family: var(--font-sans);
font-size: 0.875rem; font-size: 0.875rem;
line-height: var(--sp); line-height: var(--sp);
} }
.forum table td, .text-content table td, .views-table td, .draggable-table td { :is(.forum table, .text-content table, .views-table, .draggable-table) td {
white-space: normal; white-space: normal;
border-bottom: 2px solid var(--color--gray-65); border-block-end: 2px solid var(--color--gray-65);
} }
.forum table th.checkbox, :is(.forum table, .text-content table, .views-table, .draggable-table) th.checkbox,
.forum table td.checkbox, :is(.forum table, .text-content table, .views-table, .draggable-table) td.checkbox {
.text-content table th.checkbox,
.text-content table td.checkbox,
.views-table th.checkbox,
.views-table td.checkbox,
.draggable-table th.checkbox,
.draggable-table td.checkbox {
text-align: center; text-align: center;
} }
@ -182,7 +85,7 @@
.sticky-header { .sticky-header {
z-index: 0; z-index: 0;
margin: 0; margin: 0;
border-bottom: 4px solid var(--color--primary-50); border-block-end: 0.25rem solid var(--color--primary-50);
} }
/* Properly align VBO checkboxes. */ /* Properly align VBO checkboxes. */

42
css/components/tabledrag.css

@ -10,19 +10,6 @@
* Styles for tabledrag. * Styles for tabledrag.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.draggable:hover { .draggable:hover {
background-color: var(--color--gray-100); background-color: var(--color--gray-100);
} }
@ -45,12 +32,8 @@ a.tabledrag-handle,
height: 2.25rem; height: 2.25rem;
} }
[dir="ltr"] .draggable a.tabledrag-handle { .draggable a.tabledrag-handle {
margin-left: 0; margin-inline-start: 0;
}
[dir="rtl"] .draggable a.tabledrag-handle {
margin-right: 0;
} }
a.tabledrag-handle .handle { a.tabledrag-handle .handle {
@ -65,25 +48,10 @@ a.tabledrag-handle .handle {
background-position: 50% 5px; background-position: 50% 5px;
} }
[dir="ltr"] .touchevents .draggable td {
padding-left: 0;
}
[dir="rtl"] .touchevents .draggable td {
padding-right: 0;
}
[dir="ltr"] .touchevents .draggable td {
padding-right: var(--sp0-5);
}
[dir="rtl"] .touchevents .draggable td {
padding-left: var(--sp0-5);
}
.touchevents .draggable td { .touchevents .draggable td {
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5); padding-inline-start: 0;
padding-inline-end: var(--sp0-5);
} }
.touchevents .draggable .menu-item__link { .touchevents .draggable .menu-item__link {

212
css/components/tabs.css

@ -4,30 +4,7 @@
* https://www.drupal.org/node/3084859 * https://www.drupal.org/node/3084859
* @preserve * @preserve
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
/* Breakpoint where tabs switch between vertical and horizontal layouts. */ /* Breakpoint where tabs switch between vertical and horizontal layouts. */
[dir="ltr"] .tabs {
margin-left: 0
}
[dir="rtl"] .tabs {
margin-right: 0
}
.tabs { .tabs {
--tabs-height: var(--sp3); --tabs-height: var(--sp3);
--tabs-padding-inline: var(--sp1-5); --tabs-padding-inline: var(--sp1-5);
@ -46,270 +23,169 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
margin: 0; /* Override [dir] attribute in base <ul> in compiled CSS. */ margin: 0;
margin-inline-start: 0; /* Override [dir] attribute in base <ul> in compiled CSS. */
padding: 0; padding: 0;
list-style: none list-style: none;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.tabs { .tabs {
flex-direction: row; flex-direction: row;
flex-wrap: wrap flex-wrap: wrap;
} }
} }
.tabs__tab { .tabs__tab {
display: none; display: none;
margin: 0; margin: 0;
margin-bottom: calc(var(--tabs-border-width)*-1) margin-block-end: calc(-1 * var(--tabs-border-width));
} }
.tabs__tab.is-active { .tabs__tab.is-active {
display: flex; display: flex;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .tabs__tab {
margin-left: calc(var(--tabs-border-width)*-1)
}
[dir="rtl"] .tabs__tab {
margin-right: calc(var(--tabs-border-width)*-1)
}
.tabs__tab { .tabs__tab {
display: flex; display: flex;
margin-bottom: 0 margin-block-end: 0;
margin-inline-start: calc(-1 * var(--tabs-border-width));
} }
} }
.tabs__tab {
/* Show tabs when JavaScript disabled. */ /* Show tabs when JavaScript disabled. */
}
html:not(.js) .tabs__tab { html:not(.js) .tabs__tab {
display: flex display: flex;
} }
.tabs__tab {
/* Show tabs when tabs-expanded class is present. */ /* Show tabs when tabs-expanded class is present. */
}
.tabs.is-expanded .tabs__tab { .tabs.is-expanded .tabs__tab {
display: flex display: flex;
} }
.tabs__tab {
/* Secondary tabs will always be expanded. */ /* Secondary tabs will always be expanded. */
}
.tabs--secondary .tabs__tab { .tabs--secondary .tabs__tab {
display: block display: block;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.tabs--secondary .tabs__tab { .tabs--secondary .tabs__tab {
display: flex display: flex;
} }
} }
.tabs__link { .tabs__link {
display: flex; display: flex;
flex-grow: 1; flex-grow: 1;
align-items: center; align-items: center;
height: var(--tabs-height); height: var(--tabs-height);
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline: var(--tabs-padding-inline);
padding-left: var(--tabs-padding-inline);
padding-right: var(--tabs-padding-inline);
transition: background-color var(--tabs-transition-duration); transition: background-color var(--tabs-transition-duration);
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
letter-spacing: var(--tabs-letter-spacing); letter-spacing: var(--tabs-letter-spacing);
color: var(--tabs-text-color); color: var(--tabs-text-color);
border: var(--tabs-border-width) solid var(--tabs-border-color); border: var(--tabs-border-width) solid var(--tabs-border-color);
background-color: var(--tabs-background-color); background-color: var(--tabs-background-color);
font-size: var(--tabs-font-size) font-size: var(--tabs-font-size);
} }
.tabs__link:hover { .tabs__link:hover {
color: var(--tabs-text-color-active); color: var(--tabs-text-color-active);
background-color: var(--tabs-background-color-hover); background-color: var(--tabs-background-color-hover);
} }
.tabs__link:focus { .tabs__link:focus {
position: relative; position: relative;
outline: solid 3px var(--tabs-highlight-color); outline: solid 3px var(--tabs-highlight-color);
outline-offset: -3px; outline-offset: -3px;
} }
.tabs__link.is-active { .tabs__link.is-active {
position: relative; /* Anchor ::after pseudo-element. */ position: relative; /* Anchor ::after pseudo-element. */
color: var(--tabs-text-color-active); color: var(--tabs-text-color-active);
font-weight: 600 font-weight: 600;
/* /*
* We use ::after pseudo-element in place of border so edges do not appear * We use ::after pseudo-element in place of border so edges do not appear
* diagonally cut off due to other edges with transparent borders. * diagonally cut off due to other edges with transparent borders.
*/ */
} }
[dir="ltr"] .tabs__link.is-active::after {
left: calc(var(--tabs-border-width)*-1)
}
[dir="rtl"] .tabs__link.is-active::after {
right: calc(var(--tabs-border-width)*-1)
}
[dir="ltr"] .tabs__link.is-active::after {
border-left: var(--tabs-active-border-size) solid var(--tabs-highlight-color)
}
[dir="rtl"] .tabs__link.is-active::after {
border-right: var(--tabs-active-border-size) solid var(--tabs-highlight-color)
}
.tabs__link.is-active::after { .tabs__link.is-active::after {
position: absolute; position: absolute;
top: calc(var(--tabs-border-width)*-1); inset-block-start: calc(-1 * var(--tabs-border-width));
inset-inline-start: calc(-1 * var(--tabs-border-width));
height: calc(100% + var(--tabs-border-width) * 2); height: calc(100% + var(--tabs-border-width) * 2);
content: "" content: "";
border-inline-start: var(--tabs-active-border-size) solid var(--tabs-highlight-color);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .tabs__link.is-active::after {
border-left: 0
}
[dir="rtl"] .tabs__link.is-active::after {
border-right: 0
}
.tabs__link.is-active::after { .tabs__link.is-active::after {
top: auto; inset-block: auto calc(-1 * var(--tabs-border-width));
bottom: calc(var(--tabs-border-width)*-1); width: calc(100% + 2 * var(--tabs-border-width));
width: calc(100% + var(--tabs-border-width)*2);
height: 0; height: 0;
border-top: var(--tabs-active-border-size) solid var(--tabs-highlight-color) border-block-start: var(--tabs-active-border-size) solid var(--tabs-highlight-color);
border-inline-start: 0;
} }
} }
.tabs__link {
/* No regular borders or background color for secondary tab links. */ /* No regular borders or background color for secondary tab links. */
}
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.tabs--secondary .tabs__link { .tabs--secondary .tabs__link {
border-color: transparent; border-color: transparent;
background-color: transparent background-color: transparent;
} }
} }
/* Button that opens and closes primary tabs at narrow viewports. */ /* Button that opens and closes primary tabs at narrow viewports. */
[dir="ltr"] .tabs__trigger {
margin-left: calc(var(--tabs-border-width)*-1);
margin-right: 0
}
[dir="rtl"] .tabs__trigger {
margin-right: calc(var(--tabs-border-width)*-1);
margin-left: 0
}
.tabs__trigger { .tabs__trigger {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: var(--tabs-height); width: var(--tabs-height);
margin-top: 0; margin-block: 0;
margin-bottom: 0; margin-inline: calc(-1 * var(--tabs-border-width)) 0;
cursor: pointer; cursor: pointer;
border: solid var(--tabs-border-width) var(--tabs-border-color); border: solid var(--tabs-border-width) var(--tabs-border-color);
background-color: var(--tabs-background-color) background-color: var(--tabs-background-color);
} }
.tabs__trigger:hover { .tabs__trigger:hover {
background-color: var(--tabs-background-color-hover); background-color: var(--tabs-background-color-hover);
} }
.tabs__trigger:focus { .tabs__trigger:focus {
position: relative; position: relative;
border-color: var(--tabs-highlight-color); border-color: var(--tabs-highlight-color);
outline: none; outline: none;
} }
.tabs__trigger {
/* Button will not work when JavaScript is disabled, so we hide it. */ /* Button will not work when JavaScript is disabled, so we hide it. */
}
html:not(.js) .tabs__trigger { html:not(.js) .tabs__trigger {
display: none display: none;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.tabs__trigger { .tabs__trigger {
display: none display: none;
} }
} }
.tabs__trigger-icon { .tabs__trigger-icon {
position: relative; position: relative;
display: block; display: block;
width: var(--sp); width: var(--sp);
height: 0.625rem; height: 0.625rem;
margin-top: calc(var(--tabs-border-width)*-2) margin-block-start: calc(-2 * var(--tabs-border-width));
}
[dir="ltr"] .tabs__trigger-icon > span {
left: 0
} }
[dir="rtl"] .tabs__trigger-icon > span {
right: 0
}
.tabs__trigger-icon > span { .tabs__trigger-icon > span {
position: absolute; position: absolute;
inset-inline-start: 0;
display: block; display: block;
width: 100%; width: 100%;
transition: transform var(--tabs-transition-duration), opacity var(--tabs-transition-duration), top var(--tabs-transition-duration); transition: transform var(--tabs-transition-duration), opacity var(--tabs-transition-duration), top var(--tabs-transition-duration);
border-top: solid 2px var(--tabs-highlight-color) border-block-start: solid 2px var(--tabs-highlight-color);
} }
.tabs__trigger-icon > span:nth-child(1) { .tabs__trigger-icon > span:nth-child(1) {
top: 0 inset-block-start: 0;
} }
.tabs__trigger[aria-expanded="true"] :is(.tabs__trigger-icon > span:nth-child(1)) {
.tabs__trigger[aria-expanded="true"] .tabs__trigger-icon > span:nth-child(1) { inset-block-start: calc(50% + 1px);
top: calc(50% + 1px); transform: rotate(45deg);
transform: rotate(45deg)
} }
.tabs__trigger-icon > span:nth-child(2) { .tabs__trigger-icon > span:nth-child(2) {
top: calc(50% + 1px) inset-block-start: calc(50% + 1px);
} }
.tabs__trigger[aria-expanded="true"] :is(.tabs__trigger-icon > span:nth-child(2)) {
.tabs__trigger[aria-expanded="true"] .tabs__trigger-icon > span:nth-child(2) { opacity: 0;
opacity: 0
} }
.tabs__trigger-icon > span:nth-child(3) { .tabs__trigger-icon > span:nth-child(3) {
top: calc(100% + 2px) inset-block-start: calc(100% + 2px);
} }
.tabs__trigger[aria-expanded="true"] :is(.tabs__trigger-icon > span:nth-child(3)) {
.tabs__trigger[aria-expanded="true"] .tabs__trigger-icon > span:nth-child(3) { inset-block-start: calc(50% + 1px);
top: calc(50% + 1px); transform: rotate(-45deg);
transform: rotate(-45deg)
} }

137
css/components/tags.css

@ -10,39 +10,19 @@
* Tags field styling. * Tags field styling.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.field--tags { .field--tags {
display: flex; display: flex;
font-family: var(--font-sans); font-family: var(--font-sans);
} }
[dir="ltr"] .field--tags__label {
margin-right: calc(var(--sp1-5) - var(--sp0-5)/2);
}
[dir="rtl"] .field--tags__label {
margin-left: calc(var(--sp1-5) - var(--sp0-5)/2);
}
.field--tags__label { .field--tags__label {
margin: 0; margin: 0;
margin-inline-end: calc(var(--sp1-5) - (var(--sp0-5) / 2));
letter-spacing: 0.02em; letter-spacing: 0.02em;
color: var(--color-text-neutral-soft); color: var(--color-text-neutral-soft);
font-size: var(--font-size-s); font-size: var(--font-size-s);
font-weight: 600; font-weight: 600;
line-height: 1.6 line-height: 1.6;
} }
.field--tags__label::after { .field--tags__label::after {
@ -50,95 +30,34 @@
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.field--tags__label { .field--tags__label {
line-height: 2 line-height: 2;
}
} }
[dir="ltr"] .field--label-inline .field--tags__label {
padding-left: 0;
}
[dir="rtl"] .field--label-inline .field--tags__label {
padding-right: 0;
}
[dir="ltr"] .field--label-inline .field--tags__label {
padding-right: 0;
}
[dir="rtl"] .field--label-inline .field--tags__label {
padding-left: 0;
} }
.field--label-inline .field--tags__label { .field--label-inline .field--tags__label {
padding-top: 0; padding-block: 0;
padding-bottom: 0; padding-inline-start: 0;
} padding-inline-end: 0;
[dir="ltr"] .field--tags__items {
margin-left: calc(var(--sp0-5)/2*-1);
}
[dir="rtl"] .field--tags__items {
margin-right: calc(var(--sp0-5)/2*-1);
}
[dir="ltr"] .field--tags__items {
margin-right: calc(var(--sp0-5)/2*-1);
}
[dir="rtl"] .field--tags__items {
margin-left: calc(var(--sp0-5)/2*-1);
}
[dir="ltr"] .field--tags__items {
padding-left: 0;
}
[dir="rtl"] .field--tags__items {
padding-right: 0;
}
[dir="ltr"] .field--tags__items {
padding-right: 0;
}
[dir="rtl"] .field--tags__items {
padding-left: 0;
} }
.field--tags__items { .field--tags__items {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: calc(var(--sp0-5)/2*-1); margin-block: calc((var(--sp0-5) / 2) * -1);
margin-bottom: calc(var(--sp0-5)/2*-1); margin-inline-start: calc((var(--sp0-5) / 2) * -1);
padding-top: 0; margin-inline-end: calc((var(--sp0-5) / 2) * -1);
padding-bottom: 0; padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
list-style: none; list-style: none;
} }
[dir="ltr"] .field--tags__item {
margin-left: calc(var(--sp0-5)/2);
}
[dir="rtl"] .field--tags__item {
margin-right: calc(var(--sp0-5)/2);
}
[dir="ltr"] .field--tags__item {
margin-right: calc(var(--sp0-5)/2);
}
[dir="rtl"] .field--tags__item {
margin-left: calc(var(--sp0-5)/2);
}
.field--tags__item { .field--tags__item {
display: flex; display: flex;
margin-top: calc(var(--sp0-5)/2); margin-block: calc(var(--sp0-5) / 2);
margin-bottom: calc(var(--sp0-5)/2); margin-inline-start: calc(var(--sp0-5) / 2);
margin-inline-end: calc(var(--sp0-5) / 2);
} }
.field--tags__item:nth-last-child(n + 2)::after { .field--tags__item:nth-last-child(n + 2)::after {
@ -151,6 +70,7 @@
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
letter-spacing: 0.02em; letter-spacing: 0.02em;
color: var(--color-text-primary-medium); color: var(--color-text-primary-medium);
@ -159,26 +79,11 @@
line-height: 1.5; line-height: 1.5;
} }
[dir="ltr"] .node--view-mode-full .field--tags {
padding-left: var(--sp2);
}
[dir="rtl"] .node--view-mode-full .field--tags {
padding-right: var(--sp2);
}
[dir="ltr"] .node--view-mode-full .field--tags {
padding-right: var(--sp2);
}
[dir="rtl"] .node--view-mode-full .field--tags {
padding-left: var(--sp2);
}
.node--view-mode-full .field--tags { .node--view-mode-full .field--tags {
margin-top: var(--sp4); margin-block-start: var(--sp4);
margin-bottom: var(--sp4); margin-block-end: var(--sp4);
padding-top: var(--sp1-5); padding-block: var(--sp1-5);
padding-bottom: var(--sp1-5); padding-inline-start: var(--sp2);
padding-inline-end: var(--sp2);
background-color: var(--color--gray-100); background-color: var(--color--gray-100);
} }

181
css/components/text-content.css

@ -10,24 +10,11 @@
* Text Content. * Text Content.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.text-content, .text-content,
.cke_editable { .cke_editable {
color: var(--color-text-neutral-medium); color: var(--color-text-neutral-medium);
font-family: var(--font-serif); font-family: var(--font-serif);
line-height: var(--sp1-5) line-height: var(--sp1-5);
/* /*
@todo @todo
@ -39,177 +26,128 @@
*/ */
} }
.text-content a:where(:not(.button)), .cke_editable a:where(:not(.button)) { .text-content a:where(:not(.button)),
.cke_editable a:where(:not(.button)) {
color: var(--color-text-primary-medium); color: var(--color-text-primary-medium);
-webkit-text-decoration-color: currentColor;
text-decoration-color: currentColor; text-decoration-color: currentColor;
text-decoration-thickness: 2px; text-decoration-thickness: 2px;
word-wrap: break-word overflow-wrap: break-word;
} }
@supports (box-shadow: none) { @supports (box-shadow: none) {
.text-content a:where(:not(.button)),
.text-content a:where(:not(.button)), .cke_editable a:where(:not(.button)) { .cke_editable a:where(:not(.button)) {
transition: box-shadow 0.3s cubic-bezier(0.55, 0.085, 0, 0.99); transition: box-shadow 0.3s cubic-bezier(0.55, 0.085, 0, 0.99);
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
box-shadow: inset 0 -2px 0 0 var(--color--primary-50) box-shadow: inset 0 -2px 0 0 var(--color--primary-50);
} }
.text-content a:where(:not(.button)):hover, .cke_editable a:where(:not(.button)):hover { .text-content a:where(:not(.button)):hover,
.cke_editable a:where(:not(.button)):hover {
-webkit-text-decoration: underline;
text-decoration: underline; text-decoration: underline;
color: var(--color--black); color: var(--color--black);
box-shadow: inset 0 -2em 0 0 var(--color--primary-80); box-shadow: inset 0 -2em 0 0 var(--color--primary-80);
-webkit-text-decoration-color: var(--color--primary-80);
text-decoration-color: var(--color--primary-80); text-decoration-color: var(--color--primary-80);
} }
} }
.text-content p, .cke_editable p { .text-content p,
margin-top: var(--sp); .cke_editable p {
margin-bottom: var(--sp) margin-block-start: var(--sp);
margin-block-end: var(--sp);
} }
.text-content p:first-child, .cke_editable p:first-child { .text-content p:first-child,
margin-top: 0; .cke_editable p:first-child {
margin-block-start: 0;
} }
.text-content p:last-child, .cke_editable p:last-child { .text-content p:last-child,
margin-bottom: 0; .cke_editable p:last-child {
margin-block-end: 0;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.text-content p,
.text-content p, .cke_editable p { .cke_editable p {
margin-top: var(--sp2); margin-block-start: var(--sp2);
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
} }
.text-content code, .cke_editable code { .text-content code,
.cke_editable code {
background-color: var(--color--gray-100); background-color: var(--color--gray-100);
} }
[dir="ltr"] .text-content pre code,[dir="ltr"] .cke_editable pre code { .text-content pre code,
padding-left: var(--sp) .cke_editable pre code {
}
[dir="rtl"] .text-content pre code,[dir="rtl"] .cke_editable pre code {
padding-right: var(--sp)
}
[dir="ltr"] .text-content pre code,[dir="ltr"] .cke_editable pre code {
padding-right: var(--sp)
}
[dir="rtl"] .text-content pre code,[dir="rtl"] .cke_editable pre code {
padding-left: var(--sp)
}
.text-content pre code, .cke_editable pre code {
display: block; display: block;
overflow: auto; overflow: auto;
padding-top: var(--sp); padding-block: var(--sp);
padding-bottom: var(--sp); padding-inline-start: var(--sp);
padding-inline-end: var(--sp);
color: var(--color-text-neutral-soft); color: var(--color-text-neutral-soft);
} }
[dir="ltr"] .text-content blockquote,[dir="ltr"] .cke_editable blockquote { .text-content blockquote,
margin-left: 0 .cke_editable blockquote {
}
[dir="rtl"] .text-content blockquote,[dir="rtl"] .cke_editable blockquote {
margin-right: 0
}
[dir="ltr"] .text-content blockquote,[dir="ltr"] .cke_editable blockquote {
margin-right: 0
}
[dir="rtl"] .text-content blockquote,[dir="rtl"] .cke_editable blockquote {
margin-left: 0
}
[dir="ltr"] .text-content blockquote,[dir="ltr"] .cke_editable blockquote {
padding-left: var(--sp2)
}
[dir="rtl"] .text-content blockquote,[dir="rtl"] .cke_editable blockquote {
padding-right: var(--sp2)
}
.text-content blockquote, .cke_editable blockquote {
position: relative; position: relative;
margin-top: var(--sp2); margin-block: var(--sp2);
margin-bottom: var(--sp2); margin-inline-start: 0;
margin-inline-end: 0;
padding-inline-start: var(--sp2);
letter-spacing: -0.01em; letter-spacing: -0.01em;
font-family: var(--font-serif); font-family: var(--font-serif);
font-size: 1.3125rem; font-size: 1.3125rem;
line-height: var(--sp2) line-height: var(--sp2);
}
[dir="ltr"] .text-content blockquote::before,[dir="ltr"] .cke_editable blockquote::before {
left: 0
}
[dir="rtl"] .text-content blockquote::before,[dir="rtl"] .cke_editable blockquote::before {
right: 0
} }
.text-content blockquote::before, .cke_editable blockquote::before { .text-content blockquote::before,
.cke_editable blockquote::before {
position: absolute; position: absolute;
top: 0; inset-block-start: 0;
inset-inline-start: 0;
content: "\201C"; content: "\201C";
color: var(--color--primary-60); color: var(--color--primary-60);
font-size: 3.375rem; font-size: 3.375rem;
} }
[dir="ltr"] .text-content blockquote::after,[dir="ltr"] .cke_editable blockquote::after { .text-content blockquote::after,
left: 0 .cke_editable blockquote::after {
}
[dir="rtl"] .text-content blockquote::after,[dir="rtl"] .cke_editable blockquote::after {
right: 0
}
[dir="ltr"] .text-content blockquote::after,[dir="ltr"] .cke_editable blockquote::after {
margin-left: 0.25rem
}
[dir="rtl"] .text-content blockquote::after,[dir="rtl"] .cke_editable blockquote::after {
margin-right: 0.25rem
}
.text-content blockquote::after, .cke_editable blockquote::after {
position: absolute; position: absolute;
bottom: 0; inset-block-end: 0;
inset-inline-start: 0;
width: var(--sp0-5); width: var(--sp0-5);
height: calc(100% - 1.875rem); height: calc(100% - 1.875rem);
margin-inline-start: 0.25rem;
content: ""; content: "";
background: var(--color--gray-100); background: var(--color--gray-100);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.text-content blockquote,
.text-content blockquote, .cke_editable blockquote { .cke_editable blockquote {
font-size: 2rem; font-size: 2rem;
line-height: var(--sp3) line-height: var(--sp3);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.text-content blockquote,
.text-content blockquote, .cke_editable blockquote { .cke_editable blockquote {
font-size: 2.5rem; font-size: 2.5rem;
line-height: calc(var(--sp)*3.5) line-height: calc(3.5 * var(--sp));
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.text-content, .text-content,
.cke_editable { .cke_editable {
font-size: 1.125rem; font-size: 1.125rem;
line-height: var(--sp2) line-height: var(--sp2);
} }
} }
@ -218,7 +156,7 @@
*/ */
.site-footer .text-content { .site-footer .text-content {
color: inherit color: inherit;
} }
.site-footer .text-content * { .site-footer .text-content * {
@ -226,12 +164,14 @@
} }
.site-footer .text-content a { .site-footer .text-content a {
-webkit-text-decoration: underline;
text-decoration: underline; text-decoration: underline;
color: var(--color--white); color: var(--color--white);
box-shadow: none box-shadow: none;
} }
.site-footer .text-content a:hover { .site-footer .text-content a:hover {
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color--white); color: var(--color--white);
box-shadow: none; box-shadow: none;
@ -242,9 +182,8 @@
*/ */
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.region--sidebar .text-content blockquote { .region--sidebar .text-content blockquote {
font-size: 1.5rem; font-size: 1.5rem;
line-height: var(--sp2) line-height: var(--sp2);
} }
} }

19
css/components/ui-dialog.css

@ -10,27 +10,16 @@
* Styles for jQuery UI dialog. * Styles for jQuery UI dialog.
*/ */
[dir="ltr"] .ui-dialog .ui-dialog-buttonpane { .ui-dialog .ui-dialog-buttonpane {
padding-left: 0.2em; padding-inline-start: 0.2em;
} padding-inline-end: 0.2em;
[dir="rtl"] .ui-dialog .ui-dialog-buttonpane {
padding-right: 0.2em;
}
[dir="ltr"] .ui-dialog .ui-dialog-buttonpane {
padding-right: 0.2em;
}
[dir="rtl"] .ui-dialog .ui-dialog-buttonpane {
padding-left: 0.2em;
} }
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
display: flex; display: flex;
float: none; float: none;
flex-wrap: wrap; flex-wrap: wrap;
grid-gap: 0.3125rem; gap: 0.3125rem;
} }
.ui-dialog .ui-dialog-buttonpane button { .ui-dialog .ui-dialog-buttonpane button {

102
css/components/vertical-tabs.css

@ -10,76 +10,50 @@
* Vertical Tabs. * Vertical Tabs.
*/ */
/* :root {
* Media query breakpoints. --vertical-tabs-menu-width: 15rem;
* Processed by postcss/postcss-custom-media. --vertical-tabs-menu-border-width: 1px;
*/ }
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.vertical-tabs { .vertical-tabs {
display: flex display: flex;
}
} }
[dir="ltr"] .vertical-tabs__menu {
margin-left: 0
}
[dir="rtl"] .vertical-tabs__menu {
margin-right: 0
}
[dir="ltr"] .vertical-tabs__menu {
margin-right: 0
}
[dir="rtl"] .vertical-tabs__menu {
margin-left: 0
} }
.vertical-tabs__menu { .vertical-tabs__menu {
position: relative; position: relative;
align-self: flex-start; align-self: flex-start;
margin: 0; margin: 0;
margin-inline-start: 0;
margin-inline-end: 0;
list-style: none; list-style: none;
border-width: 1px; border-width: var(--vertical-tabs-menu-border-width);
border-style: solid; border-style: solid;
border-color: var(--color--gray-95) border-color: var(--color--gray-95);
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.vertical-tabs__menu { .vertical-tabs__menu {
width: 15rem; width: var(--vertical-tabs-menu-width);
border-width: 1px 0 1px 1px border-width: var(--vertical-tabs-menu-border-width) 0 var(--vertical-tabs-menu-border-width) var(--vertical-tabs-menu-border-width);
} }
} }
.vertical-tabs__panes { .vertical-tabs__panes {
margin-top: -1px margin-block-start: calc(var(--vertical-tabs-menu-border-width) * -1);
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.vertical-tabs__panes { .vertical-tabs__panes {
width: calc(100% - 15rem); width: calc(100% - var(--vertical-tabs-menu-width));
margin-top: 0 margin-block-start: 0;
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.vertical-tabs__pane { .vertical-tabs__pane {
min-height: 100% min-height: 100%;
} }
} }
@ -94,32 +68,18 @@
} }
.vertical-tabs__menu-item:nth-child(n + 2) { .vertical-tabs__menu-item:nth-child(n + 2) {
border-top: 1px solid var(--color--gray-95); border-block-start: var(--vertical-tabs-menu-border-width) solid var(--color--gray-95);
}
[dir="ltr"] .vertical-tabs__menu-item a {
padding-left: var(--sp0-75)
}
[dir="rtl"] .vertical-tabs__menu-item a {
padding-right: var(--sp0-75)
}
[dir="ltr"] .vertical-tabs__menu-item a {
padding-right: var(--sp0-75)
}
[dir="rtl"] .vertical-tabs__menu-item a {
padding-left: var(--sp0-75)
} }
.vertical-tabs__menu-item a { .vertical-tabs__menu-item a {
display: block; display: block;
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5); padding-inline-start: var(--sp0-75);
padding-inline-end: var(--sp0-75);
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-primary-loud); color: var(--color-text-primary-loud);
background-color: var(--color--gray-95) background-color: var(--color--gray-95);
} }
.vertical-tabs__menu-item a:focus, .vertical-tabs__menu-item a:focus,
@ -129,25 +89,13 @@
} }
.vertical-tabs__menu-item.is-selected { .vertical-tabs__menu-item.is-selected {
background-color: var(--color--white) background-color: var(--color--white);
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.vertical-tabs__menu-item.is-selected {
[dir="ltr"] .vertical-tabs__menu-item.is-selected { margin-inline-end: calc(var(--vertical-tabs-menu-border-width) * -1);
margin-right: -1px padding-inline-end: var(--vertical-tabs-menu-border-width);
}
[dir="rtl"] .vertical-tabs__menu-item.is-selected {
margin-left: -1px
}
[dir="ltr"] .vertical-tabs__menu-item.is-selected {
padding-right: 1px
}
[dir="rtl"] .vertical-tabs__menu-item.is-selected {
padding-left: 1px
} }
} }

84
css/components/wide-image.css

@ -10,106 +10,46 @@
* Wide image component. * Wide image component.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .wide-image {
margin-left: 0
}
[dir="rtl"] .wide-image {
margin-right: 0
}
[dir="ltr"] .wide-image {
margin-right: 0
}
[dir="rtl"] .wide-image {
margin-left: 0
}
.wide-image { .wide-image {
margin-top: var(--sp0-5); margin-block-start: var(--sp0-5);
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
margin-inline-start: 0;
margin-inline-end: 0;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .wide-image {
margin-left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
[dir="rtl"] .wide-image {
margin-right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
.wide-image { .wide-image {
width: calc(var(--grid-col-count) * var(--grid-col-width) + var(--grid-gap-count) * var(--grid-gap)); width: calc(var(--grid-col-count) * var(--grid-col-width) + var(--grid-gap-count) * var(--grid-gap));
margin-top: var(--sp2); margin-block: var(--sp2) var(--sp4);
margin-bottom: var(--sp4) margin-inline-start: calc(-1 * ((var(--grid-col-width) + var(--grid-gap))));
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
[dir="ltr"] .wide-image {
margin-left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
[dir="rtl"] .wide-image {
margin-right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
.wide-image { .wide-image {
width: calc(var(--grid-col-width)*12 + var(--grid-gap)*11) width: calc(12 * var(--grid-col-width) + 11 * var(--grid-gap));
margin-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
} }
} }
/* Ensure that image doesn't overlap sidebar. */ /* Ensure that image doesn't overlap sidebar. */
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.sidebar-grid .wide-image { .sidebar-grid .wide-image {
width: calc(var(--grid-col-width)*9 + var(--grid-gap)*8) width: calc(9 * var(--grid-col-width) + 8 * var(--grid-gap));
} }
} }
@media (min-width: 81.25rem) { @media (min-width: 81.25rem) {
.sidebar-grid .wide-image { .sidebar-grid .wide-image {
width: calc(var(--grid-col-width)*10 + var(--grid-gap)*9) width: calc(10 * var(--grid-col-width) + 9 * var(--grid-gap));
} }
} }
/* Ensure that image doesn't overlap layout builder sections when editing layouts. */ /* Ensure that image doesn't overlap layout builder sections when editing layouts. */
[dir="ltr"] .layout-builder .wide-image {
margin-left: 0
}
[dir="rtl"] .layout-builder .wide-image {
margin-right: 0
}
[dir="ltr"] .layout-builder .wide-image {
margin-right: 0
}
[dir="rtl"] .layout-builder .wide-image {
margin-left: 0
}
.layout-builder .wide-image { .layout-builder .wide-image {
max-width: 100%; max-width: 100%;
margin-inline-start: 0;
margin-inline-end: 0;
} }

34
css/layout/grid.css

@ -10,27 +10,11 @@
* Grid system. * Grid system.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.grid-full { .grid-full {
display: -ms-grid;
display: grid; display: grid;
-ms-grid-rows: 1fr;
grid-template-rows: 1fr; grid-template-rows: 1fr;
-ms-grid-columns: (minmax(0, 1fr))[var(--grid-col-count)];
grid-template-columns: repeat(var(--grid-col-count), minmax(0, 1fr)); grid-template-columns: repeat(var(--grid-col-count), minmax(0, 1fr));
grid-column-gap: var(--grid-gap) grid-column-gap: var(--grid-gap);
/* .grid-full classes nested 3 or more deep go full width. */ /* .grid-full classes nested 3 or more deep go full width. */
} }
@ -46,20 +30,16 @@
*/ */
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow .grid-full, .layout--content-narrow .grid-full,
.layout--pass--content-narrow > * .grid-full { .layout--pass--content-narrow > * .grid-full {
-ms-grid-columns: (minmax(0, 1fr))[calc(var(--grid-col-count) - 2)]; grid-template-columns: repeat(calc(var(--grid-col-count) - 2), minmax(0, 1fr));
grid-template-columns: repeat(calc(var(--grid-col-count) - 2), minmax(0, 1fr))
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--content-narrow .grid-full, .layout--content-narrow .grid-full,
.layout--pass--content-narrow > * .grid-full { .layout--pass--content-narrow > * .grid-full {
-ms-grid-columns: (minmax(0, 1fr))[calc(var(--grid-col-count) - 6)]; grid-template-columns: repeat(calc(var(--grid-col-count) - 6), minmax(0, 1fr));
grid-template-columns: repeat(calc(var(--grid-col-count) - 6), minmax(0, 1fr))
} }
} }
@ -70,19 +50,15 @@
*/ */
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-medium .grid-full, .layout--content-medium .grid-full,
.layout--pass--content-medium > * .grid-full { .layout--pass--content-medium > * .grid-full {
-ms-grid-columns: (minmax(0, 1fr))[calc(var(--grid-col-count) - 2)]; grid-template-columns: repeat(calc(var(--grid-col-count) - 2), minmax(0, 1fr));
grid-template-columns: repeat(calc(var(--grid-col-count) - 2), minmax(0, 1fr))
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--content-medium .grid-full, .layout--content-medium .grid-full,
.layout--pass--content-medium > * .grid-full { .layout--pass--content-medium > * .grid-full {
-ms-grid-columns: (minmax(0, 1fr))[calc(var(--grid-col-count) - 4)]; grid-template-columns: repeat(calc(var(--grid-col-count) - 4), minmax(0, 1fr));
grid-template-columns: repeat(calc(var(--grid-col-count) - 4), minmax(0, 1fr))
} }
} }

71
css/layout/layout-builder-fourcol-section.css

@ -10,105 +10,66 @@
* Provides the layout styles for four-column layout section. * Provides the layout styles for four-column layout section.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.layout--fourcol-section { .layout--fourcol-section {
display: flex; display: flex;
flex-wrap: wrap flex-wrap: wrap;
} }
.layout--fourcol-section > .layout__region { .layout--fourcol-section > .layout__region {
flex: 1 0 100%; flex: 1 0 100%;
margin-bottom: var(--grid-gap) margin-block-end: var(--grid-gap);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--fourcol-section > .layout__region { .layout--fourcol-section > .layout__region {
flex-basis: calc(50% - var(--grid-gap)*0.5); flex-basis: calc(50% - (var(--grid-gap) * 0.5));
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
margin-bottom: 0 margin-block-end: 0;
} }
} }
.layout--fourcol-section {
/* Two column layout. */ /* Two column layout. */
}
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--fourcol-section > .layout__region--first, .layout--fourcol-section > .layout__region--first,
.layout--fourcol-section > .layout__region--second { .layout--fourcol-section > .layout__region--second {
margin-bottom: var(--grid-gap); margin-block-end: var(--grid-gap);
}
[dir="ltr"] .layout--fourcol-section > .layout__region--first,[dir="ltr"]
.layout--fourcol-section > .layout__region--third {
margin-right: calc(var(--grid-gap)*0.5)
} }
[dir="rtl"] .layout--fourcol-section > .layout__region--first,[dir="rtl"] .layout--fourcol-section > .layout__region--first,
.layout--fourcol-section > .layout__region--third { .layout--fourcol-section > .layout__region--third {
margin-left: calc(var(--grid-gap)*0.5) margin-inline-end: calc(var(--grid-gap) * 0.5);
}
[dir="ltr"] .layout--fourcol-section > .layout__region--second,[dir="ltr"]
.layout--fourcol-section > .layout__region--fourth {
margin-left: calc(var(--grid-gap)*0.5)
} }
[dir="rtl"] .layout--fourcol-section > .layout__region--second,[dir="rtl"] .layout--fourcol-section > .layout__region--second,
.layout--fourcol-section > .layout__region--fourth { .layout--fourcol-section > .layout__region--fourth {
margin-right: calc(var(--grid-gap)*0.5) margin-inline-start: calc(var(--grid-gap) * 0.5);
} }
} }
.layout--fourcol-section {
/* Four column layout. */ /* Four column layout. */
}
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--fourcol-section > .layout__region { .layout--fourcol-section > .layout__region {
flex-basis: calc(25% - var(--grid-gap)*0.75); flex-basis: calc(25% - (var(--grid-gap) * 0.75));
} }
.layout--fourcol-section > .layout__region--first, .layout--fourcol-section > .layout__region--first,
.layout--fourcol-section > .layout__region--second { .layout--fourcol-section > .layout__region--second {
margin-bottom: 0; margin-block-end: 0;
}
[dir="ltr"] .layout--fourcol-section > .layout__region--first {
margin-right: calc(var(--grid-gap)*0.5)
} }
[dir="rtl"] .layout--fourcol-section > .layout__region--first { .layout--fourcol-section > .layout__region--first {
margin-left: calc(var(--grid-gap)*0.5) margin-inline-end: calc(var(--grid-gap) * 0.5);
} }
.layout--fourcol-section > .layout__region--second, .layout--fourcol-section > .layout__region--second,
.layout--fourcol-section > .layout__region--third { .layout--fourcol-section > .layout__region--third {
margin-left: calc(var(--grid-gap)*0.5); margin-inline: calc(var(--grid-gap) * 0.5);
margin-right: calc(var(--grid-gap)*0.5);
} }
[dir="ltr"] .layout--fourcol-section > .layout__region--fourth { .layout--fourcol-section > .layout__region--fourth {
margin-left: calc(var(--grid-gap)*0.5) margin-inline-start: calc(var(--grid-gap) * 0.5);
}
[dir="rtl"] .layout--fourcol-section > .layout__region--fourth {
margin-right: calc(var(--grid-gap)*0.5)
} }
} }

46
css/layout/layout-builder-threecol-section.css

@ -10,61 +10,39 @@
* Provides the layout styles for three-column layout section. * Provides the layout styles for three-column layout section.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.layout--threecol-section { .layout--threecol-section {
display: flex; display: flex;
flex-wrap: wrap flex-wrap: wrap;
} }
.layout--threecol-section > .layout__region { .layout--threecol-section > .layout__region {
flex: 1 0 100%; flex: 1 0 100%;
margin-bottom: var(--grid-gap) margin-block-end: var(--grid-gap);
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--threecol-section > .layout__region { .layout--threecol-section > .layout__region {
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
margin-bottom: 0 margin-block-end: 0;
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
[dir="ltr"] .layout--threecol-section > .layout__region--first { .layout--threecol-section > .layout__region--first {
margin-right: calc(var(--grid-gap)*0.5) margin-inline-end: calc(var(--grid-gap) * 0.5);
}
[dir="rtl"] .layout--threecol-section > .layout__region--first {
margin-left: calc(var(--grid-gap)*0.5)
} }
.layout--threecol-section > .layout__region--second { .layout--threecol-section > .layout__region--second {
margin-left: calc(var(--grid-gap)*0.5); margin-inline: calc(var(--grid-gap) * 0.5);
margin-right: calc(var(--grid-gap)*0.5);
}
[dir="ltr"] .layout--threecol-section > .layout__region--third {
margin-left: calc(var(--grid-gap)*0.5)
} }
[dir="rtl"] .layout--threecol-section > .layout__region--third { .layout--threecol-section > .layout__region--third {
margin-right: calc(var(--grid-gap)*0.5) margin-inline-start: calc(var(--grid-gap) * 0.5);
} }
.layout--threecol-section--25-50-25 > .layout__region--first, .layout--threecol-section--25-50-25 > .layout__region--first,
.layout--threecol-section--25-50-25 > .layout__region--third { .layout--threecol-section--25-50-25 > .layout__region--third {
flex-basis: calc(25% - var(--grid-gap)*0.5); flex-basis: calc(25% - (var(--grid-gap) * 0.5));
} }
.layout--threecol-section--25-50-25 > .layout__region--second { .layout--threecol-section--25-50-25 > .layout__region--second {
@ -72,7 +50,7 @@
} }
.layout--threecol-section--25-25-50 > .layout__region--first, .layout--threecol-section--25-25-50 > .layout__region--first,
.layout--threecol-section--25-25-50 > .layout__region--second { .layout--threecol-section--25-25-50 > .layout__region--second {
flex-basis: calc(25% - var(--grid-gap)*0.5); flex-basis: calc(25% - (var(--grid-gap) * 0.5));
} }
.layout--threecol-section--25-25-50 > .layout__region--third { .layout--threecol-section--25-25-50 > .layout__region--third {
@ -84,11 +62,11 @@
.layout--threecol-section--50-25-25 > .layout__region--second, .layout--threecol-section--50-25-25 > .layout__region--second,
.layout--threecol-section--50-25-25 > .layout__region--third { .layout--threecol-section--50-25-25 > .layout__region--third {
flex-basis: calc(25% - var(--grid-gap)*0.5); flex-basis: calc(25% - (var(--grid-gap) * 0.5));
} }
.layout--threecol-section--33-34-33 > .layout__region--first, .layout--threecol-section--33-34-33 > .layout__region--first,
.layout--threecol-section--33-34-33 > .layout__region--second, .layout--threecol-section--33-34-33 > .layout__region--second,
.layout--threecol-section--33-34-33 > .layout__region--third { .layout--threecol-section--33-34-33 > .layout__region--third {
flex-basis: calc(33.33% - var(--grid-gap)*0.667); flex-basis: calc(33.33% - (var(--grid-gap) * 0.667));
} }
} }

120
css/layout/layout-builder-twocol-section.css

@ -10,142 +10,68 @@
* Provides the layout styles for two-column layout section. * Provides the layout styles for two-column layout section.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.layout--twocol-section { .layout--twocol-section {
display: flex; display: flex;
flex-wrap: wrap flex-wrap: wrap;
} }
.layout--twocol-section > .layout__region { .layout--twocol-section > .layout__region {
flex: 1 0 100%; flex: 1 0 100%;
margin-bottom: var(--grid-gap) margin-block-end: var(--grid-gap);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--twocol-section > .layout__region { .layout--twocol-section > .layout__region {
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
margin-bottom: 0 margin-block-end: 0;
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
[dir="ltr"] .layout--twocol-section--50-50 > .layout__region--first {
margin-right: calc(var(--grid-gap)*0.5)
}
[dir="rtl"] .layout--twocol-section--50-50 > .layout__region--first {
margin-left: calc(var(--grid-gap)*0.5)
}
.layout--twocol-section--50-50 > .layout__region--first { .layout--twocol-section--50-50 > .layout__region--first {
flex-basis: calc(50% - var(--grid-gap)*0.5); flex-basis: calc(50% - (var(--grid-gap) * 0.5));
} margin-inline-end: calc(var(--grid-gap) * 0.5);
[dir="ltr"] .layout--twocol-section--50-50 > .layout__region--second {
margin-left: calc(var(--grid-gap)*0.5)
}
[dir="rtl"] .layout--twocol-section--50-50 > .layout__region--second {
margin-right: calc(var(--grid-gap)*0.5)
} }
.layout--twocol-section--50-50 > .layout__region--second { .layout--twocol-section--50-50 > .layout__region--second {
flex-basis: calc(50% - var(--grid-gap)*0.5); flex-basis: calc(50% - (var(--grid-gap) * 0.5));
} margin-inline-start: calc(var(--grid-gap) * 0.5);
[dir="ltr"] .layout--twocol-section--33-67 > .layout__region--first {
margin-right: calc(var(--grid-gap)*0.3333)
}
[dir="rtl"] .layout--twocol-section--33-67 > .layout__region--first {
margin-left: calc(var(--grid-gap)*0.3333)
} }
.layout--twocol-section--33-67 > .layout__region--first { .layout--twocol-section--33-67 > .layout__region--first {
flex-basis: calc(33.33% - var(--grid-gap)*0.3333); flex-basis: calc(33.33% - (var(--grid-gap) * 0.3333));
} margin-inline-end: calc(var(--grid-gap) * 0.3333);
[dir="ltr"] .layout--twocol-section--33-67 > .layout__region--second {
margin-left: calc(var(--grid-gap)*0.6666)
}
[dir="rtl"] .layout--twocol-section--33-67 > .layout__region--second {
margin-right: calc(var(--grid-gap)*0.6666)
} }
.layout--twocol-section--33-67 > .layout__region--second { .layout--twocol-section--33-67 > .layout__region--second {
flex-basis: calc(66.66% - var(--grid-gap)*0.6666); flex-basis: calc(66.66% - (var(--grid-gap) * 0.6666));
} margin-inline-start: calc(var(--grid-gap) * 0.6666);
[dir="ltr"] .layout--twocol-section--67-33 > .layout__region--first {
margin-right: calc(var(--grid-gap)*0.6666)
}
[dir="rtl"] .layout--twocol-section--67-33 > .layout__region--first {
margin-left: calc(var(--grid-gap)*0.6666)
} }
.layout--twocol-section--67-33 > .layout__region--first { .layout--twocol-section--67-33 > .layout__region--first {
flex-basis: calc(66.66% - var(--grid-gap)*0.6666); flex-basis: calc(66.66% - (var(--grid-gap) * 0.6666));
} margin-inline-end: calc(var(--grid-gap) * 0.6666);
[dir="ltr"] .layout--twocol-section--67-33 > .layout__region--second {
margin-left: calc(var(--grid-gap)*0.3333)
}
[dir="rtl"] .layout--twocol-section--67-33 > .layout__region--second {
margin-right: calc(var(--grid-gap)*0.3333)
} }
.layout--twocol-section--67-33 > .layout__region--second { .layout--twocol-section--67-33 > .layout__region--second {
flex-basis: calc(33.33% - var(--grid-gap)*0.3333); flex-basis: calc(33.33% - (var(--grid-gap) * 0.3333));
} margin-inline-start: calc(var(--grid-gap) * 0.3333);
[dir="ltr"] .layout--twocol-section--25-75 > .layout__region--first {
margin-right: calc(var(--grid-gap)*0.25)
}
[dir="rtl"] .layout--twocol-section--25-75 > .layout__region--first {
margin-left: calc(var(--grid-gap)*0.25)
} }
.layout--twocol-section--25-75 > .layout__region--first { .layout--twocol-section--25-75 > .layout__region--first {
flex-basis: calc(25% - var(--grid-gap)*0.25); flex-basis: calc(25% - (var(--grid-gap) * 0.25));
} margin-inline-end: calc(var(--grid-gap) * 0.25);
[dir="ltr"] .layout--twocol-section--25-75 > .layout__region--second {
margin-left: calc(var(--grid-gap)*0.75)
}
[dir="rtl"] .layout--twocol-section--25-75 > .layout__region--second {
margin-right: calc(var(--grid-gap)*0.75)
} }
.layout--twocol-section--25-75 > .layout__region--second { .layout--twocol-section--25-75 > .layout__region--second {
flex-basis: calc(75% - var(--grid-gap)*0.75); flex-basis: calc(75% - (var(--grid-gap) * 0.75));
} margin-inline-start: calc(var(--grid-gap) * 0.75);
[dir="ltr"] .layout--twocol-section--75-25 > .layout__region--first {
margin-right: calc(var(--grid-gap)*0.75)
}
[dir="rtl"] .layout--twocol-section--75-25 > .layout__region--first {
margin-left: calc(var(--grid-gap)*0.75)
} }
.layout--twocol-section--75-25 > .layout__region--first { .layout--twocol-section--75-25 > .layout__region--first {
flex-basis: calc(75% - var(--grid-gap)*0.75); flex-basis: calc(75% - (var(--grid-gap) * 0.75));
} margin-inline-end: calc(var(--grid-gap) * 0.75);
[dir="ltr"] .layout--twocol-section--75-25 > .layout__region--second {
margin-left: calc(var(--grid-gap)*0.25)
}
[dir="rtl"] .layout--twocol-section--75-25 > .layout__region--second {
margin-right: calc(var(--grid-gap)*0.25)
} }
.layout--twocol-section--75-25 > .layout__region--second { .layout--twocol-section--75-25 > .layout__region--second {
flex-basis: calc(25% - var(--grid-gap)*0.25); flex-basis: calc(25% - (var(--grid-gap) * 0.25));
margin-inline-start: calc(var(--grid-gap) * 0.25);
} }
} }

41
css/layout/layout-content-medium.css

@ -10,44 +10,23 @@
* Grid system definition for the content wide layout. * Grid system definition for the content wide layout.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.layout--content-medium, .layout--content-medium,
.layout--pass--content-medium > * { .layout--pass--content-medium > * {
-ms-grid-column: 1;
-ms-grid-column-span: 6;
grid-column: 1 / 7; grid-column: 1 / 7;
width: 100% width: 100%;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-medium, .layout--content-medium,
.layout--pass--content-medium > * { .layout--pass--content-medium > * {
-ms-grid-column: 2; grid-column: 2 / 14;
-ms-grid-column-span: 12;
grid-column: 2 / 14
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--content-medium, .layout--content-medium,
.layout--pass--content-medium > * { .layout--pass--content-medium > * {
-ms-grid-column: 3; grid-column: 3 / 13;
-ms-grid-column-span: 10;
grid-column: 3 / 13
} }
} }
@ -58,25 +37,19 @@
*/ */
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--pass--content-medium > * .layout--content-medium, .layout--pass--content-medium > * .layout--content-medium,
.layout--pass--content-medium > * .layout--pass--content-medium > *,
.layout--content-medium .layout--content-medium, .layout--content-medium .layout--content-medium,
.layout--pass--content-medium > * .layout--pass--content-medium > *,
.layout--content-medium .layout--pass--content-medium > * { .layout--content-medium .layout--pass--content-medium > * {
-ms-grid-column: 1; grid-column: 1 / 13;
-ms-grid-column-span: 12;
grid-column: 1 / 13
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--pass--content-medium > * .layout--content-medium, .layout--pass--content-medium > * .layout--content-medium,
.layout--pass--content-medium > * .layout--pass--content-medium > *,
.layout--content-medium .layout--content-medium, .layout--content-medium .layout--content-medium,
.layout--pass--content-medium > * .layout--pass--content-medium > *,
.layout--content-medium .layout--pass--content-medium > * { .layout--content-medium .layout--pass--content-medium > * {
-ms-grid-column: 1; grid-column: 1 / 11;
-ms-grid-column-span: 10;
grid-column: 1 / 11
} }
} }

139
css/layout/layout-content-narrow.css

@ -10,44 +10,23 @@
* Grid system definition for the content narrow layout. * Grid system definition for the content narrow layout.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.layout--content-narrow, .layout--content-narrow,
.layout--pass--content-narrow > * { .layout--pass--content-narrow > * {
-ms-grid-column: 1;
-ms-grid-column-span: 6;
grid-column: 1 / 7; grid-column: 1 / 7;
width: 100% width: 100%;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow, .layout--content-narrow,
.layout--pass--content-narrow > * { .layout--pass--content-narrow > * {
-ms-grid-column: 2; grid-column: 2 / 14;
-ms-grid-column-span: 12;
grid-column: 2 / 14
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--content-narrow, .layout--content-narrow,
.layout--pass--content-narrow > * { .layout--pass--content-narrow > * {
-ms-grid-column: 3; grid-column: 3 / 11;
-ms-grid-column-span: 8;
grid-column: 3 / 11
} }
} }
@ -61,34 +40,28 @@
*/ */
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow .layout--content-narrow, .layout--content-narrow .layout--content-narrow,
.layout--content-narrow .layout--pass--content-narrow > *,
.layout--pass--content-narrow > * .layout--content-narrow, .layout--pass--content-narrow > * .layout--content-narrow,
.layout--pass--content-narrow > * .layout--pass--content-narrow > *,
.layout--content-medium .layout--content-narrow, .layout--content-medium .layout--content-narrow,
.layout--content-medium .layout--pass--content-narrow > *,
.layout--pass--content-medium > * .layout--content-narrow, .layout--pass--content-medium > * .layout--content-narrow,
.layout--content-narrow .layout--pass--content-narrow > *,
.layout--pass--content-narrow > * .layout--pass--content-narrow > *,
.layout--content-medium .layout--pass--content-narrow > *,
.layout--pass--content-medium > * .layout--pass--content-narrow > * { .layout--pass--content-medium > * .layout--pass--content-narrow > * {
-ms-grid-column: 1; grid-column: 1 / 13;
-ms-grid-column-span: 12;
grid-column: 1 / 13
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--content-narrow .layout--content-narrow, .layout--content-narrow .layout--content-narrow,
.layout--content-narrow .layout--pass--content-narrow > *,
.layout--pass--content-narrow > * .layout--content-narrow, .layout--pass--content-narrow > * .layout--content-narrow,
.layout--pass--content-narrow > * .layout--pass--content-narrow > *,
.layout--content-medium .layout--content-narrow, .layout--content-medium .layout--content-narrow,
.layout--content-medium .layout--pass--content-narrow > *,
.layout--pass--content-medium > * .layout--content-narrow, .layout--pass--content-medium > * .layout--content-narrow,
.layout--content-narrow .layout--pass--content-narrow > *,
.layout--pass--content-narrow > * .layout--pass--content-narrow > *,
.layout--content-medium .layout--pass--content-narrow > *,
.layout--pass--content-medium > * .layout--pass--content-narrow > * { .layout--pass--content-medium > * .layout--pass--content-narrow > * {
-ms-grid-column: 1; grid-column: 1 / 9;
-ms-grid-column-span: 8;
grid-column: 1 / 9
} }
} }
@ -98,77 +71,53 @@
*/ */
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow.text-content blockquote::before,
[dir="ltr"] .layout--content-narrow.text-content blockquote::before,[dir="ltr"] .layout--content-narrow .text-content blockquote::before,[dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote::before,[dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote::before { .layout--pass--content-narrow > *.text-content blockquote::before,
left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1) .layout--content-narrow .text-content blockquote::before,
} .layout--pass--content-narrow > * .text-content blockquote::before {
inset-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
[dir="rtl"] .layout--content-narrow.text-content blockquote::before,[dir="rtl"] .layout--content-narrow .text-content blockquote::before,[dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote::before,[dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote::before {
right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow.text-content blockquote::after,
[dir="ltr"] .layout--content-narrow.text-content blockquote::after,[dir="ltr"] .layout--content-narrow .text-content blockquote::after,[dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote::after,[dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote::after { .layout--pass--content-narrow > *.text-content blockquote::after,
left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1) .layout--content-narrow .text-content blockquote::after,
} .layout--pass--content-narrow > * .text-content blockquote::after {
inset-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
[dir="rtl"] .layout--content-narrow.text-content blockquote::after,[dir="rtl"] .layout--content-narrow .text-content blockquote::after,[dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote::after,[dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote::after {
right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
[dir="ltr"] .layout--content-narrow.text-content blockquote::after,[dir="ltr"] .layout--content-narrow .text-content blockquote::after,[dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote::after,[dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote::after {
margin-left: 2px
}
[dir="rtl"] .layout--content-narrow.text-content blockquote::after,[dir="rtl"] .layout--content-narrow .text-content blockquote::after,[dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote::after,[dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote::after {
margin-right: 2px
}
.layout--content-narrow.text-content blockquote::after, .layout--content-narrow .text-content blockquote::after, .layout--pass--content-narrow > *.text-content blockquote::after, .layout--pass--content-narrow > * .text-content blockquote::after {
width: var(--sp); width: var(--sp);
height: calc(100% - 2.8125rem) height: calc(100% - 2.8125rem);
margin-inline-start: 2px;
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow.text-content blockquote,
[dir="ltr"] .layout--content-narrow.text-content blockquote,[dir="ltr"] .layout--content-narrow .text-content blockquote,[dir="ltr"] .layout--pass--content-narrow > *.text-content blockquote,[dir="ltr"] .layout--pass--content-narrow > * .text-content blockquote { .layout--pass--content-narrow > *.text-content blockquote,
padding-left: 0 .layout--content-narrow .text-content blockquote,
} .layout--pass--content-narrow > * .text-content blockquote {
width: calc(10 * var(--grid-col-width) + 9 * var(--grid-gap));
[dir="rtl"] .layout--content-narrow.text-content blockquote,[dir="rtl"] .layout--content-narrow .text-content blockquote,[dir="rtl"] .layout--pass--content-narrow > *.text-content blockquote,[dir="rtl"] .layout--pass--content-narrow > * .text-content blockquote { margin-block: var(--sp3);
padding-right: 0 padding-inline-start: 0;
}
.layout--content-narrow.text-content blockquote, .layout--content-narrow .text-content blockquote, .layout--pass--content-narrow > *.text-content blockquote, .layout--pass--content-narrow > * .text-content blockquote {
width: calc(var(--grid-col-width)*10 + var(--grid-gap)*9);
margin-top: var(--sp3);
margin-bottom: var(--sp3)
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout--content-narrow.text-content pre,
.layout--content-narrow.text-content pre, .layout--content-narrow .text-content pre, .layout--pass--content-narrow > *.text-content pre, .layout--pass--content-narrow > * .text-content pre { .layout--pass--content-narrow > *.text-content pre,
margin-top: var(--sp3); .layout--content-narrow .text-content pre,
margin-bottom: var(--sp3) .layout--pass--content-narrow > * .text-content pre {
margin-block: var(--sp3);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout--content-narrow.text-content pre,
[dir="ltr"] .layout--content-narrow.text-content pre,[dir="ltr"] .layout--content-narrow .text-content pre,[dir="ltr"] .layout--pass--content-narrow > *.text-content pre,[dir="ltr"] .layout--pass--content-narrow > * .text-content pre { .layout--pass--content-narrow > *.text-content pre,
margin-left: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1) .layout--content-narrow .text-content pre,
} .layout--pass--content-narrow > * .text-content pre {
width: calc(12 * var(--grid-col-width) + 11 * var(--grid-gap));
[dir="rtl"] .layout--content-narrow.text-content pre,[dir="rtl"] .layout--content-narrow .text-content pre,[dir="rtl"] .layout--pass--content-narrow > *.text-content pre,[dir="rtl"] .layout--pass--content-narrow > * .text-content pre { margin-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
margin-right: calc(var(--grid-col-width)*-1 + var(--grid-gap)*-1)
}
.layout--content-narrow.text-content pre, .layout--content-narrow .text-content pre, .layout--pass--content-narrow > *.text-content pre, .layout--pass--content-narrow > * .text-content pre {
width: calc(var(--grid-col-width)*12 + var(--grid-gap)*11)
} }
} }
@ -178,12 +127,12 @@
*/ */
.sidebar-grid .layout--content-narrow.text-content blockquote, .sidebar-grid .layout--content-narrow.text-content blockquote,
.sidebar-grid .layout--content-narrow.text-content pre, .sidebar-grid .layout--pass--content-narrow > *.text-content blockquote,
.sidebar-grid .layout--content-narrow .text-content blockquote, .sidebar-grid .layout--content-narrow .text-content blockquote,
.sidebar-grid .layout--content-narrow .text-content pre,
.sidebar-grid .layout--pass--content-narrow > * .text-content blockquote, .sidebar-grid .layout--pass--content-narrow > * .text-content blockquote,
.sidebar-grid .layout--content-narrow.text-content pre,
.sidebar-grid .layout--pass--content-narrow > *.text-content pre, .sidebar-grid .layout--pass--content-narrow > *.text-content pre,
.sidebar-grid .layout--pass--content-narrow > * .text-content blockquote, .sidebar-grid .layout--content-narrow .text-content pre,
.sidebar-grid .layout--pass--content-narrow > * .text-content pre { .sidebar-grid .layout--pass--content-narrow > * .text-content pre {
width: auto; width: auto;
} }

21
css/layout/layout-discovery-section-layout.css

@ -10,33 +10,18 @@
* Provides default layout styles for all layout sections. * Provides default layout styles for all layout sections.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.layout { .layout {
margin-bottom: var(--sp) margin-block-end: var(--sp);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.layout { .layout {
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.layout { .layout {
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
} }
} }

43
css/layout/layout-footer.css

@ -10,19 +10,6 @@
* Grid system definition for the footer top and footer bottom layouts. * Grid system definition for the footer top and footer bottom layouts.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
/** /**
* Creates stacking context ensuring that child elements can never appear in * Creates stacking context ensuring that child elements can never appear in
* front of mobile navigation. * front of mobile navigation.
@ -34,43 +21,37 @@
} }
.site-footer__inner { .site-footer__inner {
padding-top: var(--sp2); padding-block: var(--sp2);
padding-bottom: var(--sp2)
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.site-footer__inner { .site-footer__inner {
padding-top: var(--sp4); padding-block: var(--sp4) calc(13 * var(--sp));
padding-bottom: calc(var(--sp)*13)
} }
} }
.region--footer_top__inner > *, .region--footer_bottom__inner > * { .region--footer_top__inner > *,
margin-bottom: var(--sp2) .region--footer_bottom__inner > * {
margin-block-end: var(--sp2);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.region--footer_top__inner > *,
.region--footer_top__inner > *, .region--footer_bottom__inner > * { .region--footer_bottom__inner > * {
flex: 1; flex: 1;
margin-bottom: 0 margin-block-end: 0;
} }
[dir="ltr"] .region--footer_top__inner > *:not(:last-child),[dir="ltr"] .region--footer_bottom__inner > *:not(:last-child) { .region--footer_top__inner > *:not(:last-child),
margin-right: var(--sp2); .region--footer_bottom__inner > *:not(:last-child) {
} margin-inline-end: var(--sp2);
[dir="rtl"] .region--footer_top__inner > *:not(:last-child),[dir="rtl"] .region--footer_bottom__inner > *:not(:last-child) {
margin-left: var(--sp2);
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.region--footer_top__inner, .region--footer_top__inner,
.region--footer_bottom__inner { .region--footer_bottom__inner {
display: flex; display: flex;
flex-wrap: wrap flex-wrap: wrap;
} }
} }

48
css/layout/layout-sidebar.css

@ -10,53 +10,27 @@
* Special grid system for sidebar. * Special grid system for sidebar.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.sidebar-grid > .site-main { .sidebar-grid > .site-main {
-ms-grid-column: 1;
-ms-grid-column-span: 6;
grid-column: 1 / 7; grid-column: 1 / 7;
align-self: flex-start align-self: flex-start;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.sidebar-grid > .site-main { .sidebar-grid > .site-main {
-ms-grid-column: 1; grid-column: 1 / 15;
-ms-grid-column-span: 14;
grid-column: 1 / 15
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.sidebar-grid > .site-main { .sidebar-grid > .site-main {
display: -ms-grid;
display: grid; display: grid;
-ms-grid-columns: (minmax(0, 1fr))[8];
grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-columns: repeat(8, minmax(0, 1fr));
-ms-grid-column: 3; grid-column: 3 / 11;
-ms-grid-column-span: 8;
grid-column: 3 / 11
} }
.sidebar-grid > .site-main > .region--content-above, .sidebar-grid > .site-main > .region--content-above,
.sidebar-grid > .site-main > .region--content { .sidebar-grid > .site-main > .region--content {
-ms-grid-columns: (minmax(0, 1fr))[8];
grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-columns: repeat(8, minmax(0, 1fr));
-ms-grid-column: 1;
-ms-grid-column-span: 8;
grid-column: 1 / 9; grid-column: 1 / 9;
} }
@ -64,32 +38,22 @@
.sidebar-grid > .site-main .layout--pass--content-narrow > *, .sidebar-grid > .site-main .layout--pass--content-narrow > *,
.sidebar-grid > .site-main .layout--content-medium, .sidebar-grid > .site-main .layout--content-medium,
.sidebar-grid > .site-main .layout--pass--content-medium > * { .sidebar-grid > .site-main .layout--pass--content-medium > * {
-ms-grid-column: 1;
-ms-grid-column-span: 8;
grid-column: 1 / 9; grid-column: 1 / 9;
} }
} }
.sidebar-grid .region--sidebar { .sidebar-grid .region--sidebar {
-ms-grid-column: 1; grid-column: 1 / 7;
-ms-grid-column-span: 6;
grid-column: 1 / 7
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.sidebar-grid .region--sidebar { .sidebar-grid .region--sidebar {
-ms-grid-column: 3; grid-column: 3 / 13;
-ms-grid-column-span: 10;
grid-column: 3 / 13
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.sidebar-grid .region--sidebar { .sidebar-grid .region--sidebar {
-ms-grid-column: 12; grid-column: 12 / 15;
-ms-grid-column-span: 3;
grid-column: 12 / 15
} }
} }

21
css/layout/layout-views-grid.css

@ -14,19 +14,6 @@
* they reach the --views-grid-item--min-width value. * they reach the --views-grid-item--min-width value.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.views-view-grid { .views-view-grid {
--views-grid--layout-gap: var(--sp); --views-grid--layout-gap: var(--sp);
--views-grid--column-count: 4; /* Will be overridden by an inline style. */ --views-grid--column-count: 4; /* Will be overridden by an inline style. */
@ -41,22 +28,20 @@
--views-grid--total-gap-width: calc(var(--views-grid--gap-count) * var(--views-grid--layout-gap)); --views-grid--total-gap-width: calc(var(--views-grid--gap-count) * var(--views-grid--layout-gap));
--views-grid-item--max-width: calc((100% - var(--views-grid--total-gap-width)) / var(--views-grid--column-count)); --views-grid-item--max-width: calc((100% - var(--views-grid--total-gap-width)) / var(--views-grid--column-count));
display: -ms-grid;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(max(var(--views-grid-item--min-width), var(--views-grid-item--max-width)), 1fr)); grid-template-columns: repeat(auto-fill, minmax(max(var(--views-grid-item--min-width), var(--views-grid-item--max-width)), 1fr));
grid-gap: var(--views-grid--layout-gap); grid-gap: var(--views-grid--layout-gap);
} }
.views-view-grid--vertical { .views-view-grid--vertical {
margin-bottom: calc(var(--views-grid--layout-gap)*-1); /* Offset the bottom row's padding. */ margin-block-end: calc(-1 * var(--views-grid--layout-gap)); /* Offset the bottom row's padding. */
column-width: var(--views-grid-item--min-width); column-width: var(--views-grid-item--min-width);
column-count: var(--views-grid--column-count); column-count: var(--views-grid--column-count);
grid-column-gap: var(--views-grid--layout-gap) column-gap: var(--views-grid--layout-gap);
} }
.views-view-grid--vertical .views-view-grid__item > * { .views-view-grid--vertical .views-view-grid__item > * {
padding-bottom: var(--views-grid--layout-gap); padding-block-end: var(--views-grid--layout-gap);
page-break-inside: avoid; page-break-inside: avoid;
break-inside: avoid; break-inside: avoid;
} }

38
css/layout/layout.css

@ -10,24 +10,10 @@
* Base Layout. * Base Layout.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.container { .container {
width: 100%; width: 100%;
max-width: var(--max-width); max-width: var(--max-width);
padding-left: var(--container-padding); padding-inline: var(--container-padding);
padding-right: var(--container-padding)
/* This fixes an issue where if the toolbar is open in vertical mode, and /* This fixes an issue where if the toolbar is open in vertical mode, and
* the mobile navigation is open, the "close" button gets pushed outside of * the mobile navigation is open, the "close" button gets pushed outside of
@ -35,7 +21,7 @@
} }
body.is-fixed .container { body.is-fixed .container {
width: 100% width: calc(100% - var(--drupal-displace-offset-left, 0px) - var(--drupal-displace-offset-right, 0px));
} }
.page-wrapper { .page-wrapper {
@ -56,36 +42,26 @@ body.is-fixed .container {
/* Contains the social sidebar, and the primary content area. */ /* Contains the social sidebar, and the primary content area. */
@media (min-width: 75rem) { @media (min-width: 75rem) {
.layout-main { .layout-main {
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
flex-wrap: wrap flex-wrap: wrap;
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] .main-content {
margin-right: auto
}
[dir="rtl"] .main-content {
margin-left: auto
}
.main-content { .main-content {
width: calc(100% - var(--content-left)) width: calc(100% - var(--content-left));
margin-inline-end: auto;
} }
} }
.main-content__container { .main-content__container {
padding-top: var(--sp3) padding-block-start: var(--sp3);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.main-content__container { .main-content__container {
padding-top: var(--sp5) padding-block-start: var(--sp5);
} }
} }

58
css/layout/region-content-below.css

@ -10,73 +10,37 @@
* Content below region layout. * Content below region layout.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.region--content-below { .region--content-below {
display: flex; display: flex;
flex-wrap: wrap flex-wrap: wrap;
}
[dir="ltr"] .region--content-below > * {
margin-right: var(--grid-gap)
}
[dir="rtl"] .region--content-below > * {
margin-left: var(--grid-gap)
} }
.region--content-below > * { .region--content-below > * {
flex-basis: calc(50% - var(--grid-gap)/2); flex-basis: calc(50% - (var(--grid-gap) / 2));
flex-grow: 1; flex-grow: 1;
flex-shrink: 0 flex-shrink: 0;
margin-inline-end: var(--grid-gap);
} }
[dir="ltr"] .region--content-below > *:nth-child(2n),[dir="ltr"] .region--content-below > *:nth-child(2n),
.region--content-below > *:last-child { .region--content-below > *:last-child {
margin-right: 0 margin-inline-end: 0;
}
[dir="rtl"] .region--content-below > *:nth-child(2n),[dir="rtl"]
.region--content-below > *:last-child {
margin-left: 0
} }
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.region--content-below > * { .region--content-below > * {
flex-basis: calc(33.33% - var(--grid-gap)*0.667) flex-basis: calc(33.33% - (var(--grid-gap) * 0.667));
}
[dir="ltr"] .region--content-below > *:nth-child(2n),[dir="ltr"]
.region--content-below > *:last-child {
margin-right: var(--grid-gap)
}
[dir="rtl"] .region--content-below > *:nth-child(2n),[dir="rtl"]
.region--content-below > *:last-child {
margin-left: var(--grid-gap)
} }
[dir="ltr"] .region--content-below > *:nth-child(3n),[dir="ltr"] .region--content-below > *:nth-child(2n),
.region--content-below > *:last-child { .region--content-below > *:last-child {
margin-right: 0 margin-inline-end: var(--grid-gap);
} }
[dir="rtl"] .region--content-below > *:nth-child(3n),[dir="rtl"] .region--content-below > *:nth-child(3n),
.region--content-below > *:last-child { .region--content-below > *:last-child {
margin-left: 0 margin-inline-end: 0;
} }
} }

21
css/layout/region-content.css

@ -10,33 +10,18 @@
* Content region layout. * Content region layout.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.region--content { .region--content {
margin-bottom: var(--sp) margin-block-end: var(--sp);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.region--content { .region--content {
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.region--content { .region--content {
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
} }
} }

15
css/layout/region-hero.css

@ -10,19 +10,6 @@
* Region default layout. * Region default layout.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.region--hero > *:last-child { .region--hero > *:last-child {
margin-bottom: 0; margin-block-end: 0;
} }

21
css/layout/region-secondary-menu.css

@ -10,33 +10,20 @@
* Secondary menu region layout styling. * Secondary menu region layout styling.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.region--secondary-menu { .region--secondary-menu {
display: flex; display: flex;
margin-top: var(--sp2); margin-block-start: var(--sp2);
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
.region--secondary-menu > * { .region--secondary-menu > * {
margin-bottom: 0; margin-block-end: 0;
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
body:not(.is-always-mobile-nav) .region--secondary-menu { body:not(.is-always-mobile-nav) .region--secondary-menu {
justify-content: flex-end; justify-content: flex-end;
margin: 0 margin: 0;
/* If the secondary nav is the first item within the header, it does not need left separator. */ /* If the secondary nav is the first item within the header, it does not need left separator. */
} }

21
css/layout/region.css

@ -10,33 +10,18 @@
* Region default layout. * Region default layout.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.region > * { .region > * {
margin-bottom: var(--sp) margin-block-end: var(--sp);
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.region > * { .region > * {
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
} }
@media (min-width: 62.5rem) { @media (min-width: 62.5rem) {
.region > * { .region > * {
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
} }
} }

118
css/layout/social-bar.css

@ -11,130 +11,63 @@
. .
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
@media (min-width: 75rem) { @media (min-width: 75rem) {
.social-bar { .social-bar {
flex-shrink: 0; flex-shrink: 0;
width: var(--content-left); width: var(--content-left);
background-color: var(--color--gray-100) background-color: var(--color--gray-100);
}
} }
[dir="ltr"] .social-bar__inner {
padding-left: var(--sp)
}
[dir="rtl"] .social-bar__inner {
padding-right: var(--sp)
}
[dir="ltr"] .social-bar__inner {
padding-right: var(--sp)
}
[dir="rtl"] .social-bar__inner {
padding-left: var(--sp)
} }
.social-bar__inner { .social-bar__inner {
position: relative; position: relative;
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5) padding-inline-start: var(--sp);
padding-inline-end: var(--sp);
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] .social-bar__inner {
padding-left: 0
}
[dir="rtl"] .social-bar__inner {
padding-right: 0
}
[dir="ltr"] .social-bar__inner {
padding-right: 0
}
[dir="rtl"] .social-bar__inner {
padding-left: 0
}
.social-bar__inner { .social-bar__inner {
position: relative; position: relative;
width: var(--content-left); width: var(--content-left);
padding-top: calc(var(--sp)*5); padding-block: calc(5 * var(--sp));
padding-bottom: calc(var(--sp)*5) padding-inline-start: 0;
} padding-inline-end: 0;
[dir="ltr"] .social-bar__inner.is-fixed {
left: 0
}
[dir="rtl"] .social-bar__inner.is-fixed {
right: 0
} }
.social-bar__inner.is-fixed { .social-bar__inner.is-fixed {
position: fixed; position: fixed;
top: var(--sp6); inset-block-start: var(--sp6);
height: calc(100vh - var(--sp)*6); inset-inline-start: 0;
height: calc(100vh - 6 * var(--sp));
} }
} }
.rotate > * { .rotate > * {
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
.rotate > * { .rotate > * {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 0 margin-block-end: 0;
}
[dir="ltr"] .rotate > *:not(:first-child) {
margin-right: var(--sp2)
} }
[dir="rtl"] .rotate > *:not(:first-child) { .rotate > *:not(:first-child) {
margin-left: var(--sp2) margin-inline-end: var(--sp2);
} }
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] .rotate .contextual {
left: 100%;
right: auto
}
[dir="rtl"] .rotate .contextual {
right: 100%;
left: auto
}
.rotate .contextual { .rotate .contextual {
inset-inline: 100% auto;
transform: rotate(90deg); /* LTR */ transform: rotate(90deg); /* LTR */
transform-origin: top left /* LTR */ transform-origin: top left; /* LTR */
} }
.rotate .contextual .trigger { .rotate .contextual .trigger {
float: left /* LTR */ float: left; /* LTR */
/** /**
* Chromium and Webkit do not yet support flow relative logical properties, * Chromium and Webkit do not yet support flow relative logical properties,
@ -151,28 +84,19 @@
} }
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="ltr"] .rotate {
left: 50%
}
[dir="rtl"] .rotate {
right: 50%
}
.rotate { .rotate {
position: absolute; position: absolute;
inset-inline-start: 50%;
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
width: 100vh; width: 100vh;
transform: rotate(-90deg) translateX(-100%); /* LTR */ transform: rotate(-90deg) translateX(-100%); /* LTR */
transform-origin: left /* LTR */ transform-origin: left; /* LTR */
} }
@supports (width: max-content) { @supports (width: max-content) {
.rotate { .rotate {
width: max-content width: max-content;
} }
} }
} }
@ -180,7 +104,7 @@
@media (min-width: 75rem) { @media (min-width: 75rem) {
[dir="rtl"] .rotate { [dir="rtl"] .rotate {
transform: rotate(90deg) translateX(100%); transform: rotate(90deg) translateX(100%);
transform-origin: right transform-origin: right;
} }
[dir="rtl"] .rotate .contextual { [dir="rtl"] .rotate .contextual {

20
css/layout/views.css

@ -10,30 +10,16 @@
* Styles for views. * Styles for views.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
.view > * { .view > * {
margin-bottom: var(--sp2) margin-block-end: var(--sp2);
} }
.view > *:last-child { .view > *:last-child {
margin-bottom: 0; margin-block-end: 0;
} }
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
.view > * { .view > * {
margin-bottom: var(--sp3) margin-block-end: var(--sp3);
} }
} }

39
css/theme/filter.theme.css

@ -10,25 +10,12 @@
* Styling for the Filter module. * Styling for the Filter module.
*/ */
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
/** /**
* Filter information under field. * Filter information under field.
*/ */
.text-full > .form-item { .text-full > .form-item {
margin-bottom: 0; margin-block-end: 0;
} }
.form-element--editor-format { .form-element--editor-format {
@ -36,8 +23,7 @@
} }
.filter-wrapper { .filter-wrapper {
margin-top: var(--sp1); margin-block: var(--sp1) var(--sp0-5);
margin-bottom: var(--sp0-5);
} }
.filter-wrapper .form-item { .filter-wrapper .form-item {
@ -46,9 +32,8 @@
.filter-help { .filter-help {
float: right; /* LTR */ float: right; /* LTR */
padding-top: var(--sp0-5); padding-block: var(--sp0-5);
padding-bottom: var(--sp0-5); font-size: var(--font-size-xxs);
font-size: var(--font-size-xxs)
/** /**
* Chromium and Webkit do not yet support flow relative logical properties, * Chromium and Webkit do not yet support flow relative logical properties,
@ -71,8 +56,7 @@
*/ */
.compose-tips__item { .compose-tips__item {
margin-top: var(--sp1-5); margin-block: var(--sp1-5);
margin-bottom: var(--sp1-5);
} }
/** /**
@ -80,14 +64,13 @@
*/ */
.filter-guidelines__item { .filter-guidelines__item {
margin-top: var(--sp1); margin-block-start: var(--sp1);
font-size: var(--font-size-s); font-size: var(--font-size-s);
line-height: var(--line-height-s); line-height: var(--line-height-s);
} }
.filter-guidelines p { .filter-guidelines p {
margin-top: var(--sp0-25); margin-block: var(--sp0-25) 0;
margin-bottom: 0;
} }
/** /**
@ -98,16 +81,14 @@
*/ */
.filter-tips--long { .filter-tips--long {
margin-bottom: var(--sp1-5); margin-block-end: var(--sp1-5);
} }
.filter-tips__item, .filter-tips__item,
.filter-tips--long p { .filter-tips--long p {
margin-top: var(--sp0-75); margin-block: var(--sp0-75);
margin-bottom: var(--sp0-75);
} }
.filter-tips__item--short { .filter-tips__item--short {
margin-top: var(--sp0-25); margin-block: var(--sp0-25) 0;
margin-bottom: 0;
} }

Loading…
Cancel
Save