mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Issue number: N/A --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> This project has several unused Sass variables still in the code base. The team would like to remove these. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Removed unused Sass variables ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> The original scope of this ticket was for checkbox only, but many other components had unused sass variables, so I decided to tackle everything all at once. Since these variables are not used anywhere: 1. The build should pass 2. There should be no screenshot diffs
44 lines
2.6 KiB
SCSS
44 lines
2.6 KiB
SCSS
|
|
// Material Design Default Theme
|
|
// --------------------------------------------------
|
|
// This file should only contain variables that are
|
|
// used to theme the application colors for Material
|
|
// Design.
|
|
|
|
// Material Design General Colors
|
|
// --------------------------------------------------
|
|
$backdrop-md-color: var(--ion-backdrop-color, #000) !default;
|
|
$border-md-color: var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)) !default;
|
|
$overlay-md-background-color: var(--ion-overlay-background-color, var(--ion-background-color, #fff)) !default;
|
|
|
|
// Material Design Tabs & Tab bar
|
|
// --------------------------------------------------
|
|
$tabbar-md-background: var(--ion-tab-bar-background, $background-color) !default;
|
|
$tabbar-md-background-focused: var(--ion-tab-bar-background-focused, get-color-shade(#fff)) !default;
|
|
$tabbar-md-border-color: var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, .07)))) !default;
|
|
$tabbar-md-color: var(--ion-tab-bar-color, $text-color-step-350) !default;
|
|
$tabbar-md-color-selected: var(--ion-tab-bar-color-selected, ion-color(primary, base)) !default;
|
|
|
|
// Material Design Toolbar
|
|
// --------------------------------------------------
|
|
$toolbar-md-background: var(--ion-toolbar-background, $background-color) !default;
|
|
$toolbar-md-border-color: var(--ion-toolbar-border-color, $border-md-color) !default;
|
|
$toolbar-md-color: var(--ion-toolbar-color, var(--ion-text-color, #424242)) !default;
|
|
|
|
// Material Design List & List Items
|
|
// --------------------------------------------------
|
|
$item-md-background: var(--ion-item-background, $background-color) !default;
|
|
$item-md-border-color: var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, .13)))) !default;
|
|
$item-md-color: var(--ion-item-color, $text-color) !default;
|
|
|
|
// Material Design Card
|
|
// --------------------------------------------------
|
|
$card-md-background: var(--ion-card-background, $item-md-background) !default;
|
|
$card-md-color: var(--ion-card-color, var(--ion-item-color, $text-color-step-450)) !default;
|
|
|
|
// Material Design Form Controls
|
|
// --------------------------------------------------
|
|
/// This value comes from the Material Design spec:
|
|
/// https://m3.material.io/components/text-fields/specs
|
|
$form-control-md-disabled-opacity: 0.38;
|