refactor(docs-infra): grab scss constants using scss use syntax instead of the global imports (#41129)

move away from using global constants in scss files because @import will be deprecated soon

PR Close #41129
This commit is contained in:
AleksanderBodurri 2021-03-08 19:23:10 -05:00 committed by Andrew Kushnir
parent eff26e1be8
commit 21e35ece79
34 changed files with 69 additions and 7 deletions

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
html {
font-size: 62.5%;
}

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
html, body {
height: 100%;
}

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.nf-container {
align-items: center;
padding: 32px;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
// Disable sidenav animations for the initial render.
.starting.mat-drawer-transition .mat-drawer-content {
transition: none;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
// VARIABLES
$showTopMenuWidth: 1048px;
$hideTopMenuWidth: $showTopMenuWidth - 1;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.alert {
padding: 16px;
margin: 24px 0px;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
/* API LIST STYLES */
aio-api-list {

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.api-body {
max-width: 1200px;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
/* API SYMBOLS */
/* SYMBOL CLASS */

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
/* Button Styles */
button {

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.callout {
@extend .alert;
padding: 0px;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.card-container {
display: flex;
flex-direction: row;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
code-example,
code-tabs {
clear: both;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
aio-contributor-list {
.contributor-group {
display: flex;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
aio-shell.mode-archive {
@include deploy-theme($blue-grey-900, $blue-grey-400);
}

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
/*
* General styling to make detail/summary tags look a bit more material
* To get the best out of it you should structure your usage like this:

View File

@ -1,3 +1,4 @@
@use '../constants' as *;
.error-list {
display: grid;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
// FEATURES MARKETING PAGE SPECIFIC STYLES
.feature-section {

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.filetree {
background: $white;
border: 4px solid $lightgray;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.reviewed {
color: lighten($darkgray, 10);
@include font-size(13);

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.sidenav-content {
h1, h2, h3, h4, h5, h6 {

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
hr {
border: none;
background: $lightgray;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.content {
img {

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.api-header label {
border-radius: 4px;
padding: 2px 10px;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
$notificationHeight: 56px;
// we need to override some of the toolbar styling

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
.presskit-container {
padding: 0 32px 32px 32px;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
aio-resource-list {
.showcase {
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
aio-search-results {
z-index: 10;

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
/* SELECT MENU */
aio-select {

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
table {
margin: 24px 0px;
box-shadow: 0 2px 2px rgba($black, 0.24), 0 0 2px rgba($black, 0.12);

View File

@ -1,3 +1,5 @@
@use '../constants' as *;
$tocItemLineHeight: 24;
$tocItemTopPadding: 9;
$tocMarkerRailSize: 1;

View File

@ -1,3 +1,5 @@
@use './constants';
// REM Font Adjustments
@mixin font-size($sizeValue) {
font-size: ($sizeValue) + px;
@ -46,14 +48,14 @@
@mixin card($height, $width) {
height: $height;
width: $width;
background-color: $white;
background-color: constants.$white;
border-radius: 4px;
box-shadow: 0 2px 2px rgba($black, 0.24), 0 0 2px rgba($black, 0.12);
box-shadow: 0 2px 2px rgba(constants.$black, 0.24), 0 0 2px rgba(constants.$black, 0.12);
box-sizing: border-box;
transition: box-shadow .5s;
&:hover {
box-shadow: 0 8px 8px rgba($black, 0.24), 0 0 8px rgba($black, 0.12);
box-shadow: 0 8px 8px rgba(constants.$black, 0.24), 0 0 8px rgba(constants.$black, 0.12);
text-decoration: none;
}
}

View File

@ -1,3 +1,5 @@
@use './constants' as *;
@media print {
// General Adjustments

View File

@ -1,8 +1,5 @@
// import global themes
@import './ng-io-theme';
// import global variables
@import './constants';
@use './ng-io-theme';
// import global mixins
@import './mixins';