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
4b0d71ab
Commit
4b0d71ab
authored
Sep 30, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
carousel refinements
parent
b6f6235e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
21 deletions
+30
-21
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+6
-2
less/carousel.less
less/carousel.less
+24
-19
No files found.
docs/assets/css/bootstrap.css
View file @
4b0d71ab
...
@@ -5370,7 +5370,7 @@ a.badge:hover {
...
@@ -5370,7 +5370,7 @@ a.badge:hover {
top
:
0
;
top
:
0
;
bottom
:
0
;
bottom
:
0
;
left
:
0
;
left
:
0
;
width
:
1
0
0px
;
width
:
1
2
0px
;
opacity
:
0.5
;
opacity
:
0.5
;
filter
:
alpha
(
opacity
=
50
);
filter
:
alpha
(
opacity
=
50
);
}
}
...
@@ -5414,13 +5414,17 @@ a.badge:hover {
...
@@ -5414,13 +5414,17 @@ a.badge:hover {
z-index
:
5
;
z-index
:
5
;
display
:
block
;
display
:
block
;
margin-top
:
-35px
;
margin-top
:
-35px
;
margin-left
:
3
5
px
;
margin-left
:
3
0
px
;
font-size
:
80px
;
font-size
:
80px
;
font-weight
:
100
;
font-weight
:
100
;
color
:
#fff
;
color
:
#fff
;
text-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.6
);
text-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.6
);
}
}
.carousel-control.right
.control
{
margin-left
:
70px
;
}
.carousel-caption
{
.carousel-caption
{
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
...
...
less/carousel.less
View file @
4b0d71ab
...
@@ -72,14 +72,9 @@
...
@@ -72,14 +72,9 @@
top: 0;
top: 0;
left: 0;
left: 0;
bottom: 0;
bottom: 0;
width: 1
0
0px;
width: 1
2
0px;
.opacity(50);
.opacity(50);
&.left {
#gradient > .horizontal(rgba(0,0,0,.75), rgba(0,0,0,.001));
background-color: transparent;
}
// we can't have this transition here
// we can't have this transition here
// because webkit cancels the carousel
// because webkit cancels the carousel
// animation if you trip this while
// animation if you trip this while
...
@@ -87,7 +82,11 @@
...
@@ -87,7 +82,11 @@
// ;_;
// ;_;
// .transition(opacity .2s linear);
// .transition(opacity .2s linear);
// Reposition the right one
// Set gradients for backgrounds
&.left {
#gradient > .horizontal(rgba(0,0,0,.75), rgba(0,0,0,.001));
background-color: transparent;
}
&.right {
&.right {
left: auto;
left: auto;
right: 0;
right: 0;
...
@@ -101,21 +100,27 @@
...
@@ -101,21 +100,27 @@
text-decoration: none;
text-decoration: none;
.opacity(90);
.opacity(90);
}
}
}
.carousel-control .control {
// Toggles
.control {
position: absolute;
position: absolute;
top: 50%;
top: 50%;
z-index: 5;
z-index: 5;
display: block;
display: block;
margin-top: -35px;
margin-top: -35px;
margin-left: 35
px;
margin-left: 30
px;
font-size: 80px;
font-size: 80px;
font-weight: 100;
font-weight: 100;
color: #fff;
color: #fff;
text-shadow: 0 1px 2px rgba(0,0,0,.6);
text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
&.right .control {
margin-left: 70px;
}
}
}
// Caption for text below images
// Caption for text below images
// -----------------------------
// -----------------------------
...
...
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