/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/components/alert/alert.md.vars.scss
331 строка
12 KB
Liam DeBeasi
chore(theming): remove Sass default flags (#29401)
25 апр 2024, 22:59
Не верифицирован
25 апр 2024, 22:59
6e8bf49
Код
Авторство
О чём код?
@import "../../themes/ionic.globals.md"; @import "../item/item.md.vars"; // Material Design Alert // -------------------------------------------------- /// @prop - Font size of the alert $alert-md-font-size: dynamic-font(14px); /// @prop - Max width of the alert $alert-md-max-width: 280px; /// @prop - Max width of the alert on a tablet /** * Large display requirements for MD Alert: * 1. Maintain a minimum of 48px distance from the leading and * trailing edges of the screen. (48px * 2 = 96px) * 2. The width can increase up to 560px. * 3. The height can increase up to 560px. * Source: https://m2.material.io/components/dialogs#behavior */ $alert-md-max-width-tablet: min(calc(100vw - 96px), 560px); /// @prop - Max width of the alert on a tablet $alert-md-max-height-tablet: min(calc(100vh - 96px), 560px); /// @prop - Border radius of the alert $alert-md-border-radius: 4px; /// @prop - Background color of the alert $alert-md-background-color: $overlay-md-background-color; /// @prop - Box shadow color of the alert $alert-md-box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12); /// @prop - Padding top of the alert head $alert-md-head-padding-top: 20px; /// @prop - Padding end of the alert head $alert-md-head-padding-end: 23px; /// @prop - Padding bottom of the alert head $alert-md-head-padding-bottom: 15px; /// @prop - Padding start of the alert head $alert-md-head-padding-start: $alert-md-head-padding-end; /// @prop - Text align of the alert head $alert-md-head-text-align: start; /// @prop - Color of the alert title $alert-md-title-color: $text-color; /// @prop - Font size of the alert title $alert-md-title-font-size: dynamic-font(20px); /// @prop - Font weight of the alert title $alert-md-title-font-weight: 500; /// @prop - Font size of the alert sub title $alert-md-sub-title-font-size: dynamic-font(16px); /// @prop - Text color of the alert sub title $alert-md-sub-title-text-color: $text-color; /// @prop - Padding top of the alert message $alert-md-message-padding-top: 20px; /// @prop - Padding end of the alert message $alert-md-message-padding-end: 24px; /// @prop - Padding bottom of the alert message $alert-md-message-padding-bottom: $alert-md-message-padding-top; /// @prop - Padding start of the alert message $alert-md-message-padding-start: $alert-md-message-padding-end; /// @prop - Font size of the alert message $alert-md-message-font-size: dynamic-font(16px); /// @prop - Text color of the alert message $alert-md-message-text-color: $text-color-step-450; /// @prop - Padding top of the alert empty message $alert-md-message-empty-padding-top: 0; /// @prop - Padding end of the alert empty message $alert-md-message-empty-padding-end: $alert-md-message-empty-padding-top; /// @prop - Padding bottom of the alert empty message $alert-md-message-empty-padding-bottom: $alert-md-message-empty-padding-top; /// @prop - Padding start of the alert empty message $alert-md-message-empty-padding-start: $alert-md-message-empty-padding-end; /// @prop - Maximum height of the alert content $alert-md-content-max-height: 266px; /// @prop - Border width of the alert input $alert-md-input-border-width: 1px; /// @prop - Border style of the alert input $alert-md-input-border-style: solid; /// @prop - Border color of the alert input $alert-md-input-border-color: $background-color-step-150; /// @prop - Text color of the alert input $alert-md-input-text-color: $text-color; /// @prop - Border width of the alert input when focused $alert-md-input-border-width-focused: 2px; /// @prop - Border style of the alert input when focused $alert-md-input-border-style-focused: $alert-md-input-border-style; /// @prop - Border color of the alert input when focused $alert-md-input-border-color-focused: ion-color(primary, base); /// @prop - Margin top of the alert input $alert-md-input-margin-top: 5px; /// @prop - Margin end of the alert input $alert-md-input-margin-end: 0; /// @prop - Margin bottom of the alert input $alert-md-input-margin-bottom: 5px; /// @prop - Margin start of the alert input $alert-md-input-margin-start: 0; /// @prop - Placeholder Color for input $alert-md-input-placeholder-color: $placeholder-text-color; /// @prop - Flex wrap of the alert button group $alert-md-button-group-flex-wrap: wrap-reverse; /// @prop - Justify content of the alert button group $alert-md-button-group-justify-content: flex-end; /// @prop - Padding top of the alert button $alert-md-button-padding-top: 10px; /// @prop - Padding end of the alert button $alert-md-button-padding-end: $alert-md-button-padding-top; /// @prop - Padding bottom of the alert button $alert-md-button-padding-bottom: $alert-md-button-padding-top; /// @prop - Padding start of the alert button $alert-md-button-padding-start: $alert-md-button-padding-end; /// @prop - Margin top of the alert button $alert-md-button-margin-top: 0; /// @prop - Margin end of the alert button $alert-md-button-margin-end: 8px; /// @prop - Margin bottom of the alert button $alert-md-button-margin-bottom: 0; /// @prop - Margin start of the alert button $alert-md-button-margin-start: 0; /// @prop - Font weight of the alert button $alert-md-button-font-weight: 500; /// @prop - Text color of the alert button $alert-md-button-text-color: ion-color(primary, base); /// @prop - Background color of the alert button $alert-md-button-background-color: transparent; /// @prop - Border radius of the alert button $alert-md-button-border-radius: 2px; /// @prop - Text transform of the alert button $alert-md-button-text-transform: uppercase; /// @prop - Text align of the alert button $alert-md-button-text-align: end; /// @prop - Border top of the alert list $alert-md-list-border-top: 1px solid $alert-md-input-border-color; /// @prop - Border bottom of the alert list $alert-md-list-border-bottom: $alert-md-list-border-top; /// @prop - Top of the alert radio $alert-md-radio-top: 0; /// @prop - Left of the alert radio $alert-md-radio-left: 26px; /// @prop - Width of the alert radio $alert-md-radio-width: 20px; /// @prop - Height of the alert radio $alert-md-radio-height: $alert-md-radio-width; /// @prop - Border width of the alert radio $alert-md-radio-border-width: 2px; /// @prop - Border style of the alert radio $alert-md-radio-border-style: solid; /// @prop - Border radius of the alert radio $alert-md-radio-border-radius: 50%; /// @prop - Border color of the alert radio when off $alert-md-radio-border-color-off: $background-color-step-550; /// @prop - Border color of the alert radio when on $alert-md-radio-border-color-on: $alert-md-button-text-color; /// @prop - Width of the icon in the alert radio $alert-md-radio-icon-width: $alert-md-radio-width * 0.5; /// @prop - Height of the icon in the alert radio $alert-md-radio-icon-height: $alert-md-radio-icon-width; /// @prop - Top of the icon in the alert radio $alert-md-radio-icon-top: ($alert-md-radio-width - $alert-md-radio-icon-width - $alert-md-radio-border-width * 2) * 0.5; /// @prop - Start of the icon in the radio alert $alert-md-radio-icon-start: $alert-md-radio-icon-top; /// @prop - Border radius of the icon in the alert radio $alert-md-radio-icon-border-radius: $alert-md-radio-border-radius; /// @prop - Transform of the icon in the alert radio when off $alert-md-radio-icon-transform-off: scale3d(0, 0, 0); /// @prop - Transform of the icon in the alert radio when on $alert-md-radio-icon-transform-on: scale3d(1, 1, 1); /// @prop - Transition of the icon in the alert radio $alert-md-radio-icon-transition: transform 280ms cubic-bezier(.4, 0, .2, 1); /// @prop - Padding top on the label for the radio alert $alert-md-radio-label-padding-top: 13px; /// @prop - Padding end on the label for the radio alert $alert-md-radio-label-padding-end: 26px; /// @prop - Padding bottom on the label for the radio alert $alert-md-radio-label-padding-bottom: $alert-md-radio-label-padding-top; /// @prop - Padding start on the label for the radio alert $alert-md-radio-label-padding-start: $alert-md-radio-label-padding-end + 26px; /// @prop - Font size of the label for the radio alert $alert-md-radio-label-font-size: dynamic-font(16px); /// @prop - Text color of the label for the radio alert $alert-md-radio-label-text-color: $text-color-step-150; /// @prop - Text color of the label for the checked radio alert $alert-md-radio-label-text-color-checked: $alert-md-radio-label-text-color; /// @prop - Top of the checkbox in the alert $alert-md-checkbox-top: 0; /// @prop - Left of the checkbox in the alert $alert-md-checkbox-left: 26px; /// @prop - Width of the checkbox in the alert $alert-md-checkbox-width: 16px; /// @prop - Height of the checkbox in the alert $alert-md-checkbox-height: 16px; /// @prop - Border width of the checkbox in the alert $alert-md-checkbox-border-width: 2px; /// @prop - Border style of the checkbox in the alert $alert-md-checkbox-border-style: solid; /// @prop - Border radius of the checkbox in the alert $alert-md-checkbox-border-radius: 2px; /// @prop - Border color of the checkbox in the alert when off $alert-md-checkbox-border-color-off: $background-color-step-550; /// @prop - Border color of the checkbox in the alert when on $alert-md-checkbox-border-color-on: $alert-md-button-text-color; /// @prop - Top of the icon in the checkbox alert $alert-md-checkbox-icon-top: 0; /// @prop - Start of the icon in the checkbox alert $alert-md-checkbox-icon-start: 3px; /// @prop - Width of the icon in the checkbox alert $alert-md-checkbox-icon-width: 6px; /// @prop - Height of the icon in the checkbox alert $alert-md-checkbox-icon-height: 10px; /// @prop - Border width of the icon in the checkbox alert $alert-md-checkbox-icon-border-width: 2px; /// @prop - Border style of the icon in the checkbox alert $alert-md-checkbox-icon-border-style: solid; /// @prop - Border color of the icon in the checkbox alert $alert-md-checkbox-icon-border-color: ion-color(primary, contrast); /// @prop - Transform of the icon in the checkbox alert $alert-md-checkbox-icon-transform: rotate(45deg); /// @prop - Padding top of the label for the checkbox in the alert $alert-md-checkbox-label-padding-top: 13px; /// @prop - Padding end of the label for the checkbox in the alert $alert-md-checkbox-label-padding-end: $alert-md-checkbox-left; /// @prop - Padding bottom of the label for the checkbox in the alert $alert-md-checkbox-label-padding-bottom: $alert-md-checkbox-label-padding-top; /// @prop - Padding start of the label for the checkbox in the alert $alert-md-checkbox-label-padding-start: $alert-md-checkbox-label-padding-end + 27px; /// @prop - Text color of the label for the checkbox in the alert $alert-md-checkbox-label-text-color: $text-color-step-150; /// @prop - Font size of the label for the checkbox in the alert $alert-md-checkbox-label-font-size: dynamic-font(16px); /// @prop - Height of the tappable inputs in the checkbox alert $alert-md-tappable-height: $item-md-min-height;