Skip to content

Commit

Permalink
navbar-brand padding more flexible, closes thomaspark#388
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspark committed Jan 23, 2015
1 parent 9844094 commit 0a7f9e5
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 30 deletions.
2 changes: 1 addition & 1 deletion darkly/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

&-brand {
padding: 18.5px 15px 20.5px;
line-height: 1;
}

&-form {
Expand Down
4 changes: 2 additions & 2 deletions darkly/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* bootswatch v3.3.1+2
* Homepage: http://bootswatch.com
* Copyright 2012-2014 Thomas Park
* Copyright 2012-2015 Thomas Park
* Licensed under MIT
* Based on Bootstrap
*/
Expand Down Expand Up @@ -6338,7 +6338,7 @@ button.close {
color: #00bc8c;
}
.navbar-brand {
padding: 18.5px 15px 20.5px;
line-height: 1;
}
.navbar-form .form-control {
background-color: white;
Expand Down
4 changes: 2 additions & 2 deletions darkly/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion darkly/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

&-brand {
padding: 18.5px 15px 20.5px;
line-height: 1;
}

&-form {
Expand Down
2 changes: 1 addition & 1 deletion flatly/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

&-brand {
padding: 18.5px 15px 20.5px;
line-height: 1;
}
}

Expand Down
4 changes: 2 additions & 2 deletions flatly/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* bootswatch v3.3.1+2
* Homepage: http://bootswatch.com
* Copyright 2012-2014 Thomas Park
* Copyright 2012-2015 Thomas Park
* Licensed under MIT
* Based on Bootstrap
*/
Expand Down Expand Up @@ -6338,7 +6338,7 @@ button.close {
color: #18bc9c;
}
.navbar-brand {
padding: 18.5px 15px 20.5px;
line-height: 1;
}
.btn:active {
-webkit-box-shadow: none;
Expand Down
4 changes: 2 additions & 2 deletions flatly/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flatly/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

&-brand {
padding: 18.5px 15px 20.5px;
line-height: 1;
}
}

Expand Down
2 changes: 1 addition & 1 deletion journal/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

.navbar-brand {
font-size: 18px;
font-size: inherit;
font-weight: $headings-font-weight;
text-transform: uppercase;
}
Expand Down
4 changes: 2 additions & 2 deletions journal/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* bootswatch v3.3.1+2
* Homepage: http://bootswatch.com
* Copyright 2012-2014 Thomas Park
* Copyright 2012-2015 Thomas Park
* Licensed under MIT
* Based on Bootstrap
*/
Expand Down Expand Up @@ -6340,7 +6340,7 @@ button.close {
color: #eb6864;
}
.navbar-brand {
font-size: 18px;
font-size: inherit;
font-weight: 700;
text-transform: uppercase;
}
Expand Down
4 changes: 2 additions & 2 deletions journal/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion journal/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

.navbar-brand {
font-size: 18px;
font-size: inherit;
font-weight: @headings-font-weight;
text-transform: uppercase;
}
Expand Down
9 changes: 6 additions & 3 deletions readable/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@
}

&-nav > li > a {
$margin-vertical: ($navbar-height - 2*$padding-base-vertical - $line-height-computed - 2px) / 2;
padding: $padding-base-vertical $padding-base-horizontal;
margin: 12px 6px;
margin: $margin-vertical 6px;
border: 1px solid transparent;
border-radius: $border-radius-base;

&:hover {
border: 1px solid #ddd;
}
}

p
&-nav > .active > a,
&-nav > .active > a:hover {
border: 1px solid #ddd;
Expand All @@ -40,7 +41,9 @@
}

&-brand {
padding-top: 20px;
padding-top: ($navbar-height - 2*$font-size-large) / 2;
padding-bottom: ($navbar-height - 2*$font-size-large) / 2;
line-height: 1.9;
}
}

Expand Down
10 changes: 6 additions & 4 deletions readable/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* bootswatch v3.3.1+2
* Homepage: http://bootswatch.com
* Copyright 2012-2014 Thomas Park
* Copyright 2012-2015 Thomas Park
* Licensed under MIT
* Based on Bootstrap
*/
Expand Down Expand Up @@ -6336,14 +6336,14 @@ button.close {
}
.navbar-nav > li > a {
padding: 8px 12px;
margin: 12px 6px;
margin: 12.5px 6px;
border: 1px solid transparent;
border-radius: 4px;
}
.navbar-nav > li > a:hover {
border: 1px solid #ddd;
}
.navbar-nav > .active > a,
p .navbar-nav > .active > a,
.navbar-nav > .active > a:hover {
border: 1px solid #ddd;
}
Expand All @@ -6354,7 +6354,9 @@ button.close {
color: #333333;
}
.navbar-brand {
padding-top: 20px;
padding-top: 12.5px;
padding-bottom: 12.5px;
line-height: 1.9;
}
@media (max-width: 768px) {
.navbar .navbar-nav > li > a {
Expand Down
4 changes: 2 additions & 2 deletions readable/bootstrap.min.css

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions readable/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@
}

&-nav > li > a {
@margin-vertical: (@navbar-height - 2*@padding-base-vertical - @line-height-computed - 2px) / 2;
padding: @padding-base-vertical @padding-base-horizontal;
margin: 12px 6px;
margin: @margin-vertical 6px;
border: 1px solid transparent;
border-radius: @border-radius-base;

&:hover {
border: 1px solid #ddd;
}
}

p
&-nav > .active > a,
&-nav > .active > a:hover {
border: 1px solid #ddd;
Expand All @@ -40,7 +41,9 @@
}

&-brand {
padding-top: 20px;
padding-top: (@navbar-height - 2*@font-size-large) / 2;
padding-bottom: (@navbar-height - 2*@font-size-large) / 2;
line-height: 1.9;
}
}

Expand Down

0 comments on commit 0a7f9e5

Please sign in to comment.