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

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: . 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 2a3d87806b9bc299951a2885aa84689a714242a4..c75d80666cff9d605ab0e23da054a1df68384c74 100644
--- a/ui/webui/resources/cr_elements/shared_style_css.html
+++ b/ui/webui/resources/cr_elements/shared_style_css.html
@@ -33,6 +33,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);
}

Powered by Google App Engine
This is Rietveld 408576698