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

Side by Side Diff: sky/framework/components/menu_item.dart

Issue 1128173007: [Effen] remove some redundant styles (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « sky/framework/components/floating_action_button.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 import '../fn.dart'; 5 import '../fn.dart';
6 import 'button_base.dart'; 6 import 'button_base.dart';
7 import 'icon.dart'; 7 import 'icon.dart';
8 import 'ink_well.dart'; 8 import 'ink_well.dart';
9 9
10 class MenuItem extends ButtonBase { 10 class MenuItem extends ButtonBase {
11 static final Style _style = new Style(''' 11 static final Style _style = new Style('''
12 transform: translateX(0);
13 display: flex;
14 flex-direction: row;
15 align-items: center; 12 align-items: center;
16 height: 48px; 13 height: 48px;
17 -webkit-user-select: none;''' 14 -webkit-user-select: none;'''
18 ); 15 );
19 16
20 static final Style _highlightStyle = new Style(''' 17 static final Style _highlightStyle = new Style('''
21 transform: translateX(0);
22 display: flex;
23 flex-direction: row;
24 align-items: center; 18 align-items: center;
25 height: 48px; 19 height: 48px;
26 background: rgba(153, 153, 153, 0.4); 20 background: rgba(153, 153, 153, 0.4);
27 -webkit-user-select: none;''' 21 -webkit-user-select: none;'''
28 ); 22 );
29 23
30 static final Style _iconStyle = new Style(''' 24 static final Style _iconStyle = new Style('''
31 padding: 0px 16px;''' 25 padding: 0px 16px;'''
32 ); 26 );
33 27
(...skipping 21 matching lines...) Expand all
55 new Container( 49 new Container(
56 style: _labelStyle, 50 style: _labelStyle,
57 children: children 51 children: children
58 ) 52 )
59 ] 53 ]
60 ), 54 ),
61 highlight ? _highlightStyle : _style 55 highlight ? _highlightStyle : _style
62 ); 56 );
63 } 57 }
64 } 58 }
OLDNEW
« no previous file with comments | « sky/framework/components/floating_action_button.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698