diff --git a/core/scripts/css/compile.js b/core/scripts/css/compile.js index 0fe45e8bb706abe8df5f86bfb7d7149d2740576d..1e5a68ce65f30f9b60673a9e735ee8bc86a1aecd 100644 --- a/core/scripts/css/compile.js +++ b/core/scripts/css/compile.js @@ -12,7 +12,24 @@ module.exports = (filePath, callback) => { // Transform the file. fs.readFile(filePath, (err, css) => { postcss([ - postcssImport(), + postcssImport({ + plugins: [ + // On import, remove the comments from variables.pcss.css so they don't + // appear as useless comments at the top files that import these + // variables. + postcss.plugin('remove-unwanted-comments-from-variables', (options) => { + return css => { + if (css.source.input.file.indexOf('variables.pcss.css') !== -1) { + css.walk(node => { + if (node.type === 'comment') { + node.remove(); + } + }); + } + }; + }), + ], + }), postcssCustomProperties({ // Remove converted properties from the generated code. This needs to be // set to ensure that CSS minifiers don't remove the generated values. diff --git a/core/themes/claro/css/base/elements.css b/core/themes/claro/css/base/elements.css index 9d17479b876193959a606e2c54430546d33fc11b..6caeda07fb1d0aabfece63043052e4d2d9a982b3 100644 --- a/core/themes/claro/css/base/elements.css +++ b/core/themes/claro/css/base/elements.css @@ -9,50 +9,6 @@ * Generic elements. */ -:root { - /* - * Color Palette. - */ - /* Secondary. */ - /* Variations. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 10% darker than base. */ /* 20% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ - /* - * Base. - */ - /* - * Typography. - */ /* 1rem = 16px if font root is 100% ands browser defaults are used. */ /* ~32px */ /* ~29px */ /* ~26px */ /* ~23px */ /* ~20px */ /* 18px */ /* ~14px */ /* ~13px */ /* ~11px */ - /** - * Spaces. - */ /* 3 * 16px = 48px */ /* 1.5 * 16px = 24px */ /* 1 * 16px = 16px */ /* 0.75 * 16px = 12px */ /* 0.5 * 16px = 8px */ - /* - * Common. - */ - /* - * Inputs. - */ /* Absolute zero with opacity. */ /* Davy's grey with 0.6 opacity. */ /* Light gray with 0.3 opacity on white bg. */ /* Old silver with 0.5 opacity on white bg. */ /* (1/8)em ~ 2px */ /* (1/16)em ~ 1px */ /* Font size is too big to use 1rem for extrasmall line-height */ /* 7px inside the form element label. */ /* 8px with the checkbox width of 19px */ - /* - * Details. - */ - /** - * Buttons. - */ - /** - * jQuery.UI dropdown. - */ /* Light gray with 0.8 opacity. */ /* Text color with 0.1 opacity. */ - /** - * Progress bar. - */ - /** - * Tabledrag icon size. - */ /* 17px */ - /** - * Ajax progress. - */ - /** - * Breadcrumb. - */ -} - html { font-family: BlinkMacSystemFont , diff --git a/core/themes/claro/css/components/accordion.css b/core/themes/claro/css/components/accordion.css index 00092a224487ad84f308d0e1c808c2f2d4caed64..968e5dab837a50d95cc70ddd63d9263e3fec54db 100644 --- a/core/themes/claro/css/components/accordion.css +++ b/core/themes/claro/css/components/accordion.css @@ -10,50 +10,6 @@ * Accordion styles. */ -:root { - /* - * Color Palette. - */ - /* Secondary. */ - /* Variations. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 10% darker than base. */ /* 20% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ - /* - * Base. - */ - /* - * Typography. - */ /* 1rem = 16px if font root is 100% ands browser defaults are used. */ /* ~32px */ /* ~29px */ /* ~26px */ /* ~23px */ /* ~20px */ /* 18px */ /* ~14px */ /* ~13px */ /* ~11px */ - /** - * Spaces. - */ /* 3 * 16px = 48px */ /* 1.5 * 16px = 24px */ /* 1 * 16px = 16px */ /* 0.75 * 16px = 12px */ /* 0.5 * 16px = 8px */ - /* - * Common. - */ - /* - * Inputs. - */ /* Absolute zero with opacity. */ /* Davy's grey with 0.6 opacity. */ /* Light gray with 0.3 opacity on white bg. */ /* Old silver with 0.5 opacity on white bg. */ /* (1/8)em ~ 2px */ /* (1/16)em ~ 1px */ /* Font size is too big to use 1rem for extrasmall line-height */ /* 7px inside the form element label. */ /* 8px with the checkbox width of 19px */ - /* - * Details. - */ - /** - * Buttons. - */ - /** - * jQuery.UI dropdown. - */ /* Light gray with 0.8 opacity. */ /* Text color with 0.1 opacity. */ - /** - * Progress bar. - */ - /** - * Tabledrag icon size. - */ /* 17px */ - /** - * Ajax progress. - */ - /** - * Breadcrumb. - */ -} - .accordion { color: #222330; border: 1px solid rgba(216, 217, 224, 0.8); diff --git a/core/themes/claro/css/components/action-link.css b/core/themes/claro/css/components/action-link.css index c76e40f91446d5d4bc0c1071774d89f8302c9cc8..4eb59c835acef7b2b24098c65d77d78d3bbe6375 100644 --- a/core/themes/claro/css/components/action-link.css +++ b/core/themes/claro/css/components/action-link.css @@ -12,50 +12,6 @@ * Contains Action link component and the action-links layout styles. */ -:root { - /* - * Color Palette. - */ - /* Secondary. */ - /* Variations. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 10% darker than base. */ /* 20% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ - /* - * Base. - */ - /* - * Typography. - */ /* 1rem = 16px if font root is 100% ands browser defaults are used. */ /* ~32px */ /* ~29px */ /* ~26px */ /* ~23px */ /* ~20px */ /* 18px */ /* ~14px */ /* ~13px */ /* ~11px */ - /** - * Spaces. - */ /* 3 * 16px = 48px */ /* 1.5 * 16px = 24px */ /* 1 * 16px = 16px */ /* 0.75 * 16px = 12px */ /* 0.5 * 16px = 8px */ - /* - * Common. - */ - /* - * Inputs. - */ /* Absolute zero with opacity. */ /* Davy's grey with 0.6 opacity. */ /* Light gray with 0.3 opacity on white bg. */ /* Old silver with 0.5 opacity on white bg. */ /* (1/8)em ~ 2px */ /* (1/16)em ~ 1px */ /* Font size is too big to use 1rem for extrasmall line-height */ /* 7px inside the form element label. */ /* 8px with the checkbox width of 19px */ - /* - * Details. - */ - /** - * Buttons. - */ - /** - * jQuery.UI dropdown. - */ /* Light gray with 0.8 opacity. */ /* Text color with 0.1 opacity. */ - /** - * Progress bar. - */ - /** - * Tabledrag icon size. - */ /* 17px */ - /** - * Ajax progress. - */ - /** - * Breadcrumb. - */ -} - /** * Action links layout. */ diff --git a/core/themes/claro/css/components/ajax-progress.module.css b/core/themes/claro/css/components/ajax-progress.module.css index b17d3e9ec4a337a328c0ec50ff279c59f6ece7f9..e7b098cb43c27f8f6aee76672c47efe91433e1eb 100644 --- a/core/themes/claro/css/components/ajax-progress.module.css +++ b/core/themes/claro/css/components/ajax-progress.module.css @@ -10,50 +10,6 @@ * Throbber. */ -:root { - /* - * Color Palette. - */ - /* Secondary. */ - /* Variations. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 10% darker than base. */ /* 20% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ - /* - * Base. - */ - /* - * Typography. - */ /* 1rem = 16px if font root is 100% ands browser defaults are used. */ /* ~32px */ /* ~29px */ /* ~26px */ /* ~23px */ /* ~20px */ /* 18px */ /* ~14px */ /* ~13px */ /* ~11px */ - /** - * Spaces. - */ /* 3 * 16px = 48px */ /* 1.5 * 16px = 24px */ /* 1 * 16px = 16px */ /* 0.75 * 16px = 12px */ /* 0.5 * 16px = 8px */ - /* - * Common. - */ - /* - * Inputs. - */ /* Absolute zero with opacity. */ /* Davy's grey with 0.6 opacity. */ /* Light gray with 0.3 opacity on white bg. */ /* Old silver with 0.5 opacity on white bg. */ /* (1/8)em ~ 2px */ /* (1/16)em ~ 1px */ /* Font size is too big to use 1rem for extrasmall line-height */ /* 7px inside the form element label. */ /* 8px with the checkbox width of 19px */ - /* - * Details. - */ - /** - * Buttons. - */ - /** - * jQuery.UI dropdown. - */ /* Light gray with 0.8 opacity. */ /* Text color with 0.1 opacity. */ - /** - * Progress bar. - */ - /** - * Tabledrag icon size. - */ /* 17px */ - /** - * Ajax progress. - */ - /** - * Breadcrumb. - */ -} - .ajax-progress { display: inline-block; } diff --git a/core/themes/claro/css/components/autocomplete-loading.module.css b/core/themes/claro/css/components/autocomplete-loading.module.css index 4c49059d3e1bec9be8f4d782eb73724086c43c8f..be8328ac410348892a83a85905a26026f1abba1a 100644 --- a/core/themes/claro/css/components/autocomplete-loading.module.css +++ b/core/themes/claro/css/components/autocomplete-loading.module.css @@ -12,50 +12,6 @@ * @see autocomplete.js */ -:root { - /* - * Color Palette. - */ - /* Secondary. */ - /* Variations. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 10% darker than base. */ /* 20% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ - /* - * Base. - */ - /* - * Typography. - */ /* 1rem = 16px if font root is 100% ands browser defaults are used. */ /* ~32px */ /* ~29px */ /* ~26px */ /* ~23px */ /* ~20px */ /* 18px */ /* ~14px */ /* ~13px */ /* ~11px */ - /** - * Spaces. - */ /* 3 * 16px = 48px */ /* 1.5 * 16px = 24px */ /* 1 * 16px = 16px */ /* 0.75 * 16px = 12px */ /* 0.5 * 16px = 8px */ - /* - * Common. - */ - /* - * Inputs. - */ /* Absolute zero with opacity. */ /* Davy's grey with 0.6 opacity. */ /* Light gray with 0.3 opacity on white bg. */ /* Old silver with 0.5 opacity on white bg. */ /* (1/8)em ~ 2px */ /* (1/16)em ~ 1px */ /* Font size is too big to use 1rem for extrasmall line-height */ /* 7px inside the form element label. */ /* 8px with the checkbox width of 19px */ - /* - * Details. - */ - /** - * Buttons. - */ - /** - * jQuery.UI dropdown. - */ /* Light gray with 0.8 opacity. */ /* Text color with 0.1 opacity. */ - /** - * Progress bar. - */ - /** - * Tabledrag icon size. - */ /* 17px */ - /** - * Ajax progress. - */ - /** - * Breadcrumb. - */ -} - /** * Since the autocomplete library is attached conditionally and not globally, * we can be 99% sure that the default icon will be used. diff --git a/core/themes/claro/css/components/breadcrumb.css b/core/themes/claro/css/components/breadcrumb.css index b496acca6775eca92f9f79ff1e965994d241103a..1a15aebe8bfc3f6f15c609254ffe3ff8a5dfabda 100644 --- a/core/themes/claro/css/components/breadcrumb.css +++ b/core/themes/claro/css/components/breadcrumb.css @@ -10,50 +10,6 @@ * Breadcrumbs. */ -:root { - /* - * Color Palette. - */ - /* Secondary. */ - /* Variations. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 10% darker than base. */ /* 20% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ - /* - * Base. - */ - /* - * Typography. - */ /* 1rem = 16px if font root is 100% ands browser defaults are used. */ /* ~32px */ /* ~29px */ /* ~26px */ /* ~23px */ /* ~20px */ /* 18px */ /* ~14px */ /* ~13px */ /* ~11px */ - /** - * Spaces. - */ /* 3 * 16px = 48px */ /* 1.5 * 16px = 24px */ /* 1 * 16px = 16px */ /* 0.75 * 16px = 12px */ /* 0.5 * 16px = 8px */ - /* - * Common. - */ - /* - * Inputs. - */ /* Absolute zero with opacity. */ /* Davy's grey with 0.6 opacity. */ /* Light gray with 0.3 opacity on white bg. */ /* Old silver with 0.5 opacity on white bg. */ /* (1/8)em ~ 2px */ /* (1/16)em ~ 1px */ /* Font size is too big to use 1rem for extrasmall line-height */ /* 7px inside the form element label. */ /* 8px with the checkbox width of 19px */ - /* - * Details. - */ - /** - * Buttons. - */ - /** - * jQuery.UI dropdown. - */ /* Light gray with 0.8 opacity. */ /* Text color with 0.1 opacity. */ - /** - * Progress bar. - */ - /** - * Tabledrag icon size. - */ /* 17px */ - /** - * Ajax progress. - */ - /** - * Breadcrumb. - */ -} - .breadcrumb { padding: 0; color: #222330; diff --git a/core/themes/claro/css/components/button.css b/core/themes/claro/css/components/button.css index 8594ae4390c9f72833c71d5c91307d55e3763f96..cfb6a50d02842ab5e3c3b3e34a77fcaf05b21c3e 100644 --- a/core/themes/claro/css/components/button.css +++ b/core/themes/claro/css/components/button.css @@ -12,50 +12,6 @@ * Apply these classes to button elements (