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
4a3ad1aa
Commit
4a3ad1aa
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
update responsive to use latest grid mixins
parent
324ebb59
7 merge requests
!1475
2.0 wip
,
!1403
warningText and warningBackground docs fix
,
!1351
2.0 wip - relative font sizes
,
!1315
[2.0-wip] Fix mustache glob when building
,
!1268
[wip-2.0] IE 7/8 Typehead JS fix
,
!1236
2.0 wip - Fix for issue #1202
,
!1219
Removed dotted outline on navbar dropdown menu
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bootstrap-responsive.css
+16
-16
bootstrap-responsive.css
bootstrap-responsive.min.css
+1
-1
bootstrap-responsive.min.css
bootstrap.css
+1
-1
bootstrap.css
lib/responsive.less
+8
-8
lib/responsive.less
with
26 additions
and
26 deletions
+26
-26
bootstrap-responsive.css
+
16
-
16
View file @
4a3ad1aa
...
...
@@ -150,40 +150,40 @@
width
:
748px
;
}
.offset1
{
margin-left
:
6
4px
;
margin-left
:
8
4px
;
}
.offset2
{
margin-left
:
1
2
8px
;
margin-left
:
1
4
8px
;
}
.offset3
{
margin-left
:
1
9
2px
;
margin-left
:
2
12px
;
}
.offset4
{
margin-left
:
2
5
6px
;
margin-left
:
2
7
6px
;
}
.offset5
{
margin-left
:
3
2
0px
;
margin-left
:
3
4
0px
;
}
.offset6
{
margin-left
:
38
4px
;
margin-left
:
40
4px
;
}
.offset7
{
margin-left
:
4
4
8px
;
margin-left
:
4
6
8px
;
}
.offset8
{
margin-left
:
5
1
2px
;
margin-left
:
5
3
2px
;
}
.offset9
{
margin-left
:
5
7
6px
;
margin-left
:
5
9
6px
;
}
.offset10
{
margin-left
:
6
4
0px
;
margin-left
:
6
6
0px
;
}
.offset11
{
margin-left
:
7
0
4px
;
margin-left
:
7
2
4px
;
}
.offset12
{
margin-left
:
7
6
8px
;
margin-left
:
7
8
8px
;
}
}
/*
...
...
@@ -196,11 +196,11 @@
@siteWidth: 1170px;
// Bring grid mixins to recalculate widths
.columns(@column
Span
: 1) {
width: (@gridColumnWidth * @column
Span
) + (@gridGutterWidth * (@column
Span
- 1));
.columns(@column
s
: 1) {
width: (@gridColumnWidth * @column
s
) + (@gridGutterWidth * (@column
s
- 1));
}
.offset(@column
Offset
: 1) {
margin-left: (@gridColumnWidth * @column
Offset
) + (@gridGutterWidth * (@column
Offset
- 1)) + @gridGutterWidth;
.offset(@column
s
: 1) {
margin-left: (@gridColumnWidth * @column
s
) + (@gridGutterWidth * (@column
s
- 1)) +
(
@gridGutterWidth
* 2)
;
}
.container {
...
...
This diff is collapsed.
Click to expand it.
bootstrap-responsive.min.css
+
1
-
1
View file @
4a3ad1aa
.hidden
{
display
:
none
;
visibility
:
hidden
;}
@media
(
max-width
:
480px
){
.navbar
.nav
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
180px
;
padding-top
:
40px
;
list-style
:
none
;}
.navbar
.nav
,
.navbar
.nav
>
li
:last-child
a
{
-webkit-border-radius
:
0
0
4px
0
;
-moz-border-radius
:
0
0
4px
0
;
border-radius
:
0
0
4px
0
;}
.navbar
.nav
>
li
{
float
:
none
;
display
:
none
;}
.navbar
.nav
>
li
>
a
{
float
:
none
;
background-color
:
#222
;}
.navbar
.nav
>
.active
{
display
:
block
;
position
:
absolute
;
top
:
0
;
left
:
0
;}
.navbar
.nav
>
.active
>
a
{
background-color
:
transparent
;}
.navbar
.nav
>
.active
>
a
:hover
{
background-color
:
#333
;}
.navbar
.nav
>
.active
>
a
:after
{
display
:
inline-block
;
width
:
0
;
height
:
0
;
margin-top
:
8px
;
margin-left
:
6px
;
text-indent
:
-99999px
;
vertical-align
:
top
;
border-left
:
4px
solid
transparent
;
border-right
:
4px
solid
transparent
;
border-top
:
4px
solid
#ffffff
;
filter
:
alpha
(
opacity
=
100
);
-moz-opacity
:
1
;
opacity
:
1
;
content
:
"↓"
;}
.navbar
.nav
:hover
>
li
{
display
:
block
;}
.navbar
.nav
:hover
>
li
>
a
:hover
{
background-color
:
#333
;}
.form-horizontal
.control-group
>
label
{
float
:
none
;
width
:
auto
;
padding-top
:
0
;
text-align
:
left
;}
.form-horizontal
.controls
{
margin-left
:
0
;}
.form-horizontal
.control-list
{
padding-top
:
0
;}
.form-horizontal
.form-actions
{
padding-left
:
0
;}
.modal
{
position
:
absolute
;
top
:
20px
;
left
:
20px
;
right
:
20px
;
width
:
auto
;
margin
:
0
;}
.modal.fade.in
{
top
:
auto
;}
.modal-header
.close
{
padding
:
10px
;}}
@media
(
max-width
:
768px
){
.navbar-fixed
{
position
:
absolute
;}
.navbar-fixed
.nav
{
float
:
none
;}
.container
{
width
:
auto
;
padding
:
0
20px
;}
.row
{
margin-left
:
0
;}
.row
>[
class
*=
"span"
]
{
float
:
none
;
display
:
block
;
width
:
auto
;
margin
:
0
;}}
@media
(
min-width
:
768px
)
and
(
max-width
:
940px
){
.container
{
width
:
748px
;}
.span1
{
width
:
44px
;}
.span2
{
width
:
108px
;}
.span3
{
width
:
172px
;}
.span4
{
width
:
236px
;}
.span5
{
width
:
300px
;}
.span6
{
width
:
364px
;}
.span7
{
width
:
428px
;}
.span8
{
width
:
492px
;}
.span9
{
width
:
556px
;}
.span10
{
width
:
620px
;}
.span11
{
width
:
684px
;}
.span12
{
width
:
748px
;}
.offset1
{
margin-left
:
6
4px
;}
.offset2
{
margin-left
:
1
2
8px
;}
.offset3
{
margin-left
:
1
9
2px
;}
.offset4
{
margin-left
:
2
5
6px
;}
.offset5
{
margin-left
:
3
2
0px
;}
.offset6
{
margin-left
:
38
4px
;}
.offset7
{
margin-left
:
4
4
8px
;}
.offset8
{
margin-left
:
5
1
2px
;}
.offset9
{
margin-left
:
5
7
6px
;}
.offset10
{
margin-left
:
6
4
0px
;}
.offset11
{
margin-left
:
7
0
4px
;}
.offset12
{
margin-left
:
7
6
8px
;}}
@media
(
max-width
:
480px
){
.navbar
.nav
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
180px
;
padding-top
:
40px
;
list-style
:
none
;}
.navbar
.nav
,
.navbar
.nav
>
li
:last-child
a
{
-webkit-border-radius
:
0
0
4px
0
;
-moz-border-radius
:
0
0
4px
0
;
border-radius
:
0
0
4px
0
;}
.navbar
.nav
>
li
{
float
:
none
;
display
:
none
;}
.navbar
.nav
>
li
>
a
{
float
:
none
;
background-color
:
#222
;}
.navbar
.nav
>
.active
{
display
:
block
;
position
:
absolute
;
top
:
0
;
left
:
0
;}
.navbar
.nav
>
.active
>
a
{
background-color
:
transparent
;}
.navbar
.nav
>
.active
>
a
:hover
{
background-color
:
#333
;}
.navbar
.nav
>
.active
>
a
:after
{
display
:
inline-block
;
width
:
0
;
height
:
0
;
margin-top
:
8px
;
margin-left
:
6px
;
text-indent
:
-99999px
;
vertical-align
:
top
;
border-left
:
4px
solid
transparent
;
border-right
:
4px
solid
transparent
;
border-top
:
4px
solid
#ffffff
;
filter
:
alpha
(
opacity
=
100
);
-moz-opacity
:
1
;
opacity
:
1
;
content
:
"↓"
;}
.navbar
.nav
:hover
>
li
{
display
:
block
;}
.navbar
.nav
:hover
>
li
>
a
:hover
{
background-color
:
#333
;}
.form-horizontal
.control-group
>
label
{
float
:
none
;
width
:
auto
;
padding-top
:
0
;
text-align
:
left
;}
.form-horizontal
.controls
{
margin-left
:
0
;}
.form-horizontal
.control-list
{
padding-top
:
0
;}
.form-horizontal
.form-actions
{
padding-left
:
0
;}
.modal
{
position
:
absolute
;
top
:
20px
;
left
:
20px
;
right
:
20px
;
width
:
auto
;
margin
:
0
;}
.modal.fade.in
{
top
:
auto
;}
.modal-header
.close
{
padding
:
10px
;}}
@media
(
max-width
:
768px
){
.navbar-fixed
{
position
:
absolute
;}
.navbar-fixed
.nav
{
float
:
none
;}
.container
{
width
:
auto
;
padding
:
0
20px
;}
.row
{
margin-left
:
0
;}
.row
>[
class
*=
"span"
]
{
float
:
none
;
display
:
block
;
width
:
auto
;
margin
:
0
;}}
@media
(
min-width
:
768px
)
and
(
max-width
:
940px
){
.container
{
width
:
748px
;}
.span1
{
width
:
44px
;}
.span2
{
width
:
108px
;}
.span3
{
width
:
172px
;}
.span4
{
width
:
236px
;}
.span5
{
width
:
300px
;}
.span6
{
width
:
364px
;}
.span7
{
width
:
428px
;}
.span8
{
width
:
492px
;}
.span9
{
width
:
556px
;}
.span10
{
width
:
620px
;}
.span11
{
width
:
684px
;}
.span12
{
width
:
748px
;}
.offset1
{
margin-left
:
8
4px
;}
.offset2
{
margin-left
:
1
4
8px
;}
.offset3
{
margin-left
:
2
12px
;}
.offset4
{
margin-left
:
2
7
6px
;}
.offset5
{
margin-left
:
3
4
0px
;}
.offset6
{
margin-left
:
40
4px
;}
.offset7
{
margin-left
:
4
6
8px
;}
.offset8
{
margin-left
:
5
3
2px
;}
.offset9
{
margin-left
:
5
9
6px
;}
.offset10
{
margin-left
:
6
6
0px
;}
.offset11
{
margin-left
:
7
2
4px
;}
.offset12
{
margin-left
:
7
8
8px
;}}
This diff is collapsed.
Click to expand it.
bootstrap.css
+
1
-
1
View file @
4a3ad1aa
...
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Wed Jan 25 10:4
6:38
PST 2012
* Date: Wed Jan 25 10:4
7:55
PST 2012
*/
article
,
aside
,
...
...
This diff is collapsed.
Click to expand it.
lib/responsive.less
+
8
-
8
View file @
4a3ad1aa
...
...
@@ -165,11 +165,11 @@
@siteWidth: 748px;
// Bring grid mixins to recalculate widths
.columns(@column
Span
: 1) {
width: (@gridColumnWidth * @column
Span
) + (@gridGutterWidth * (@column
Span
- 1));
.columns(@column
s
: 1) {
width: (@gridColumnWidth * @column
s
) + (@gridGutterWidth * (@column
s
- 1));
}
.offset(@column
Offset
: 1) {
margin-left: (@gridColumnWidth * @column
Offset
) + (@gridGutterWidth * (@column
Offset
- 1)) + @gridGutterWidth;
.offset(@column
s
: 1) {
margin-left: (@gridColumnWidth * @column
s
) + (@gridGutterWidth * (@column
s
- 1)) +
(
@gridGutterWidth
* 2)
;
}
// 16cols at 30px wide with 16px gutters
...
...
@@ -219,11 +219,11 @@
@siteWidth: 1170px;
// Bring grid mixins to recalculate widths
.columns(@column
Span
: 1) {
width: (@gridColumnWidth * @column
Span
) + (@gridGutterWidth * (@column
Span
- 1));
.columns(@column
s
: 1) {
width: (@gridColumnWidth * @column
s
) + (@gridGutterWidth * (@column
s
- 1));
}
.offset(@column
Offset
: 1) {
margin-left: (@gridColumnWidth * @column
Offset
) + (@gridGutterWidth * (@column
Offset
- 1)) + @gridGutterWidth;
.offset(@column
s
: 1) {
margin-left: (@gridColumnWidth * @column
s
) + (@gridGutterWidth * (@column
s
- 1)) +
(
@gridGutterWidth
* 2)
;
}
.container {
...
...
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