forked from EVOgeek/Vmeda.Online
		
	Merge pull request #2247 from crazyserver/MOBILE-3268
MOBILE-3268 styles: Add darkmode to modals
This commit is contained in:
		
						commit
						e683c25c59
					
				| @ -68,6 +68,9 @@ ion-app.app-root.md { | |||||||
|     .action-sheet-title, |     .action-sheet-title, | ||||||
|     .action-sheet-container > .action-sheet-group:first-child { |     .action-sheet-container > .action-sheet-group:first-child { | ||||||
|       box-shadow: 0 3px 5px $gray; |       box-shadow: 0 3px 5px $gray; | ||||||
|  |       @include darkmode() { | ||||||
|  |         box-shadow: 0 3px 5px $black; | ||||||
|  |       } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     .action-sheet-title { |     .action-sheet-title { | ||||||
|  | |||||||
| @ -668,6 +668,9 @@ ion-app.app-root { | |||||||
|   .action-sheet-wrapper { |   .action-sheet-wrapper { | ||||||
|     .action-sheet-button.action-sheet-cancel { |     .action-sheet-button.action-sheet-cancel { | ||||||
|       color: $core-action-sheet-cancel-color; |       color: $core-action-sheet-cancel-color; | ||||||
|  |       @include darkmode() { | ||||||
|  |         color: $core-dark-action-sheet-cancel-color; | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|     .action-sheet-selected { |     .action-sheet-selected { | ||||||
|       color: $core-color; |       color: $core-color; | ||||||
|  | |||||||
| @ -16,109 +16,130 @@ $core-dark-login-item-background-color: $core-dark-login-box-background-color !d | |||||||
| $core-dark-login-button-outline: $core-login-button-outline !default; | $core-dark-login-button-outline: $core-login-button-outline !default; | ||||||
| $core-dark-login-loading-color: $core-dark-text-color !default; | $core-dark-login-loading-color: $core-dark-text-color !default; | ||||||
| 
 | 
 | ||||||
| ion-app.app-root .ion-page { | ion-app.app-root { | ||||||
|   @include darkmode() { |   @include darkmode() { | ||||||
|     color: $core-dark-text-color; |     ion-action-sheet .action-sheet-container .action-sheet-group .action-sheet-button { | ||||||
|     background-color: $core-dark-item-bg-color; |       color: $core-dark-text-color; | ||||||
| 
 | 
 | ||||||
|     a:not(.button) { |       &.action-sheet-selected { | ||||||
|       color: $core-dark-link-color; |         color: $core-color; | ||||||
|  |       } | ||||||
|  |       &.activated { | ||||||
|  |         background-color: $black; | ||||||
|  |       } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     .core-tabs-bar, |  | ||||||
|     .core-tabs-bar *, |  | ||||||
|     .core-tabs-bar .tab-slide, |  | ||||||
|     .ion-page, |     .ion-page, | ||||||
|     .item, |     ion-popover .popover-content, | ||||||
|     .item-select, |     ion-alert .alert-wrapper, | ||||||
|     ion-card, |     ion-action-sheet .action-sheet-container .action-sheet-group, | ||||||
|     .card-header, |     ion-loading .loading-wrapper { | ||||||
|     .card-content { |       color: $core-dark-text-color; | ||||||
|         color: $core-dark-text-color; |       background-color: $core-dark-item-bg-color; | ||||||
|         background-color: $core-dark-item-bg-color; |  | ||||||
| 
 | 
 | ||||||
|         h1, h2, h3, h4, h5, h6, |       a:not(.button) { | ||||||
|         ion-icon, |         color: $core-dark-link-color; | ||||||
|         .label { |       } | ||||||
|  | 
 | ||||||
|  |       .alert-message { | ||||||
|  |         color: $core-dark-text-color; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       .core-tabs-bar, | ||||||
|  |       .core-tabs-bar *, | ||||||
|  |       .core-tabs-bar .tab-slide, | ||||||
|  |       .ion-page, | ||||||
|  |       .item, | ||||||
|  |       .item-select, | ||||||
|  |       ion-card, | ||||||
|  |       .card-header, | ||||||
|  |       .card-content { | ||||||
|  |           color: $core-dark-text-color; | ||||||
|  |           background-color: $core-dark-item-bg-color; | ||||||
|  | 
 | ||||||
|  |           h1, h2, h3, h4, h5, h6, | ||||||
|  |           ion-icon, | ||||||
|  |           .label { | ||||||
|  |             color: $core-dark-text-color; | ||||||
|  |           } | ||||||
|  | 
 | ||||||
|  |           @each $color-name, $color-base, $color-contrast in get-colors($colors-dark) { | ||||||
|  |             .icon-md-#{$color-name}, | ||||||
|  |             .icon-ios-#{$color-name}, | ||||||
|  |             .icon-wp-#{$color-name} { | ||||||
|  |               color: $color-base; | ||||||
|  |             } | ||||||
|  |           } | ||||||
|  |           p { | ||||||
|  |             color: $core-dark-text-secondary-color; | ||||||
|  |           } | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       .item-divider, | ||||||
|  |       .item-divider .item-inner { | ||||||
|  |         color: $core-dark-text-color; | ||||||
|  |         background-color: $core-dark-item-divider-bg-color; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       .item.item-ios:active, | ||||||
|  |       .item.item-ios.activated, | ||||||
|  |       .item.item-md:active, | ||||||
|  |       .item.item-md.activated, | ||||||
|  |       .item.item-wp:active, | ||||||
|  |       .item.item-wp.activated { | ||||||
|  |         background-color: $core-dark-background-color; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       .content, | ||||||
|  |       .content-md, | ||||||
|  |       .content-ios, | ||||||
|  |       .content-wp { | ||||||
|  |         color: $core-dark-text-color; | ||||||
|  |         background-color: $core-dark-background-color; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       .button, | ||||||
|  |       .button-md-light, | ||||||
|  |       .button-ios-light, | ||||||
|  |       .button-wp-light, | ||||||
|  |       .button-outline { | ||||||
|  |         ion-icon { | ||||||
|  |           color: inherit; | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       .toolbar-md-light .toolbar-background, | ||||||
|  |       .toolbar-ios-light .toolbar-background, | ||||||
|  |       .toolbar-wp-light .toolbar-background { | ||||||
|  |         background-color: $core-dark-item-divider-bg-color; | ||||||
|  |         color: $core-dark-text-color; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       .button.button-clear-md-dark, | ||||||
|  |       .button.button-clear-ios-dark, | ||||||
|  |       .button.button-clear-wp-dark { | ||||||
|  |         .button-inner ion-icon { | ||||||
|           color: $core-dark-text-color; |           color: $core-dark-text-color; | ||||||
|         } |         } | ||||||
|  |       } | ||||||
| 
 | 
 | ||||||
|         @each $color-name, $color-base, $color-contrast in get-colors($colors-dark) { |       .button-outline { | ||||||
|           .icon-md-#{$color-name}, |         background-color: $core-dark-item-bg-color; | ||||||
|           .icon-ios-#{$color-name}, |       } | ||||||
|           .icon-wp-#{$color-name} { | 
 | ||||||
|             color: $color-base; |       ion-refresher { | ||||||
|           } |         .refresher-pulling-icon, | ||||||
|  |         .refresher-refreshing-icon, | ||||||
|  |         .refresher-pulling-icon ion-icon, | ||||||
|  |         .refresher-refreshing-icon ion-icon, | ||||||
|  |         ion-icon { | ||||||
|  |           color: $refresher-icon-color; | ||||||
|         } |         } | ||||||
|         p { | 
 | ||||||
|           color: $core-dark-text-secondary-color; |         .refresher-pulling-text, | ||||||
|  |         .refresher-refreshing-text { | ||||||
|  |           color: $core-dark-text-color; | ||||||
|         } |         } | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-divider, |  | ||||||
|     .item-divider .item-inner { |  | ||||||
|       color: $core-dark-text-color; |  | ||||||
|       background-color: $core-dark-item-divider-bg-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item.item-ios:active, |  | ||||||
|     .item.item-ios.activated, |  | ||||||
|     .item.item-md:active, |  | ||||||
|     .item.item-md.activated, |  | ||||||
|     .item.item-wp:active, |  | ||||||
|     .item.item-wp.activated { |  | ||||||
|       background-color: $core-dark-background-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .content, |  | ||||||
|     .content-md, |  | ||||||
|     .content-ios, |  | ||||||
|     .content-wp { |  | ||||||
|       color: $core-dark-text-color; |  | ||||||
|       background-color: $core-dark-background-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .button, |  | ||||||
|     .button-md-light, |  | ||||||
|     .button-ios-light, |  | ||||||
|     .button-wp-light, |  | ||||||
|     .button-outline { |  | ||||||
|       ion-icon { |  | ||||||
|         color: inherit; |  | ||||||
|       } |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .toolbar-md-light .toolbar-background, |  | ||||||
|     .toolbar-ios-light .toolbar-background, |  | ||||||
|     .toolbar-wp-light .toolbar-background { |  | ||||||
|       background-color: $core-dark-item-divider-bg-color; |  | ||||||
|       color: $core-dark-text-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .button.button-clear-md-dark, |  | ||||||
|     .button.button-clear-ios-dark, |  | ||||||
|     .button.button-clear-wp-dark { |  | ||||||
|       .button-inner ion-icon { |  | ||||||
|         color: $core-dark-text-color; |  | ||||||
|       } |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .button-outline { |  | ||||||
|       background-color: $core-dark-item-bg-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     ion-refresher { |  | ||||||
|       .refresher-pulling-icon, |  | ||||||
|       .refresher-refreshing-icon, |  | ||||||
|       .refresher-pulling-icon ion-icon, |  | ||||||
|       .refresher-refreshing-icon ion-icon, |  | ||||||
|       ion-icon { |  | ||||||
|         color: $refresher-icon-color; |  | ||||||
|       } |  | ||||||
| 
 |  | ||||||
|       .refresher-pulling-text, |  | ||||||
|       .refresher-refreshing-text { |  | ||||||
|         color: $core-dark-text-color; |  | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -202,6 +202,7 @@ $core-login-item-background-color: $white !default; | |||||||
| 
 | 
 | ||||||
| $core-action-sheet-color: $core-color !default; | $core-action-sheet-color: $core-color !default; | ||||||
| $core-action-sheet-cancel-color: $danger !default; | $core-action-sheet-cancel-color: $danger !default; | ||||||
|  | $core-dark-action-sheet-cancel-color: $danger-dark !default; | ||||||
| 
 | 
 | ||||||
| // App iOS Variables | // App iOS Variables | ||||||
| // -------------------------------------------------- | // -------------------------------------------------- | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user