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
94a3d4eb
Commit
94a3d4eb
authored
Jun 25, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reorder media queries
parent
8c2db7d7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
432 additions
and
432 deletions
+432
-432
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap-responsive.css
+351
-351
less/responsive-767px-max.less
less/responsive-767px-max.less
+67
-67
less/responsive-utilities.less
less/responsive-utilities.less
+10
-10
less/responsive.less
less/responsive.less
+4
-4
No files found.
docs/assets/css/bootstrap-responsive.css
View file @
94a3d4eb
This diff is collapsed.
Click to expand it.
less/responsive-767px-max.less
View file @
94a3d4eb
// UP TO LANDSCAPE PHONE
// ---------------------
@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
.page-header h1 small {
display: block;
line-height: @baseLineHeight;
}
// Update checkboxes for iOS
input[type="checkbox"],
input[type="radio"] {
border: 1px solid #ccc;
}
// Remove the horizontal form styles
.form-horizontal .control-group > label {
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
// Move over all input controls and content
.form-horizontal .controls {
margin-left: 0;
}
// Move the options list down to align with labels
.form-horizontal .control-list {
padding-top: 0; // has to be padding because margin collaspes
}
// Move over buttons in .form-actions to align with .controls
.form-horizontal .form-actions {
padding-left: 10px;
padding-right: 10px;
}
// Modals
.modal {
position: fixed;
top: 10px;
left: 10px;
right: 10px;
width: auto;
margin: 0;
&.fade.in { top: auto; }
}
.modal-header .close {
padding: 10px;
margin: -10px;
}
// Carousel
.carousel-caption {
position: static;
}
}
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
// --------------------------------------------------
...
...
@@ -147,3 +80,70 @@
}
}
// UP TO LANDSCAPE PHONE
// ---------------------
@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
.page-header h1 small {
display: block;
line-height: @baseLineHeight;
}
// Update checkboxes for iOS
input[type="checkbox"],
input[type="radio"] {
border: 1px solid #ccc;
}
// Remove the horizontal form styles
.form-horizontal .control-group > label {
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
// Move over all input controls and content
.form-horizontal .controls {
margin-left: 0;
}
// Move the options list down to align with labels
.form-horizontal .control-list {
padding-top: 0; // has to be padding because margin collaspes
}
// Move over buttons in .form-actions to align with .controls
.form-horizontal .form-actions {
padding-left: 10px;
padding-right: 10px;
}
// Modals
.modal {
position: fixed;
top: 10px;
left: 10px;
right: 10px;
width: auto;
margin: 0;
&.fade.in { top: auto; }
}
.modal-header .close {
padding: 10px;
margin: -10px;
}
// Carousel
.carousel-caption {
position: static;
}
}
less/responsive-utilities.less
View file @
94a3d4eb
...
...
@@ -18,24 +18,24 @@
.hidden-tablet { }
.hidden-desktop { display: none !important; }
//
Phone
s only
@media (m
ax-width: 767
px) {
//
Tablets & small desktop
s only
@media (m
in-width: 768px) and (max-width: 979
px) {
// Show
.visible-
phone { display: inherit !important; } // Use inherit to restore previous behavior
.visible-
tablet { display: inherit !important; }
// Hide
.hidden-
phone
{ display: none !important; }
.hidden-
tablet
{ display: none !important; }
// Hide everything else
.hidden-desktop { display: inherit !important; }
.visible-desktop { display: none !important; }
.visible-desktop { display: none !important
; }
}
//
Tablets & small desktop
s only
@media (m
in-width: 768px) and (max-width: 979
px) {
//
Phone
s only
@media (m
ax-width: 767
px) {
// Show
.visible-
tablet { display: inherit !important; }
.visible-
phone { display: inherit !important; } // Use inherit to restore previous behavior
// Hide
.hidden-
tablet
{ display: none !important; }
.hidden-
phone
{ display: none !important; }
// Hide everything else
.hidden-desktop { display: inherit !important; }
.visible-desktop { display: none !important
; }
.visible-desktop { display: none !important; }
}
less/responsive.less
View file @
94a3d4eb
...
...
@@ -31,14 +31,14 @@
// MEDIA QUERIES
// ------------------
//
Phones to portrait tablets and narrow
desktops
@import "responsive-
767px-max
.less";
//
Large
desktops
@import "responsive-
1200px-min
.less";
// Tablets to regular desktops
@import "responsive-768px-979px.less";
//
Large
desktops
@import "responsive-
1200px-min
.less";
//
Phones to portrait tablets and narrow
desktops
@import "responsive-
767px-max
.less";
// RESPONSIVE NAVBAR
...
...
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