mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
mode theming
This commit is contained in:
@ -1,14 +0,0 @@
|
|||||||
@import "../../../ionic.globals";
|
|
||||||
@import "../icon";
|
|
||||||
|
|
||||||
// iOS Icon
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
$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;
|
|
||||||
|
|
||||||
|
|
||||||
@mixin ios-detail-push-icon($fg-color) {
|
|
||||||
$svg: str-replace($icon-detail-push-background-svg, 'fg-color', $fg-color);
|
|
||||||
@include svg-background-image($svg);
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
@import "../../../ionic.globals";
|
|
||||||
@import "../icon";
|
|
||||||
|
|
||||||
// Material Design Icon
|
|
||||||
// --------------------------------------------------
|
|
@ -4,21 +4,6 @@
|
|||||||
// iOS Item
|
// iOS Item
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
$item-ios-border-color: $list-border-color !default;
|
|
||||||
$item-ios-activated-background-color: #d9d9d9 !default;
|
|
||||||
$item-ios-font-size: 1.6rem !default;
|
|
||||||
|
|
||||||
$item-ios-padding-top: 12px !default;
|
|
||||||
$item-ios-padding-right: 16px !default;
|
|
||||||
$item-ios-padding-bottom: 13px !default;
|
|
||||||
$item-ios-padding-left: 16px !default;
|
|
||||||
|
|
||||||
$item-ios-padding-media-top: 10px !default;
|
|
||||||
$item-ios-padding-media-bottom: 10px !default;
|
|
||||||
|
|
||||||
$item-ios-padding-icon-top: 10px !default;
|
|
||||||
$item-ios-padding-icon-bottom: 9px !default;
|
|
||||||
|
|
||||||
$item-ios-avatar-size: 3.6rem !default;
|
$item-ios-avatar-size: 3.6rem !default;
|
||||||
$item-ios-thumbnail-size: 5.6rem !default;
|
$item-ios-thumbnail-size: 5.6rem !default;
|
||||||
$item-ios-note-color: darken($item-ios-border-color, 10%) !default;
|
$item-ios-note-color: darken($item-ios-border-color, 10%) !default;
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
// Core Components
|
// Core Components
|
||||||
@import
|
@import
|
||||||
"components/grid/grid",
|
"components/grid/grid",
|
||||||
|
"components/icon/icon",
|
||||||
"components/menu/menu",
|
"components/menu/menu",
|
||||||
"components/modal/modal",
|
"components/modal/modal",
|
||||||
"components/scroll/scroll",
|
"components/scroll/scroll",
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
|
|
||||||
// Global Theme
|
|
||||||
@import "themes/default";
|
|
||||||
|
|
||||||
|
|
||||||
// Global Functions
|
// Global Functions
|
||||||
@import "util/functions";
|
@import "util/functions";
|
||||||
|
|
||||||
|
@ -2,29 +2,28 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
|
|
||||||
|
|
||||||
|
// iOS Theme
|
||||||
|
@import "themes/default.ios";
|
||||||
|
|
||||||
|
|
||||||
// Core Components
|
// Core Components
|
||||||
@import "ionic.core";
|
@import "ionic.core";
|
||||||
|
|
||||||
|
|
||||||
// iOS Required Components
|
// iOS Components
|
||||||
@import
|
|
||||||
"components/icon/modes/ios",
|
|
||||||
"components/item/modes/ios",
|
|
||||||
"components/list/modes/ios",
|
|
||||||
"components/toolbar/modes/ios";
|
|
||||||
|
|
||||||
|
|
||||||
// iOS Optional Components
|
|
||||||
@import
|
@import
|
||||||
"components/action-sheet/modes/ios",
|
"components/action-sheet/modes/ios",
|
||||||
"components/button/modes/ios",
|
"components/button/modes/ios",
|
||||||
"components/card/modes/ios",
|
"components/card/modes/ios",
|
||||||
"components/checkbox/modes/ios",
|
"components/checkbox/modes/ios",
|
||||||
"components/content/modes/ios",
|
"components/content/modes/ios",
|
||||||
|
"components/item/modes/ios",
|
||||||
|
"components/list/modes/ios",
|
||||||
"components/popup/modes/ios",
|
"components/popup/modes/ios",
|
||||||
"components/radio/modes/ios",
|
"components/radio/modes/ios",
|
||||||
"components/searchbar/modes/ios",
|
"components/searchbar/modes/ios",
|
||||||
"components/segment/modes/ios",
|
"components/segment/modes/ios",
|
||||||
"components/switch/modes/ios",
|
"components/switch/modes/ios",
|
||||||
"components/tabs/modes/ios",
|
"components/tabs/modes/ios",
|
||||||
"components/text-input/modes/ios";
|
"components/text-input/modes/ios",
|
||||||
|
"components/toolbar/modes/ios";
|
||||||
|
@ -2,13 +2,16 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
|
|
||||||
|
|
||||||
|
// Material Design Theme
|
||||||
|
@import "themes/default.md";
|
||||||
|
|
||||||
|
|
||||||
// Core Components
|
// Core Components
|
||||||
@import "ionic.core";
|
@import "ionic.core";
|
||||||
|
|
||||||
|
|
||||||
// Material Design Components
|
// Material Design Components
|
||||||
@import
|
@import
|
||||||
"components/icon/modes/md",
|
|
||||||
"components/item/modes/md",
|
"components/item/modes/md",
|
||||||
"components/list/modes/md",
|
"components/list/modes/md",
|
||||||
"components/toolbar/modes/md";
|
"components/toolbar/modes/md";
|
||||||
|
65
ionic/themes/default.ios.scss
Normal file
65
ionic/themes/default.ios.scss
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
@import "themes/default";
|
||||||
|
|
||||||
|
// iOS Default Theme
|
||||||
|
// ----------------------------------
|
||||||
|
|
||||||
|
$colors: (
|
||||||
|
|
||||||
|
primary: #387ef5,
|
||||||
|
secondary: #32db64,
|
||||||
|
danger: #f53d3d,
|
||||||
|
light: #f4f4f4,
|
||||||
|
dark: #222,
|
||||||
|
|
||||||
|
) !default;
|
||||||
|
|
||||||
|
|
||||||
|
$text-ios-color: $text-color !default;
|
||||||
|
$background-ios-color: $background-color !default;
|
||||||
|
$subdued-text-ios-color: $subdued-text-color !default;
|
||||||
|
|
||||||
|
$list-ios-text-color: $text-ios-color !default;
|
||||||
|
$list-ios-background-color: $background-color !default;
|
||||||
|
$list-ios-border-color: $list-border-color !default;
|
||||||
|
|
||||||
|
$link-ios-color: map-get($colors, primary) !default;
|
||||||
|
|
||||||
|
|
||||||
|
// iOS Toolbar
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
$toolbar-ios-background-color: $toolbar-background-color !default;
|
||||||
|
$toolbar-ios-border-color: $toolbar-border-color !default;
|
||||||
|
$toolbar-ios-text-color: $text-ios-color !default;
|
||||||
|
$toolbar-ios-active-color: $link-ios-color !default;
|
||||||
|
$toolbar-ios-inactive-color: $toolbar-inactive-color !default;
|
||||||
|
|
||||||
|
|
||||||
|
// iOS Item
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
$item-ios-border-color: $list-border-color !default;
|
||||||
|
$item-ios-activated-background-color: #d9d9d9 !default;
|
||||||
|
$item-ios-font-size: 1.6rem !default;
|
||||||
|
|
||||||
|
$item-ios-padding-top: 12px !default;
|
||||||
|
$item-ios-padding-right: 16px !default;
|
||||||
|
$item-ios-padding-bottom: 13px !default;
|
||||||
|
$item-ios-padding-left: 16px !default;
|
||||||
|
|
||||||
|
$item-ios-padding-media-top: 10px !default;
|
||||||
|
$item-ios-padding-media-bottom: 10px !default;
|
||||||
|
|
||||||
|
$item-ios-padding-icon-top: 10px !default;
|
||||||
|
$item-ios-padding-icon-bottom: 9px !default;
|
||||||
|
|
||||||
|
|
||||||
|
// iOS Icon
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
$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;
|
||||||
|
|
||||||
|
@mixin ios-detail-push-icon($fg-color) {
|
||||||
|
$svg: str-replace($icon-detail-push-background-svg, 'fg-color', $fg-color);
|
||||||
|
@include svg-background-image($svg);
|
||||||
|
}
|
54
ionic/themes/default.md.scss
Normal file
54
ionic/themes/default.md.scss
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
@import "themes/default";
|
||||||
|
|
||||||
|
// Material Design Default Theme
|
||||||
|
// ----------------------------------
|
||||||
|
|
||||||
|
$colors: (
|
||||||
|
|
||||||
|
primary: #387ef5,
|
||||||
|
secondary: #32db64,
|
||||||
|
danger: #f53d3d,
|
||||||
|
light: #f4f4f4,
|
||||||
|
dark: #222,
|
||||||
|
|
||||||
|
) !default;
|
||||||
|
|
||||||
|
|
||||||
|
$text-md-color: $text-color !default;
|
||||||
|
$background-md-color: $background-color !default;
|
||||||
|
$subdued-text-md-color: $subdued-text-color !default;
|
||||||
|
|
||||||
|
$list-md-text-color: $text-md-color !default;
|
||||||
|
$list-md-background-color: $background-color !default;
|
||||||
|
$list-md-border-color: $list-border-color !default;
|
||||||
|
|
||||||
|
$link-md-color: map-get($colors, primary) !default;
|
||||||
|
|
||||||
|
|
||||||
|
// iOS Toolbar
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
$toolbar-md-background-color: $toolbar-background-color !default;
|
||||||
|
$toolbar-md-border-color: $toolbar-border-color !default;
|
||||||
|
$toolbar-md-text-color: $text-md-color !default;
|
||||||
|
$toolbar-md-active-color: $link-md-color !default;
|
||||||
|
$toolbar-md-inactive-color: $toolbar-inactive-color !default;
|
||||||
|
|
||||||
|
|
||||||
|
// Material Design Item
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
$item-md-border-color: $list-border-color !default;
|
||||||
|
$item-md-activated-background-color: #d9d9d9 !default;
|
||||||
|
$item-md-font-size: 1.6rem !default;
|
||||||
|
|
||||||
|
$item-md-padding-top: 12px !default;
|
||||||
|
$item-md-padding-right: 16px !default;
|
||||||
|
$item-md-padding-bottom: 13px !default;
|
||||||
|
$item-md-padding-left: 16px !default;
|
||||||
|
|
||||||
|
$item-md-padding-media-top: 10px !default;
|
||||||
|
$item-md-padding-media-bottom: 10px !default;
|
||||||
|
|
||||||
|
$item-md-padding-icon-top: 10px !default;
|
||||||
|
$item-md-padding-icon-bottom: 9px !default;
|
Reference in New Issue
Block a user