Skip to content

Commit 0b48a04

Browse files
committed
keboard navigation support
1 parent bcfe1ee commit 0b48a04

35 files changed

+503
-192
lines changed

web/css/styles.min.css

Lines changed: 94 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -658,12 +658,14 @@ input[type="checkbox"] {
658658
.l-logo {
659659
background-image: url("/images/sprite.png?1446554103");
660660
background-position: -117px -7px;
661+
/* background-position: -125px -478px; */
661662
background-repeat: no-repeat;
662663
display: inline-block;
663664
float: left;
664665
height: 22px;
665666
margin-top: 4px;
666667
width: 73px;
668+
/* width: 42px; */
667669
margin-left: -2px;
668670
}
669671

@@ -716,6 +718,11 @@ input[type="checkbox"] {
716718
text-decoration: underline;
717719
color: #5edad0;
718720
}
721+
.l-menu.active .l-menu__item.focus a:hover {
722+
background-color: #f79b44;
723+
color: #fff;
724+
}
725+
719726

720727
.lang-ua .l-menu__item a,
721728
.lang-nl .l-menu__item a,
@@ -1281,13 +1288,25 @@ div.l-content > div.l-separator:nth-of-type(4) {
12811288
}
12821289
.units .l-unit {
12831290
border-bottom: 1px solid #ddd;
1291+
border-left: 2px solid #fff;
1292+
}
1293+
.units .l-unit.l-unit--starred {
1294+
border-left: 2px solid #ff6701;
1295+
}
1296+
.units.active .l-unit.focus {
1297+
border-left: 2px solid #5edad0;
1298+
}
1299+
.units.active .l-unit.focus .l-unit__name {
1300+
color: #36b3a9;
12841301
}
1302+
.units.active .l-unit.focus .l-unit-toolbar__col--right {
1303+
display: block;
1304+
}
1305+
12851306
.units > div:last-child {
12861307
border-bottom: none;
12871308
}
12881309

1289-
1290-
12911310
.l-unit-ftl {
12921311
color: #929292;
12931312
padding: 0 0 0 15px;
@@ -1296,10 +1315,6 @@ div.l-content > div.l-separator:nth-of-type(4) {
12961315
.l-unit:hover .l-unit-toolbar__col--right {
12971316
display: block;
12981317
}
1299-
.l-unit--starred {
1300-
border-left: 2px solid #ff6701;
1301-
padding-left: 13px;
1302-
}
13031318
.l-unit--blue {
13041319
border-left: 2px solid #55c9c0;
13051320
}
@@ -1370,8 +1385,9 @@ div.l-content > div.l-separator:nth-of-type(4) {
13701385
background-color: #d1eddc;
13711386
}
13721387
.l-unit-toolbar{
1373-
height: 38px;
1388+
height: 39px;
13741389
}
1390+
13751391
.l-unit label {
13761392
margin-bottom: 20px;
13771393
}
@@ -1382,6 +1398,7 @@ div.l-content > div.l-separator:nth-of-type(4) {
13821398
.l-unit__col {
13831399
display: table-cell;
13841400
padding-top: 1px;
1401+
vertical-align: top;
13851402
}
13861403
.l-unit__col--left {
13871404
width: 124px;
@@ -1395,6 +1412,14 @@ div.l-content > div.l-separator:nth-of-type(4) {
13951412
padding-left: 30px;
13961413
}
13971414

1415+
.l-unit__col--right.total {
1416+
padding-left: 16px;
1417+
}
1418+
1419+
.l-unit__col--right.back {
1420+
padding-left: 78px
1421+
}
1422+
13981423
.l-sort-toolbar .step-left {
13991424
padding-left: 40px;
14001425
}
@@ -1405,7 +1430,7 @@ div.l-content > div.l-separator:nth-of-type(4) {
14051430
.l-unit__date {
14061431
font-size: 12px;
14071432
letter-spacing: 1px;
1408-
margin-top: -13px;
1433+
margin-top: 10px;
14091434
padding-bottom: 30px;
14101435
}
14111436

@@ -1566,6 +1591,41 @@ div.l-content > div.l-separator:nth-of-type(4) {
15661591
display: none;
15671592
}
15681593

1594+
.l-unit-toolbar .shortcut {
1595+
display: none;
1596+
}
1597+
1598+
.units.active .l-unit.focus .l-unit-toolbar .shortcut {
1599+
display: block;
1600+
background-color: #c8c7c6;
1601+
border-radius: 13px;
1602+
color: #fff;
1603+
cursor: pointer;
1604+
display: block;
1605+
font-size: 12px;
1606+
font-weight: 700;
1607+
line-height: 25px;
1608+
padding-left: 7px;
1609+
padding-right: 9px;
1610+
position: absolute;
1611+
right: 3px;
1612+
top: 3px;
1613+
}
1614+
.units.active .l-unit.focus .l-unit-toolbar .shortcut.delete {
1615+
font-size: 10px;
1616+
padding-left: 2px;
1617+
padding-right: 5px;
1618+
text-transform: capitalize;
1619+
}
1620+
.units.active .l-unit.focus .l-unit-toolbar .shortcut.enter {
1621+
font-size: 17px;
1622+
padding-left: 1px;
1623+
padding-right: 7px;
1624+
}
1625+
.units.active .l-unit.focus .l-unit-toolbar i {
1626+
background: none;
1627+
}
1628+
15691629
.l-unit__stat-col.volume {
15701630
font-size: 12px;
15711631
line-height: 17px;
@@ -2609,6 +2669,26 @@ td.hint {
26092669
border: 1px solid #D1D70D;
26102670
background-color: #D1D70D;
26112671
}
2672+
2673+
.ui-dialog button.cancel {
2674+
color: #000;
2675+
border: 1px solid #555;
2676+
background-color: #555;
2677+
}
2678+
/*
2679+
.ui-dialog button.cancel:hover {
2680+
color: #fff;
2681+
border: 1px solid #999;
2682+
background-color: #999;
2683+
}
2684+
.ui-dialog button.cancel:active {
2685+
border: 1px solid #D1D70D;
2686+
background-color: #D1D70D;
2687+
}
2688+
*/
2689+
2690+
2691+
26122692
.ui-button span {
26132693
color: #fff;
26142694
}
@@ -2628,6 +2708,9 @@ td.hint {
26282708
color: #fff;
26292709
}
26302710

2711+
.ui-dialog button.cancel span {
2712+
color: #ccc;
2713+
}
26312714

26322715

26332716
.unlim-trigger {
@@ -3045,4 +3128,6 @@ form#vstobjects.suspended {
30453128
font-size: 12px;
30463129
}
30473130

3048-
3131+
.ui-dialog .ui-dialog-content {
3132+
padding: 10px 26px 30px !important;
3133+
}

web/images/sprite.png

10.3 KB
Loading

web/images/vesta_logo.png

0 Bytes
Loading

web/inc/main.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ function display_error_block() {
286286
Ok: function() {
287287
$( this ).dialog( "close" );
288288
}
289+
},
290+
create:function () {
291+
$(this).closest(".ui-dialog")
292+
.find(".ui-button:first")
293+
.addClass("submit");
289294
}
290295
});
291296
});

0 commit comments

Comments
 (0)