Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
e5322287
Commit
e5322287
authored
Jan 28, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more responsive tweaks for tablet
parent
4fa931e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
36 deletions
+33
-36
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap-responsive.css
+26
-29
less/responsive.less
less/responsive.less
+7
-7
No files found.
docs/assets/css/bootstrap-responsive.css
View file @
e5322287
...
@@ -89,81 +89,78 @@
...
@@ -89,81 +89,78 @@
}
}
@media
(
min-width
:
768px
)
and
(
max-width
:
940px
)
{
@media
(
min-width
:
768px
)
and
(
max-width
:
940px
)
{
.container
{
.container
{
width
:
7
48
px
;
width
:
7
24
px
;
padding-left
:
1
0px
;
padding-left
:
2
0px
;
padding-right
:
1
0px
;
padding-right
:
2
0px
;
}
}
.span1
{
.span1
{
width
:
4
4
px
;
width
:
4
2
px
;
}
}
.span2
{
.span2
{
width
:
10
8
px
;
width
:
10
4
px
;
}
}
.span3
{
.span3
{
width
:
1
72
px
;
width
:
1
66
px
;
}
}
.span4
{
.span4
{
width
:
2
36
px
;
width
:
2
28
px
;
}
}
.span5
{
.span5
{
width
:
30
0px
;
width
:
29
0px
;
}
}
.span6
{
.span6
{
width
:
3
64
px
;
width
:
3
52
px
;
}
}
.span7
{
.span7
{
width
:
4
28
px
;
width
:
4
14
px
;
}
}
.span8
{
.span8
{
width
:
4
92
px
;
width
:
4
76
px
;
}
}
.span9
{
.span9
{
width
:
5
56
px
;
width
:
5
38
px
;
}
}
.span10
{
.span10
{
width
:
6
2
0px
;
width
:
6
0
0px
;
}
}
.span11
{
.span11
{
width
:
6
84
px
;
width
:
6
62
px
;
}
}
.span12
{
.span12
{
width
:
7
48
px
;
width
:
7
24
px
;
}
}
.offset1
{
.offset1
{
margin-left
:
8
4
px
;
margin-left
:
8
2
px
;
}
}
.offset2
{
.offset2
{
margin-left
:
14
8
px
;
margin-left
:
14
4
px
;
}
}
.offset3
{
.offset3
{
margin-left
:
2
12
px
;
margin-left
:
2
06
px
;
}
}
.offset4
{
.offset4
{
margin-left
:
2
76
px
;
margin-left
:
2
68
px
;
}
}
.offset5
{
.offset5
{
margin-left
:
3
4
0px
;
margin-left
:
3
3
0px
;
}
}
.offset6
{
.offset6
{
margin-left
:
404
px
;
margin-left
:
392
px
;
}
}
.offset7
{
.offset7
{
margin-left
:
4
68
px
;
margin-left
:
4
54
px
;
}
}
.offset8
{
.offset8
{
margin-left
:
5
32
px
;
margin-left
:
5
16
px
;
}
}
.offset9
{
.offset9
{
margin-left
:
5
96
px
;
margin-left
:
5
78
px
;
}
}
.offset10
{
.offset10
{
margin-left
:
6
6
0px
;
margin-left
:
6
4
0px
;
}
}
.offset11
{
.offset11
{
margin-left
:
724px
;
margin-left
:
702px
;
}
.offset12
{
margin-left
:
788px
;
}
}
}
}
@media
(
max-width
:
940px
)
{
@media
(
max-width
:
940px
)
{
...
...
less/responsive.less
View file @
e5322287
...
@@ -135,10 +135,10 @@
...
@@ -135,10 +135,10 @@
@media (min-width: 768px) and (max-width: 940px) {
@media (min-width: 768px) and (max-width: 940px) {
// Reset grid variables
// Reset grid variables
@gridColumns: 1
6
;
@gridColumns: 1
2
;
@gridColumnWidth: 4
4
px;
@gridColumnWidth: 4
2
px;
@gridGutterWidth: 20px;
@gridGutterWidth: 20px;
@siteWidth: 7
48
px;
@siteWidth: 7
24
px;
// Bring grid mixins to recalculate widths
// Bring grid mixins to recalculate widths
.columns(@columns: 1) {
.columns(@columns: 1) {
...
@@ -148,11 +148,11 @@
...
@@ -148,11 +148,11 @@
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
}
}
// 1
6cols at 30px wide with 16
px gutters
// 1
2cols at 44px wide with 20
px gutters
.container {
.container {
width: @siteWidth;
width: @siteWidth;
padding-left:
1
0px;
padding-left:
2
0px;
padding-right:
1
0px;
padding-right:
2
0px;
}
}
// Default columns
// Default columns
...
@@ -181,7 +181,6 @@
...
@@ -181,7 +181,6 @@
.offset9 { .offset(9); }
.offset9 { .offset(9); }
.offset10 { .offset(10); }
.offset10 { .offset(10); }
.offset11 { .offset(11); }
.offset11 { .offset(11); }
.offset12 { .offset(12); }
}
}
...
@@ -295,6 +294,7 @@
...
@@ -295,6 +294,7 @@
display: block;
display: block;
}
}
// Hide everything in the navbar save .brand and toggle button */
.nav-collapse {
.nav-collapse {
overflow: hidden;
overflow: hidden;
height: 0;
height: 0;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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