mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(list): changing no-borders to no-lines b/c Ben hated it
Added line for headers on Android. Added some more tests for cards with lists. Removed unused CSS. References #387
This commit is contained in:
@@ -88,8 +88,8 @@ $list-ios-header-color: #333 !default;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&.hairlines .list[no-borders],
|
||||
.list[no-borders] {
|
||||
&.hairlines .list[no-lines],
|
||||
.list[no-lines] {
|
||||
ion-header:after,
|
||||
.item:before,
|
||||
.item:after {
|
||||
|
||||
@@ -67,8 +67,11 @@ $list-md-header-color: #858585 !default;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.list[no-borders] {
|
||||
ion-header:after,
|
||||
.list[no-lines] {
|
||||
ion-header + .item:before {
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
.item:before,
|
||||
.item:after {
|
||||
border-width: 0;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<ion-toolbar><ion-title>List No Borders</ion-title></ion-toolbar>
|
||||
<ion-toolbar><ion-title>List No Lines</ion-title></ion-toolbar>
|
||||
|
||||
<ion-content class="outer-content">
|
||||
<ion-list no-borders>
|
||||
<ion-list no-lines>
|
||||
<ion-header>
|
||||
List Header
|
||||
</ion-header>
|
||||
Reference in New Issue
Block a user