mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
feat: hairlines width can be configured with a sass variable
This commit is contained in:
@ -88,6 +88,6 @@ ion-action-sheet {
|
||||
&.hairlines {
|
||||
.action-sheet-title,
|
||||
.action-sheet-button {
|
||||
border-bottom-width: 0.55px;
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
}
|
||||
|
@ -247,15 +247,15 @@ ion-alert {
|
||||
&.hairlines {
|
||||
.alert-radio-group,
|
||||
.alert-checkbox-group {
|
||||
border-width: 0.55px;
|
||||
border-width: $hairlines-width;
|
||||
}
|
||||
|
||||
.alert-input {
|
||||
border-width: 0.55px;
|
||||
border-width: $hairlines-width;
|
||||
}
|
||||
|
||||
.alert-button {
|
||||
border-top-width: 0.55px;
|
||||
border-right-width: 0.55px;
|
||||
border-top-width: $hairlines-width;
|
||||
border-right-width: $hairlines-width;
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ hr {
|
||||
}
|
||||
|
||||
&.hairlines hr {
|
||||
height: 0.55px;
|
||||
height: $hairlines-width;
|
||||
}
|
||||
|
||||
@each $color-name, $color-value in $colors-ios {
|
||||
|
@ -131,6 +131,9 @@ $button-ios-small-icon-font-size: 1.3em !default;
|
||||
}
|
||||
}
|
||||
|
||||
&.hairlines .button-outline {
|
||||
border-width: $hairlines-width;
|
||||
}
|
||||
|
||||
// iOS Outline Button Color Mixin
|
||||
// --------------------------------------------------
|
||||
|
@ -86,7 +86,7 @@ $item-ios-sliding-content-bg: $list-ios-background-color !default;
|
||||
}
|
||||
|
||||
&.hairlines .item-inner {
|
||||
border-bottom-width: 0.55px;
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
|
||||
|
||||
|
@ -98,28 +98,28 @@ ion-list + ion-list {
|
||||
&.hairlines {
|
||||
|
||||
ion-list-header {
|
||||
border-bottom-width: 0.55px;
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
|
||||
ion-list {
|
||||
|
||||
ion-item-options {
|
||||
border-width: 0.55px;
|
||||
border-width: $hairlines-width;
|
||||
}
|
||||
|
||||
.item {
|
||||
.item-inner {
|
||||
border-width: 0.55px;
|
||||
border-width: $hairlines-width;
|
||||
}
|
||||
}
|
||||
|
||||
> .item:first-child {
|
||||
border-top-width: 0.55px;
|
||||
border-top-width: $hairlines-width;
|
||||
}
|
||||
|
||||
> .item:last-child,
|
||||
> ion-item-sliding:last-child .item {
|
||||
border-bottom-width: 0.55px;
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
}
|
||||
|
||||
@ -163,7 +163,7 @@ ion-list[inset] + ion-list[inset] {
|
||||
|
||||
&.hairlines ion-list[inset] {
|
||||
.item {
|
||||
border-width: 0.55px;
|
||||
border-width: $hairlines-width;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -175,7 +175,7 @@ ion-searchbar {
|
||||
// -----------------------------------------
|
||||
|
||||
&.hairlines ion-searchbar {
|
||||
border-bottom-width: 0.55px;
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
|
||||
|
||||
|
@ -97,11 +97,11 @@ ion-tabs[tabbarPlacement=top] tabbar {
|
||||
&.hairlines ion-tabs {
|
||||
|
||||
tabbar {
|
||||
border-top-width: 0.55px;
|
||||
border-top-width: $hairlines-width;
|
||||
}
|
||||
|
||||
&[tabbarPlacement="top"] tabbar {
|
||||
border-bottom-width: 0.55px;
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ ion-navbar-section {
|
||||
}
|
||||
|
||||
&.hairlines .toolbar-background {
|
||||
border-bottom-width: 0.55px;
|
||||
border-bottom-width: $hairlines-width;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,3 +13,7 @@ $include-rtl: true !default;
|
||||
|
||||
// Global font path
|
||||
$font-path: "../fonts" !default;
|
||||
|
||||
|
||||
// Hairline width
|
||||
$hairlines-width: 0.55px !default;
|
||||
|
Reference in New Issue
Block a user