toolkit/themes/linux/global/findBar.css

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 6
michael@0 7 findbar {
michael@0 8 border-top: 2px solid;
michael@0 9 -moz-border-top-colors: ThreeDShadow ThreeDHighlight;
michael@0 10 min-width: 1px;
michael@0 11 transition-property: margin-bottom, opacity, visibility;
michael@0 12 transition-duration: 150ms, 150ms, 0s;
michael@0 13 transition-timing-function: ease-in-out, ease-in-out, linear;
michael@0 14 }
michael@0 15
michael@0 16 findbar[hidden] {
michael@0 17 /* Override display:none to make the transition work. */
michael@0 18 display: -moz-box;
michael@0 19 visibility: collapse;
michael@0 20 margin-bottom: -1em;
michael@0 21 opacity: 0;
michael@0 22 transition-delay: 0s, 0s, 150ms;
michael@0 23 }
michael@0 24
michael@0 25 .findbar-container {
michael@0 26 -moz-padding-start: 8px;
michael@0 27 padding-top: 4px;
michael@0 28 padding-bottom: 4px;
michael@0 29 }
michael@0 30
michael@0 31 .findbar-closebutton {
michael@0 32 -moz-appearance: none;
michael@0 33 width: 16px;
michael@0 34 height: 16px;
michael@0 35 margin: 0 8px;
michael@0 36 }
michael@0 37
michael@0 38 /* Search field */
michael@0 39
michael@0 40 .findbar-textbox {
michael@0 41 -moz-appearance: none;
michael@0 42 border: 1px solid ThreeDShadow;
michael@0 43 box-shadow: 0 0 1px 0 ThreeDShadow inset;
michael@0 44 margin: 0;
michael@0 45 padding: 5px;
michael@0 46 width: 14em;
michael@0 47 }
michael@0 48
michael@0 49 .findbar-textbox:-moz-locale-dir(ltr) {
michael@0 50 border-radius: 3px 0 0 3px;
michael@0 51 border-right-width: 0;
michael@0 52 }
michael@0 53
michael@0 54 .findbar-textbox:-moz-locale-dir(rtl) {
michael@0 55 border-radius: 0 3px 3px 0;
michael@0 56 border-left-width: 0;
michael@0 57 }
michael@0 58
michael@0 59 .findbar-textbox[focused="true"] {
michael@0 60 border-color: Highlight;
michael@0 61 box-shadow: 0 0 1px 0 Highlight inset;
michael@0 62 }
michael@0 63
michael@0 64 .findbar-textbox[status="notfound"] {
michael@0 65 background-color: #f66;
michael@0 66 color: white;
michael@0 67 }
michael@0 68
michael@0 69 .findbar-textbox[flash="true"] {
michael@0 70 background-color: yellow;
michael@0 71 color: black;
michael@0 72 }
michael@0 73
michael@0 74 .findbar-textbox.minimal {
michael@0 75 border-width: 1px;
michael@0 76 border-radius: 3px;
michael@0 77 }
michael@0 78
michael@0 79 .findbar-find-previous,
michael@0 80 .findbar-find-next {
michael@0 81 -moz-margin-start: 0;
michael@0 82 -moz-appearance: none;
michael@0 83 background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.2));
michael@0 84 border: 1px solid ThreeDShadow;
michael@0 85 box-shadow: 0 1px #fff inset;
michael@0 86 list-style-image: url("chrome://global/skin/icons/find-arrows.png");
michael@0 87 padding: 5px 9px;
michael@0 88 line-height: 1em;
michael@0 89 }
michael@0 90
michael@0 91 .findbar-find-previous:focus,
michael@0 92 .findbar-find-next:focus {
michael@0 93 border-color: Highlight;
michael@0 94 box-shadow: 0 0 1px 0 Highlight inset;
michael@0 95 }
michael@0 96
michael@0 97 .findbar-find-previous:not([disabled]):active,
michael@0 98 .findbar-find-next:not([disabled]):active {
michael@0 99 background: rgba(23,50,76,.2);
michael@0 100 border: 1px solid ThreeDShadow;
michael@0 101 box-shadow: 0 1px 2px rgba(10,31,51,.2) inset;
michael@0 102 }
michael@0 103
michael@0 104 .findbar-find-previous {
michael@0 105 -moz-image-region: rect(0, 12px, 9px, 0);
michael@0 106 -moz-border-end-width: 0;
michael@0 107 }
michael@0 108
michael@0 109 .findbar-find-next {
michael@0 110 -moz-image-region: rect(0, 24px, 9px, 12px);
michael@0 111 }
michael@0 112
michael@0 113 .findbar-find-previous > .toolbarbutton-icon,
michael@0 114 .findbar-find-next > .toolbarbutton-icon {
michael@0 115 margin: 0;
michael@0 116 }
michael@0 117
michael@0 118 .findbar-find-previous > .toolbarbutton-text,
michael@0 119 .findbar-find-next > .toolbarbutton-text {
michael@0 120 margin: 0;
michael@0 121 padding: 0;
michael@0 122 width: 0;
michael@0 123 }
michael@0 124
michael@0 125 .findbar-find-previous[disabled="true"] > .toolbarbutton-icon,
michael@0 126 .findbar-find-next[disabled="true"] > .toolbarbutton-icon {
michael@0 127 opacity: .5;
michael@0 128 }
michael@0 129
michael@0 130 .findbar-find-next:-moz-locale-dir(ltr) {
michael@0 131 border-top-right-radius: 2px;
michael@0 132 border-bottom-right-radius: 2px;
michael@0 133 }
michael@0 134
michael@0 135 .findbar-find-next:-moz-locale-dir(rtl) {
michael@0 136 border-top-left-radius: 2px;
michael@0 137 border-bottom-left-radius: 2px;
michael@0 138 }
michael@0 139
michael@0 140 .findbar-find-previous:focus + .findbar-find-next {
michael@0 141 -moz-border-start-width: 0;
michael@0 142 }
michael@0 143
michael@0 144 .findbar-find-previous:focus {
michael@0 145 -moz-border-end-width: 1px;
michael@0 146 }
michael@0 147
michael@0 148 .findbar-highlight,
michael@0 149 .findbar-case-sensitive {
michael@0 150 -moz-margin-start: 5px;
michael@0 151 }
michael@0 152
michael@0 153 .findbar-find-status {
michael@0 154 color: GrayText;
michael@0 155 margin: 0 !important;
michael@0 156 -moz-margin-start: 12px !important;
michael@0 157 }
michael@0 158
michael@0 159 .find-status-icon[status="pending"] {
michael@0 160 list-style-image: url("chrome://global/skin/icons/loading_16.png");
michael@0 161 }

mercurial