Skip to content

Commit

Permalink
bug fix and optimize for previous and rewind icon
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedalipoor committed Feb 2, 2015
1 parent 46d298b commit f6883d2
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 110 deletions.
64 changes: 22 additions & 42 deletions build/icono.css
Original file line number Diff line number Diff line change
Expand Up @@ -2675,29 +2675,22 @@
margin: 7px;
}
.icono-rewind {
width: 0;
height: 0;
border: 10px solid transparent;
border-right: 10px solid;
margin: 7px;
}
.icono-rewind:before {
position: absolute;
right: 0;
top: -10px;
width: 0;
height: 0;
border: 10px solid transparent;
border-right: 10px solid;
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
}
.icono-forward {
.icono-forward,
.icono-rewind {
width: 0;
height: 0;
border: 10px solid transparent;
border-left: 10px solid;
margin: 7px;
}
.icono-forward:before {
.icono-forward:before,
.icono-rewind:before {
position: absolute;
left: 0;
top: -10px;
Expand All @@ -2706,37 +2699,23 @@
border: 10px solid transparent;
border-left: 10px solid;
}
.icono-next {
.icono-next,
.icono-previous {
width: 0;
height: 0;
border: 10px solid transparent;
border-left: 10px solid;
margin: 7px;
}
.icono-next:before {
position: absolute;
left: 0;
top: -10px;
width: 0;
height: 0;
border-width: 10px 3px 10px 3px;
border-style: solid;
border-right: none;
margin: 7px 14px 7px 10px;
box-shadow: 4px 0;
}
.icono-previous {
width: 0;
height: 0;
border: 10px solid transparent;
border-right: 10px solid;
margin: 7px;
}
.icono-previous:before {
position: absolute;
right: 0;
top: -10px;
width: 0;
height: 0;
border-width: 10px 2px 10px 2px;
border-style: solid;
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
margin: 7px 10px 7px 14px;
}
.icono-caretRight,
.icono-caretRightCircle,
Expand Down Expand Up @@ -2781,7 +2760,6 @@
width: 14px;
height: 2px;
position: absolute;
top: 0;
bottom: 0;
margin: auto 0;
right: 2px;
Expand All @@ -2800,6 +2778,7 @@
.icono-caretUpSquare:before,
.icono-caretDownCircle:before,
.icono-caretDownSquare:before {
top: 2px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
Expand All @@ -2818,6 +2797,7 @@
.icono-caretUpSquare:after,
.icono-caretDownCircle:after,
.icono-caretDownSquare:after {
top: 0;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
Expand Down
2 changes: 1 addition & 1 deletion dist/icono.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion less/icons/caret.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@
width: @14;
height: @2;
position: absolute;
top: 0;
bottom: 0;
margin: auto 0;
right: @2;
box-shadow: inset 0 0 0 @32;
transform-origin: right;
}
&:before {
top: @2;
.transform(rotate(45deg));
}
&:after {
top: 0;
.transform(rotate(-45deg));
}
}
Expand Down
13 changes: 3 additions & 10 deletions less/icons/next.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@
height: 0;
border: @10 solid transparent;
border-left: @10 solid;
margin: @7;
&:before{
position: absolute;
left: 0;
top: -@10;
width: 0;
height: 0;
border-width: @10 @3 @10 @3;
border-style: solid;
}
border-right: none;
margin: @7 @14 @7 @10;
box-shadow: @4 0;
}
17 changes: 3 additions & 14 deletions less/icons/previous.less
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
//*-- Previous --*\\
.icono-previous{
width: 0;
height: 0;
border: @10 solid transparent;
border-right: @10 solid;
margin: @7;
&:before{
position: absolute;
right: 0;
top: -@10;
width: 0;
height: 0;
border-width: @10 @2 @10 @2;
border-style: solid;
}
&:extend(.icono-next all);
.transform(rotate(180deg));
margin: @7 @10 @7 @14;
}
16 changes: 2 additions & 14 deletions less/icons/rewind.less
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
//*-- Rewind --*\\
.icono-rewind{
width: 0;
height: 0;
border: @10 solid transparent;
border-right: @10 solid;
margin: @7;
&:before{
position: absolute;
right: 0;
top: -@10;
width: 0;
height: 0;
border: @10 solid transparent;
border-right: @10 solid;
}
&:extend(.icono-forward all);
.transform(rotate(180deg));
}
17 changes: 3 additions & 14 deletions sass/icons/previous.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
//*-- Previous --*\\
.icono-previous{
width: 0;
height: 0;
border: $U10 solid transparent;
border-right: $U10 solid;
margin: $U7;
&:before{
position: absolute;
right: 0;
top: -$U10;
width: 0;
height: 0;
border-width: $U10 $U2 $U10 $U2;
border-style: solid;
}
@extend .icono-next;
@include transform(rotate(180deg));
margin: $U7 $U10 $U7 $U14;
}
16 changes: 2 additions & 14 deletions sass/icons/rewind.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
//*-- Rewind --*\\
.icono-rewind{
width: 0;
height: 0;
border: $U10 solid transparent;
border-right: $U10 solid;
margin: $U7;
&:before{
position: absolute;
right: 0;
top: -$U10;
width: 0;
height: 0;
border: $U10 solid transparent;
border-right: $U10 solid;
}
@extend .icono-forward;
@include transform(rotate(180deg));
}

0 comments on commit f6883d2

Please sign in to comment.