1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-08-02 01:55:52 -04:00
parent 6f21a963ea
commit 823f69bb92
68 changed files with 303 additions and 388 deletions

View file

@ -0,0 +1,26 @@
.dialogButtons {
position: relative;
padding: 0 !important;
margin: 1em;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: row;
-webkit-flex-direction: row;
flex-direction: row;
-ms-flex-pack: end;
-webkit-justify-content: flex-end;
justify-content: flex-end;
}
.dialogButton {
color: #52B54B;
padding: 0.35em 1em;
margin: 0;
}
.dialogButton:focus {
color: #fff;
background-color: #52B54B;
}

View file

@ -1,4 +1,4 @@
define(['layoutManager', 'globalize'], function (layoutManager, globalize) {
define(['layoutManager', 'globalize', 'css!./dialog'], function (layoutManager, globalize) {
function showTvDialog(options) {
return new Promise(function (resolve, reject) {
@ -48,14 +48,14 @@ define(['layoutManager', 'globalize'], function (layoutManager, globalize) {
html += '<div style="margin:1em 0;">' + text + '</div>';
}
html += '<div class="buttons">';
html += '<div class="dialogButtons">';
var i, length;
for (i = 0, length = options.buttons.length; i < length; i++) {
var item = options.buttons[i];
var autoFocus = i == 0 ? ' autofocus' : '';
html += '<button is="emby-button" type="button" class="btnOption" data-id="' + item.id + '"' + autoFocus + '>' + item.name + '</button>';
html += '<button is="emby-button" type="button" class="btnOption dialogButton" data-id="' + item.id + '"' + autoFocus + '>' + item.name + '</button>';
}
html += '</div>';