1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- @import "../../themes/ionic.globals";
-
- // Chip
- // --------------------------------------------------
-
- /// @prop - Border radius of the button in the chip
- $chip-button-border-radius: 50% !default;
-
- // deprecated
- $chip-button-margin: null !default;
-
- /// @prop - Margin top of the button in the chip
- $chip-button-margin-top: 0 !default;
-
- /// @prop - Margin end of the button in the chip
- $chip-button-margin-end: $chip-button-margin-top !default;
-
- /// @prop - Margin bottom of the button in the chip
- $chip-button-margin-bottom: $chip-button-margin-top !default;
-
- /// @prop - Margin start of the button in the chip
- $chip-button-margin-start: $chip-button-margin-end !default;
-
- /// @prop - Width and height of the button in the chip
- $chip-button-size: 32px !default;
-
- /// @prop - Border radius of the icon in the chip
- $chip-icon-border-radius: 50% !default;
-
- /// @prop - Text alignment of the icon in the chip
- $chip-icon-text-align: center !default;
-
- /// @prop - Width and height of the icon in the chip
- $chip-icon-size: 32px !default;
-
- /// @prop - Font size of the icon in the chip
- $chip-icon-font-size: 18px !default;
-
- /// @prop - Width and height of the avatar in the chip
- $chip-avatar-size: 32px !default;
-
- /// @prop - Border radius of the avatar in the chip
- $chip-avatar-border-radius: 50% !default;
-
-
- ion-chip {
- display: inline-flex;
-
- align-self: center;
-
- font-weight: normal;
- vertical-align: middle;
-
- box-sizing: border-box;
- }
-
- ion-chip .button {
- @include border-radius($chip-button-border-radius);
-
- width: $chip-button-size;
- height: $chip-button-size;
-
- @include deprecated-variable(margin, $chip-button-margin) {
- @include margin($chip-button-margin-top, $chip-button-margin-end, $chip-button-margin-bottom, $chip-button-margin-start);
- }
- }
-
- ion-chip ion-icon {
- @include text-align($chip-icon-text-align);
- @include border-radius($chip-icon-border-radius);
-
- width: $chip-icon-size;
- height: $chip-icon-size;
-
- font-size: $chip-icon-font-size;
- line-height: $chip-icon-size;
- }
-
- ion-chip ion-avatar {
- @include border-radius($chip-avatar-border-radius);
-
- width: $chip-avatar-size;
- min-width: $chip-avatar-size;
- height: $chip-avatar-size;
- min-height: $chip-avatar-size;
- }
-
- ion-chip ion-avatar img {
- @include border-radius($chip-avatar-border-radius);
-
- display: block;
-
- width: 100%;
- max-width: 100%;
- height: 100%;
- max-height: 100%;
- }
|