Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
5f3856ce
Commit
5f3856ce
authored
7 years ago
by
Andres Galante
Committed by
Mark Otto
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
removes hardcoded value for nav-link padding
parent
8c87e019
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scss/_navbar.scss
+2
-2
scss/_navbar.scss
scss/_variables.scss
+2
-0
scss/_variables.scss
with
4 additions
and
2 deletions
+4
-2
scss/_navbar.scss
+
2
-
2
View file @
5f3856ce
...
@@ -168,8 +168,8 @@
...
@@ -168,8 +168,8 @@
}
}
.nav-link
{
.nav-link
{
padding-right
:
.5rem
;
padding-right
:
$navbar-nav-link-padding-x
;
padding-left
:
.5rem
;
padding-left
:
$navbar-nav-link-padding-x
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
scss/_variables.scss
+
2
-
0
View file @
5f3856ce
...
@@ -585,6 +585,8 @@ $nav-pills-link-active-bg: $component-active-bg !default;
...
@@ -585,6 +585,8 @@ $nav-pills-link-active-bg: $component-active-bg !default;
$navbar-padding-y
:
(
$spacer
/
2
)
!
default
;
$navbar-padding-y
:
(
$spacer
/
2
)
!
default
;
$navbar-padding-x
:
$spacer
!
default
;
$navbar-padding-x
:
$spacer
!
default
;
$navbar-nav-link-padding-x
:
.5rem
!
default
;
$navbar-brand-font-size
:
$font-size-lg
!
default
;
$navbar-brand-font-size
:
$font-size-lg
!
default
;
// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
$nav-link-height
:
(
$font-size-base
*
$line-height-base
+
$nav-link-padding-y
*
2
)
!
default
;
$nav-link-height
:
(
$font-size-base
*
$line-height-base
+
$nav-link-padding-y
*
2
)
!
default
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment