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

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

Issue 2180823004: Migrate <cr-dialog> from PaperDialogBehavior to native <dialog>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge conflicts with Tommy's CL. Created 4 years, 5 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/cr_dialog/cr_dialog.html
diff --git a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html
index 82057a43d1b544fe1b3737545093ff793e4f57f6..6d3fc8be07064fc7e3e6f17eaaddfaf3f3a8f3f7 100644
--- a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html
+++ b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html
@@ -1,23 +1,27 @@
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/polymer.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog-behavior/paper-dialog-behavior.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog-behavior/paper-dialog-shared-styles.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<dom-module id="cr-dialog">
<template>
- <style include="paper-dialog-shared-styles">
+ <style>
:host {
+ border: 0;
border-radius: 2px;
+ bottom: 0;
+ color: inherit;
+ padding: 0;
+ top: 0;
}
- :host ::content > * {
- /* Overrides paper-dialog-shared-styles. */
- -webkit-padding-end: 0;
- -webkit-padding-start: 0;
- margin-bottom: 0;
- margin-top: 0;
+ :host::backdrop {
+ background-color: rgba(0, 0, 0, 0.6);
+ bottom: 0;
+ left: 0;
+ position: fixed;
+ right: 0;
+ top: 0;
}
.title-container {
@@ -29,7 +33,7 @@
}
:host ::content .title {
- font-size: 114.28%; /* (16px / 14px) * 100 */
+ font-size: 123.07%; /* (16px / 13px) * 100 */
}
#close {
@@ -63,12 +67,6 @@
flex: 1;
}
- :host ::content .body,
- :host ::content .footer,
- :host ::content paper-button {
- font-size: 92.86%; /* (13px / 14px) * 100 */
- }
-
:host ::content .button-container {
-webkit-padding-end: 16px;
-webkit-padding-start: 16px;
« no previous file with comments | « chrome/test/data/webui/settings/startup_urls_page_test.js ('k') | ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698