Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

370 lines
11 KiB

/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
@import "font.css";
/**
Support for Typography
V4 is added last to prevent fallbacks to v3.
**/
/**
* Spectrum CSS Typography V3 (numeric) & V4 (t-shirt)
*
* Adds typography sizing and margins to be processed by
* mixins that are auto-generated in tools/component-builder/css/processor.js
*
*/
/* t-shirt size-based typography */
/* Headings t-shirt sizes */
/* Discrete rules for Heading: regular, heavy, light */
@mixin typographyTShirtSizes .spectrum-Heading--sizeXXXL {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeXXL {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeXL {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeL {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeM {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeS {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeXS {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeXXS {
}
/* Standard SUIT rules for Heading: regular, serif, heavy, light */
.spectrum-Heading {
font-family: var(--spectrum-heading-m-text-font-family);
font-weight: var(--spectrum-heading-m-text-font-weight);
em,
.spectrum-Heading-emphasis {
font-style: var(--spectrum-heading-m-emphasis-text-font-style);
}
strong,
.spectrum-Heading-strong {
font-weight: var(--spectrum-heading-m-strong-text-font-weight);
}
}
.spectrum-Heading--serif {
font-family: var(--spectrum-body-serif-m-text-font-family);
}
.spectrum-Heading--heavy {
font-weight: var(--spectrum-heading-heavy-m-text-font-weight);
em,
.spectrum-Heading-emphasis {
font-style: var(--spectrum-heading-heavy-m-emphasis-text-font-style);
}
strong,
.spectrum-Heading-strong {
font-weight: var(--spectrum-heading-heavy-m-strong-text-font-weight);
}
}
.spectrum-Heading--light {
font-weight: var(--spectrum-heading-light-m-emphasis-text-font-weight);
em,
.spectrum-Heading-emphasis {
font-style: var(--spectrum-heading-light-m-emphasis-text-font-style);
}
strong,
.spectrum-Heading-strong {
font-weight: var(--spectrum-heading-light-m-strong-text-font-weight);
}
}
/* Body t-shirt sizes */
@mixin typographyTShirtSizes .spectrum-Body--sizeXXXL {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeXXL {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeXL {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeL {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeM {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeS {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeXS {
}
.spectrum-Body {
font-family: var(--spectrum-body-m-text-font-family);
strong,
.spectrum-Body-strong {
font-weight: var(--spectrum-body-m-strong-text-font-weight);
}
em,
.spectrum-Body-emphasis {
font-style: var(--spectrum-body-m-emphasis-text-font-style);
}
}
.spectrum-Body--serif {
font-family: var(--spectrum-body-serif-m-text-font-family);
}
/* Detail / former subheadings t-shirt sizes */
/* Standard SUIT rules for Detail: regular, serif, light */
.spectrum-Detail {
font-family: var(--spectrum-heading-m-text-font-family);
strong,
.spectrum-Detail-strong {
font-weight: var(--spectrum-detail-m-strong-text-font-weight);
}
em,
.spectrum-Detail-emphasis {
font-style: var(--spectrum-detail-m-emphasis-text-font-style);
}
}
.spectrum-Detail--light {
font-style: var(--spectrum-detail-light-m-text-font-style);
font-weight: var(--spectrum-detail-light-m-text-font-weight);
}
.spectrum-Detail--serif {
font-family: var(--spectrum-body-serif-m-text-font-family);
}
/* Discrete rules for Detail: regular, light */
@mixin typographyTShirtSizes .spectrum-Detail--sizeXL {
}
@mixin typographyTShirtSizes .spectrum-Detail--sizeL {
}
@mixin typographyTShirtSizes .spectrum-Detail--sizeM {
}
@mixin typographyTShirtSizes .spectrum-Detail--sizeS {
}
/* @TODO does not exists for strong or heavy for Details. Will be added in the future */
/*
@mixin typographyTShirtSizes .spectrum-Detail-sizeXL--strong, detail-strong-XL { background-color: orange;}
@mixin typographyTShirtSizes .spectrum-Detail-sizeL--strong, detail-strong-L {}
@mixin typographyTShirtSizes .spectrum-Detail-sizeM--strong, detail-strong-M {}
@mixin typographyTShirtSizes .spectrum-Detail-sizeS--heavy, detail-heavy-S {} */
/* Code t-shirt sizes */
.spectrum-Code {
font-family: var(--spectrum-heading-m-text-font-family);
strong,
.spectrum-Code-strong {
font-weight: var(--spectrum-code-m-strong-text-font-weight);
}
em,
.spectrum-Code-emphasis {
font-style: var(--spectrum-code-m-emphasis-text-font-style);
}
}
.spectrum-Code--serif {
font-family: var(--spectrum-body-serif-m-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeXL, code-XL, true {
font-family: var(--spectrum-code-xl-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeL, code-L, true {
font-family: var(--spectrum-code-l-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeM, code-M, true {
font-family: var(--spectrum-code-m-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeS, code-S, true {
font-family: var(--spectrum-code-s-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeXS, code-XS, true {
font-family: var(--spectrum-code-xs-text-font-family);
}
/* Margins for headings and body */
.spectrum-Typography {
@mixin typographyTShirtMargins .spectrum-Heading--sizeXXXL {
}
@mixin typographyTShirtMargins .spectrum-Heading--sizeXXL {
}
@mixin typographyTShirtMargins .spectrum-Heading--sizeXL {
}
@mixin typographyTShirtMargins .spectrum-Heading--sizeL {
}
@mixin typographyTShirtMargins .spectrum-Heading--sizeM {
}
@mixin typographyTShirtMargins .spectrum-Heading--sizeS {
}
@mixin typographyTShirtMargins .spectrum-Heading--sizeXS {
}
@mixin typographyTShirtMargins .spectrum-Heading--sizeXXS {
}
@mixin typographyTShirtMargins .spectrum-Body--sizeXXXL {
}
@mixin typographyTShirtMargins .spectrum-Body--sizeXXL {
}
@mixin typographyTShirtMargins .spectrum-Body--sizeXL {
}
@mixin typographyTShirtMargins .spectrum-Body--sizeL {
}
@mixin typographyTShirtMargins .spectrum-Body--sizeM {
}
@mixin typographyTShirtMargins .spectrum-Body--sizeS {
}
@mixin typographyTShirtMargins .spectrum-Body--sizeXS {
}
}
/* International support */
.spectrum {
&:lang(ja),
&:lang(ko),
&:lang(zh) {
@mixin typographyTShirtSizes .spectrum-Heading--sizeXXXL, heading-han-XXXL {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeXXL, heading-han-XXL {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeXL, heading-han-XL {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeL, heading-han-L {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeM, heading-han-M {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeS, heading-han-S {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeXS, heading-han-XS {
}
@mixin typographyTShirtSizes .spectrum-Heading--sizeXXS, heading-han-XXS {
}
.spectrum-Heading--heavy {
font-weight: var(--spectrum-heading-han-m-text-font-weight);
em,
.spectrum-Heading--emphasis {
font-style: var(
--spectrum-heading-han-heavy-m-emphasis-text-font-style
);
font-weight: var(
--spectrum-heading-han-heavy-m-emphasis-text-font-weight
);
}
strong,
.spectrum-Heading--strong {
font-style: var(--spectrum-heading-heavy-m-strong-text-font-style);
font-weight: var(--spectrum-heading-heavy-m-strong-text-font-weight);
}
}
.spectrum-Heading--light {
font-weight: var(--spectrum-heading-han-m-text-font-weight);
em,
.spectrum-Heading--emphasis {
font-style: var(
--spectrum-heading-han-light-m-emphasis-text-font-style
);
font-weight: var(
--spectrum-heading-han-light-m-emphasis-text-font-weight
);
}
strong,
.spectrum-Heading--strong {
font-style: var(--spectrum-heading-han-light-m-strong-text-font-style);
font-weight: var(
--spectrum-heading-han-light-m-strong-text-font-weight
);
}
}
@mixin typographyTShirtSizes .spectrum-Body--sizeXXXL, body-han-XXXL {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeXXL, body-han-XXL {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeXL, body-han-XL {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeL, body-han-L {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeM, body-han-M {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeS, body-han-S {
}
@mixin typographyTShirtSizes .spectrum-Body--sizeXS, body-han-XS {
}
@mixin typographyTShirtSizes .spectrum-Detail--sizeXL, detail-han-xl {
}
@mixin typographyTShirtSizes .spectrum-Detail--sizeL, detail-han-l {
}
@mixin typographyTShirtSizes .spectrum-Detail--sizeM, detail-han-m {
}
@mixin typographyTShirtSizes .spectrum-Detail--sizeS, detail-han-s {
}
.spectrum-Detail--light {
font-weight: var(--spectrum-detail-han-m-text-font-weight);
em,
.spectrum-Detail--emphasis {
font-style: var(--spectrum-detail-han-light-m-emphasis-text-font-style);
font-weight: var(
--spectrum-detail-han-light-m-emphasis-text-font-weight
);
}
strong,
.spectrum-Detail--strong {
font-style: var(--spectrum-detail-han-light-m-strong-text-font-style);
font-weight: var(--spectrum-detail-han-light-m-strong-text-font-weight);
}
}
@mixin typographyTShirtSizes .spectrum-Code--sizeXL, code-han-XL, true {
font-family: var(--spectrum-code-han-xl-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeL, code-han-L, true {
font-family: var(--spectrum-code-han-l-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeM, code-han-M, true {
font-family: var(--spectrum-code-han-m-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeS, code-han-S, true {
font-family: var(--spectrum-code-han-s-text-font-family);
}
@mixin typographyTShirtSizes .spectrum-Code--sizeXS, code-han-XS, true {
font-family: var(--spectrum-code-han-xs-text-font-family);
}
}
}