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
83c4073e
Commit
83c4073e
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
refactor responsive-utilities slightly
parent
e9951385
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
less/responsive-utilities.less
+15
-39
less/responsive-utilities.less
with
15 additions
and
39 deletions
+15
-39
less/responsive-utilities.less
+
15
-
39
View file @
83c4073e
...
...
@@ -34,29 +34,26 @@
}
// Visibility utilities
// For Phones
.visible-sm {
.responsive-visibility() {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
}
// For Phones
.visible-sm {
.responsive-visibility;
}
.visible-md { display: none !important; }
.visible-lg { display: none !important; }
.hidden-sm { display: none !important; }
.hidden-md {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
.hidden-lg {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
...
...
@@ -64,25 +61,16 @@
@media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
.visible-sm { display: none !important; }
.visible-md {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
.visible-lg { display: none !important; }
.hidden-sm {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
.hidden-md { display: none !important; }
.hidden-lg {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
}
...
...
@@ -91,23 +79,14 @@
.visible-sm { display: none !important; }
.visible-md { display: none !important; }
.visible-lg {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
.hidden-sm {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
.hidden-md {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
.hidden-lg { display: none !important; }
}
...
...
@@ -118,10 +97,7 @@
@media print {
.visible-print {
display: block !important;
tr& { display: table-row !important; }
th&,
td& { display: table-cell !important; }
.responsive-visibility;
}
.hidden-print { display: none !important; }
}
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