Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Update selected background on repeater, datepicker, and tree #852

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions less/datepicker.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
display: block;

&:hover {
background: #b7e3f8;
background: @selectableHover;
text-decoration: none;
}
}

&.current-day {
b, button {
border: 1px solid #1d75bb;
border: 1px solid #333;
}
}

Expand Down Expand Up @@ -97,15 +97,15 @@

&.selected {
span {
background: #1d75bb;
background: @selected;

&:hover {
background: #0f5f9f;
background: @selectedHover;
}
}

b, button {
color: #fff;
color: #8d8787;
}

&.current-day {
Expand Down
12 changes: 6 additions & 6 deletions less/repeater-list.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.repeater[data-viewtype="list"] {
.repeater[data-currentview^="list"] {
.repeater-canvas.scrolling {
overflow: visible;

Expand Down Expand Up @@ -53,7 +53,7 @@

tr {
&:focus {
outline: 1px dotted #66afe9;
outline: 1px dotted #d7d7d7;
}

&.empty {
Expand All @@ -68,19 +68,19 @@

&.selectable{
&:hover td {
background: #d9edf7;
background: @selectableHover;
cursor: pointer;
}
}

&.selected {
&:hover td {
background: #428bca;
background: @selectedHover;
}

td {
background: #66AFE9;
color: #fff;
background: @selected;
color: #333;

&:first-child {
padding-left: 30px;
Expand Down
6 changes: 3 additions & 3 deletions less/repeater-thumbnail.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@

&.selectable {
&:hover {
background: #d9edf7;
background: @selectableHover;
cursor: pointer;
}
}

&.selected {
background: #66AFE9;
background: @selected;
color: #fff;

&:hover {
background: #428bca;
background: @selectedHover;
}
}

Expand Down
2 changes: 1 addition & 1 deletion less/tree.less
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

&.tree-selected .tree-item-name {
background-color: @treeSelectBackground;
color: #fff;
color: #333;
}

label {
Expand Down
9 changes: 8 additions & 1 deletion less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@
@zindexModalBackdrop: 1040;
@zindexModal: 1050;

//Selectable Hover, Selected, Selected Hover
// -------------------------
@selectableHover: #f1f1f1;
@selected: #efefef;
@selectedHover: #d7d7d7;



// Sprite icons path
// -------------------------
Expand Down Expand Up @@ -304,7 +311,7 @@
// Tree
// --------------------------------------------------
@treeHoverText: @grayLight;
@treeSelectBackground: #4f4f4f;
@treeSelectBackground: @selected;


// Icons
Expand Down