| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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 * Css based bubble. | 5 * Css based bubble. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 .bubble { | 8 .bubble { |
| 9 -webkit-transition: opacity 200ms ease-in-out; | 9 -webkit-transition: opacity 200ms ease-in-out; |
| 10 background: rgba(0, 0, 0, 0.8); | 10 background: rgba(0, 0, 0, 0.8); |
| 11 border-radius: 2px; | 11 border-radius: 2px; |
| 12 color: rgba(255, 255, 255, 0.87); | 12 color: rgba(255, 255, 255, 0.87); |
| 13 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); | 13 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); |
| 14 font-size: 12px; | 14 font-size: 12px; |
| 15 margin: 2px; | 15 margin: 2px; |
| 16 max-width: 250px; | 16 max-width: 250px; |
| 17 padding: 8px; | 17 padding: 8px; |
| 18 position: absolute; | 18 position: absolute; |
| 19 } | 19 } |
| 20 | 20 |
| 21 /* --- oldstyle begin --- */ |
| 22 |
| 23 .bubble[oldstyle] { |
| 24 background: white; |
| 25 border: 1px solid rgba(0, 0, 0, 0.25); |
| 26 color: unset; |
| 27 } |
| 28 |
| 29 .bubble[oldstyle]::before { |
| 30 border-style: solid; |
| 31 border-width: 8px; |
| 32 content: ''; |
| 33 display: block; |
| 34 position: absolute; |
| 35 } |
| 36 |
| 37 .bubble-top::before { |
| 38 border-color: rgba(0, 0, 0, 0.25) transparent transparent transparent; |
| 39 bottom: -16px; |
| 40 } |
| 41 |
| 42 html[dir=ltr] .bubble-top::before { |
| 43 left: 17px; |
| 44 } |
| 45 |
| 46 html[dir=rtl] .bubble-top::before { |
| 47 right: 17px; |
| 48 } |
| 49 |
| 50 html[dir=ltr] .bubble-right::before, |
| 51 html[dir=rtl] .bubble-left::before { |
| 52 border-color: transparent rgba(0, 0, 0, 0.25) transparent transparent; |
| 53 left: -16px; |
| 54 top: 17px; |
| 55 } |
| 56 |
| 57 .bubble-bottom::before { |
| 58 border-color: transparent transparent rgba(0, 0, 0, 0.25) transparent; |
| 59 top: -16px; |
| 60 } |
| 61 |
| 62 html[dir=ltr] .bubble-bottom::before { |
| 63 left: 17px; |
| 64 } |
| 65 |
| 66 html[dir=rtl] .bubble-bottom::before { |
| 67 right: 17px; |
| 68 } |
| 69 |
| 70 html[dir=ltr] .bubble-left::before, |
| 71 html[dir=rtl] .bubble-right::before { |
| 72 border-color: transparent transparent transparent rgba(0, 0, 0, 0.25); |
| 73 right: -16px; |
| 74 top: 17px; |
| 75 } |
| 76 |
| 77 .bubble[oldstyle]::after { |
| 78 border-style: solid; |
| 79 border-width: 8px; |
| 80 content: ''; |
| 81 display: block; |
| 82 position: absolute; |
| 83 } |
| 84 |
| 85 .bubble-top::after { |
| 86 border-color: white transparent transparent transparent; |
| 87 bottom: -15px; |
| 88 } |
| 89 |
| 90 html[dir=ltr] .bubble-top::after { |
| 91 left: 17px; |
| 92 } |
| 93 |
| 94 html[dir=rtl] .bubble-top::after { |
| 95 right: 17px; |
| 96 } |
| 97 |
| 98 html[dir=ltr] .bubble-right::after, |
| 99 html[dir=rtl] .bubble-left::after { |
| 100 border-color: transparent white transparent transparent; |
| 101 left: -15px; |
| 102 top: 17px; |
| 103 } |
| 104 |
| 105 .bubble-bottom::after { |
| 106 border-color: transparent transparent white transparent; |
| 107 top: -15px; |
| 108 } |
| 109 |
| 110 html[dir=ltr] .bubble-bottom::after { |
| 111 left: 17px; |
| 112 } |
| 113 |
| 114 html[dir=rtl] .bubble-bottom::after { |
| 115 right: 17px; |
| 116 } |
| 117 |
| 118 html[dir=ltr] .bubble-left::after, |
| 119 html[dir=rtl] .bubble-right::after { |
| 120 border-color: transparent transparent transparent white; |
| 121 right: -15px; |
| 122 top: 17px; |
| 123 } |
| 124 |
| 125 /* --- oldstyle end --- */ |
| 126 |
| 21 .error-message-bubble::before { | 127 .error-message-bubble::before { |
| 22 -webkit-mask-image: url(../../ui/webui/resources/images/warning.svg); | 128 -webkit-mask-image: url(../../ui/webui/resources/images/warning.svg); |
| 23 -webkit-mask-position: left top; | 129 -webkit-mask-position: left top; |
| 24 -webkit-mask-repeat: no-repeat; | 130 -webkit-mask-repeat: no-repeat; |
| 25 -webkit-mask-size: 20px; | 131 -webkit-mask-size: 20px; |
| 26 background-color: rgb(255,255,255); | 132 background-color: rgb(255,255,255); |
| 27 content: ''; | 133 content: ''; |
| 28 display: block; | 134 display: block; |
| 29 height: 20px; | 135 height: 20px; |
| 30 left: 8px; | 136 left: 8px; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 47 text-decoration: none; | 153 text-decoration: none; |
| 48 } | 154 } |
| 49 | 155 |
| 50 .error-message-bubble-padding { | 156 .error-message-bubble-padding { |
| 51 margin-bottom: 10px; | 157 margin-bottom: 10px; |
| 52 } | 158 } |
| 53 | 159 |
| 54 html[dir=rtl] .error-message-bubble { | 160 html[dir=rtl] .error-message-bubble { |
| 55 background-position: right top; | 161 background-position: right top; |
| 56 } | 162 } |
| OLD | NEW |