Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Common styles for Material Design settings. | 7 * Common styles for Material Design settings. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 h2 { | 10 h2 { |
| 11 color: #9e9e9e; | 11 color: #9e9e9e; |
| 12 font-size: 100%; | 12 font-size: 100%; |
| 13 font-weight: normal; | 13 font-weight: normal; |
| 14 margin-bottom: 20px; | 14 margin-bottom: 20px; |
| 15 margin-top: 30px; | 15 margin-top: 30px; |
| 16 } | 16 } |
| 17 | 17 |
| 18 | |
| 19 iron-icon { | 18 iron-icon { |
| 20 color: #969696; | 19 color: #969696; |
| 21 } | 20 } |
| 22 | 21 |
| 23 paper-button { | 22 paper-button { |
| 24 margin: 0; | 23 margin: 0; |
| 25 min-width: auto; | 24 min-width: auto; |
| 26 } | 25 } |
| 27 | 26 |
| 28 paper-button[toggles][active] { | 27 paper-button[toggles][active] { |
| 29 background-color: LightGray; | 28 background-color: LightGray; |
| 30 } | 29 } |
| 31 | 30 |
| 31 span + a { | |
|
Dan Beam
2016/01/25 18:54:07
why not span ~ a?
dschuyler
2016/01/26 22:16:35
Either will work in this case. '+' has the draw
b
| |
| 32 -webkit-margin-start: 4px; | |
| 33 } | |
| 34 | |
| 32 .text-elide { | 35 .text-elide { |
| 33 overflow: hidden; | 36 overflow: hidden; |
| 34 text-overflow: ellipsis; | 37 text-overflow: ellipsis; |
| 35 white-space: nowrap; | 38 white-space: nowrap; |
| 36 } | 39 } |
| 37 | 40 |
| 38 .button-row { | 41 .button-row { |
| 39 display: flex; | 42 display: flex; |
| 40 margin-top: 25px; | 43 margin-top: 25px; |
| 41 } | 44 } |
| 42 | 45 |
| 43 .button-strip { | 46 .button-strip { |
| 44 text-align: end; | 47 text-align: end; |
| 45 } | 48 } |
| 46 | 49 |
| 47 .list-frame { | 50 .list-frame { |
| 48 @apply(--layout-center); | 51 @apply(--layout-center); |
| 49 display: block; | 52 display: block; |
| 50 margin-left: 48px; | 53 margin-left: 48px; |
| 51 padding: 0; | 54 padding: 0; |
| 52 } | 55 } |
| 53 | 56 |
| 57 .list-frame select { | |
| 58 -webkit-margin-start: 4px; | |
| 59 } | |
| 60 | |
| 54 .list-item { | 61 .list-item { |
| 55 @apply(--layout-center); | 62 @apply(--layout-center); |
| 56 border-top: 1px solid #e0e0e0; | 63 border-top: 1px solid #e0e0e0; |
| 57 display: flex; | 64 display: flex; |
| 58 padding: 0; | 65 padding: 0; |
| 59 } | 66 } |
| 60 | 67 |
| 61 .list-item:first-of-type { | 68 .list-item:first-of-type { |
| 62 border-top: none; | 69 border-top: none; |
| 63 } | 70 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 99 } | 106 } |
| 100 | 107 |
| 101 .settings-box:first-of-type { | 108 .settings-box:first-of-type { |
| 102 border-top: none; | 109 border-top: none; |
| 103 } | 110 } |
| 104 | 111 |
| 105 .settings-box .secondary { | 112 .settings-box .secondary { |
| 106 color: #969696; | 113 color: #969696; |
| 107 } | 114 } |
| 108 | 115 |
| 116 .settings-box[row] { | |
|
Dan Beam
2016/01/25 18:54:07
why are you using an attribute here but classes ot
dschuyler
2016/01/26 22:16:35
I didn't recall the subtle difference between
the
| |
| 117 display: flex; | |
| 118 } | |
| 119 | |
| 109 .split { | 120 .split { |
| 110 display: flex; | 121 display: flex; |
| 111 } | 122 } |
| 112 | 123 |
| 113 .split .start { | 124 .split .start { |
| 114 flex: auto; | 125 flex: auto; |
| 115 } | 126 } |
| 116 | 127 |
| 117 .settings-box paper-item iron-icon { | 128 .settings-box paper-item iron-icon { |
| 118 /* Same padding as paper-icon-button. */ | 129 /* Same padding as paper-icon-button. */ |
| 119 padding: 8px; | 130 padding: 8px; |
| 120 } | 131 } |
| OLD | NEW |