| 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 :host { | 5 :host { |
| 6 @apply(--downloads-shared-style); | 6 @apply(--downloads-shared-style); |
| 7 display: flex; | 7 display: flex; |
| 8 margin: 32px 0; | 8 margin: 32px 0; |
| 9 } | 9 } |
| 10 | 10 |
| 11 :host([hide-date]) { | 11 :host([hide-date]) { |
| 12 margin-top: -16px; | 12 margin-top: -16px; |
| 13 } | 13 } |
| 14 | 14 |
| 15 /* Day separators. */ | |
| 16 :host(:not(:first-of-type):not([hide-date])) :-webkit-any(#content-wrapper, | |
| 17 #since) { | |
| 18 border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */ | |
| 19 padding-top: 32px; | |
| 20 } | |
| 21 | |
| 22 #date-container, | 15 #date-container, |
| 23 #end-cap { | 16 #end-cap { |
| 24 flex: 1 0 var(--downloads-side-column-basis); | 17 flex: 1 0 var(--downloads-side-column-basis); |
| 25 } | 18 } |
| 26 | 19 |
| 27 #date-container > * { | 20 #date-container > * { |
| 28 -webkit-margin-start: 24px; | |
| 29 color: #616161; | 21 color: #616161; |
| 30 font-size: 107.69%; | 22 font-size: 107.69%; |
| 31 font-weight: bold; | 23 font-weight: bold; |
| 32 } | 24 } |
| 33 | 25 |
| 34 :host([hide-date]) #date-container { | 26 :host([hide-date]) #date-container { |
| 35 visibility: hidden; | 27 visibility: hidden; |
| 36 } | 28 } |
| 37 | 29 |
| 38 #content { | 30 #content { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 } | 131 } |
| 140 | 132 |
| 141 #remove { | 133 #remove { |
| 142 --paper-icon-button: { | 134 --paper-icon-button: { |
| 143 height: 16px; | 135 height: 16px; |
| 144 width: 16px; | 136 width: 16px; |
| 145 }; | 137 }; |
| 146 --iron-icon-height: 16px; | 138 --iron-icon-height: 16px; |
| 147 --iron-icon-width: 16px; | 139 --iron-icon-width: 16px; |
| 148 } | 140 } |
| 141 |
| 142 @media not all and (max-width: 1024px) { |
| 143 /* Only show date separators in wide mode. */ |
| 144 :host(:not(:first-of-type):not([hide-date])) :-webkit-any(#content-wrapper, |
| 145 #since) { |
| 146 border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */ |
| 147 padding-top: 32px; |
| 148 } |
| 149 |
| 150 #date-container > * { |
| 151 -webkit-margin-start: 24px; |
| 152 } |
| 153 } |
| 154 |
| 155 @media all and (max-width: 1024px) { |
| 156 /* In narrow windows, put the dates on top instead of on the side. */ |
| 157 :host { |
| 158 flex-direction: column; |
| 159 } |
| 160 |
| 161 :host([hide-date]) #date-container, |
| 162 #end-cap { |
| 163 display: none; |
| 164 } |
| 165 |
| 166 #content { |
| 167 margin: 0 auto; |
| 168 } |
| 169 |
| 170 #date-container { |
| 171 flex: none !important; |
| 172 margin: 0 auto 32px; |
| 173 width: var(--downloads-item-width); |
| 174 } |
| 175 } |
| OLD | NEW |