mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
Merge branch 'core' of github.com:ionic-team/ionic into core
This commit is contained in:
6
packages/core/package-lock.json
generated
6
packages/core/package-lock.json
generated
@ -3484,9 +3484,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"ionicons": {
|
||||
"version": "4.0.0-11",
|
||||
"resolved": "https://registry.npmjs.org/ionicons/-/ionicons-4.0.0-11.tgz",
|
||||
"integrity": "sha512-AoK+gnAE9ABLI0/swX5By8SXxU8AMpX2vpGMr7/lbc6emPhSV/ESfYMMa88a65tsMp8yG+zGOJI/LSwY6YeAQA==",
|
||||
"version": "4.0.0-12",
|
||||
"resolved": "https://registry.npmjs.org/ionicons/-/ionicons-4.0.0-12.tgz",
|
||||
"integrity": "sha512-yPlHH82F93N64aNLokRtJq25QncCgSWIhSMHFxXt/Ff0DJmrqQLo8tst9QxCYNnqQQRsqfLHh76psea6vzeD6g==",
|
||||
"dev": true
|
||||
},
|
||||
"is-arrayish": {
|
||||
|
@ -16,7 +16,7 @@
|
||||
"chai": "^4.1.2",
|
||||
"chromedriver": "^2.33.2",
|
||||
"glob": "^7.1.2",
|
||||
"ionicons": "4.0.0-11",
|
||||
"ionicons": "4.0.0-12",
|
||||
"jest": "^21.2.1",
|
||||
"mocha": "^4.0.1",
|
||||
"np": "^2.17.0",
|
||||
|
@ -86,7 +86,7 @@ function getTotalTests(suite) {
|
||||
async function run() {
|
||||
// TODO look into removing chrome startup from the timeout
|
||||
const mocha = new Mocha({
|
||||
timeout: 10000,
|
||||
timeout: 5000,
|
||||
slow: 2000
|
||||
});
|
||||
|
||||
|
@ -98,14 +98,9 @@
|
||||
|
||||
@include padding-horizontal(null, $action-sheet-ios-button-icon-padding-right);
|
||||
|
||||
width: $action-sheet-ios-icon-width;
|
||||
height: $action-sheet-ios-button-icon-height;
|
||||
|
||||
font-size: $action-sheet-ios-button-icon-font-size;
|
||||
|
||||
vertical-align: $action-sheet-ios-icon-vertical-align;
|
||||
|
||||
fill: $action-sheet-ios-button-icon-fill-color;
|
||||
}
|
||||
|
||||
.action-sheet-ios .action-sheet-button:last-child {
|
||||
@ -129,10 +124,6 @@
|
||||
color: $action-sheet-ios-button-destructive-text-color;
|
||||
}
|
||||
|
||||
.action-sheet-ios .action-sheet-destructive .action-sheet-icon {
|
||||
fill: $action-sheet-ios-button-destructive-icon-fill-color;
|
||||
}
|
||||
|
||||
.action-sheet-ios .action-sheet-cancel {
|
||||
font-weight: $action-sheet-ios-button-cancel-font-weight;
|
||||
background: $action-sheet-ios-button-cancel-background;
|
||||
|
@ -87,9 +87,6 @@ $action-sheet-ios-button-padding: 18px !default;
|
||||
/// @prop - Text color of the action sheet button
|
||||
$action-sheet-ios-button-text-color: #007aff !default;
|
||||
|
||||
/// @prop - Fill color of the action sheet button icon
|
||||
$action-sheet-ios-button-icon-fill-color: $action-sheet-ios-button-text-color !default;
|
||||
|
||||
/// @prop - Font size of the action sheet button icon
|
||||
$action-sheet-ios-button-icon-font-size: 1.4em !default;
|
||||
|
||||
@ -99,15 +96,9 @@ $action-sheet-ios-button-icon-padding-right: .1em !default;
|
||||
/// @prop - Height of the action sheet button icon
|
||||
$action-sheet-ios-button-icon-height: .7em !default;
|
||||
|
||||
/// @prop - Width of the icon in the action sheet button
|
||||
$action-sheet-ios-icon-width: 23px !default;
|
||||
|
||||
/// @prop - Margin top of the action sheet button icon
|
||||
$action-sheet-ios-button-icon-margin-top: -10px !default;
|
||||
|
||||
/// @prop - Vertical align of the icon in the action sheet button
|
||||
$action-sheet-ios-icon-vertical-align: middle !default;
|
||||
|
||||
/// @prop - Font size of the action sheet button
|
||||
$action-sheet-ios-button-font-size: 20px !default;
|
||||
|
||||
@ -129,9 +120,6 @@ $action-sheet-ios-button-background-activated: rgba(115, 115, 115, .1)
|
||||
/// @prop - Destructive text color of the action sheet button
|
||||
$action-sheet-ios-button-destructive-text-color: #f53d3d !default;
|
||||
|
||||
/// @prop - Destructive fill color of the action sheet button icon
|
||||
$action-sheet-ios-button-destructive-icon-fill-color: $action-sheet-ios-button-destructive-text-color !default;
|
||||
|
||||
/// @prop - Background color of the action sheet cancel button
|
||||
$action-sheet-ios-button-cancel-background: #fff !default;
|
||||
|
||||
|
@ -68,14 +68,7 @@
|
||||
.action-sheet-md .action-sheet-icon {
|
||||
@include margin($action-sheet-md-icon-margin-top, $action-sheet-md-icon-margin-end, $action-sheet-md-icon-margin-bottom, $action-sheet-md-icon-margin-start);
|
||||
|
||||
@include padding(0);
|
||||
|
||||
@include text-align($action-sheet-md-icon-text-align);
|
||||
|
||||
width: $action-sheet-md-icon-width;
|
||||
|
||||
font-size: $action-sheet-md-icon-font-size;
|
||||
vertical-align: $action-sheet-md-icon-vertical-align;
|
||||
}
|
||||
|
||||
.action-sheet-md .action-sheet-group .button-inner {
|
||||
|
@ -81,15 +81,6 @@ $action-sheet-md-button-background-activated: #f1f1f1 !default;
|
||||
/// @prop - Font size of the icon in the action sheet button
|
||||
$action-sheet-md-icon-font-size: 24px !default;
|
||||
|
||||
/// @prop - Width of the icon in the action sheet button
|
||||
$action-sheet-md-icon-width: 23px !default;
|
||||
|
||||
/// @prop - Text align of the icon in the action sheet button
|
||||
$action-sheet-md-icon-text-align: center !default;
|
||||
|
||||
/// @prop - Vertical align of the icon in the action sheet button
|
||||
$action-sheet-md-icon-vertical-align: middle !default;
|
||||
|
||||
/// @prop - Margin top of the icon in the action sheet button
|
||||
$action-sheet-md-icon-margin-top: 0 !default;
|
||||
|
||||
|
@ -34,11 +34,6 @@
|
||||
opacity: $button-ios-opacity-hover;
|
||||
}
|
||||
|
||||
.button-ios .icon {
|
||||
fill: $button-ios-icon-fill-color;
|
||||
}
|
||||
|
||||
|
||||
// iOS Default Button Color Mixin
|
||||
// --------------------------------------------------
|
||||
|
||||
|
@ -39,9 +39,6 @@ $button-ios-border-radius: 4px !default;
|
||||
/// @prop - Font size of the button text
|
||||
$button-ios-font-size: 16px !default;
|
||||
|
||||
/// @prop - Color of the button icon
|
||||
$button-ios-icon-fill-color: currentColor !default;
|
||||
|
||||
/// @prop - Background color of the button
|
||||
$button-ios-background-color: color($colors-ios, primary) !default;
|
||||
|
||||
|
@ -46,10 +46,6 @@
|
||||
background-color: $button-md-text-color;
|
||||
}
|
||||
|
||||
.button-md .icon {
|
||||
fill: $button-md-icon-fill-color;
|
||||
}
|
||||
|
||||
|
||||
// Material Design Default Button Color Mixin
|
||||
// --------------------------------------------------
|
||||
|
@ -45,9 +45,6 @@ $button-md-font-weight: 500 !default;
|
||||
/// @prop - Capitalization of the button text
|
||||
$button-md-text-transform: uppercase !default;
|
||||
|
||||
/// @prop - Color of the button icon
|
||||
$button-md-icon-fill-color: currentColor !default;
|
||||
|
||||
/// @prop - Background color of the button
|
||||
$button-md-background-color: color($colors-md, primary) !default;
|
||||
|
||||
|
@ -107,8 +107,7 @@ button[disabled],
|
||||
// --------------------------------------------------
|
||||
|
||||
.button ion-icon {
|
||||
width: 1.4em;
|
||||
height: 1.4em;
|
||||
font-size: 1.4em;
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
@ -122,6 +121,5 @@ button[disabled],
|
||||
}
|
||||
|
||||
.button ion-icon[slot="icon-only"] {
|
||||
width: 1.8em;
|
||||
height: 1.8em;
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
@ -14,7 +14,6 @@
|
||||
font-family: $chip-ios-font-family;
|
||||
|
||||
font-size: $chip-ios-font-size;
|
||||
line-height: $chip-ios-height;
|
||||
color: $chip-ios-text-color;
|
||||
background: $chip-ios-background-color;
|
||||
}
|
||||
@ -26,7 +25,7 @@
|
||||
.chip-ios > ion-icon {
|
||||
background-color: $chip-ios-icon-background-color;
|
||||
|
||||
fill: $chip-ios-icon-fill-color;
|
||||
color: $chip-ios-icon-fill-color;
|
||||
}
|
||||
|
||||
.chip-ios ion-avatar {
|
||||
@ -48,7 +47,7 @@
|
||||
.chip-ios .icon-ios-#{$color-name} {
|
||||
background-color: $color-base;
|
||||
|
||||
fill: $color-contrast;
|
||||
color: $color-contrast;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -14,7 +14,6 @@
|
||||
font-family: $chip-md-font-family;
|
||||
|
||||
font-size: $chip-md-font-size;
|
||||
line-height: $chip-md-height;
|
||||
color: $chip-md-text-color;
|
||||
background: $chip-md-background-color;
|
||||
}
|
||||
@ -26,7 +25,7 @@
|
||||
.chip-md > ion-icon {
|
||||
background-color: $chip-md-icon-background-color;
|
||||
|
||||
fill: $chip-md-icon-fill-color;
|
||||
color: $chip-md-icon-fill-color;
|
||||
}
|
||||
|
||||
.chip-md ion-avatar {
|
||||
@ -48,7 +47,7 @@
|
||||
.chip-md .icon-md-#{$color-name} {
|
||||
background-color: $color-base;
|
||||
|
||||
fill: $color-contrast;
|
||||
color: $color-contrast;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,19 +7,24 @@ ion-chip {
|
||||
box-sizing: border-box;
|
||||
display: inline-flex;
|
||||
|
||||
align-items: center;
|
||||
align-self: center;
|
||||
|
||||
font-weight: normal;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
ion-chip ion-icon {
|
||||
@include text-align($chip-icon-text-align);
|
||||
ion-chip > ion-icon {
|
||||
@include border-radius($chip-icon-border-radius);
|
||||
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
width: $chip-icon-size;
|
||||
height: $chip-icon-size;
|
||||
|
||||
font-size: $chip-icon-font-size;
|
||||
line-height: $chip-icon-line-height;
|
||||
}
|
||||
|
||||
ion-chip ion-icon {
|
||||
font-size: $chip-icon-font-size;
|
||||
}
|
||||
|
@ -14,6 +14,3 @@ $chip-icon-size: 32px !default;
|
||||
|
||||
/// @prop - Font size of the icon in the chip
|
||||
$chip-icon-font-size: 18px !default;
|
||||
|
||||
/// @prop - Line height of the icon in the chip
|
||||
$chip-icon-line-height: 36px !default;
|
||||
|
@ -32,10 +32,8 @@
|
||||
}
|
||||
|
||||
.fab-button ion-icon {
|
||||
flex: 1;
|
||||
|
||||
font-size: 24px;
|
||||
line-height: 18px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
// FAB Mini
|
||||
@ -66,15 +64,6 @@ ion-fab-button[mini] .fab-button {
|
||||
transition-property: transform, opacity;
|
||||
}
|
||||
|
||||
.fab-button-close-icon .icon-inner {
|
||||
display: flex;
|
||||
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
// FAB Animation
|
||||
// --------------------------------------------------
|
||||
|
@ -29,10 +29,10 @@
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon name="home" is-active="true" slot="start"></ion-icon>
|
||||
<ion-icon name="home" slot="start"></ion-icon>
|
||||
<ion-label>
|
||||
<code>
|
||||
name="home" is-active="true"
|
||||
name="home"
|
||||
</code>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
@ -47,19 +47,10 @@
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon name="md-home" is-active="false" slot="start"></ion-icon>
|
||||
<ion-icon name="md-home" slot="start"></ion-icon>
|
||||
<ion-label>
|
||||
<code>
|
||||
name="md-home" is-active="false"
|
||||
</code>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon name="ios-home" is-active="false" slot="start"></ion-icon>
|
||||
<ion-label>
|
||||
<code>
|
||||
name="ios-home" is-active="false"
|
||||
name="md-home"
|
||||
</code>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
@ -73,6 +64,15 @@
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon name="ios-home" slot="end"></ion-icon>
|
||||
<ion-label>
|
||||
<code>
|
||||
name="ios-home"
|
||||
</code>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon name="ios-star-outline" slot="start"></ion-icon>
|
||||
<ion-label>
|
||||
@ -83,10 +83,10 @@
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon name="ios-star-outline" is-active="false" slot="start"></ion-icon>
|
||||
<ion-icon name="IOS-STAR-OUTLINE" slot="end"></ion-icon>
|
||||
<ion-label>
|
||||
<code>
|
||||
name="ios-star-outline" is-active="false"
|
||||
name="IOS-STAR-OUTLINE"
|
||||
</code>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
@ -119,19 +119,28 @@
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon ios="md-color-filter" md="ios-color-filter" slot="start"></ion-icon>
|
||||
<ion-icon name="color-filter" slot="start"></ion-icon>
|
||||
<ion-label>
|
||||
<code>
|
||||
ios="md-color-filter" md="ios-color-filter"
|
||||
name="color-filter"
|
||||
</code>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon ios="md-color-filter" md="ios-color-filter" is-active="false" slot="start"></ion-icon>
|
||||
<ion-icon ios="ios-color-filter" md="md-color-filter" slot="start"></ion-icon>
|
||||
<ion-label>
|
||||
<code>
|
||||
ios="md-color-filter" md="ios-color-filter" is-active="false"
|
||||
ios="ios-color-filter" md="md-color-filter"
|
||||
</code>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-icon ios="MD-COLOR-FILTER" md="IOS-COLOR-FILTER" slot="start"></ion-icon>
|
||||
<ion-label>
|
||||
<code>
|
||||
ios="MD-COLOR-FILTER" md="IOS-COLOR-FILTER"
|
||||
</code>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
@ -96,3 +96,8 @@ ion-input.item {
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.item > ion-icon,
|
||||
.item-inner > ion-icon {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
@ -37,10 +37,7 @@ ion-range ion-label {
|
||||
}
|
||||
|
||||
ion-range ion-icon {
|
||||
min-height: 24px;
|
||||
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
ion-range ion-gesture,
|
||||
|
Reference in New Issue
Block a user