Add comment about CSS custom properties being global

This commit is contained in:
Kimmo Puputti 2018-04-11 15:59:22 +03:00
parent aa4b3e7fcc
commit f5fb478166
22 changed files with 198 additions and 0 deletions

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--Avatar_size: 40px;
--Avatar_sizeMedium: 60px;
--Avatar_sizeLarge: 96px;

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--DateInput_selectionHeight: 36px;
--DateInput_hoveredOverlayColor: rgba(255, 255, 255, 0.2);

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--DateRangeInput_selectionHeight: 36px;
--DateRangeInput_hoveredOverlayColor: rgba(255, 255, 255, 0.2);

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--LocationAutocompleteInput_inputHeight: 50px;
--LocationAutocompleteInput_sidePadding: 24px;
--LocationAutocompleteInput_sidePaddingDesktop: 36px;

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--ManageListingCard_coverEverything: {
position: absolute;
top: 0;

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--PropertyGroup_lineHeight: 24px;
--PropertyGroup_lineThroughTop: calc(var(--PropertyGroup_lineHeight) - 7px);
--PropertyGroup_lineThroughBottom: calc(var(--PropertyGroup_lineHeight) - 6px);

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--SectionHero_desktopTitleMaxWidth: 625px;
--SectionHero_animation: {

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--TabNav_linkWidth: 200px;
--TabNav_linkBorderWidth: 4px;
}

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--Topbar_logoHeight: 25px;
}

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
/* Compose text label items on top of this */
/* This stretches inline element (link) to take available vertical space (big hover area),
* and align baselines

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--TopbarMobileMenu_topMargin: 96px;
}

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--CheckoutPage_logoHeight: 25px;
--CheckoutPage_logoHeightDesktop: 27px;
}

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--ContactDetailsForm_infoText: {
@apply --marketplaceH4FontStyles;
color: var(--successColor);

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--EditListingDescriptionForm_formMargins: {
margin-bottom: 24px;

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--EditListingPhotosForm_imageWidthDesktop: calc(50% - 12px);
}

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--EditListingPoliciesForm_formMargins: {
margin-bottom: 24px;

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--LandingPage_sectionMarginTop: 40px;
--LandingPage_sectionMarginTopMedium: 60px;
--LandingPage_sectionMarginTopLarge: 94px;

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--ProfileSettingsForm_avatarSize: 96px;
--ProfileSettingsForm_avatarSizeDesktop: 240px;
}

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--SearchPage_containerHeight: calc(100vh - var(--topbarHeightDesktop));
}

View file

@ -1,6 +1,15 @@
@import '../../marketplace.css';
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--TopbarSearchForm_inputHeight: 53px;
--TopbarSearchForm_topbarMargin: 94px;
--TopbarSearchForm_bottomBorder: 3px;

View file

@ -3,6 +3,15 @@
/* ================ Custom properties aka variables ================ */
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
/**
* Font variables are separated to different file so that the amount of font styling rules
* doesn't overflow this one.

View file

@ -2,6 +2,15 @@
/* These are imported into marketplace.css */
:root {
/*
These variables are available in global scope through ":root"
element (<html> tag). Variables with the same names are going to
overwrite each other if CSS Properties' (PostCSS plugin)
configuration "preserve: true" is used - meaning that variables
are left to CSS bundle. We are planning to enable it in the future
since browsers support CSS Properties already.
*/
--fontWeightRegular: 400;
--fontWeightMedium: 500;
--fontWeightSemiBold: 600;