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:
parent
eff26e1be8
commit
21e35ece79
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
html {
|
||||
font-size: 62.5%;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.nf-container {
|
||||
align-items: center;
|
||||
padding: 32px;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
// Disable sidenav animations for the initial render.
|
||||
.starting.mat-drawer-transition .mat-drawer-content {
|
||||
transition: none;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
// VARIABLES
|
||||
$showTopMenuWidth: 1048px;
|
||||
$hideTopMenuWidth: $showTopMenuWidth - 1;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.alert {
|
||||
padding: 16px;
|
||||
margin: 24px 0px;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
/* API LIST STYLES */
|
||||
|
||||
aio-api-list {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.api-body {
|
||||
max-width: 1200px;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
/* API SYMBOLS */
|
||||
|
||||
/* SYMBOL CLASS */
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
/* Button Styles */
|
||||
|
||||
button {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.callout {
|
||||
@extend .alert;
|
||||
padding: 0px;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.card-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
code-example,
|
||||
code-tabs {
|
||||
clear: both;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
aio-contributor-list {
|
||||
.contributor-group {
|
||||
display: flex;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
aio-shell.mode-archive {
|
||||
@include deploy-theme($blue-grey-900, $blue-grey-400);
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.error-list {
|
||||
display: grid;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
// FEATURES MARKETING PAGE SPECIFIC STYLES
|
||||
|
||||
.feature-section {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.filetree {
|
||||
background: $white;
|
||||
border: 4px solid $lightgray;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.reviewed {
|
||||
color: lighten($darkgray, 10);
|
||||
@include font-size(13);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.sidenav-content {
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
background: $lightgray;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.content {
|
||||
img {
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.api-header label {
|
||||
border-radius: 4px;
|
||||
padding: 2px 10px;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
$notificationHeight: 56px;
|
||||
|
||||
// we need to override some of the toolbar styling
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
.presskit-container {
|
||||
padding: 0 32px 32px 32px;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
aio-resource-list {
|
||||
.showcase {
|
||||
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
aio-search-results {
|
||||
z-index: 10;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
/* SELECT MENU */
|
||||
|
||||
aio-select {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use '../constants' as *;
|
||||
|
||||
$tocItemLineHeight: 24;
|
||||
$tocItemTopPadding: 9;
|
||||
$tocMarkerRailSize: 1;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@use './constants' as *;
|
||||
|
||||
@media print {
|
||||
|
||||
// General Adjustments
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue