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

Unified Diff: chrome/browser/resources/md_history/app.vulcanized.html

Issue 2278383002: [MD History] Use box-shadow to render card shadows everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@disable_test
Patch Set: rebase and add clip Created 4 years, 3 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: chrome/browser/resources/md_history/app.vulcanized.html
diff --git a/chrome/browser/resources/md_history/app.vulcanized.html b/chrome/browser/resources/md_history/app.vulcanized.html
index fd2c226fbb414743f4c787e60b6881e675875f61..266e314cddd51f2b98895e2ded5ff24185064072 100644
--- a/chrome/browser/resources/md_history/app.vulcanized.html
+++ b/chrome/browser/resources/md_history/app.vulcanized.html
@@ -2797,12 +2797,6 @@ h1 {
</iron-iconset-svg>
<style is="custom-style" css-build="shadow">html {
--card-border-color: rgba(0, 0, 0, 0.14);
- --card-box-shadow_-_box-shadow: 0 2px 2px rgba(0, 0, 0, .05),
- 0 1px 4px rgba(0, 0, 0, .08),
- 0 1px 1px rgba(0, 0, 0, .2);;
- --card-container-filter_-_filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .05))
- drop-shadow(0 1px 0px rgba(0, 0, 0, .08))
- drop-shadow(0 1px 1px rgba(0, 0, 0, .2));;
--card-first-last-item-padding: 8px;
--card-max-width: 960px;
--card-min-width: 550px;
@@ -3917,8 +3911,9 @@ paper-checkbox {
}
#background {
- background: #fff;
- bottom: -1px;
+ box-shadow: var(--shadow-elevation-2dp_-_box-shadow);
+ background: #fff;
+ bottom: 0;
left: 0;
position: absolute;
right: 0;
@@ -3926,10 +3921,27 @@ paper-checkbox {
z-index: -1;
}
+#background-clip {
+ bottom: -0.4px;
+ clip: rect(auto 999px auto -5px);
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+}
+
+:host([is-card-end]) #background-clip {
+ clip: rect(auto 999px 500px -5px);
+}
+
:host([embedded]) #background {
display: none;
}
+:host(:not([is-card-start])) #background {
+ top: -5px;
+}
+
:host([is-card-start]) #background {
border-radius: 2px 2px 0 0;
}
@@ -3939,11 +3951,17 @@ paper-checkbox {
bottom: 0;
}
+:host([is-card-start][is-card-end]) #background {
+ border-radius: 2px;
+}
+
</style>
<div id="sizing-container">
<div id="main-container">
- <div id="background"></div>
+ <div id="background-clip">
+ <div id="background"></div>
+ </div>
<div id="date-accessed" class="card-title">
[[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]]
</div>
@@ -4084,7 +4102,7 @@ button.more-vert-button div {
}
.group-container {
- box-shadow: var(--card-box-shadow_-_box-shadow);
+ box-shadow: var(--shadow-elevation-2dp_-_box-shadow);
background: #fff;
border-radius: 2px;
margin-bottom: var(--card-padding-between);
@@ -4287,10 +4305,6 @@ button.more-vert-button div {
overflow: auto;
}
-#infinite-list {
- filter: var(--card-container-filter_-_filter);
-}
-
history-item {
--history-item-padding-side: var(--card-padding-side);
}
@@ -4606,7 +4620,7 @@ button.more-vert-button div {
}
#history-item-container {
- box-shadow: var(--card-box-shadow_-_box-shadow);
+ box-shadow: var(--shadow-elevation-2dp_-_box-shadow);
background: #fff;
border-radius: 2px;
}

Powered by Google App Engine
This is Rietveld 408576698