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

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

Issue 2670833005: Improve VR omnibox styling and function (Closed)
Patch Set: Fix closure compiler failure. Yay closure compiler. Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/vr_shell/vr_shell_ui.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ef646814ef284b3168acaf5b4bb6c795caa25705..64e51dca654de75414a91bae4b45d719fe6826ef 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui.css
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui.css
@@ -80,7 +80,7 @@ html {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
- border-radius: 50%;
+ border-radius: 10%;
height: 96px;
margin: auto auto;
opacity: 0.8;
@@ -113,14 +113,15 @@ html {
}
#reload-ui-button {
- --tranX: 0;
- --tranY: -1.2;
- --tranZ: -1.2;
color: white;
font-size: 24px;
padding: 12px;
}
+#reload-ui-button:hover {
+ background-color: pink;
+}
+
#url-indicator-container {
--tranX: 0;
--tranY: -0.65;
@@ -193,44 +194,59 @@ html {
#omnibox-ui-element {
--tranX: 0;
- --tranY: -0.2;
+ --tranY: -0.1;
--tranZ: -1.0;
+ background-color: transparent;
+ box-sizing: border-box;
font-family: arial;
+ font-size: 16px;
+ width: 400px;
}
-#omnibox-url-divider {
- background-color: black;
- height: 1px;
+#suggestions {
+ border: 1px solid transparent;
+ box-sizing: border-box;
}
-#omnibox-url-element {
+.suggestion {
+ align-items: center; /* Vertically center text in div. */
background-color: white;
+ /* Use a transparent border to hide text overflow, but allow background to
+ * color show through. */
+ border-left: 5px solid transparent;
+ border-right: 5px solid transparent;
+ box-sizing: border-box;
display: flex;
- padding: 5px;
- width: 100%;
+ height: 24px;
+ overflow: hidden;
+ visibility: hidden;
+ white-space: nowrap;
+}
+
+.suggestion:hover {
+ background-color: orange;
}
-.omnibox-suggestion {
+#omnibox-url-element {
background-color: white;
- height: 22px;
- overflow: hidden;
- padding-left: 5px;
- padding-right: 5px;
- white-space: nowrap;
- width: 100%;
+ border: 1px solid grey;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: row-reverse; /* Right-justify for convienence. */
+ margin-top: 2px;
+ padding: 5px;
}
#omnibox-input-field {
border: none;
font-size: 16px;
- margin: 3px;
+ outline: none; /* Do not show an outline when focused. */
overflow: hidden;
- padding: 0;
white-space: nowrap;
- width: 280px;
+ width: 100%;
}
#omnibox-clear-button {
background: url(../../../../ui/webui/resources/images/x-hover.png) no-repeat center center;
- width: 15px;
+ width: 18px;
}
« no previous file with comments | « no previous file | chrome/browser/resources/vr_shell/vr_shell_ui.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698