Commit 465580f9 authored by Denis Kuznetsov's avatar Denis Kuznetsov Committed by Commit Bot

Clean up some leftover polymer v1 code

Bug: 955194
Change-Id: I1e83b90791fd98c4502a92806b2425665f2fc44f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2246565Reviewed-by: default avatarRoman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatardpapad <dpapad@chromium.org>
Commit-Queue: Denis Kuznetsov [CET] <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779291}
parent 6d0a288d
...@@ -12,12 +12,10 @@ oobe-dialog { ...@@ -12,12 +12,10 @@ oobe-dialog {
height: 100%; height: 100%;
} }
cr-dialog { cr-dialog::part(dialog) {
--cr-dialog-native: { max-width: 640px;
max-width: 640px; min-width: 512px;
min-width: 512px; width: calc(100% - var(--oobe-dialog-content-padding) * 2);
width: calc(100% - var(--oobe-dialog-content-padding) * 2);
}
} }
webview { webview {
......
...@@ -12,12 +12,10 @@ ...@@ -12,12 +12,10 @@
position: relative; position: relative;
} }
#forgotPasswordDlg { #forgotPasswordDlg::part(dialog) {
--cr-dialog-native: { color: var(--primary-text-color);
color: var(--primary-text-color); font-size: 15px;
font-size: 15px; width: 384px;
width: 384px;
}
} }
cr-input { cr-input {
......
...@@ -20,12 +20,10 @@ ...@@ -20,12 +20,10 @@
<style include="oobe-dialog-host"> <style include="oobe-dialog-host">
</style> </style>
<style include="cr-shared-style"> <style include="cr-shared-style">
#cancelConfirmDlg { #cancelConfirmDlg::part(dialog) {
--cr-dialog-native: { color: var(--primary-text-color);
color: var(--primary-text-color); font-size: 15px;
font-size: 15px; width: 384px;
width: 384px;
};
} }
.cancel-button { .cancel-button {
......
...@@ -119,11 +119,12 @@ ...@@ -119,11 +119,12 @@
font-size: 20px; font-size: 20px;
} }
#pinInput::part(input) {
font-size: 28px;
}
#pinInput { #pinInput {
--cr-input-error-display: none; --cr-input-error-display: none;
--cr-input-input: {
font-size: 28px;
};
--cr-input-letter-spacing: var(--pin-keyboard-input-letter-spacing, --cr-input-letter-spacing: var(--pin-keyboard-input-letter-spacing,
18px); 18px);
--cr-input-padding-end: 0; --cr-input-padding-end: 0;
......
...@@ -23,11 +23,6 @@ ...@@ -23,11 +23,6 @@
padding: 0; padding: 0;
top: 50%; top: 50%;
width: 512px; width: 512px;
/* Avoid using the mixin. Use ::part(dialog) instead.
* Necessary for backward compatibility with Polymer1/SDv0 (only used by
* OOBE). TODO(crbug.com/955194): Remove this once fixed.*/
@apply --cr-dialog-native;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
......
...@@ -75,11 +75,6 @@ ...@@ -75,11 +75,6 @@
text-align: inherit; text-align: inherit;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 100%; width: 100%;
/* Avoid using the mixin. Use ::part(input) instead.
* Necessary for backward compatibility with Polymer1/SDv0 (only used by
* OOBE). TODO(crbug.com/955194): Remove this once fixed.*/
@apply --cr-input-input;
} }
/* Underline styling below. */ /* Underline styling below. */
......
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