Commit 65ba23f2 authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Commit Bot

Files app: Grid view focus and selection styles

Bug: 992822
Change-Id: I0a5cbd7f2233a9079065fe9d85dffe4b39462007
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2086352
Commit-Queue: Noel Gordon <noel@chromium.org>
Auto-Submit: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746681}
parent 296540fd
......@@ -1674,6 +1674,7 @@ body.files-ng .thumbnail-bottom {
}
body.files-ng .thumbnail-item .filename-label {
font-weight: normal;
padding-inline-end: 12px;
}
......@@ -1848,18 +1849,39 @@ body.files-ng .thumbnail-grid .thumbnail-bottom {
background-color: rgb(232, 246, 253);
}
/** TODO(lucmult): Style the bg without focus */
body.files-ng .thumbnail-grid .thumbnail-item[selected] .thumbnail-bottom,
body.files-ng .thumbnail-grid .thumbnail-item[lead] .thumbnail-bottom,
body.files-ng .thumbnail-grid .thumbnail-item[selected].directory
.thumbnail-bottom,
body.files-ng .thumbnail-grid .thumbnail-item[lead].directory
.thumbnail-bottom {
background-color: var(--google-grey-100);
}
body.files-ng .thumbnail-grid:focus .thumbnail-item[selected] .thumbnail-bottom,
body.files-ng .thumbnail-grid:focus .thumbnail-item[lead] .thumbnail-bottom,
body.files-ng .thumbnail-grid:focus .thumbnail-item[selected].directory
.thumbnail-bottom,
body.files-ng .thumbnail-grid:focus .thumbnail-item[lead].directory
.thumbnail-bottom {
background-color: var(--google-blue-50);
}
body.check-select.files-ng .thumbnail-grid:focus .thumbnail-item[selected]
.thumbnail-bottom,
body.check-select.files-ng .thumbnail-grid:focus .thumbnail-item[lead]
.thumbnail-bottom,
body.check-select.files-ng .thumbnail-grid:focus
.thumbnail-item[selected].directory .thumbnail-bottom,
body.check-select.files-ng .thumbnail-grid:focus .thumbnail-item[lead].directory
.thumbnail-bottom {
color: var(--google-blue-600);
}
body.files-ng #list-container .thumbnail-grid .thumbnail-item[lead] {
body.check-select.files-ng #list-container .thumbnail-grid:focus
.thumbnail-item[lead],
body.files-ng #list-container .thumbnail-grid:focus
.thumbnail-item[lead]:not([selected]) {
/* 2px border: 1px via box-shadow + 1px via border, to accommodate
the difference between regular border 1px and selected border 2px.*/
border-color: var(--google-blue-600);
......@@ -2633,6 +2655,7 @@ body.files-ng #list-container li .detail-checkmark {
-webkit-mask-repeat: no-repeat;
background-color: currentColor;
background-image: none;
color: var(--google-blue-600);
height: 40px;
width: 32px;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment