Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 .popover-container { | 1 :host { |
|
alph
2017/02/21 21:27:23
Should we have a copyright header?
dgozman
2017/02/21 21:36:05
I don't know how that is supposed to work :-)
I th
| |
| 2 pointer-events: none; | |
| 3 overflow: hidden; | |
| 4 } | |
| 5 | |
| 6 .popover { | |
| 7 position: absolute; | 2 position: absolute; |
| 8 z-index: 600; | 3 z-index: 600; |
| 9 pointer-events: none; | 4 pointer-events: none; |
| 10 display: flex; | 5 display: flex; |
| 11 background-color: white; | 6 background-color: white; |
| 12 box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3), 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 1px 4px 0 rgba(0, 0, 0, 0.37); | 7 box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3), 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 1px 4px 0 rgba(0, 0, 0, 0.37); |
| 13 border-radius: 2px; | 8 border-radius: 2px; |
| 14 } | 9 } |
| 15 | 10 |
| 16 .popover .content { | 11 .widget { |
| 12 flex: auto; | |
| 13 pointer-events: none; | |
| 14 overflow: visible; | |
| 15 } | |
| 16 | |
| 17 .popover-content { | |
| 17 pointer-events: auto; | 18 pointer-events: auto; |
| 18 overflow: auto; | 19 overflow: auto; |
| 19 -webkit-user-select: text; | 20 -webkit-user-select: text; |
| 20 line-height: 11px; | 21 line-height: 11px; |
| 21 flex: auto; | 22 flex: auto; |
| 22 padding: 6px; | 23 padding: 6px; |
| 23 } | 24 } |
| 24 | 25 |
| 25 .popover .content.no-padding { | 26 .popover-content.no-padding { |
| 26 padding: 0; | 27 padding: 0; |
| 27 overflow: hidden; | 28 overflow: hidden; |
| 28 } | 29 } |
| 29 | 30 |
| 30 .popover .arrow { | 31 .arrow { |
| 31 position: absolute; | 32 position: absolute; |
| 32 background-image: url(Images/popoverArrows.png); | 33 background-image: url(Images/popoverArrows.png); |
| 33 width: 19px; | 34 width: 19px; |
| 34 height: 19px; | 35 height: 19px; |
| 35 margin-top: -19px; | 36 margin-top: -19px; |
| 36 top: 0; | 37 top: 0; |
| 37 left: 0; | 38 left: 0; |
| 39 z-index: 1; | |
| 38 } | 40 } |
| 39 | 41 |
| 40 .-theme-with-dark-background .popover .arrow { | 42 :host-context(.-theme-with-dark-background) .arrow { |
| 41 -webkit-filter: invert(80%); | 43 -webkit-filter: invert(80%); |
| 42 } | 44 } |
| 43 | 45 |
| 44 .popover.top-left-arrow .arrow { | 46 .arrow.top-left-arrow { |
| 45 /* The default is top-left, no styles needed. */ | 47 /* The default is top-left, no styles needed. */ |
| 46 } | 48 } |
| 47 | 49 |
| 48 .popover.top-right-arrow .arrow { | 50 .arrow.top-right-arrow { |
| 49 right: 19px; | 51 right: 19px; |
| 50 left: auto; | 52 left: auto; |
| 51 } | 53 } |
| 52 | 54 |
| 53 .popover.bottom-left-arrow .arrow { | 55 .arrow.bottom-left-arrow { |
| 54 top: auto; | 56 top: auto; |
| 55 bottom: 0; | 57 bottom: 0; |
| 56 margin-top: 0; | 58 margin-top: 0; |
| 57 margin-bottom: -19px; | 59 margin-bottom: -19px; |
| 58 background-position: 0 -19px; | 60 background-position: 0 -19px; |
| 59 } | 61 } |
| 60 | 62 |
| 61 .popover.bottom-right-arrow .arrow { | 63 .arrow.bottom-right-arrow { |
| 62 right: 15px; | 64 right: 15px; |
| 63 left: auto; | 65 left: auto; |
| 64 top: auto; | 66 top: auto; |
| 65 bottom: 0; | 67 bottom: 0; |
| 66 margin-top: 0; | 68 margin-top: 0; |
| 67 margin-bottom: -19px; | 69 margin-bottom: -19px; |
| 68 background-position: 0 -19px; | 70 background-position: 0 -19px; |
| 69 } | 71 } |
| OLD | NEW |