mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(list-header): add proper styles for list header
This commit is contained in:
@ -5,10 +5,8 @@
|
|||||||
// iOS List Header
|
// iOS List Header
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// deprecated
|
|
||||||
$list-ios-header-padding-left: $item-ios-padding-start !default;
|
|
||||||
/// @prop - Padding start of the header in a list
|
/// @prop - Padding start of the header in a list
|
||||||
$list-ios-header-padding-start: $list-ios-header-padding-left !default;
|
$list-ios-header-padding-start: $item-ios-padding-start !default;
|
||||||
|
|
||||||
/// @prop - Border bottom of the header in a list
|
/// @prop - Border bottom of the header in a list
|
||||||
$list-ios-header-border-bottom: $hairlines-width solid $list-ios-border-color !default;
|
$list-ios-header-border-bottom: $hairlines-width solid $list-ios-border-color !default;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@import "../../themes/ionic.globals.ios";
|
@import "../../themes/ionic.globals.md";
|
||||||
@import "./list-header";
|
@import "./list-header";
|
||||||
|
|
||||||
// Material Design List Header
|
// Material Design List Header
|
||||||
@ -7,10 +7,8 @@
|
|||||||
/// @prop - Margin bottom of the header in a list
|
/// @prop - Margin bottom of the header in a list
|
||||||
$list-md-header-margin-bottom: 13px !default;
|
$list-md-header-margin-bottom: 13px !default;
|
||||||
|
|
||||||
// deprecated
|
|
||||||
$list-md-header-padding-left: $item-md-padding-start !default;
|
|
||||||
/// @prop - Padding start of the header in a list
|
/// @prop - Padding start of the header in a list
|
||||||
$list-md-header-padding-start: $list-md-header-padding-left !default;
|
$list-md-header-padding-start: $item-md-padding-start !default;
|
||||||
|
|
||||||
/// @prop - Minimum height of the header in a list
|
/// @prop - Minimum height of the header in a list
|
||||||
$list-md-header-min-height: 4.5rem !default;
|
$list-md-header-min-height: 4.5rem !default;
|
||||||
|
@ -3,6 +3,11 @@ import { Component } from '@stencil/core';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
tag: 'ion-list-header',
|
tag: 'ion-list-header',
|
||||||
|
styleUrls: {
|
||||||
|
ios: 'list-header.ios.scss',
|
||||||
|
md: 'list-header.md.scss',
|
||||||
|
wp: 'list-header.wp.scss'
|
||||||
|
},
|
||||||
host: {
|
host: {
|
||||||
theme: 'list-header'
|
theme: 'list-header'
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,8 @@
|
|||||||
// Windows List Header
|
// Windows List Header
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// deprecated
|
|
||||||
$list-wp-header-padding-left: $item-wp-padding-start !default;
|
|
||||||
/// @prop - Padding start of the header in a list
|
/// @prop - Padding start of the header in a list
|
||||||
$list-wp-header-padding-start: $list-wp-header-padding-left !default;
|
$list-wp-header-padding-start: $item-wp-padding-start !default;
|
||||||
|
|
||||||
/// @prop - Border bottom of the header in a list
|
/// @prop - Border bottom of the header in a list
|
||||||
$list-wp-header-border-bottom: 1px solid $list-wp-border-color !default;
|
$list-wp-header-border-bottom: 1px solid $list-wp-border-color !default;
|
||||||
|
Reference in New Issue
Block a user