mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
feat(windows): initial add for windows badges
also hide ion-button-effect and change alert buttons to full width references #5565
This commit is contained in:
@ -8,5 +8,6 @@
|
|||||||
"components/app/app.wp",
|
"components/app/app.wp",
|
||||||
"components/action-sheet/action-sheet.wp",
|
"components/action-sheet/action-sheet.wp",
|
||||||
"components/alert/alert.wp",
|
"components/alert/alert.wp",
|
||||||
|
"components/badge/badge.wp",
|
||||||
"components/button/button.wp",
|
"components/button/button.wp",
|
||||||
"components/toolbar/toolbar.wp";
|
"components/toolbar/toolbar.wp";
|
||||||
|
@ -226,7 +226,7 @@ $alert-wp-buttons-justify-content: flex-end !default;
|
|||||||
flex-wrap: wrap-reverse;
|
flex-wrap: wrap-reverse;
|
||||||
|
|
||||||
&.vertical .alert-button {
|
&.vertical .alert-button {
|
||||||
margin-left: 50.5%;
|
width: 100%;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
|
|
||||||
&:first-child:not(:only-child) {
|
&:first-child:not(:only-child) {
|
||||||
|
27
ionic/components/badge/badge.wp.scss
Normal file
27
ionic/components/badge/badge.wp.scss
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
@import "./badge";
|
||||||
|
|
||||||
|
// Windows Badge
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
$badge-wp-border-radius: 0 !default;
|
||||||
|
$badge-wp-background-color: map-get($colors-wp, primary) !default;
|
||||||
|
|
||||||
|
|
||||||
|
ion-badge {
|
||||||
|
border-radius: $badge-wp-border-radius;
|
||||||
|
background-color: $badge-wp-background-color;
|
||||||
|
color: color-inverse($badge-wp-background-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Generate Windows Badge Colors
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@each $color-name, $color-value in $colors-wp {
|
||||||
|
|
||||||
|
.badge-#{$color-name} {
|
||||||
|
background-color: $color-value;
|
||||||
|
color: color-inverse($color-value);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -239,6 +239,10 @@ $button-wp-small-icon-font-size: 1.4em !default;
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ion-button-effect {
|
||||||
|
// wp does not use the button effect
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
// Generate Windows Button Colors
|
// Generate Windows Button Colors
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user