Skip to content

Commit 706e0d7

Browse files
committed
feat(windows): add detail-push icon
references #5565
1 parent 8df8420 commit 706e0d7

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

ionic/components/item/item.wp.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ $item-wp-font-size: 1.6rem !default;
1414
$item-wp-avatar-size: 4rem !default;
1515
$item-wp-thumbnail-size: 8rem !default;
1616
$item-wp-note-color: $input-wp-border-color !default;
17+
$item-wp-detail-push-color: $input-wp-border-color !default;
1718

1819
$item-wp-divider-bg: #fff !default;
1920
$item-wp-divider-color: #222 !default;
@@ -78,6 +79,16 @@ $item-wp-sliding-content-bg: $list-wp-background-color !default;
7879
border-bottom: 1px solid $list-wp-border-color;
7980
}
8081

82+
button.item:not([detail-none]) .item-inner,
83+
a.item:not([detail-none]) .item-inner,
84+
.item[detail-push] .item-inner {
85+
@include wp-detail-push-icon($item-wp-detail-push-color);
86+
background-repeat: no-repeat;
87+
background-position: right ($item-wp-padding-right - 2) center;
88+
background-size: 14px 14px;
89+
padding-right: 32px;
90+
}
91+
8192

8293
// Windows Item Media
8394
// --------------------------------------------------

ionic/themes/dark.wp.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,14 @@ $toggle-wp-handle-background-color-off: map-get($colors-wp, light) !default;
7272
$input-wp-border-color: map-get($colors-wp, light) !default;
7373

7474

75-
// Ripple Color
75+
// Windows Icon
7676
// --------------------------------------------------
7777

78-
@function ripple-background-color($button-color) {
79-
@return rgba( red($button-color), green($button-color), blue($button-color), 0.1);
78+
$icon-detail-push-background-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M2,20l-2-2l8-8L0,2l2-2l10,10L2,20z' fill='fg-color'/></svg>" !default;
79+
80+
@mixin wp-detail-push-icon($fg-color) {
81+
$svg: str-replace($icon-detail-push-background-svg, 'fg-color', $fg-color);
82+
@include svg-background-image($svg);
8083
}
8184

8285

@@ -90,7 +93,7 @@ $input-wp-border-color: map-get($colors-wp, light) !default;
9093
}
9194

9295

93-
// Roboto Font
96+
// Noto Sans Font
9497
@at-root {
9598
@import "../fonts/noto-sans";
9699
}

ionic/themes/default.wp.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ $item-wp-padding-icon-bottom: 10px !default;
5555
$input-wp-border-color: #818181 !default;
5656

5757

58+
// Windows Icon
59+
// --------------------------------------------------
60+
61+
$icon-detail-push-background-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M2,20l-2-2l8-8L0,2l2-2l10,10L2,20z' fill='fg-color'/></svg>" !default;
62+
63+
@mixin wp-detail-push-icon($fg-color) {
64+
$svg: str-replace($icon-detail-push-background-svg, 'fg-color', $fg-color);
65+
@include svg-background-image($svg);
66+
}
67+
68+
5869
// Windows Body
5970
// --------------------------------------------------
6071

@@ -65,7 +76,7 @@ $input-wp-border-color: #818181 !default;
6576
}
6677

6778

68-
// Roboto Font
79+
// Noto Sans Font
6980
@at-root {
7081
@import "../fonts/noto-sans";
7182
}

0 commit comments

Comments
 (0)