2018-05-02 18:24:10 +03:00
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
2021-10-22 15:09:44 +03:00
|
|
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-05-02 18:24:10 +03:00
|
|
|
|
2023-08-16 03:18:49 +03:00
|
|
|
|
|
|
|
|
2018-05-02 18:24:10 +03:00
|
|
|
|
2020-11-17 03:53:51 +03:00
|
|
|
// These are general styles for elements/components that occur on every page.
|
|
|
|
// Individual pages may include additional component styles as needed.
|
2023-08-16 03:18:49 +03:00
|
|
|
@use '~@mozilla-protocol/core/protocol/css/includes/lib' as * with ($brand-theme: 'mozilla', $type-scale: 'standard', $font-path: '/media/protocol/fonts', $image-path: '/media/protocol/img');
|
|
|
|
@use '~@mozilla-protocol/core/protocol/css/includes/themes';
|
|
|
|
@use '~@mozilla-protocol/core/protocol/css/components/forms/form';
|
2020-11-17 03:53:51 +03:00
|
|
|
|
|
|
|
// Fonts
|
2020-06-01 15:56:19 +03:00
|
|
|
@import '~@mozilla-protocol/core/protocol/css/includes/fonts/inter';
|
|
|
|
@import '~@mozilla-protocol/core/protocol/css/includes/fonts/zilla-slab';
|
2020-11-17 03:53:51 +03:00
|
|
|
|
|
|
|
// Base elements - general HTML elements
|
2020-06-01 15:56:19 +03:00
|
|
|
@import '~@mozilla-protocol/core/protocol/css/base/elements';
|
2020-11-17 03:53:51 +03:00
|
|
|
|
|
|
|
// Base includes - animations
|
2020-06-01 15:56:19 +03:00
|
|
|
@import '~@mozilla-protocol/core/protocol/css/base/includes';
|
2020-11-17 03:53:51 +03:00
|
|
|
|
|
|
|
// Utility includes
|
2020-06-01 15:56:19 +03:00
|
|
|
@import '~@mozilla-protocol/core/protocol/css/base/utilities/backgrounds';
|
|
|
|
@import '~@mozilla-protocol/core/protocol/css/base/utilities/titles';
|
2020-11-17 03:53:51 +03:00
|
|
|
|
|
|
|
// Global components
|
2020-06-01 15:56:19 +03:00
|
|
|
@import '~@mozilla-protocol/core/protocol/css/components/button';
|
2022-04-05 19:44:47 +03:00
|
|
|
@import '~@mozilla-protocol/core/protocol/css/components/footer';
|
2020-06-01 15:56:19 +03:00
|
|
|
@import '~@mozilla-protocol/core/protocol/css/components/language-switcher';
|
2018-11-08 13:53:49 +03:00
|
|
|
@import 'components/download-button';
|
2020-11-17 03:53:51 +03:00
|
|
|
|
2024-06-03 11:44:43 +03:00
|
|
|
// Consent banner
|
|
|
|
@import '~@mozmeao/consent-banner/styles';
|
|
|
|
|
2020-11-17 03:53:51 +03:00
|
|
|
// Custom global components for nav and footer
|
|
|
|
// These will later be backported to Protocol
|
2019-10-08 19:59:50 +03:00
|
|
|
@import 'components/footer';
|
2020-11-17 03:53:51 +03:00
|
|
|
@import 'components/navigation';
|
|
|
|
@import 'components/menu';
|
|
|
|
@import 'components/menu-item';
|
|
|
|
@import 'components/sub-navigation';
|
2020-03-05 02:22:40 +03:00
|
|
|
|
2020-05-06 21:35:07 +03:00
|
|
|
// Temporary styling until the newsletter component is updated in Protocol
|
|
|
|
// https://github.com/mozilla/protocol/issues/578
|
2022-05-16 19:06:31 +03:00
|
|
|
|
2020-05-06 21:35:07 +03:00
|
|
|
.mzp-c-newsletter-subtitle {
|
|
|
|
@include text-title-xs;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mzp-c-newsletter-desc {
|
|
|
|
@include text-body-md;
|
|
|
|
}
|
2020-08-24 22:17:52 +03:00
|
|
|
|
2022-03-02 19:42:36 +03:00
|
|
|
.mzp-c-newsletter-details legend {
|
2023-08-16 03:18:49 +03:00
|
|
|
font-family: $body-font-family;
|
|
|
|
|
|
|
|
@supports (--css: variables) {
|
|
|
|
font-family: var(--body-font-family);
|
|
|
|
}
|
2022-03-02 19:42:36 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#newsletter-submit + .mzp-c-fieldnote {
|
|
|
|
@include text-body-xs;
|
2024-09-11 20:38:00 +03:00
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 30em;
|
2022-03-02 19:42:36 +03:00
|
|
|
}
|
|
|
|
|
2020-08-24 22:17:52 +03:00
|
|
|
// style classes automatically added by python to match Protocol form error styles
|
2022-01-07 16:42:26 +03:00
|
|
|
.errorlist {
|
|
|
|
@include white-links;
|
2023-08-16 03:18:49 +03:00
|
|
|
background-color: form.$form-red;
|
|
|
|
border-radius: form.$field-border-radius;
|
2022-01-07 16:42:26 +03:00
|
|
|
color: $color-white;
|
|
|
|
padding: $spacing-sm;
|
|
|
|
margin-bottom: $spacing-xl;
|
|
|
|
}
|
|
|
|
|
2020-08-24 22:17:52 +03:00
|
|
|
.error-msg {
|
|
|
|
@include light-links;
|
2023-08-16 03:18:49 +03:00
|
|
|
background-color: form.$form-red;
|
|
|
|
border-radius: form.$field-border-radius;
|
2020-08-24 22:17:52 +03:00
|
|
|
color: $color-white;
|
|
|
|
padding: $spacing-sm;
|
|
|
|
margin-bottom: $spacing-xl;
|
|
|
|
}
|
2021-04-07 17:07:45 +03:00
|
|
|
|
|
|
|
// hide <template> elements in the DOM.
|
|
|
|
template {
|
|
|
|
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
}
|
2023-10-05 04:47:47 +03:00
|
|
|
|
|
|
|
// temporary override for Mozilla Monitor word mark
|
|
|
|
.mzp-c-wordmark.t-product-mozilla-monitor {
|
|
|
|
background-image: url('/media/img/logos/mozilla/monitor/wordmark.svg');
|
|
|
|
}
|