Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
6993db18
Commit
6993db18
authored
11 years ago
by
ggam
Browse files
Options
Download
Email Patches
Plain Diff
Added button-size mixin
parent
175a1125
1 merge request
!9373
Added button-size mixin
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
less/buttons.less
+4
-8
less/buttons.less
less/mixins.less
+9
-0
less/mixins.less
with
13 additions
and
8 deletions
+13
-8
less/buttons.less
+
4
-
8
View file @
6993db18
...
@@ -121,17 +121,13 @@
...
@@ -121,17 +121,13 @@
// --------------------------------------------------
// --------------------------------------------------
.btn-lg {
.btn-lg {
padding: @padding-large-vertical @padding-large-horizontal;
// line-height: ensure even-numbered height of button next to large input
font-size: @font-size-large;
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
line-height: @line-height-large; // ensure even-numbered height of button next to large input
border-radius: @border-radius-large;
}
}
.btn-sm,
.btn-sm,
.btn-xs {
.btn-xs {
padding: @padding-small-vertical @padding-small-horizontal;
// line-height: ensure proper height of button next to small input
font-size: @font-size-small;
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
line-height: @line-height-small; // ensure proper height of button next to small input
border-radius: @border-radius-small;
}
}
.btn-xs {
.btn-xs {
padding: 3px 5px;
padding: 3px 5px;
...
...
This diff is collapsed.
Click to expand it.
less/mixins.less
+
9
-
0
View file @
6993db18
...
@@ -394,6 +394,15 @@
...
@@ -394,6 +394,15 @@
}
}
}
}
// Button sizes
// -------------------------
.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
padding: @padding-vertical @padding-horizontal;
font-size: @font-size;
line-height: @line-height;
border-radius: @border-radius;
}
// Labels
// Labels
// -------------------------
// -------------------------
.label-variant(@color) {
.label-variant(@color) {
...
...
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
Menu
Explore
Projects
Groups
Snippets