Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | body { |
michael@0 | 2 | background-color: rgb(241, 244, 248); |
michael@0 | 3 | margin-top: 2em; |
michael@0 | 4 | font: message-box; |
michael@0 | 5 | font-size: 100%; |
michael@0 | 6 | } |
michael@0 | 7 | |
michael@0 | 8 | p { |
michael@0 | 9 | font-size: .8em; |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | #error-box { |
michael@0 | 13 | background: url('chrome://global/skin/icons/information-24.png') no-repeat left 4px; |
michael@0 | 14 | -moz-padding-start: 30px; |
michael@0 | 15 | } |
michael@0 | 16 | |
michael@0 | 17 | #error-box:-moz-locale-dir(rtl) { |
michael@0 | 18 | background-position: right 4px; |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | #main-error-msg { |
michael@0 | 22 | color: #4b4b4b; |
michael@0 | 23 | font-weight: bold; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | |
michael@0 | 27 | #button-box { |
michael@0 | 28 | text-align: center; |
michael@0 | 29 | width: 75%; |
michael@0 | 30 | margin: 0 auto; |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | @media all and (min-width: 300px) { |
michael@0 | 34 | #error-box { |
michael@0 | 35 | max-width: 50%; |
michael@0 | 36 | margin: 0 auto; |
michael@0 | 37 | background-image: url('chrome://global/skin/icons/information-32.png'); |
michael@0 | 38 | min-height: 36px; |
michael@0 | 39 | -moz-padding-start: 38px; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | button { |
michael@0 | 43 | width: auto !important; |
michael@0 | 44 | min-width: 150px; |
michael@0 | 45 | } |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | @media all and (min-width: 780px) { |
michael@0 | 49 | #error-box { |
michael@0 | 50 | max-width: 30%; |
michael@0 | 51 | } |
michael@0 | 52 | } |
michael@0 | 53 | |
michael@0 | 54 | button { |
michael@0 | 55 | font: message-box; |
michael@0 | 56 | font-size: 0.6875em; |
michael@0 | 57 | -moz-appearance: none; |
michael@0 | 58 | -moz-user-select: none; |
michael@0 | 59 | width: 100%; |
michael@0 | 60 | margin: 2px 0; |
michael@0 | 61 | padding: 2px 6px; |
michael@0 | 62 | line-height: 1.2; |
michael@0 | 63 | background-color: hsla(210,30%,95%,.1); |
michael@0 | 64 | background-image: linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1)); |
michael@0 | 65 | background-clip: padding-box; |
michael@0 | 66 | border: 1px solid hsla(210,15%,25%,.4); |
michael@0 | 67 | border-color: hsla(210,15%,25%,.3) hsla(210,15%,25%,.35) hsla(210,15%,25%,.4); |
michael@0 | 68 | border-radius: 3px; |
michael@0 | 69 | box-shadow: 0 1px 0 hsla(0,0%,100%,.3) inset, |
michael@0 | 70 | 0 0 0 1px hsla(0,0%,100%,.3) inset, |
michael@0 | 71 | 0 1px 0 hsla(0,0%,100%,.1); |
michael@0 | 72 | |
michael@0 | 73 | transition-property: background-color, border-color, box-shadow; |
michael@0 | 74 | transition-duration: 150ms; |
michael@0 | 75 | transition-timing-function: ease; |
michael@0 | 76 | |
michael@0 | 77 | } |
michael@0 | 78 | |
michael@0 | 79 | button:hover { |
michael@0 | 80 | background-color: hsla(210,30%,95%,.8); |
michael@0 | 81 | border-color: hsla(210,15%,25%,.45) hsla(210,15%,25%,.5) hsla(210,15%,25%,.55); |
michael@0 | 82 | box-shadow: 0 1px 0 hsla(0,0%,100%,.3) inset, |
michael@0 | 83 | 0 0 0 1px hsla(0,0%,100%,.3) inset, |
michael@0 | 84 | 0 1px 0 hsla(0,0%,100%,.1), |
michael@0 | 85 | 0 0 3px hsla(210,15%,25%,.1); |
michael@0 | 86 | transition-property: background-color, border-color, box-shadow; |
michael@0 | 87 | transition-duration: 150ms; |
michael@0 | 88 | transition-timing-function: ease; |
michael@0 | 89 | } |
michael@0 | 90 | |
michael@0 | 91 | button:hover:active { |
michael@0 | 92 | background-color: hsla(210,15%,25%,.2); |
michael@0 | 93 | box-shadow: 0 1px 1px hsla(210,15%,25%,.2) inset, |
michael@0 | 94 | 0 0 2px hsla(210,15%,25%,.4) inset; |
michael@0 | 95 | transition-property: background-color, border-color, box-shadow; |
michael@0 | 96 | transition-duration: 10ms; |
michael@0 | 97 | transition-timing-function: linear; |
michael@0 | 98 | } |