Skip to content

Commit

Permalink
Fix the not properly distributed custom ActionBar title and iOS buttons
Browse files Browse the repository at this point in the history
Fix the iOS landscape custom ActionBar items displacement
Return the thumb/-thumb classes for Listview (Playground compatibility)
Make the outline button borders use accent color
  • Loading branch information
bundyo committed Oct 16, 2019
1 parent d64ac3f commit cb11bb2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
25 changes: 20 additions & 5 deletions src/scss/mixins/components/_action-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
#{$selectors} {
font-size: const(btn-font-size);

@at-root .ns-ios & {
margin-left: 20;
vertical-align: stretch;
horizontal-align: stretch;
}

@at-root .ns-landscape.ns-ios & {
margin-left: 100;
padding: 0 5;
}

#{$item-selectors} {
android-elevation: 0;
font-size: const(font-size);
Expand Down Expand Up @@ -45,7 +56,7 @@
}
}

> Label {
@at-root .ns-android & > Label {
width: 100%;
}

Expand All @@ -56,8 +67,8 @@
}

> GridLayout {
padding: 0 4;
width: 100%;
height: 100%;

> StackLayout {
padding: 0;
Expand All @@ -73,9 +84,13 @@
horizontal-align: right;
}

@at-root .ns-android & Button {
padding: 12 16;
margin: 0;
@at-root .ns-android & {
padding: 0 4;

Button {
padding: 12 16;
margin: 0;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/scss/mixins/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
#{if($compat, '&-outline', '&.-outline')} {
@include colorize(
$background-color: background,
$contrasted-border-color: accent background 20%
$border-color: accent
);

#{if($compat, '&.btn-active, &:active', '&:active, &.-active')} {
Expand Down
14 changes: 7 additions & 7 deletions src/scss/mixins/components/_list-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
}
}

@if $compat {
.thumb {
stretch: fill;
width: 40;
height: 40;
margin-right: 16;
}
.thumb#{if($compat, '', ', .-thumb')} {
stretch: fill;
width: 40;
height: 40;
margin-right: 16;
}

@if $compat {
.list-group-item-heading {
margin-bottom: 5;
}
Expand Down

0 comments on commit cb11bb2

Please sign in to comment.