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
fe05f9ae
Commit
fe05f9ae
authored
Apr 01, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #2572: streamline thumbnails css to allow for offsets
parent
33fa705c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
21 deletions
+56
-21
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap-responsive.css
+0
-6
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+1
-2
less/responsive-1200px-min.less
less/responsive-1200px-min.less
+0
-3
less/responsive-767px-max.less
less/responsive-767px-max.less
+0
-6
less/tests/css-tests.html
less/tests/css-tests.html
+48
-2
less/thumbnails.less
less/thumbnails.less
+7
-2
No files found.
docs/assets/bootstrap.zip
View file @
fe05f9ae
No preview for this file type
docs/assets/css/bootstrap-responsive.css
View file @
fe05f9ae
...
@@ -164,9 +164,6 @@
...
@@ -164,9 +164,6 @@
width
:
auto
;
width
:
auto
;
margin
:
0
;
margin
:
0
;
}
}
.thumbnails
[
class
*=
"span"
]
{
width
:
auto
;
}
input
[
class
*=
"span"
],
input
[
class
*=
"span"
],
select
[
class
*=
"span"
],
select
[
class
*=
"span"
],
textarea
[
class
*=
"span"
],
textarea
[
class
*=
"span"
],
...
@@ -597,9 +594,6 @@
...
@@ -597,9 +594,6 @@
.thumbnails
{
.thumbnails
{
margin-left
:
-30px
;
margin-left
:
-30px
;
}
}
.thumbnails
>
li
{
margin-left
:
30px
;
}
}
}
@media
(
max-width
:
979px
)
{
@media
(
max-width
:
979px
)
{
body
{
body
{
...
...
docs/assets/css/bootstrap.css
View file @
fe05f9ae
...
@@ -3627,8 +3627,7 @@ input[type="submit"].btn.btn-mini {
...
@@ -3627,8 +3627,7 @@ input[type="submit"].btn.btn-mini {
clear
:
both
;
clear
:
both
;
}
}
.thumbnails
>
li
{
.thumbnails
>
li
{
float
:
left
;
margin-bottom
:
18px
;
margin
:
0
0
18px
20px
;
}
}
.thumbnail
{
.thumbnail
{
display
:
block
;
display
:
block
;
...
...
less/responsive-1200px-min.less
View file @
fe05f9ae
...
@@ -16,8 +16,5 @@
...
@@ -16,8 +16,5 @@
.thumbnails {
.thumbnails {
margin-left: -30px;
margin-left: -30px;
}
}
.thumbnails > li {
margin-left: 30px;
}
}
}
less/responsive-767px-max.less
View file @
fe05f9ae
...
@@ -124,12 +124,6 @@
...
@@ -124,12 +124,6 @@
margin: 0;
margin: 0;
}
}
// THUMBNAILS
// ----------
.thumbnails [class*="span"] {
width: auto;
}
// FORM FIELDS
// FORM FIELDS
// -----------
// -----------
// Make span* classes full width
// Make span* classes full width
...
...
less/tests/css-tests.html
View file @
fe05f9ae
...
@@ -329,9 +329,9 @@
...
@@ -329,9 +329,9 @@
</div>
<!--/span-->
</div>
<!--/span-->
</div>
<!--/row-->
</div>
<!--/row-->
</div>
</div>
<br>
<br>
<!-- Dropdowns
<!-- Dropdowns
================================================== -->
================================================== -->
...
@@ -339,7 +339,6 @@
...
@@ -339,7 +339,6 @@
<h1>
Dropdowns
</h1>
<h1>
Dropdowns
</h1>
</div>
</div>
<h4>
Dropdown link with hash URL
</h4>
<h4>
Dropdown link with hash URL
</h4>
<ul
class=
"nav nav-pills"
>
<ul
class=
"nav nav-pills"
>
<li
class=
"active"
><a
href=
"#"
>
Link
</a></li>
<li
class=
"active"
><a
href=
"#"
>
Link
</a></li>
...
@@ -375,6 +374,53 @@
...
@@ -375,6 +374,53 @@
</ul>
</ul>
</li>
</li>
</ul>
</ul>
<br>
<!-- Thumbnails
================================================== -->
<div
class=
"page-header"
>
<h1>
Thumbnails
</h1>
</div>
<h4>
Offset thumbnails
</h4>
<ul
class=
"thumbnails"
>
<li
class=
"span3 offset3"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
<li
class=
"span3"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
<li
class=
"span3"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
</ul>
<ul
class=
"thumbnails"
>
<li
class=
"span3"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
<li
class=
"span3 offset3"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
<li
class=
"span3"
>
<a
href=
"#"
class=
"thumbnail"
>
<img
src=
"http://placehold.it/260x180"
alt=
""
>
</a>
</li>
</ul>
...
...
less/thumbnails.less
View file @
fe05f9ae
// THUMBNAILS
// THUMBNAILS
// ----------
// ----------
// Make wrapper ul behave like the grid
.thumbnails {
.thumbnails {
margin-left: -@gridGutterWidth;
margin-left: -@gridGutterWidth;
list-style: none;
list-style: none;
.clearfix();
.clearfix();
}
}
// Float li to make thumbnails appear in a row
.thumbnails > li {
.thumbnails > li {
float: left;
margin-bottom: @baseLineHeight;
margin: 0 0 @baseLineHeight @gridGutterWidth;
}
}
// The actual thumbnail (can be `a` or `div`)
.thumbnail {
.thumbnail {
display: block;
display: block;
padding: 4px;
padding: 4px;
...
@@ -23,6 +27,7 @@ a.thumbnail:hover {
...
@@ -23,6 +27,7 @@ a.thumbnail:hover {
border-color: @linkColor;
border-color: @linkColor;
.box-shadow(0 1px 4px rgba(0,105,214,.25));
.box-shadow(0 1px 4px rgba(0,105,214,.25));
}
}
// Images and captions
// Images and captions
.thumbnail > img {
.thumbnail > img {
display: block;
display: block;
...
...
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