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
647f1c98
Commit
647f1c98
authored
Apr 01, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #2296: allow fluid thumbnails
parent
fe05f9ae
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
1 deletion
+35
-1
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap-responsive.css
+3
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+3
-0
less/responsive-1200px-min.less
less/responsive-1200px-min.less
+3
-0
less/tests/css-tests.html
less/tests/css-tests.html
+22
-1
less/thumbnails.less
less/thumbnails.less
+4
-0
No files found.
docs/assets/bootstrap.zip
View file @
647f1c98
No preview for this file type
docs/assets/css/bootstrap-responsive.css
View file @
647f1c98
...
@@ -594,6 +594,9 @@
...
@@ -594,6 +594,9 @@
.thumbnails
{
.thumbnails
{
margin-left
:
-30px
;
margin-left
:
-30px
;
}
}
.row-fluid
.thumbnails
{
margin-left
:
0
;
}
}
}
@media
(
max-width
:
979px
)
{
@media
(
max-width
:
979px
)
{
body
{
body
{
...
...
docs/assets/css/bootstrap.css
View file @
647f1c98
...
@@ -3626,6 +3626,9 @@ input[type="submit"].btn.btn-mini {
...
@@ -3626,6 +3626,9 @@ input[type="submit"].btn.btn-mini {
.thumbnails
:after
{
.thumbnails
:after
{
clear
:
both
;
clear
:
both
;
}
}
.row-fluid
.thumbnails
{
margin-left
:
0
;
}
.thumbnails
>
li
{
.thumbnails
>
li
{
margin-bottom
:
18px
;
margin-bottom
:
18px
;
}
}
...
...
less/responsive-1200px-min.less
View file @
647f1c98
...
@@ -16,5 +16,8 @@
...
@@ -16,5 +16,8 @@
.thumbnails {
.thumbnails {
margin-left: -30px;
margin-left: -30px;
}
}
.row-fluid .thumbnails {
margin-left: 0;
}
}
}
less/tests/css-tests.html
View file @
647f1c98
...
@@ -421,7 +421,28 @@
...
@@ -421,7 +421,28 @@
</li>
</li>
</ul>
</ul>
<h4>
Fluid thumbnails
</h4>
<div
class=
"row-fluid"
>
<div
class=
"span8"
>
<ul
class=
"thumbnails"
>
<li
class=
"span4"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
<li
class=
"span4"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
<li
class=
"span4"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
</ul>
</div>
</div>
...
...
less/thumbnails.less
View file @
647f1c98
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
list-style: none;
list-style: none;
.clearfix();
.clearfix();
}
}
// Fluid rows have no left margin
.row-fluid .thumbnails {
margin-left: 0;
}
// Float li to make thumbnails appear in a row
// Float li to make thumbnails appear in a row
.thumbnails > li {
.thumbnails > li {
...
...
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