mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
feat(select-modal): add ionic theme styling (#30007)
This commit is contained in:
65
core/src/components/select-modal/select-modal.ionic.scss
Normal file
65
core/src/components/select-modal/select-modal.ionic.scss
Normal file
@ -0,0 +1,65 @@
|
||||
@use "../../themes/ionic/ionic.globals.scss" as globals;
|
||||
@use "./select-modal.common";
|
||||
|
||||
// Ionic Select Modal
|
||||
// --------------------------------------------------
|
||||
|
||||
// Item
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
ion-item {
|
||||
--border-width: 0;
|
||||
}
|
||||
|
||||
// Toolbar
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
ion-toolbar {
|
||||
@include globals.typography(globals.$ion-heading-h6-medium);
|
||||
}
|
||||
|
||||
// Radio
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
ion-list ion-radio::part(container) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ion-list ion-radio::part(label) {
|
||||
@include globals.margin(0);
|
||||
}
|
||||
|
||||
// Radio and Checkbox: Label
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
ion-list ion-radio::part(label),
|
||||
ion-list ion-checkbox::part(label) {
|
||||
@include globals.typography(globals.$ion-body-lg-medium);
|
||||
}
|
||||
|
||||
// Radio and Checkbox: Checked
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
.item-radio-checked,
|
||||
.item-checkbox-checked {
|
||||
--background: #{globals.$ion-semantics-primary-100};
|
||||
--border-radius: #{globals.$ion-border-radius-400};
|
||||
}
|
||||
|
||||
// Content
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
ion-content {
|
||||
/**
|
||||
* The important is needed to override the padding set
|
||||
* for modal sheet by the `core.ionic.scss` file.
|
||||
* The modal sheet within the select does not match the
|
||||
* padding of the modal sheet in the core.
|
||||
*/
|
||||
/* stylelint-disable-next-line declaration-no-important */
|
||||
--padding-start: #{globals.$ion-space-400} !important;
|
||||
/* stylelint-disable-next-line declaration-no-important */
|
||||
--padding-end: #{globals.$ion-space-400} !important;
|
||||
/* stylelint-disable-next-line declaration-no-important */
|
||||
--padding-bottom: #{globals.$ion-space-1200} !important;
|
||||
}
|
||||
Reference in New Issue
Block a user