-
Notifications
You must be signed in to change notification settings - Fork 3.2k
docs(api): update v8 usage for stepped colors #3770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9747452
docs(api): update v8 usage for stepped colors
brandyscarney 8bb7219
docs(datetime): use the same variables css file for all frameworks
brandyscarney d3b3b27
revert v5 change
brandyscarney f57f351
docs(slides): use proper stepped color
brandyscarney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
static/usage/v8/datetime/styling/global-theming/angular/example_component_css.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
```css | ||
ion-datetime { | ||
--background: #fff1f2; | ||
--background-rgb: 255, 241, 242; | ||
|
||
border-radius: 16px; | ||
box-shadow: rgba(var(--ion-color-rose-rgb), 0.3) 0px 10px 15px -3px; | ||
} | ||
``` |
66 changes: 0 additions & 66 deletions
66
static/usage/v8/datetime/styling/global-theming/angular/global_css.md
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 0 additions & 54 deletions
54
static/usage/v8/datetime/styling/global-theming/javascript.md
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
static/usage/v8/datetime/styling/global-theming/javascript/index_html.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
```html | ||
<ion-datetime color="rose"></ion-datetime> | ||
|
||
<style> | ||
ion-datetime { | ||
--background: #fff1f2; | ||
--background-rgb: 255, 241, 242; | ||
|
||
border-radius: 16px; | ||
box-shadow: rgba(var(--ion-color-rose-rgb), 0.3) 0px 10px 15px -3px; | ||
} | ||
</style> | ||
``` |
41 changes: 0 additions & 41 deletions
41
static/usage/v8/datetime/styling/global-theming/react/main_css.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
static/usage/v8/datetime/styling/global-theming/theme/variables_css.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
```css | ||
/* Ionic Variables and Theming | ||
* --------------------------------------------------------------- | ||
* Any overrides to theme variables should be placed in this file. | ||
* For more information, please see: | ||
* http://ionicframework.com/docs/theming/ | ||
*/ | ||
|
||
/* This sets the CSS variables for the rose color */ | ||
:root { | ||
--ion-color-rose: #831843; | ||
--ion-color-rose-rgb: 131, 24, 67; | ||
--ion-color-rose-contrast: #ffffff; | ||
--ion-color-rose-contrast-rgb: 255, 255, 255; | ||
--ion-color-rose-shade: #73153b; | ||
--ion-color-rose-tint: #8f2f56; | ||
} | ||
|
||
/* This overrides the global CSS variables for both modes */ | ||
:root.ios, | ||
:root.md { | ||
--ion-background-color: #ffffff; | ||
--ion-background-color-rgb: 255, 255, 255; | ||
|
||
--ion-text-color: #881337; | ||
--ion-text-color-rgb: 136, 19, 55; | ||
|
||
--ion-text-color-step-50: #8e1e40; | ||
--ion-text-color-step-100: #94294a; | ||
--ion-text-color-step-150: #9a3453; | ||
--ion-text-color-step-200: #a03f5c; | ||
--ion-text-color-step-250: #a64b66; | ||
--ion-text-color-step-300: #ac566f; | ||
--ion-text-color-step-350: #b26178; | ||
--ion-text-color-step-400: #b86c82; | ||
--ion-text-color-step-450: #be778b; | ||
--ion-text-color-step-500: #c48295; | ||
--ion-text-color-step-550: #c98d9e; | ||
--ion-text-color-step-600: #cf98a7; | ||
--ion-text-color-step-650: #d5a3b1; | ||
--ion-text-color-step-700: #dbaeba; | ||
--ion-text-color-step-750: #e1bac3; | ||
--ion-text-color-step-800: #e7c5cd; | ||
--ion-text-color-step-850: #edd0d6; | ||
--ion-text-color-step-900: #f3dbdf; | ||
--ion-text-color-step-950: #f9e6e9; | ||
|
||
--ion-background-color-step-50: #f9e6e9; | ||
--ion-background-color-step-100: #f3dbdf; | ||
--ion-background-color-step-150: #edd0d6; | ||
--ion-background-color-step-200: #e7c5cd; | ||
--ion-background-color-step-250: #e1bac3; | ||
--ion-background-color-step-300: #dbaeba; | ||
--ion-background-color-step-350: #d5a3b1; | ||
--ion-background-color-step-400: #cf98a7; | ||
--ion-background-color-step-450: #c98d9e; | ||
--ion-background-color-step-500: #c48295; | ||
--ion-background-color-step-550: #be778b; | ||
--ion-background-color-step-600: #b86c82; | ||
--ion-background-color-step-650: #b26178; | ||
--ion-background-color-step-700: #ac566f; | ||
--ion-background-color-step-750: #a64b66; | ||
--ion-background-color-step-800: #a03f5c; | ||
--ion-background-color-step-850: #9a3453; | ||
--ion-background-color-step-900: #94294a; | ||
--ion-background-color-step-950: #8e1e40; | ||
} | ||
|
||
/* This adds the rose color */ | ||
.ion-color-rose { | ||
--ion-color-base: var(--ion-color-rose); | ||
--ion-color-base-rgb: var(--ion-color-rose-rgb); | ||
--ion-color-contrast: var(--ion-color-rose-contrast); | ||
--ion-color-contrast-rgb: var(--ion-color-rose-contrast-rgb); | ||
--ion-color-shade: var(--ion-color-rose-shade); | ||
--ion-color-tint: var(--ion-color-rose-tint); | ||
} | ||
``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.