Skip to content

Commit

Permalink
Merge pull request #641 from jwplayer/bugfix/skip-ad-mk-2
Browse files Browse the repository at this point in the history
Corner rounding, mouse highlighting for skip buttons [Delivers #99791878]
  • Loading branch information
robwalch committed Jul 30, 2015
2 parents a9c702b + 3591546 commit 8560646
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 8 deletions.
5 changes: 5 additions & 0 deletions src/css/imports/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@
.jw-skip-icon {
color: @inactive-color;
}

&.jw-skippable:hover .jw-skip-icon,
&.jw-skippable:hover .jw-text {
color: @active-color;
}
}

.jw-time-tip,
Expand Down
2 changes: 1 addition & 1 deletion src/css/imports/skipad.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.jw-text, .jw-skip-icon {
color: @inactive-color;
vertical-align: middle;
line-height: 1em;
line-height: 1.5em;
font-size: 0.7em;
}

Expand Down
3 changes: 2 additions & 1 deletion src/css/skins/beelden.less
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@
.jw-time-tip,
.jw-volume-tip,
.jw-menu,
.jw-dock-button {
.jw-dock-button,
.jw-skip {
border-radius: @ui-padding;
}

Expand Down
3 changes: 2 additions & 1 deletion src/css/skins/glow.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
/* For the overlay containers */
.jw-time-tip,
.jw-volume-tip,
.jw-menu {
.jw-menu,
.jw-skip {
border-radius: @ui-padding;
}

Expand Down
10 changes: 8 additions & 2 deletions src/css/skins/seven.less
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,17 @@
/* Skip icon and text styles */
.jw-skip {
padding: 0.4em;
border-radius: 1em;
border-radius: 1.75em;

.jw-text,
.jw-text,
.jw-icon-inline {
color: @inactive-color;
line-height: 1.75em;
}

&.jw-skippable:hover .jw-text,
&.jw-skippable:hover .jw-icon-inline {
color: @active-color;
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/css/skins/six.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
background: @def-transparent-background-style;
background-size: @def-background-size;
border-radius: .3em;
border: 1px solid #000;
border: @def-border;
}

&:hover {
Expand Down Expand Up @@ -244,10 +244,11 @@
.jw-skip {
background: @def-transparent-background-style;
background-size: @def-background-size;
border: @def-border;
border-radius: .3em;
padding: @ui-padding @ui-corner-round;

&:hover {
&:hover.jw-skippable {
background: @def-background-style;
background-size: @def-background-size;
}
Expand Down
3 changes: 2 additions & 1 deletion src/css/skins/stormtrooper.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
/* For the overlay containers */
.jw-time-tip,
.jw-volume-tip,
.jw-menu {
.jw-menu,
.jw-skip {
border-radius: @ui-padding;
}

Expand Down
4 changes: 4 additions & 0 deletions src/css/skins/vapor.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
bottom: .3em;
}

.jw-skip {
border-radius: @ui-padding;
}

/* Styles for menu list items */
.jw-option {
color: @active-color;
Expand Down

0 comments on commit 8560646

Please sign in to comment.