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

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui.css

Issue 2428383006: Decouple VR Shell DPR and CSS size from Physical Displays. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/vr_shell/vr_shell_ui.css
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui.css b/chrome/browser/resources/vr_shell/vr_shell_ui.css
index b0ad92bbbfc89dd0b04bc8f3961053ad40c62f0f..4d19c81d37934bb14d0cc768d38d3ba99dcaa380 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui.css
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui.css
@@ -7,13 +7,11 @@ html {
}
#ui {
- --scaleFactor: 4;
cjgrant 2016/11/29 20:28:06 Generally, updating the UI could be a separate cha
mthiesse 2016/11/29 21:07:21 In this case I would prefer not to update the UI i
left: 0;
+ max-width: 1920px;
position: absolute;
top: 0;
- transform: scale(0.25, 0.25);
transform-origin: left top;
- width: 400%;
}
/* This class manages the position of elements on the texture page.
@@ -32,8 +30,6 @@ html {
/* Permanent security warning for WebVR. */
#webvr-not-secure-permanent {
- height: 128px;
- width: 512px;
}
#webvr-not-secure-permanent .webvr-not-secure-icon {
@@ -48,11 +44,9 @@ html {
vertical-align: middle;
}
-/* This is a single-line (nowrap) short message. The width has some elasticity
- * for translations, and the underlying string had a request to translators
- * to keep it short. The maximum is based on the fixed-size container DIV,
- * excess will be clipped. There's space for about twice the length of the
- * English "Not secure" message. */
+/* This is a single-line (nowrap) short message. The width is elasticfor
+ * translations, and the underlying string had a request to translators
+ * to keep it short. */
#webvr-not-secure-permanent .webvr-box {
background-color: white;
border-radius: 6px;
@@ -61,7 +55,6 @@ html {
color: #444;
font-size: 26px;
height: 78px;
- max-width: 472px;
min-width: 226px;
overflow: hidden;
padding: 0 20px;
@@ -70,13 +63,9 @@ html {
/* Transient security warning for WebVR. */
#webvr-not-secure-transient {
- height: 256px;
- width: 512px;
}
-/* This uses fixed width but the height has some elasticity for translations.
- * The maximum is based on the fixed-size container DIV, excess will be
- * clipped. */
+/* This uses fixed width but the height is elastic for translations. */
#webvr-not-secure-transient > div {
background-color: rgba(26, 26, 26, 0.8);
border-radius: 6px;
@@ -87,12 +76,11 @@ html {
font-size: 26px;
justify-content: center;
line-height: 1.4;
- max-height: 210px;
+ max-width: 512px;
min-height: 160px;
overflow: hidden;
padding: 20px;
text-align: center;
- width: 512px;
}
.round-button .button {
@@ -143,6 +131,9 @@ html {
--tranX: 0;
--tranY: -0.65;
--tranZ: -1.2;
+ height: 164px;
+ overflow: hidden;
+ width: 512px;
}
#omni {
@@ -156,6 +147,7 @@ html {
margin-bottom: 60px;
margin-top: 0;
opacity: 1;
+ overflow: hidden;
transition: opacity 500ms ease, margin-top 500ms ease;
white-space: nowrap;
width: 512px;

Powered by Google App Engine
This is Rietveld 408576698