Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
7d412b1e
Commit
7d412b1e
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
fixes
#4741
: undo previous version's attempt at firefox gradient changes and add gradient tests
parent
55982664
3 merge requests
!4855
Solved bug in bootstrap tooltip when entering and leaving quickly
,
!4830
Tabs should generate hide events
,
!4789
Typeahead. Added the ability to process serializable Objects as items from given source (According to guidelines )
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/assets/js/bootstrap.min.js
+1
-1
docs/assets/js/bootstrap.min.js
less/mixins.less
+1
-1
less/mixins.less
less/tests/css-tests.css
+72
-0
less/tests/css-tests.css
less/tests/css-tests.html
+30
-0
less/tests/css-tests.html
with
104 additions
and
2 deletions
+104
-2
docs/assets/js/bootstrap.min.js
+
1
-
1
View file @
7d412b1e
This diff is collapsed.
Click to expand it.
less/mixins.less
+
1
-
1
View file @
7d412b1e
...
@@ -442,7 +442,7 @@
...
@@ -442,7 +442,7 @@
background-color: mix(@midColor, @endColor, 80%);
background-color: mix(@midColor, @endColor, 80%);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop
*100%
, @endColor);
background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-repeat: no-repeat;
background-repeat: no-repeat;
...
...
This diff is collapsed.
Click to expand it.
less/tests/css-tests.css
+
72
-
0
View file @
7d412b1e
...
@@ -65,3 +65,75 @@ body {
...
@@ -65,3 +65,75 @@ body {
.fluid-grid
.span1
{
.fluid-grid
.span1
{
background-color
:
#999
;
background-color
:
#999
;
}
}
/* Gradients */
[
class
^=
"gradient-"
]
{
width
:
100%
;
height
:
400px
;
margin
:
20px
0
;
-webkit-border-radius
:
5px
;
-moz-border-radius
:
5px
;
border-radius
:
5px
;
}
.gradient-horizontal
{
background-color
:
#333333
;
background-image
:
-moz-linear-gradient
(
left
,
#555555
,
#333333
);
background-image
:
-webkit-gradient
(
linear
,
0
0
,
100%
0
,
from
(
#555555
),
to
(
#333333
));
background-image
:
-webkit-linear-gradient
(
left
,
#555555
,
#333333
);
background-image
:
-o-linear-gradient
(
left
,
#555555
,
#333333
);
background-image
:
linear-gradient
(
to
right
,
#555555
,
#333333
);
background-repeat
:
repeat-x
;
filter
:
progid
:
dximagetransform
.
microsoft
.
gradient
(
startColorstr
=
'#ff555555'
,
endColorstr
=
'#ff333333'
,
GradientType
=
1
);
}
.gradient-vertical
{
background-color
:
#474747
;
background-image
:
-moz-linear-gradient
(
top
,
#555555
,
#333333
);
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
100%
,
from
(
#555555
),
to
(
#333333
));
background-image
:
-webkit-linear-gradient
(
top
,
#555555
,
#333333
);
background-image
:
-o-linear-gradient
(
top
,
#555555
,
#333333
);
background-image
:
linear-gradient
(
to
bottom
,
#555555
,
#333333
);
background-repeat
:
repeat-x
;
filter
:
progid
:
dximagetransform
.
microsoft
.
gradient
(
startColorstr
=
'#ff555555'
,
endColorstr
=
'#ff333333'
,
GradientType
=
0
);
}
.gradient-directional
{
background-color
:
#333333
;
background-image
:
-moz-linear-gradient
(
45deg
,
#555555
,
#333333
);
background-image
:
-webkit-linear-gradient
(
45deg
,
#555555
,
#333333
);
background-image
:
-o-linear-gradient
(
45deg
,
#555555
,
#333333
);
background-image
:
linear-gradient
(
45deg
,
#555555
,
#333333
);
background-repeat
:
repeat-x
;
}
.gradient-vertical-three
{
background-color
:
#8940a5
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
100%
,
from
(
#00b3ee
),
color-stop
(
50%
,
#7a43b6
),
to
(
#c3325f
));
background-image
:
-webkit-linear-gradient
(
#00b3ee
,
#7a43b6
50%
,
#c3325f
);
background-image
:
-moz-linear-gradient
(
top
,
#00b3ee
,
#7a43b6
50%
,
#c3325f
);
background-image
:
-o-linear-gradient
(
#00b3ee
,
#7a43b6
50%
,
#c3325f
);
background-image
:
linear-gradient
(
#00b3ee
,
#7a43b6
50%
,
#c3325f
);
background-repeat
:
no-repeat
;
filter
:
progid
:
dximagetransform
.
microsoft
.
gradient
(
startColorstr
=
'#ff00b3ee'
,
endColorstr
=
'#ffc3325f'
,
GradientType
=
0
);
}
.gradient-radial
{
background-color
:
#333333
;
background-image
:
-webkit-gradient
(
radial
,
center
center
,
0
,
center
center
,
460
,
from
(
#555555
),
to
(
#333333
));
background-image
:
-webkit-radial-gradient
(
circle
,
#555555
,
#333333
);
background-image
:
-moz-radial-gradient
(
circle
,
#555555
,
#333333
);
background-image
:
-o-radial-gradient
(
circle
,
#555555
,
#333333
);
background-repeat
:
no-repeat
;
}
.gradient-striped
{
background-color
:
#555555
;
background-image
:
-webkit-gradient
(
linear
,
0
100%
,
100%
0
,
color-stop
(
0.25
,
rgba
(
255
,
255
,
255
,
0.15
)),
color-stop
(
0.25
,
transparent
),
color-stop
(
0.5
,
transparent
),
color-stop
(
0.5
,
rgba
(
255
,
255
,
255
,
0.15
)),
color-stop
(
0.75
,
rgba
(
255
,
255
,
255
,
0.15
)),
color-stop
(
0.75
,
transparent
),
to
(
transparent
));
background-image
:
-webkit-linear-gradient
(
45deg
,
rgba
(
255
,
255
,
255
,
0.15
)
25%
,
transparent
25%
,
transparent
50%
,
rgba
(
255
,
255
,
255
,
0.15
)
50%
,
rgba
(
255
,
255
,
255
,
0.15
)
75%
,
transparent
75%
,
transparent
);
background-image
:
-moz-linear-gradient
(
45deg
,
rgba
(
255
,
255
,
255
,
0.15
)
25%
,
transparent
25%
,
transparent
50%
,
rgba
(
255
,
255
,
255
,
0.15
)
50%
,
rgba
(
255
,
255
,
255
,
0.15
)
75%
,
transparent
75%
,
transparent
);
background-image
:
-o-linear-gradient
(
45deg
,
rgba
(
255
,
255
,
255
,
0.15
)
25%
,
transparent
25%
,
transparent
50%
,
rgba
(
255
,
255
,
255
,
0.15
)
50%
,
rgba
(
255
,
255
,
255
,
0.15
)
75%
,
transparent
75%
,
transparent
);
background-image
:
linear-gradient
(
45deg
,
rgba
(
255
,
255
,
255
,
0.15
)
25%
,
transparent
25%
,
transparent
50%
,
rgba
(
255
,
255
,
255
,
0.15
)
50%
,
rgba
(
255
,
255
,
255
,
0.15
)
75%
,
transparent
75%
,
transparent
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
less/tests/css-tests.html
+
30
-
0
View file @
7d412b1e
...
@@ -1179,6 +1179,36 @@
...
@@ -1179,6 +1179,36 @@
<!-- Gradients
================================================== -->
<div
class=
"page-header"
>
<h1>
Gradients
</h1>
</div>
<h4>
Horizontal
</h4>
<div
class=
"gradient-horizontal"
></div>
<h4>
Vertical
</h4>
<div
class=
"gradient-vertical"
></div>
<h4>
Directional
</h4>
<div
class=
"gradient-directional"
></div>
<h4>
Three colors
</h4>
<div
class=
"gradient-vertical-three"
></div>
<h4>
Radial
</h4>
<div
class=
"gradient-radial"
></div>
<h4>
Striped
</h4>
<div
class=
"gradient-striped"
></div>
</div>
<!-- /container -->
</div>
<!-- /container -->
...
...
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
Menu
Explore
Projects
Groups
Snippets