aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-09-21 16:04:37 -0700
committerMark Otto <[email protected]>2014-09-21 16:04:37 -0700
commitd1660ad0788fa4e9b0d072323c1d70f9c6f5dbf2 (patch)
tree1cbc830c380b8cda342eccd37dfa1732600d5d19 /less
parent2cc9e773c57e389e8fcb797148fb850433144c3e (diff)
downloadbootstrap-d1660ad0788fa4e9b0d072323c1d70f9c6f5dbf2.tar.xz
bootstrap-d1660ad0788fa4e9b0d072323c1d70f9c6f5dbf2.zip
Swap -small and -large variables for -sm and -lg
Diffstat (limited to 'less')
-rw-r--r--less/_buttons.less6
-rw-r--r--less/_code.less2
-rw-r--r--less/_dropdown.less2
-rw-r--r--less/_forms.less32
-rw-r--r--less/_input-group.less12
-rw-r--r--less/_jumbotron.less2
-rw-r--r--less/_modal.less2
-rw-r--r--less/_navbar.less6
-rw-r--r--less/_pagination.less4
-rw-r--r--less/_popover.less4
-rw-r--r--less/_scaffolding.less2
-rw-r--r--less/_tooltip.less2
-rw-r--r--less/_type.less2
-rw-r--r--less/_variables.less28
14 files changed, 53 insertions, 53 deletions
diff --git a/less/_buttons.less b/less/_buttons.less
index c30a07490..bef3779a4 100644
--- a/less/_buttons.less
+++ b/less/_buttons.less
@@ -122,14 +122,14 @@
.btn-lg {
// line-height: ensure even-numbered height of button next to large input
- .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
+ .button-size(@padding-lg-vertical; @padding-lg-horizontal; @font-size-lg; @line-height-lg; @border-radius-lg);
}
.btn-sm {
// line-height: ensure proper height of button next to small input
- .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
+ .button-size(@padding-sm-vertical; @padding-smhorizontal; @font-size-sm; @line-height-sm; @border-radius-sm);
}
.btn-xs {
- .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-xs; @line-height-small; @border-radius-small);
+ .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-xs; @line-height-sm; @border-radius-sm);
}
diff --git a/less/_code.less b/less/_code.less
index 4faccc50d..1385e18a2 100644
--- a/less/_code.less
+++ b/less/_code.less
@@ -26,7 +26,7 @@ kbd {
font-size: 90%;
color: @kbd-color;
background-color: @kbd-bg;
- .border-radius(@border-radius-small);
+ .border-radius(@border-radius-sm);
.box-shadow(inset 0 -.1rem 0 rgba(0,0,0,.25));
kbd {
diff --git a/less/_dropdown.less b/less/_dropdown.less
index a4bd721e4..1e094d7d3 100644
--- a/less/_dropdown.less
+++ b/less/_dropdown.less
@@ -144,7 +144,7 @@
.dropdown-header {
display: block;
padding: 3px 20px;
- font-size: @font-size-small;
+ font-size: @font-size-sm;
line-height: @line-height-base;
color: @dropdown-header-color;
white-space: nowrap; // as with > li > a
diff --git a/less/_forms.less b/less/_forms.less
index 302216556..5b1187c5a 100644
--- a/less/_forms.less
+++ b/less/_forms.less
@@ -185,12 +185,12 @@ input[type="month"] {
line-height: @line-height-base ~"\0";
&.input-sm {
- line-height: @input-height-small;
- line-height: @line-height-small ~"\0";
+ line-height: @input-height-sm;
+ line-height: @line-height-sm ~"\0";
}
&.input-lg {
- line-height: @input-height-large;
- line-height: @line-height-large ~"\0";
+ line-height: @input-height-lg;
+ line-height: @line-height-lg ~"\0";
}
}
@@ -202,10 +202,10 @@ _:-ms-fullscreen, :root input[type="month"] {
line-height: @line-height-base;
&.input-sm {
- line-height: @line-height-small;
+ line-height: @line-height-sm;
}
&.input-lg {
- line-height: @line-height-large;
+ line-height: @line-height-lg;
}
}
@@ -328,12 +328,12 @@ input[type="checkbox"] {
.input-sm,
.form-group-sm .form-control {
- .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
+ .input-size(@input-height-sm; @padding-sm-vertical; @padding-smhorizontal; @font-size-sm; @line-height-sm; @input-border-radius-sm);
}
.input-lg,
.form-group-lg .form-control {
- .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large);
+ .input-size(@input-height-lg; @padding-lg-vertical; @padding-lg-horizontal; @font-size-lg; @line-height-lg; @input-border-radius-lg);
}
@@ -364,14 +364,14 @@ input[type="checkbox"] {
pointer-events: none;
}
.input-lg + .form-control-feedback {
- width: @input-height-large;
- height: @input-height-large;
- line-height: @input-height-large;
+ width: @input-height-lg;
+ height: @input-height-lg;
+ line-height: @input-height-lg;
}
.input-sm + .form-control-feedback {
- width: @input-height-small;
- height: @input-height-small;
- line-height: @input-height-small;
+ width: @input-height-sm;
+ height: @input-height-sm;
+ line-height: @input-height-sm;
}
// Feedback states
@@ -548,14 +548,14 @@ input[type="checkbox"] {
.form-group-lg {
@media (min-width: @screen-sm-min) {
.control-label {
- padding-top: ((@padding-large-vertical * @line-height-large) + 1);
+ padding-top: ((@padding-lg-vertical * @line-height-lg) + 1);
}
}
}
.form-group-sm {
@media (min-width: @screen-sm-min) {
.control-label {
- padding-top: (@padding-small-vertical + 1);
+ padding-top: (@padding-sm-vertical + 1);
}
}
}
diff --git a/less/_input-group.less b/less/_input-group.less
index 2357a52d7..ea74963d9 100644
--- a/less/_input-group.less
+++ b/less/_input-group.less
@@ -83,14 +83,14 @@
// Sizing
&.input-sm {
- padding: @padding-small-vertical @padding-small-horizontal;
- font-size: @font-size-small;
- .border-radius(@border-radius-small);
+ padding: @padding-sm-vertical @padding-smhorizontal;
+ font-size: @font-size-sm;
+ .border-radius(@border-radius-sm);
}
&.input-lg {
- padding: @padding-large-vertical @padding-large-horizontal;
- font-size: @font-size-large;
- .border-radius(@border-radius-large);
+ padding: @padding-lg-vertical @padding-lg-horizontal;
+ font-size: @font-size-lg;
+ .border-radius(@border-radius-lg);
}
// Nuke default margins from checkboxes and radios to vertically center within.
diff --git a/less/_jumbotron.less b/less/_jumbotron.less
index c59690550..26ff88321 100644
--- a/less/_jumbotron.less
+++ b/less/_jumbotron.less
@@ -11,7 +11,7 @@
.container &,
.container-fluid & {
- .border-radius(@border-radius-large); // Only round corners at higher resolutions if contained in a container
+ .border-radius(@border-radius-lg); // Only round corners at higher resolutions if contained in a container
}
.container {
diff --git a/less/_modal.less b/less/_modal.less
index 37b6d1ea4..ed1ea48d6 100644
--- a/less/_modal.less
+++ b/less/_modal.less
@@ -52,7 +52,7 @@
position: relative;
background-color: @modal-content-bg;
border: 1px solid @modal-content-border-color;
- .border-radius(@border-radius-large);
+ .border-radius(@border-radius-lg);
.box-shadow(0 3px 9px rgba(0,0,0,.5));
background-clip: padding-box;
// Remove focus outline from opened modal
diff --git a/less/_navbar.less b/less/_navbar.less
index 0c8959a08..1df0aa8e4 100644
--- a/less/_navbar.less
+++ b/less/_navbar.less
@@ -167,7 +167,7 @@
padding: .55rem .75rem;
margin-right: @spacer;
margin-bottom: 0; // For headings
- font-size: @font-size-large;
+ font-size: @font-size-lg;
line-height: @line-height-computed;
/*height: @navbar-height;*/
@@ -196,7 +196,7 @@
padding: .55rem .75rem;
margin-right: @spacer;
margin-bottom: 0; // For headings
- font-size: @font-size-large;
+ font-size: @font-size-lg;
line-height: @line-height-computed;
background: none;
border: 0;
@@ -366,7 +366,7 @@
.navbar-vertical-align(@input-height-base);
&.btn-sm {
- .navbar-vertical-align(@input-height-small);
+ .navbar-vertical-align(@input-height-sm);
}
&.btn-xs {
.navbar-vertical-align(22);
diff --git a/less/_pagination.less b/less/_pagination.less
index b2856ae60..333b85461 100644
--- a/less/_pagination.less
+++ b/less/_pagination.less
@@ -79,10 +79,10 @@
// Large
.pagination-lg {
- .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
+ .pagination-size(@padding-lg-vertical; @padding-lg-horizontal; @font-size-lg; @border-radius-lg);
}
// Small
.pagination-sm {
- .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
+ .pagination-size(@padding-sm-vertical; @padding-smhorizontal; @font-size-sm; @border-radius-sm);
}
diff --git a/less/_popover.less b/less/_popover.less
index 00385fb29..9df04d2c8 100644
--- a/less/_popover.less
+++ b/less/_popover.less
@@ -19,7 +19,7 @@
background-color: @popover-bg;
background-clip: padding-box;
border: 1px solid @popover-border-color;
- .border-radius(@border-radius-large);
+ .border-radius(@border-radius-lg);
.box-shadow(0 5px 10px rgba(0,0,0,.2));
// Overrides for proper insertion
@@ -38,7 +38,7 @@
font-size: @font-size-base;
background-color: @popover-title-bg;
border-bottom: 1px solid darken(@popover-title-bg, 5%);
- border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0;
+ border-radius: (@border-radius-lg - 1) (@border-radius-lg - 1) 0 0;
}
.popover-content {
diff --git a/less/_scaffolding.less b/less/_scaffolding.less
index 2cbe0abb1..4a5db6ab2 100644
--- a/less/_scaffolding.less
+++ b/less/_scaffolding.less
@@ -82,7 +82,7 @@ img {
// Rounded corners
.img-rounded {
- .border-radius(@border-radius-large);
+ .border-radius(@border-radius-lg);
}
// Image thumbnails
diff --git a/less/_tooltip.less b/less/_tooltip.less
index 28c252aad..5561b4db6 100644
--- a/less/_tooltip.less
+++ b/less/_tooltip.less
@@ -9,7 +9,7 @@
z-index: @zindex-tooltip;
display: block;
visibility: visible;
- font-size: @font-size-small;
+ font-size: @font-size-sm;
line-height: 1.4;
opacity: 0;
diff --git a/less/_type.less b/less/_type.less
index 2b331555d..1bc498a3a 100644
--- a/less/_type.less
+++ b/less/_type.less
@@ -71,7 +71,7 @@ p {
// Ex: (12px small font / 14px base font) * 100% = about 85%
small,
.small {
- font-size: floor((100% * @font-size-small / @font-size-base));
+ font-size: floor((100% * @font-size-sm / @font-size-base));
}
mark,
diff --git a/less/_variables.less b/less/_variables.less
index 02e5818ea..b2abec319 100644
--- a/less/_variables.less
+++ b/less/_variables.less
@@ -62,8 +62,8 @@
@font-size-root: 16px;
//** Sets the `<body>` and more to the root pixel value.
@font-size-base: 1rem;
-@font-size-large: 1.25rem;
-@font-size-small: .85rem;
+@font-size-lg: 1.25rem;
+@font-size-sm: .85rem;
@font-size-xs: .75rem;
@font-size-h1: 3rem;
@@ -92,21 +92,21 @@
@padding-base-vertical: .5rem;
@padding-base-horizontal: .75rem;
-@padding-large-vertical: .75rem;
-@padding-large-horizontal: 1.5rem;
+@padding-lg-vertical: .75rem;
+@padding-lg-horizontal: 1.5rem;
-@padding-small-vertical: .3rem;
-@padding-small-horizontal: .75rem;
+@padding-sm-vertical: .3rem;
+@padding-smhorizontal: .75rem;
@padding-xs-vertical: .2rem;
@padding-xs-horizontal: .5rem;
-@line-height-large: 1.33;
-@line-height-small: 1.5;
+@line-height-lg: 1.33;
+@line-height-sm: 1.5;
@border-radius-base: .25rem;
-@border-radius-large: .3rem;
-@border-radius-small: .2rem;
+@border-radius-lg: .3rem;
+@border-radius-sm: .2rem;
//** Global color for active items (e.g., navs or dropdowns).
@component-active-color: #fff;
@@ -191,9 +191,9 @@
//** Default `.form-control` border radius
@input-border-radius: @border-radius-base;
//** Large `.form-control` border radius
-@input-border-radius-large: @border-radius-large;
+@input-border-radius-lg: @border-radius-lg;
//** Small `.form-control` border radius
-@input-border-radius-small: @border-radius-small;
+@input-border-radius-sm: @border-radius-sm;
//** Border color for inputs on focus
@input-border-focus: #66afe9;
@@ -205,9 +205,9 @@
//** Default `.form-control` height
@input-height-base: ((@font-size-base * @line-height-base) + (@padding-base-vertical * 2) + (@border-width * 2));
//** Large `.form-control` height
-@input-height-large: ((@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + (@border-width * 2));
+@input-height-lg: ((@font-size-lg * @line-height-lg) + (@padding-lg-vertical * 2) + (@border-width * 2));
//** Small `.form-control` height
-@input-height-small: ((@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + (@border-width * 2));
+@input-height-sm: ((@font-size-sm * @line-height-sm) + (@padding-sm-vertical * 2) + (@border-width * 2));
@legend-color: @gray-dark;
@legend-border-color: #e5e5e5;