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
cfc1c8a8
Commit
cfc1c8a8
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
clean up responsive media queries and docs css
parent
09b9b8a5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
docs/assets/css/bootstrap-responsive.css
+6
-4
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap.css
+2
-2
docs/assets/css/bootstrap.css
docs/assets/css/docs.css
+19
-40
docs/assets/css/docs.css
less/responsive.less
+8
-4
less/responsive.less
less/sprites.less
+1
-1
less/sprites.less
with
36 additions
and
51 deletions
+36
-51
docs/assets/bootstrap.zip
+
0
-
0
View file @
cfc1c8a8
No preview for this file type
This diff is collapsed.
Click to expand it.
docs/assets/css/bootstrap-responsive.css
+
6
-
4
View file @
cfc1c8a8
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
visibility
:
hidden
;
visibility
:
hidden
;
}
}
@media
(
max-width
:
480px
)
{
@media
(
max-width
:
480px
)
{
.nav-collapse
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
}
.page-header
h1
small
{
.page-header
h1
small
{
display
:
block
;
display
:
block
;
line-height
:
18px
;
line-height
:
18px
;
...
@@ -99,7 +102,7 @@
...
@@ -99,7 +102,7 @@
margin
:
0
;
margin
:
0
;
}
}
}
}
@media
(
min-width
:
768px
)
and
(
max-width
:
9
4
0px
)
{
@media
(
min-width
:
768px
)
and
(
max-width
:
9
8
0px
)
{
.row
{
.row
{
margin-left
:
-20px
;
margin-left
:
-20px
;
*
zoom
:
1
;
*
zoom
:
1
;
...
@@ -275,7 +278,7 @@
...
@@ -275,7 +278,7 @@
width
:
714px
;
width
:
714px
;
}
}
}
}
@media
(
max-width
:
9
4
0px
)
{
@media
(
max-width
:
9
8
0px
)
{
body
{
body
{
padding-top
:
0
;
padding-top
:
0
;
}
}
...
@@ -373,10 +376,9 @@
...
@@ -373,10 +376,9 @@
.nav-collapse
{
.nav-collapse
{
overflow
:
hidden
;
overflow
:
hidden
;
height
:
0
;
height
:
0
;
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
}
}
}
}
@media
(
min-width
:
9
4
0px
)
{
@media
(
min-width
:
9
8
0px
)
{
.nav-collapse.collapse
{
.nav-collapse.collapse
{
height
:
auto
!important
;
height
:
auto
!important
;
}
}
...
...
This diff is collapsed.
Click to expand it.
docs/assets/css/bootstrap.css
+
2
-
2
View file @
cfc1c8a8
...
@@ -1112,7 +1112,7 @@ table .span12 {
...
@@ -1112,7 +1112,7 @@ table .span12 {
width
:
924px
;
width
:
924px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
[
class
*
=
"icon-"
]
{
[
class
^
=
"icon-"
]
{
display
:
inline-block
;
display
:
inline-block
;
width
:
14px
;
width
:
14px
;
height
:
14px
;
height
:
14px
;
...
@@ -1122,7 +1122,7 @@ table .span12 {
...
@@ -1122,7 +1122,7 @@ table .span12 {
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
*
margin-right
:
.3em
;
*
margin-right
:
.3em
;
}
}
[
class
*
=
"icon-"
]
:last-child
{
[
class
^
=
"icon-"
]
:last-child
{
*
margin-left
:
0
;
*
margin-left
:
0
;
}
}
.icon-white
{
.icon-white
{
...
...
This diff is collapsed.
Click to expand it.
docs/assets/css/docs.css
+
19
-
40
View file @
cfc1c8a8
...
@@ -61,17 +61,13 @@ hr.soften {
...
@@ -61,17 +61,13 @@ hr.soften {
position
:
relative
;
position
:
relative
;
}
}
.jumbotron
h1
{
.jumbotron
h1
{
margin-bottom
:
9px
;
font-size
:
81px
;
font-size
:
81px
;
letter-spacing
:
-1px
;
letter-spacing
:
-1px
;
line-height
:
1
;
line-height
:
1
;
}
}
.jumbotron
p
{
.jumbotron
p
{
margin-bottom
:
18px
;
margin-bottom
:
18px
;
font-size
:
25px
;
font-weight
:
300
;
font-weight
:
300
;
line-height
:
36px
;
color
:
#333
;
}
}
.jumbotron
.btn-large
{
.jumbotron
.btn-large
{
font-size
:
20px
;
font-size
:
20px
;
...
@@ -82,10 +78,6 @@ hr.soften {
...
@@ -82,10 +78,6 @@ hr.soften {
-moz-border-radius
:
6px
;
-moz-border-radius
:
6px
;
border-radius
:
6px
;
border-radius
:
6px
;
}
}
.jumbotron
.download-info
{
font-size
:
16px
;
color
:
#999
;
}
/* Masthead (docs home) */
/* Masthead (docs home) */
.masthead
{
.masthead
{
...
@@ -100,7 +92,8 @@ hr.soften {
...
@@ -100,7 +92,8 @@ hr.soften {
margin-bottom
:
18px
;
margin-bottom
:
18px
;
}
}
.masthead
p
{
.masthead
p
{
margin
:
0
5%
18px
;
margin-left
:
5%
;
margin-right
:
5%
;
font-size
:
30px
;
font-size
:
30px
;
line-height
:
36px
;
line-height
:
36px
;
}
}
...
@@ -111,11 +104,7 @@ hr.soften {
...
@@ -111,11 +104,7 @@ hr.soften {
/* supporting docs pages */
/* supporting docs pages */
.subhead
{
.subhead
{
padding-bottom
:
0
;
padding-bottom
:
0
;
border-bottom
:
0
;
margin-bottom
:
9px
;
}
.subhead
h1
,
.subhead
p
{
margin-right
:
0
;
}
}
.subhead
h1
{
.subhead
h1
{
font-size
:
54px
;
font-size
:
54px
;
...
@@ -184,8 +173,8 @@ hr.soften {
...
@@ -184,8 +173,8 @@ hr.soften {
border-radius
:
0
0
4px
4px
;
border-radius
:
0
0
4px
4px
;
}
}
/* Fixed subnav on scroll, but only for 9
4
0px and up (sorry IE!) */
/* Fixed subnav on scroll, but only for 9
8
0px and up (sorry IE!) */
@media
(
min-width
:
9
4
0px
)
{
@media
(
min-width
:
9
8
0px
)
{
.subnav-fixed
{
.subnav-fixed
{
position
:
fixed
;
position
:
fixed
;
top
:
40px
;
top
:
40px
;
...
@@ -228,12 +217,6 @@ hr.soften {
...
@@ -228,12 +217,6 @@ hr.soften {
.quick-links
li
{
.quick-links
li
{
display
:
inline
;
display
:
inline
;
margin
:
0
5px
;
margin
:
0
5px
;
}
.quick-links
.divider
{
color
:
#999
;
}
.quick-links
strong
{
font-weight
:
normal
;
color
:
#999
;
color
:
#999
;
}
}
.quick-links
.github-btn
,
.quick-links
.github-btn
,
...
@@ -638,10 +621,6 @@ form.well {
...
@@ -638,10 +621,6 @@ form.well {
.quick-links
{
.quick-links
{
margin
:
40px
0
0
;
margin
:
40px
0
0
;
}
}
.quick-links
li
{
margin-top
:
5px
;
margin-bottom
:
5px
;
}
/* hide the bullets on mobile since our horizontal space is limited */
/* hide the bullets on mobile since our horizontal space is limited */
.quick-links
.divider
{
.quick-links
.divider
{
display
:
none
;
display
:
none
;
...
@@ -654,7 +633,7 @@ form.well {
...
@@ -654,7 +633,7 @@ form.well {
.example-sites
>
li
{
.example-sites
>
li
{
float
:
none
;
float
:
none
;
display
:
block
;
display
:
block
;
max-width
:
30
0px
;
max-width
:
28
0px
;
margin
:
0
auto
18px
;
margin
:
0
auto
18px
;
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -687,6 +666,11 @@ form.well {
...
@@ -687,6 +666,11 @@ form.well {
padding-top
:
0
;
padding-top
:
0
;
}
}
/* Jumbotron buttons */
.jumbotron
.btn
{
margin-bottom
:
10px
;
}
/* Subnav */
/* Subnav */
.subnav
{
.subnav
{
position
:
static
;
position
:
static
;
...
@@ -715,7 +699,6 @@ form.well {
...
@@ -715,7 +699,6 @@ form.well {
border-radius
:
4px
4px
0
0
;
border-radius
:
4px
4px
0
0
;
}
}
/* Popovers */
/* Popovers */
.large-bird
{
.large-bird
{
display
:
none
;
display
:
none
;
...
@@ -729,11 +712,6 @@ form.well {
...
@@ -729,11 +712,6 @@ form.well {
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
/* Space out the getting started sections */
.getting-started
.span4
{
margin-bottom
:
18px
;
}
/* Unfloat the back to top link in footer */
/* Unfloat the back to top link in footer */
.footer
.pull-right
{
.footer
.pull-right
{
float
:
none
;
float
:
none
;
...
@@ -751,11 +729,6 @@ form.well {
...
@@ -751,11 +729,6 @@ form.well {
.jumbotron
h1
{
.jumbotron
h1
{
font-size
:
54px
;
font-size
:
54px
;
}
}
.masthead
p
{
font-size
:
25px
;
line-height
:
36px
;
}
.jumbotron
h1
,
.jumbotron
p
{
.jumbotron
p
{
margin-right
:
0
;
margin-right
:
0
;
margin-left
:
0
;
margin-left
:
0
;
...
@@ -764,7 +737,7 @@ form.well {
...
@@ -764,7 +737,7 @@ form.well {
}
}
@media
(
min-width
:
768px
)
and
(
max-width
:
9
4
0px
)
{
@media
(
min-width
:
768px
)
and
(
max-width
:
9
8
0px
)
{
/* Remove any padding from the body */
/* Remove any padding from the body */
body
{
body
{
...
@@ -779,7 +752,7 @@ form.well {
...
@@ -779,7 +752,7 @@ form.well {
}
}
@media
(
max-width
:
9
4
0px
)
{
@media
(
max-width
:
9
8
0px
)
{
/* Unfloat brand */
/* Unfloat brand */
.navbar-fixed-top
.brand
{
.navbar-fixed-top
.brand
{
...
@@ -789,6 +762,12 @@ form.well {
...
@@ -789,6 +762,12 @@ form.well {
padding-right
:
10px
;
padding-right
:
10px
;
}
}
/* Inline-block quick links for more spacing */
.quick-links
li
{
display
:
inline-block
;
margin
:
5px
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
less/responsive.less
+
8
-
4
View file @
cfc1c8a8
...
@@ -38,6 +38,11 @@
...
@@ -38,6 +38,11 @@
@media (max-width: 480px) {
@media (max-width: 480px) {
// Smooth out the collapsing/expanding nav
.nav-collapse {
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
}
// Block level the page header small tag for readability
// Block level the page header small tag for readability
.page-header h1 small {
.page-header h1 small {
display: block;
display: block;
...
@@ -149,7 +154,7 @@
...
@@ -149,7 +154,7 @@
// PORTRAIT TABLET TO DEFAULT DESKTOP
// PORTRAIT TABLET TO DEFAULT DESKTOP
// ----------------------------------
// ----------------------------------
@media (min-width: 768px) and (max-width: 9
4
0px) {
@media (min-width: 768px) and (max-width: 9
8
0px) {
// Fixed grid
// Fixed grid
#gridSystem > .generate(12, 42px, 20px);
#gridSystem > .generate(12, 42px, 20px);
...
@@ -166,7 +171,7 @@
...
@@ -166,7 +171,7 @@
// TABLETS AND BELOW
// TABLETS AND BELOW
// -----------------
// -----------------
@media (max-width: 9
4
0px) {
@media (max-width: 9
8
0px) {
// UNFIX THE TOPBAR
// UNFIX THE TOPBAR
// ----------------
// ----------------
...
@@ -277,7 +282,6 @@
...
@@ -277,7 +282,6 @@
.nav-collapse {
.nav-collapse {
overflow: hidden;
overflow: hidden;
height: 0;
height: 0;
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
}
}
}
}
...
@@ -286,7 +290,7 @@
...
@@ -286,7 +290,7 @@
// DEFAULT DESKTOP
// DEFAULT DESKTOP
// ---------------
// ---------------
@media (min-width: 9
4
0px) {
@media (min-width: 9
8
0px) {
.nav-collapse.collapse {
.nav-collapse.collapse {
height: auto !important;
height: auto !important;
}
}
...
...
This diff is collapsed.
Click to expand it.
less/sprites.less
+
1
-
1
View file @
cfc1c8a8
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
// For the white version of the icons, just add the .icon-white class:
// For the white version of the icons, just add the .icon-white class:
// <i class="i icon-inbox icon-white"></i>
// <i class="i icon-inbox icon-white"></i>
[class
*
="icon-"] {
[class
^
="icon-"] {
display: inline-block;
display: inline-block;
width: 14px;
width: 14px;
height: 14px;
height: 14px;
...
...
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