mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 09:49:21 +02:00
Merged hartman-css into master
This commit is contained in:
commit
26bfcd6dbd
2 changed files with 35 additions and 45 deletions
|
@ -1,12 +1,8 @@
|
||||||
.vjs-resolution-button {
|
.vjs-resolution-button.vjs-menu-icon:before {
|
||||||
color: #ccc;
|
|
||||||
font-family: VideoJS;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vjs-resolution-button .vjs-resolution-button-staticlabel:before {
|
|
||||||
content: '\f110';
|
content: '\f110';
|
||||||
font-size: 1.8em;
|
font-family: VideoJS;
|
||||||
line-height: 1.67;
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vjs-resolution-button .vjs-resolution-button-label {
|
.vjs-resolution-button .vjs-resolution-button-label {
|
||||||
|
@ -19,19 +15,15 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.vjs-resolution-button ul.vjs-menu-content {
|
.vjs-resolution-button .vjs-menu .vjs-menu-content {
|
||||||
width: 4em !important;
|
width: 4em;
|
||||||
}
|
left: 50%; /* Center the menu, in it's parent */
|
||||||
|
margin-left: -2em; /* half of width, to center */
|
||||||
.vjs-resolution-button .vjs-menu {
|
|
||||||
left: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.vjs-resolution-button .vjs-menu li {
|
.vjs-resolution-button .vjs-menu li {
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,10 +117,8 @@
|
||||||
|
|
||||||
if(settings.dynamicLabel){
|
if(settings.dynamicLabel){
|
||||||
this.el().appendChild(label);
|
this.el().appendChild(label);
|
||||||
}else{
|
} else {
|
||||||
var staticLabel = document.createElement('span');
|
videojs.addClass(this.el(), 'vjs-menu-icon');
|
||||||
videojs.addClass(staticLabel, 'vjs-resolution-button-staticlabel');
|
|
||||||
this.el().appendChild(staticLabel);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createItems: function(){
|
createItems: function(){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue