Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: ui/webui/resources/cr_elements/shared_style_css.html

Issue 2256753003: MD Settings: Introduce CrScrollableBehavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_638377_selectable_behavior
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/shared_style_css.html
diff --git a/ui/webui/resources/cr_elements/shared_style_css.html b/ui/webui/resources/cr_elements/shared_style_css.html
index b705bdc7e5b84d21a12b07edacb7ab530018c579..2e912bb631a765484385a0a97abe859d2fe1dcdb 100644
--- a/ui/webui/resources/cr_elements/shared_style_css.html
+++ b/ui/webui/resources/cr_elements/shared_style_css.html
@@ -41,6 +41,26 @@
@apply(--cr-actionable);
}
+ [scrollable] {
+ border-color: transparent;
+ border-style: solid;
+ border-width: 1px 0;
+ overflow-y: auto;
+ }
+ [scrollable].is-scrolled {
+ border-top-color: var(--google-grey-300);
+ }
+ [scrollable].can-scroll:not(.scrolled-to-bottom) {
+ border-bottom-color: var(--google-grey-300);
+ }
+ [scrollable] :focus {
+ @apply(--cr-list-item-focus);
+ @apply(--cr-selectable-focus);
+ }
+ [scrollable] iron-list > * {
+ @apply(--cr-actionable);
+ }
+
[selectable] :focus {
@apply(--cr-selectable-focus);
}
« no previous file with comments | « ui/webui/resources/cr_elements/cr_scrollable_behavior.js ('k') | ui/webui/resources/cr_elements_resources.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698