Commit 53b27600 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

OOBE: Adapt oobe popup to fit narrow screens


TBR=alemate@chromium.org

Bug: 1011753, 1001458
Change-Id: If4ae6081e3a76d5c55764b898e6d617709f2956e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1848379
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarRoman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarDenis Kuznetsov <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705873}
parent fb7d5530
...@@ -12,11 +12,12 @@ ...@@ -12,11 +12,12 @@
} }
.oobe-popup { .oobe-popup {
width: 640px; max-width: 640px;
} }
#webview-container { #webview-container {
width: 100%; box-sizing: border-box;
padding: 16px;
} }
#webview-container.overlay-loading > webview, #webview-container.overlay-loading > webview,
...@@ -33,8 +34,6 @@ ...@@ -33,8 +34,6 @@
#overlay-webview-loading { #overlay-webview-loading {
display: block; display: block;
height: 300px; height: 300px;
margin: 16px;
width: 608px;
} }
#overlay-close-button { #overlay-close-button {
......
...@@ -31,10 +31,11 @@ ...@@ -31,10 +31,11 @@
</oobe-dialog> </oobe-dialog>
<div id="third-party-overlay" class="popup-overlay" hidden> <div id="third-party-overlay" class="popup-overlay" hidden>
<div id="overlay-container" class="oobe-popup not-resizable"> <div id="overlay-container" class="oobe-popup not-resizable layout
<div id="webview-container"> vertical">
<webview id="overlay-webview"></webview> <div id="webview-container" class="layout horizontal">
<div id="overlay-webview-loading"> <webview id="overlay-webview" class="flex"></webview>
<div id="overlay-webview-loading" class="flex">
<p i18n-content="assistantOobePopupOverlayLoading"></p> <p i18n-content="assistantOobePopupOverlayLoading"></p>
</div> </div>
</div> </div>
......
...@@ -13,18 +13,18 @@ ...@@ -13,18 +13,18 @@
} }
#value-prop-container { #value-prop-container {
border-right: 1px solid rgb(218, 220, 224); border-inline-end: 1px solid rgb(218, 220, 224);
width: 50%; width: 50%;
} }
#consents-container { #consents-container {
padding-left: 24px; padding-inline-start: 24px;
width: 50%; width: 50%;
} }
#user-name { #user-name {
color: #757575; color: #757575;
padding-left: 8px; padding-inline-start: 8px;
} }
#footer-text { #footer-text {
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
.oobe-popup { .oobe-popup {
border-radius: 8px; border-radius: 8px;
box-shadow: unset; box-shadow: unset;
width: 512px; max-width: 512px;
} }
#overlay-text { #overlay-text {
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
} }
#overlay-close-button { #overlay-close-button {
margin-right: 0; margin-inline-end: 0;
} }
#close-button-text { #close-button-text {
......
...@@ -18,14 +18,17 @@ ...@@ -18,14 +18,17 @@
z-index: 5; z-index: 5;
} }
/* please use oobe-popup inside a popup-overlay only */
.oobe-popup { .oobe-popup {
background: white; background: white;
border: 1px solid rgb(188, 193, 208); border: 1px solid rgb(188, 193, 208);
border-radius: 2px; border-radius: 2px;
box-shadow: 0 5px 80px #505050; box-shadow: 0 5px 80px #505050;
flex: 1 1 auto;
max-width: 460px;
min-height: 250px; min-height: 250px;
min-width: 50px;
position: relative; position: relative;
width: 460px;
z-index: 10; z-index: 10;
} }
......
...@@ -82,7 +82,7 @@ html[dir='rtl'] .arc-tos-overlay-close-top { ...@@ -82,7 +82,7 @@ html[dir='rtl'] .arc-tos-overlay-close-top {
} }
.arc-overlay-url .oobe-popup { .arc-overlay-url .oobe-popup {
width: 640px; max-width: 640px;
} }
.arc-overlay-text #arc-tos-overlay-webview-container, .arc-overlay-text #arc-tos-overlay-webview-container,
......
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