MOBILE-2795 style: Improvement on item border styles
This commit is contained in:
		
							parent
							
								
									746ebf5afe
								
							
						
					
					
						commit
						7b93786176
					
				| @ -1,19 +1,7 @@ | |||||||
| ion-app.app-root core-courses-course-progress { | ion-app.app-root core-courses-course-progress { | ||||||
| 
 | 
 | ||||||
|     .core-course-module-handler.item-md.item-block .item-inner { |     .core-course-module-handler.item { | ||||||
|       border-bottom: 1px solid $list-md-border-color; |         @include core-items(); | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .core-course-module-handler.item-ios.item-block .item-inner { |  | ||||||
|       border-bottom: $hairlines-width solid $list-ios-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .core-course-module-handler.item-wp.item-block .item-inner { |  | ||||||
|       border-bottom: 1px solid $list-wp-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .core-course-module-handler.item:last-child .item-inner { |  | ||||||
|         border-bottom: 0; |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     .core-course-module-handler.item .item-heading:first-child { |     .core-course-module-handler.item .item-heading:first-child { | ||||||
|  | |||||||
| @ -1,35 +1,4 @@ | |||||||
| ion-app.app-root addon-mod-workshop-assessment { | ion-app.app-root addon-mod-workshop-assessment, | ||||||
|     .item-md.item-block .item-inner { |  | ||||||
|       border-bottom: 1px solid $list-md-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-ios.item-block .item-inner { |  | ||||||
|       border-bottom: $hairlines-width solid $list-ios-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-wp.item-block .item-inner { |  | ||||||
|       border-bottom: 1px solid $list-wp-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     &:last-child .item .item-inner { |  | ||||||
|       border-bottom: 0; |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| ion-app.app-root .card.with-borders addon-mod-workshop-assessment { | ion-app.app-root .card.with-borders addon-mod-workshop-assessment { | ||||||
|     .item-md.item-block .item-inner { |   @include core-as-items(); | ||||||
|       border-bottom: 1px solid $list-md-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-ios.item-block .item-inner { |  | ||||||
|       border-bottom: $hairlines-width solid $list-ios-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-wp.item-block .item-inner { |  | ||||||
|       border-bottom: 1px solid $list-wp-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     &:last-child .item .item-inner { |  | ||||||
|       border-bottom: 0; |  | ||||||
|     } |  | ||||||
| } | } | ||||||
| @ -1,35 +1,4 @@ | |||||||
| ion-app.app-root addon-mod-workshop-submission { | ion-app.app-root addon-mod-workshop-submission, | ||||||
|     .item-md.item-block .item-inner { |  | ||||||
|       border-bottom: 1px solid $list-md-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-ios.item-block .item-inner { |  | ||||||
|       border-bottom: $hairlines-width solid $list-ios-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-wp.item-block .item-inner { |  | ||||||
|       border-bottom: 1px solid $list-wp-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     &:last-child .item .item-inner { |  | ||||||
|       border-bottom: 0; |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| ion-app.app-root .card.with-borders addon-mod-workshop-submission { | ion-app.app-root .card.with-borders addon-mod-workshop-submission { | ||||||
|     .item-md.item-block .item-inner { |   @include core-as-items(); | ||||||
|       border-bottom: 1px solid $list-md-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-ios.item-block .item-inner { |  | ||||||
|       border-bottom: $hairlines-width solid $list-ios-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     .item-wp.item-block .item-inner { |  | ||||||
|       border-bottom: 1px solid $list-wp-border-color; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     &:last-child .item .item-inner { |  | ||||||
|       border-bottom: 0; |  | ||||||
|     } |  | ||||||
| } | } | ||||||
| @ -70,15 +70,6 @@ ion-app.app-root.ios { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   // Recover borders on items inside cards. |  | ||||||
|   .card-ios.with-borders  .item-ios.item-block .item-inner { |  | ||||||
|     border-bottom: $hairlines-width solid $list-ios-border-color; |  | ||||||
|   } |  | ||||||
|   .card-ios.with-borders .item-ios:last-child .item-inner { |  | ||||||
|     border-bottom: 0; |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|   .radio-ios .radio-icon { |   .radio-ios .radio-icon { | ||||||
|     @include position(0, null, null, 0); |     @include position(0, null, null, 0); | ||||||
|     @include margin(0); |     @include margin(0); | ||||||
|  | |||||||
| @ -48,14 +48,6 @@ ion-app.app-root.md { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   // Recover borders on items inside cards. |  | ||||||
|   .card-md.with-borders .item-md.item-block .item-inner { |  | ||||||
|     border-bottom: 1px solid $list-md-border-color; |  | ||||||
|   } |  | ||||||
|   .card-md.with-borders .item-md:last-child .item-inner { |  | ||||||
|     border-bottom: 0; |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   .action-sheet-md { |   .action-sheet-md { | ||||||
|     .action-sheet-title, |     .action-sheet-title, | ||||||
|     .action-sheet-container > .action-sheet-group:first-child { |     .action-sheet-container > .action-sheet-group:first-child { | ||||||
|  | |||||||
| @ -96,6 +96,16 @@ ion-app.app-root { | |||||||
|     border: 0; |     border: 0; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |   // Recover borders on items inside cards. | ||||||
|  |   .card.with-borders .core-as-item, | ||||||
|  |   .core-as-item { | ||||||
|  |     @include core-as-items(); | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   .card.with-borders .item { | ||||||
|  |     @include core-items(); | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|   .core-oauth-icon, .item.core-oauth-icon, .list .item.core-oauth-icon { |   .core-oauth-icon, .item.core-oauth-icon, .list .item.core-oauth-icon { | ||||||
|     min-height: 32px; |     min-height: 32px; | ||||||
|     img, .label { |     img, .label { | ||||||
|  | |||||||
| @ -47,12 +47,4 @@ ion-app.app-root.wp { | |||||||
|       @include padding(null, null, null, 15px * $i + $item-wp-padding-start); |       @include padding(null, null, null, 15px * $i + $item-wp-padding-start); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 |  | ||||||
|   // Recover borders on items inside cards. |  | ||||||
|   .card-wp.with-borders  .item-wp.item-block .item-inner { |  | ||||||
|     border-bottom: 1px solid $list-wp-border-color; |  | ||||||
|   } |  | ||||||
|   .card-wp.with-borders .item-wp:last-child .item-inner { |  | ||||||
|     border-bottom: 0; |  | ||||||
|   } |  | ||||||
| } | } | ||||||
| @ -13,4 +13,8 @@ ion-app.app-root { | |||||||
|     core-file + core-file > .item-wp.item-block > .item-inner { |     core-file + core-file > .item-wp.item-block > .item-inner { | ||||||
|         border-top: 1px solid $list-wp-border-color; |         border-top: 1px solid $list-wp-border-color; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     core-file > .item.item-block > .item-inner { | ||||||
|  |         border-bottom: 0; | ||||||
|  |     } | ||||||
| } | } | ||||||
| @ -433,6 +433,42 @@ $core-question-state-incorrect-color: $red-light !default; | |||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @mixin core-as-items() { | ||||||
|  |   .item-md.item-block > .item-inner { | ||||||
|  |     border-bottom: 1px solid $list-md-border-color; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   .item-ios.item-block > .item-inner { | ||||||
|  |     border-bottom: $hairlines-width solid $list-ios-border-color; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   .item-wp.item-block > .item-inner { | ||||||
|  |     border-bottom: 1px solid $list-wp-border-color; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   &:last-child .item > .item-inner { | ||||||
|  |     border-bottom: 0; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | @mixin core-items() { | ||||||
|  |   &.item-md.item-block > .item-inner { | ||||||
|  |     border-bottom: 1px solid $list-md-border-color; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   &.item-ios.item-block > .item-inner { | ||||||
|  |     border-bottom: $hairlines-width solid $list-ios-border-color; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   &.item-wp.item-block > .item-inner { | ||||||
|  |     border-bottom: 1px solid $list-wp-border-color; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   &:last-child > .item-inner { | ||||||
|  |     border-bottom: 0; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | 
 | ||||||
| // Font Awesome | // Font Awesome | ||||||
| $fa-font-path: $font-path; | $fa-font-path: $font-path; | ||||||
| @import "font-awesome"; | @import "font-awesome"; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user