Make drive search bar blue

pull/1/head
yflory 7 years ago
parent 0157e04b10
commit c02fa39524

@ -37,6 +37,26 @@
background: linear-gradient(@start, @end); /* Standard syntax */ background: linear-gradient(@start, @end); /* Standard syntax */
} }
.placeholderColor (@color) {
&::-webkit-input-placeholder { /* WebKit, Blink, Edge */
color: @color;;
}
&:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: @color;
opacity: 1;
}
&::-moz-placeholder { /* Mozilla Firefox 19+ */
color: @color;
opacity: 1;
}
&:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: @color;
}
&::-ms-input-placeholder { /* Microsoft Edge */
color: @color;
}
}
.avatar (@width) { .avatar (@width) {
&.avatar { &.avatar {
overflow: hidden; overflow: hidden;

@ -1,13 +1,14 @@
@import "/customize/src/less/variables.less"; @import "/customize/src/less/variables.less";
@import "/customize/src/less/mixins.less";
@tree-bg: #fff; @tree-bg: #eee;
@tree-fg: #000; @tree-fg: #000;
@tree-lines-col: #888; @tree-lines-col: #888;
@drive-hover: #eee; @drive-hover: #eee;
@drive-hover-light: lighten(@drive-hover, 20%); @drive-hover-light: lighten(@drive-hover, 20%);
@content-bg: @tree-bg; @content-bg: #fff;
@content-bg-ro: darken(@content-bg, 10%); @content-bg-ro: darken(@content-bg, 10%);
@content-fg: @tree-fg; @content-fg: @tree-fg;
@info-box-bg: #ddddff; @info-box-bg: #ddddff;
@ -163,7 +164,7 @@ span {
#tree { #tree {
border-right: 1px solid #ccc; //border-right: 1px solid #ccc;
box-sizing: border-box; box-sizing: border-box;
background: @tree-bg; background: @tree-bg;
overflow: auto; overflow: auto;
@ -230,18 +231,31 @@ span {
margin-bottom: 20px; margin-bottom: 20px;
text-align: center; text-align: center;
padding: 0; padding: 0;
position: relative;
input { input {
background: lighten(@toolbar-drive-bg, 8%);
color: @toolbar-drive-color;
.placeholderColor(@toolbar-drive-color);
outline-width: 0px; outline-width: 0px;
border-radius: 0; border-radius: 0;
width: 100%; width: 100%;
border: 1px solid #ccc; //border: 1px solid #ccc;
border-right: 0; border: 0;
border-right: 1px solid lighten(@toolbar-drive-bg, 16%);
//border-right: 0;
height: 32px; height: 32px;
padding: 0 5px; padding: 0 5px;
padding-left: 45px;
&:focus { &:focus {
outline-width: 0px; outline-width: 0px;
} }
} }
.searchIcon {
color: @toolbar-drive-color;
position: absolute;
left: 20px; // TODO align with drive categories
top: 8px;
}
} }
.fa.expcol { .fa.expcol {
margin-left: -10px; margin-left: -10px;

@ -171,6 +171,7 @@ define([
var $sortDescIcon = $('<span>', {"class": "fa fa-angle-down sortdesc"}); var $sortDescIcon = $('<span>', {"class": "fa fa-angle-down sortdesc"});
var $closeIcon = $('<span>', {"class": "fa fa-window-close"}); var $closeIcon = $('<span>', {"class": "fa fa-window-close"});
var $backupIcon = $('<span>', {"class": "fa fa-life-ring"}); var $backupIcon = $('<span>', {"class": "fa fa-life-ring"});
var $searchIcon = $('<span>', {"class": "fa fa-search searchIcon"});
var history = { var history = {
isHistoryMode: false, isHistoryMode: false,
@ -2125,6 +2126,7 @@ define([
if (!filesOp.comparePath(newLocation, currentPath.slice())) { displayDirectory(newLocation); } if (!filesOp.comparePath(newLocation, currentPath.slice())) { displayDirectory(newLocation); }
}, 500); }, 500);
}).appendTo($div); }).appendTo($div);
$searchIcon.clone().appendTo($div);
if (isInSearch) { $input.val(currentPath[1] || ''); } if (isInSearch) { $input.val(currentPath[1] || ''); }
$container.append($div); $container.append($div);
}; };

Loading…
Cancel
Save