Skip to content

Commit

Permalink
Merge pull request #392 from twbs/tab-padding
Browse files Browse the repository at this point in the history
Fix padding for android tab bar
  • Loading branch information
connors committed Mar 3, 2014
2 parents 6f0b519 + 2cc5013 commit bf64cad
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 11 deletions.
13 changes: 11 additions & 2 deletions dist/ratchet-theme-android.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,21 @@ a:active {
padding-top: 50px;
}

.bar-header-secondary ~ .content {
padding-top: 100px;
}

.bar-tab ~ .content {
padding-top: 50px;
padding-bottom: 0;
}

.bar-footer ~ .content {
padding-bottom: 50px;
}

.bar-header-secondary ~ .content {
padding-top: 100px;
.bar-footer-secondary ~ .content {
padding-bottom: 100px;
}

.btn {
Expand Down
11 changes: 9 additions & 2 deletions docs/assets/css/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -1615,11 +1615,18 @@ hr {
.platform-android .bar-nav ~ .content {
padding-top: 50px;
}
.platform-android .bar-header-secondary ~ .content {
padding-top: 100px;
}
.platform-android .bar-tab ~ .content {
padding-top: 50px;
padding-bottom: 0;
}
.platform-android .bar-footer ~ .content {
padding-bottom: 50px;
}
.platform-android .bar-header-secondary ~ .content {
padding-top: 100px;
.platform-android .bar-footer-secondary ~ .content {
padding-bottom: 100px;
}
.platform-android .btn {
padding: 8px 15px;
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/docs.min.css

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions docs/dist/ratchet-theme-android.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,21 @@ a:active {
padding-top: 50px;
}

.bar-header-secondary ~ .content {
padding-top: 100px;
}

.bar-tab ~ .content {
padding-top: 50px;
padding-bottom: 0;
}

.bar-footer ~ .content {
padding-bottom: 50px;
}

.bar-header-secondary ~ .content {
padding-top: 100px;
.bar-footer-secondary ~ .content {
padding-bottom: 100px;
}

.btn {
Expand Down
14 changes: 10 additions & 4 deletions sass/theme-android.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,19 @@ a {
.bar-nav ~ .content {
padding-top: $bar-base-height;
}
.bar-tab ~ .content {
padding-bottom: $bar-tab-height;
}
.bar-header-secondary ~ .content {
padding-top: $bar-base-height*2;
}

.bar-tab ~ .content {
padding-top: $bar-tab-height;
padding-bottom: 0;
}
.bar-footer ~ .content {
padding-bottom: $bar-base-height;
}
.bar-footer-secondary ~ .content {
padding-bottom: ($bar-base-height*2);
}

// Buttons
// --------------------------------------------------
Expand Down

0 comments on commit bf64cad

Please sign in to comment.