Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 .container { | 5 .container { |
| 6 color: var(--paper-grey-800); | 6 color: var(--paper-grey-800); |
| 7 margin: 64px auto; | 7 margin: 0 auto; |
| 8 width: 556px; | 8 width: 624px; |
| 9 } | |
| 10 | |
| 11 #message-container { | |
| 12 background-color: var(--google-red-700); | |
| 13 color: white; | |
| 14 font-size: 13px; | |
| 15 left: 0; | |
| 16 overflow: hidden; | |
| 17 padding: 10px 16px; | |
| 18 position: absolute; | |
|
tommycli
2016/03/24 19:28:50
Does this have to be absolute? Is it floating abov
Moe
2016/03/24 22:07:56
message-container should be fixed to the top of th
tommycli
2016/03/24 22:18:54
In that case absolute is fine. (Don't use fixed)
| |
| 19 right: 0; | |
| 20 top: 0; | |
| 21 } | |
| 22 | |
| 23 #message-container iron-icon { | |
| 24 height: 20px; | |
| 25 width: 20px; | |
| 26 } | |
| 27 | |
| 28 #message-container #message { | |
| 29 -webkit-margin-start: 16px; | |
| 30 } | |
| 31 | |
| 32 #message-container #supervised-user-import-existing { | |
| 33 color: inherit; | |
| 34 text-decoration: underline; | |
| 9 } | 35 } |
| 10 | 36 |
| 11 #title-bar { | 37 #title-bar { |
| 12 border-bottom: 1px solid rgba(0, 0, 0, .12); | 38 border-bottom: 1px solid rgba(0, 0, 0, .12); |
| 13 font-size: 16px; | 39 font-size: 16px; |
| 14 padding-bottom: 20px; | 40 font-weight: 500; |
| 41 padding: 104px 0 16px 0; | |
| 15 } | 42 } |
| 16 | 43 |
| 17 #nameInput, | 44 #nameInput, |
| 18 paper-dropdown-menu { | 45 paper-dropdown-menu { |
| 46 --paper-input-container: { | |
| 47 padding: 0; | |
| 48 }; | |
| 19 --paper-input-container-input: { | 49 --paper-input-container-input: { |
| 20 color: inherit; | 50 color: inherit; |
| 21 font-size: inherit; | 51 font-size: inherit; |
| 22 }; | 52 }; |
| 23 } | 53 } |
| 24 | 54 |
| 25 #nameInput { | 55 #nameInput { |
| 56 margin-bottom: 24px; | |
| 57 margin-top: 32px; | |
| 26 width: 300px; | 58 width: 300px; |
| 27 } | 59 } |
| 28 | 60 |
| 29 paper-dropdown-menu { | 61 paper-dropdown-menu { |
| 30 position: relative; | 62 margin-top: 12px; |
| 31 top: -1px; | |
| 32 width: 200px; | 63 width: 200px; |
| 33 } | 64 } |
| 34 | 65 |
| 35 #icons { | 66 paper-menu { |
| 36 margin-top: 24px; | 67 --paper-menu: { |
| 68 color: inherit; | |
| 69 padding: 0; | |
| 70 }; | |
| 71 --paper-menu-selected-item: { | |
| 72 font-weight: normal; | |
| 73 } | |
| 74 } | |
| 75 | |
| 76 paper-menu paper-item { | |
| 77 font-size: inherit; | |
| 78 min-height: 40px; | |
| 37 } | 79 } |
| 38 | 80 |
| 39 #icons #wrapper { | 81 #icons #wrapper { |
| 40 margin: -12px -10px; | 82 display: flex; |
| 83 flex-wrap: wrap; | |
| 84 margin: -12px; | |
| 41 } | 85 } |
| 42 | 86 |
| 43 #icons paper-button { | 87 #icons paper-button { |
| 44 background: rgb(222, 222, 222); | 88 background: var(--paper-grey-300); |
| 45 border: 1px solid rgba(0, 0, 0, .12); | 89 border: 1px solid rgba(0, 0, 0, .12); |
| 46 margin: 12px 10px; | 90 margin: 12px; |
| 47 min-width: 0; | 91 min-width: 0; |
| 48 padding: 6px 4px; | 92 padding: 6px 4px; |
| 49 } | 93 } |
| 50 | 94 |
| 51 #icons paper-button[active] { | 95 #icons paper-button[active] { |
| 52 border-color: var(--google-blue-500); | 96 border-color: var(--google-blue-500); |
| 53 } | 97 } |
| 54 | 98 |
| 55 #icons paper-button:focus:not([active]) { | 99 #icons paper-button:focus:not([active]) { |
| 56 outline: 1px dotted #666; | 100 outline: 1px dotted #666; |
| 57 } | 101 } |
| 58 | 102 |
| 59 #createSupervisedContainer { | 103 #supervised-user-container { |
| 60 margin-top: 10px; | 104 margin-top: 24px; |
| 61 } | 105 } |
| 62 | 106 |
| 63 #messageBubble { | 107 #supervised-user-container paper-checkbox { |
| 64 -webkit-transition: max-height 200ms, padding 200ms; | 108 --paper-checkbox-label-spacing: 16px; |
| 65 background-color: var(--google-red-700); | 109 --paper-checkbox-size: 20px; |
| 66 border-radius: 4px; | |
| 67 color: white; | |
| 68 font-weight: bold; | |
| 69 margin-left: auto; | |
| 70 margin-right: auto; | |
| 71 margin-top: 16px; | |
| 72 max-height: 50px; | |
| 73 overflow: hidden; | |
| 74 padding: 10px 10px; | |
| 75 text-align: center; | |
| 76 width: 80%; | |
| 77 } | 110 } |
| 78 | 111 |
| 79 #messageBubble:empty { | 112 #supervised-user-container #learn-more-accounts { |
| 80 display: none; | 113 -webkit-margin-start: 36px; |
| 114 display: flex; | |
| 115 flex-direction: column; | |
| 116 } | |
| 117 | |
| 118 #supervised-user-container #learnMore { | |
| 119 color: var(--google-blue-700); | |
| 120 line-height: 20px; | |
| 81 } | 121 } |
| 82 | 122 |
| 83 #actions { | 123 #actions { |
| 84 margin-top: 32px; | 124 bottom: 16px; |
| 125 display: flex; | |
| 126 position: absolute; | |
| 127 right: 16px; | |
| 128 } | |
| 129 | |
| 130 :host-context([dir='rtl']) #actions { | |
| 131 left: 16px; | |
| 132 right: auto; | |
| 85 } | 133 } |
| 86 | 134 |
| 87 #actions paper-button { | 135 #actions paper-button { |
| 88 border-radius: 2px; | 136 border-radius: 2px; |
| 137 font-weight: 500; | |
| 89 line-height: 32px; | 138 line-height: 32px; |
| 139 margin: 0; | |
| 90 min-width: 52px; | 140 min-width: 52px; |
| 91 padding: 0 16px; | 141 padding: 0 16px; |
| 92 } | 142 } |
| 93 | 143 |
| 94 #cancel { | 144 #actions paper-spinner { |
| 145 align-self: center; | |
| 146 height: 20px; | |
| 147 width: 20px; | |
| 148 } | |
| 149 | |
| 150 #actions #cancel { | |
| 95 color: var(--paper-grey-600); | 151 color: var(--paper-grey-600); |
| 96 } | 152 } |
| 97 | 153 |
| 98 #save { | 154 #actions #save { |
| 99 -webkit-margin-end: 0; | 155 -webkit-margin-start: 8px; |
| 100 background: var(--google-blue-500); | 156 background: var(--google-blue-500); |
| 101 color: white; | 157 color: white; |
| 102 } | 158 } |
| 103 | 159 |
| 104 #save[disabled] { | 160 #actions #save[disabled] { |
| 105 background: rgba(66, 133, 244, .5); | 161 background: rgba(66, 133, 244, .5); |
| 106 } | 162 } |
| OLD | NEW |