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

Side by Side Diff: remoting/webapp/menu_button.css

Issue 401623004: Add unit-tests for MenuButton and simplify implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing file. Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « remoting/webapp/html/template_unittest.html ('k') | remoting/webapp/menu_button.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 5
6 .menu-button { 6 .menu-button {
7 position: relative; 7 position: relative;
8 } 8 }
9 9
10 .menu-button-activator + ul { 10 .menu-button-activator + ul {
11 visibility: hidden; 11 display: none;
Jamie 2014/07/18 01:37:18 visibility: hidden doesn't allow for verification
kelvinp 2014/07/18 18:47:39 I think either way is fine. Personally, I prefer
Jamie 2014/07/18 19:46:12 As discussed in person, since showing or hiding th
12 position: absolute; 12 position: absolute;
13 } 13 }
14 14
15 .menu-button-activator + ul:not(.right-align) { 15 .menu-button-activator + ul:not(.right-align) {
16 left: 1px; 16 left: 1px;
17 } 17 }
18 18
19 .menu-button-activator + ul.right-align { 19 .menu-button-activator + ul.right-align {
20 right: 1px; 20 right: 1px;
21 } 21 }
22 22
23 .menu-button-activator.active + ul { 23 .menu-button-activator.active + ul {
24 visibility: visible; 24 display: block;
25 } 25 }
26 26
27 .menu-button-activator.active { 27 .menu-button-activator.active {
28 background-color: #EEE; 28 background-color: #EEE;
29 background-image: -webkit-gradient(linear, left top, left bottom, 29 background-image: -webkit-gradient(linear, left top, left bottom,
30 from(#EEE), to(#E0E0E0)); 30 from(#EEE), to(#E0E0E0));
31 box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1); 31 box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
32 border: 1px solid #CCC; 32 border: 1px solid #CCC;
33 color: #333; 33 color: #333;
34 } 34 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 .help-icon:hover, .help-icon.active { 82 .help-icon:hover, .help-icon.active {
83 opacity: 0.5; 83 opacity: 0.5;
84 } 84 }
85 85
86 #help-feedback-toolbar { 86 #help-feedback-toolbar {
87 margin-left: 8px; 87 margin-left: 8px;
88 margin-top: 4px; 88 margin-top: 4px;
89 } 89 }
OLDNEW
« no previous file with comments | « remoting/webapp/html/template_unittest.html ('k') | remoting/webapp/menu_button.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698