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

Side by Side 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: Address cjgrant's comments. Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* Copyright 2016 The Chromium Authors. All rights reserved. 1 /* Copyright 2016 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 html { 5 html {
6 background-color: rgba(255, 255, 255, 0); 6 background-color: rgba(255, 255, 255, 0);
7 } 7 }
8 8
9 #ui { 9 #ui {
10 --scaleFactor: 4;
11 left: 0; 10 left: 0;
11 max-width: 1920px;
12 position: absolute; 12 position: absolute;
13 top: 0; 13 top: 0;
14 transform: scale(0.25, 0.25);
15 transform-origin: left top; 14 transform-origin: left top;
16 width: 400%;
17 } 15 }
18 16
19 /* This class manages the position of elements on the texture page. 17 /* This class manages the position of elements on the texture page.
20 * Each UI element should have a bounding div of this class. */ 18 * Each UI element should have a bounding div of this class. */
21 .ui-element { 19 .ui-element {
22 float: left; 20 float: left;
23 margin: 2px; 21 margin: 2px;
24 } 22 }
25 23
26 .webvr-message-box { 24 .webvr-message-box {
27 align-items: center; 25 align-items: center;
28 display: flex; 26 display: flex;
29 flex-direction: column; 27 flex-direction: column;
30 justify-content: center; 28 justify-content: center;
31 } 29 }
32 30
33 /* Permanent security warning for WebVR. */ 31 /* Permanent security warning for WebVR. */
34 #webvr-not-secure-permanent { 32 #webvr-not-secure-permanent {
bshe 2016/11/30 23:00:46 nit: remove this empty selector
mthiesse 2016/11/30 23:25:05 Done.
35 height: 128px;
36 width: 512px;
37 } 33 }
38 34
39 #webvr-not-secure-permanent .webvr-not-secure-icon { 35 #webvr-not-secure-permanent .webvr-not-secure-icon {
40 display: inline-block; 36 display: inline-block;
41 margin: 20px 0; 37 margin: 20px 0;
42 vertical-align: middle; 38 vertical-align: middle;
43 } 39 }
44 40
45 #webvr-not-secure-permanent .webvr-string { 41 #webvr-not-secure-permanent .webvr-string {
46 display: inline-block; 42 display: inline-block;
47 margin: 20px 10.5px; 43 margin: 20px 10.5px;
48 vertical-align: middle; 44 vertical-align: middle;
49 } 45 }
50 46
51 /* This is a single-line (nowrap) short message. The width has some elasticity 47 /* This is a single-line (nowrap) short message. The width is elastic for
52 * for translations, and the underlying string had a request to translators 48 * translations, and the underlying string had a request to translators
53 * to keep it short. The maximum is based on the fixed-size container DIV, 49 * to keep it short. */
54 * excess will be clipped. There's space for about twice the length of the
55 * English "Not secure" message. */
56 #webvr-not-secure-permanent .webvr-box { 50 #webvr-not-secure-permanent .webvr-box {
57 background-color: white; 51 background-color: white;
58 border-radius: 6px; 52 border-radius: 6px;
59 box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 53 box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
60 box-sizing: border-box; 54 box-sizing: border-box;
61 color: #444; 55 color: #444;
62 font-size: 26px; 56 font-size: 26px;
63 height: 78px; 57 height: 78px;
64 max-width: 472px;
65 min-width: 226px; 58 min-width: 226px;
66 overflow: hidden; 59 overflow: hidden;
67 padding: 0 20px; 60 padding: 0 20px;
68 white-space: nowrap; 61 white-space: nowrap;
69 } 62 }
70 63
71 /* Transient security warning for WebVR. */ 64 /* Transient security warning for WebVR. */
72 #webvr-not-secure-transient { 65 #webvr-not-secure-transient {
bshe 2016/11/30 23:00:46 ditto
mthiesse 2016/11/30 23:25:05 Done.
73 height: 256px;
74 width: 512px;
75 } 66 }
76 67
77 /* This uses fixed width but the height has some elasticity for translations. 68 /* This uses fixed width but the height is elastic for translations. */
78 * The maximum is based on the fixed-size container DIV, excess will be
79 * clipped. */
80 #webvr-not-secure-transient > div { 69 #webvr-not-secure-transient > div {
81 background-color: rgba(26, 26, 26, 0.8); 70 background-color: rgba(26, 26, 26, 0.8);
82 border-radius: 6px; 71 border-radius: 6px;
83 box-sizing: border-box; 72 box-sizing: border-box;
84 color: white; 73 color: white;
85 display: flex; 74 display: flex;
86 flex-direction: column; 75 flex-direction: column;
87 font-size: 26px; 76 font-size: 26px;
88 justify-content: center; 77 justify-content: center;
89 line-height: 1.4; 78 line-height: 1.4;
90 max-height: 210px;
91 min-height: 160px; 79 min-height: 160px;
92 overflow: hidden; 80 overflow: hidden;
93 padding: 20px; 81 padding: 20px;
94 text-align: center; 82 text-align: center;
95 width: 512px; 83 width: 512px;
96 } 84 }
97 85
98 .round-button .button { 86 .round-button .button {
99 background-color: #eee; 87 background-color: #eee;
100 background-position: center; 88 background-position: center;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 background-color: #555; 124 background-color: #555;
137 color: white; 125 color: white;
138 font-size: 24px; 126 font-size: 24px;
139 padding: 12px; 127 padding: 12px;
140 } 128 }
141 129
142 #omni-container { 130 #omni-container {
143 --tranX: 0; 131 --tranX: 0;
144 --tranY: -0.65; 132 --tranY: -0.65;
145 --tranZ: -1.2; 133 --tranZ: -1.2;
134 height: 164px;
135 overflow: hidden;
136 width: 512px;
146 } 137 }
147 138
148 #omni { 139 #omni {
149 align-items: center; 140 align-items: center;
150 background-color: rgba(255, 255, 255, 0.9); 141 background-color: rgba(255, 255, 255, 0.9);
151 border-radius: 100px; 142 border-radius: 100px;
152 box-sizing: border-box; 143 box-sizing: border-box;
153 display: flex; 144 display: flex;
154 height: 104px; 145 height: 104px;
155 justify-content: center; 146 justify-content: center;
156 margin-bottom: 60px; 147 margin-bottom: 60px;
157 margin-top: 0; 148 margin-top: 0;
158 opacity: 1; 149 opacity: 1;
150 overflow: hidden;
159 transition: opacity 500ms ease, margin-top 500ms ease; 151 transition: opacity 500ms ease, margin-top 500ms ease;
160 white-space: nowrap; 152 white-space: nowrap;
161 width: 512px; 153 width: 512px;
162 } 154 }
163 155
164 #omni-content { 156 #omni-content {
165 align-items: center; 157 align-items: center;
166 display: flex; 158 display: flex;
167 max-width: 448px; 159 max-width: 448px;
168 } 160 }
(...skipping 25 matching lines...) Expand all
194 border: 4px solid rgb(86, 203, 255); 186 border: 4px solid rgb(86, 203, 255);
195 } 187 }
196 188
197 #omni.idle { 189 #omni.idle {
198 background-color: #ececec; 190 background-color: #ececec;
199 } 191 }
200 192
201 #omni.idle #domain { 193 #omni.idle #domain {
202 color: black; 194 color: black;
203 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698