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
8f0bc9e7
Commit
8f0bc9e7
authored
Feb 01, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dospuntocero-master' into 2.3.0-wip
parents
7d655c35
d2ea2cde
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
less/mixins.less
less/mixins.less
+11
-0
less/tests/css-tests.css
less/tests/css-tests.css
+12
-1
less/tests/css-tests.html
less/tests/css-tests.html
+3
-0
No files found.
less/mixins.less
View file @
8f0bc9e7
...
...
@@ -443,6 +443,17 @@
background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(@deg, @startColor, @endColor); // Standard, IE10
}
.horizontal-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
background-color: mix(@midColor, @endColor, 80%);
background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
background-image: -webkit-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
background-image: -moz-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
background-image: -o-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
background-image: linear-gradient(to right, @startColor, @midColor @colorStop, @endColor);
background-repeat: no-repeat;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback
}
.vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
background-color: mix(@midColor, @endColor, 80%);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
...
...
less/tests/css-tests.css
View file @
8f0bc9e7
...
...
@@ -136,4 +136,15 @@ body {
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
}
.gradient-horizontal-three
{
background-color
:
#00b3ee
;
background-image
:
-webkit-gradient
(
left
,
linear
,
0
0
,
0
100%
,
from
(
#00b3ee
),
color-stop
(
50%
,
#7a43b6
),
to
(
#c3325f
));
background-image
:
-webkit-linear-gradient
(
left
,
#00b3ee
,
#7a43b6
50%
,
#c3325f
);
background-image
:
-moz-linear-gradient
(
left
,
#00b3ee
,
#7a43b6
50%
,
#c3325f
);
background-image
:
-o-linear-gradient
(
left
,
#00b3ee
,
#7a43b6
50%
,
#c3325f
);
background-image
:
linear-gradient
(
to
right
,
#00b3ee
,
#7a43b6
50%
,
#c3325f
);
background-repeat
:
no-repeat
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#00b3ee'
,
endColorstr
=
'#c3325f'
,
GradientType
=
0
);
}
less/tests/css-tests.html
View file @
8f0bc9e7
...
...
@@ -1291,6 +1291,9 @@
<h4>
Striped
</h4>
<div
class=
"gradient-striped"
></div>
<h4>
Horizontal three colors
</h4>
<div
class=
"gradient-horizontal-three"
></div>
<div
class=
"page-header"
>
...
...
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