Skip to content

Commit 9a96e50

Browse files
committed
adding gradients and transition
1 parent e54e69a commit 9a96e50

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<snippet>
2+
<content><![CDATA[
3+
background-color: ${2:#dddddd};
4+
background-repeat: repeat-x;
5+
background-image: -khtml-gradient(linear, left top, right top, from(${1:#eeeeee}), to(${2})); // Konqueror
6+
background-image: -moz-linear-gradient(left, ${1}, ${2}); // FF 3.6+
7+
background-image: -ms-linear-gradient(left, ${1}, ${2}); // IE10
8+
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, ${1}), color-stop(100%, ${2})); // Safari 4+, Chrome 2+
9+
background-image: -webkit-linear-gradient(left, ${1}, ${2}); // Safari 5.1+, Chrome 10+
10+
background-image: -o-linear-gradient(left, ${1}, ${2}); // Opera 11.10
11+
background-image: linear-gradient(left, ${1}, ${2}); // Le standard
12+
]]>
13+
</content>
14+
<tabTrigger>gradient</tabTrigger>
15+
<scope>source.css</scope>
16+
<description>Horizontal gradient</description>
17+
</snippet>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<snippet>
2+
<content><![CDATA[
3+
background-color: ${2:#dddddd};
4+
background-repeat: repeat-x;
5+
background-image: -khtml-gradient(linear, left top, left bottom, from(${1:#eeeeee}), to(${2})); // Konqueror
6+
background-image: -moz-linear-gradient(${1}, ${2}); // FF 3.6+
7+
background-image: -ms-linear-gradient(${1}, ${2}); // IE10
8+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, ${1}), color-stop(100%, ${2})); // Safari 4+, Chrome 2+
9+
background-image: -webkit-linear-gradient(${1}, ${2}); // Safari 5.1+, Chrome 10+
10+
background-image: -o-linear-gradient(${1}, ${2}); // Opera 11.10
11+
background-image: linear-gradient(${1:}, ${2}); // The standard
12+
]]>
13+
</content>
14+
<tabTrigger>gradient</tabTrigger>
15+
<scope>source.css</scope>
16+
<description>Vertical gradient</description>
17+
</snippet>

css/transition.sublime-snippet

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<snippet>
2+
<content><![CDATA[
3+
-webkit-transition: ${1:all} ${2:.2s} ${3:ease-in-out};
4+
-moz-transition: ${1:all} ${2:.2s} ${3:ease-in-out};
5+
transition: ${1:all} ${2:.2s} ${3:ease-in-out};
6+
]]>
7+
</content>
8+
<tabTrigger>transition</tabTrigger>
9+
<scope>source.css</scope>
10+
</snippet>

0 commit comments

Comments
 (0)