Skip to content

Commit

Permalink
feat: hairlines width can be configured with a sass variable
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Feb 7, 2016
1 parent 5ac1cf9 commit 06b3a5b
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ionic/components/action-sheet/action-sheet.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ ion-action-sheet {
&.hairlines {
.action-sheet-title,
.action-sheet-button {
border-bottom-width: 0.55px;
border-bottom-width: $hairlines-width;
}
}
8 changes: 4 additions & 4 deletions ionic/components/alert/alert.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion ionic/components/app/app.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ hr {
}

&.hairlines hr {
height: 0.55px;
height: $hairlines-width;
}

@each $color-name, $color-value in $colors-ios {
Expand Down
3 changes: 3 additions & 0 deletions ionic/components/button/button.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
// --------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion ionic/components/item/item.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
12 changes: 6 additions & 6 deletions ionic/components/list/list.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -163,7 +163,7 @@ ion-list[inset] + ion-list[inset] {

&.hairlines ion-list[inset] {
.item {
border-width: 0.55px;
border-width: $hairlines-width;
}
}

Expand Down
2 changes: 1 addition & 1 deletion ionic/components/searchbar/searchbar.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ ion-searchbar {
// -----------------------------------------

&.hairlines ion-searchbar {
border-bottom-width: 0.55px;
border-bottom-width: $hairlines-width;
}


Expand Down
4 changes: 2 additions & 2 deletions ionic/components/tabs/tabs.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
Expand Down
2 changes: 1 addition & 1 deletion ionic/components/toolbar/toolbar.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ion-navbar-section {
}

&.hairlines .toolbar-background {
border-bottom-width: 0.55px;
border-bottom-width: $hairlines-width;
}


Expand Down
4 changes: 4 additions & 0 deletions ionic/globals.core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ $include-rtl: true !default;

// Global font path
$font-path: "../fonts" !default;


// Hairline width
$hairlines-width: 0.55px !default;

0 comments on commit 06b3a5b

Please sign in to comment.