1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/linux/global/textbox.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,142 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +/* ===== textbox.css ================================================== 1.9 + == Styles used by the XUL textbox element. 1.10 + ======================================================================= */ 1.11 + 1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.13 +@namespace html url("http://www.w3.org/1999/xhtml"); 1.14 + 1.15 +/* ::::: textbox ::::: */ 1.16 + 1.17 +textbox { 1.18 + -moz-appearance: textfield; 1.19 + cursor: text; 1.20 + margin: 2px 4px; 1.21 + border: 2px solid; 1.22 + -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; 1.23 + -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; 1.24 + -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; 1.25 + -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; 1.26 + padding: 2px 3px 3px; 1.27 + -moz-padding-start: 5px; 1.28 + background-color: -moz-Field; 1.29 + color: -moz-FieldText; 1.30 +} 1.31 + 1.32 +html|*.textbox-input, 1.33 +html|*.textbox-textarea { 1.34 + margin: 0px !important; 1.35 + border: none !important; 1.36 + padding: 0px !important; 1.37 + background-color: inherit; 1.38 + color: inherit; 1.39 + font: inherit; 1.40 +} 1.41 + 1.42 +.textbox-contextmenu { 1.43 + cursor: default; 1.44 +} 1.45 + 1.46 +/* ..... readonly state ..... */ 1.47 + 1.48 +textbox[readonly="true"] { 1.49 + background-color: -moz-Dialog; 1.50 + color: -moz-DialogText; 1.51 +} 1.52 + 1.53 +/* ..... disabled state ..... */ 1.54 + 1.55 +textbox[disabled="true"] { 1.56 + cursor: default; 1.57 + background-color: -moz-Dialog; 1.58 + color: GrayText; 1.59 +} 1.60 + 1.61 +/* ::::: plain textbox ::::: */ 1.62 + 1.63 +textbox.plain { 1.64 + -moz-appearance: none !important; 1.65 + background-color: transparent; 1.66 + padding: 0px !important; 1.67 + margin: 0px !important; 1.68 + border: none !important; 1.69 +} 1.70 + 1.71 +/* ::::: search textbox ::::: */ 1.72 + 1.73 +.textbox-search-icon { 1.74 + list-style-image: url(moz-icon://stock/gtk-find?size=menu); 1.75 +} 1.76 + 1.77 +.textbox-search-clear { 1.78 + list-style-image: url(moz-icon://stock/gtk-clear?size=menu); 1.79 +} 1.80 + 1.81 +.textbox-search-icon[searchbutton]:not([disabled]) , 1.82 +.textbox-search-clear:not([disabled]) { 1.83 + cursor: pointer; 1.84 +} 1.85 + 1.86 +/* ::::: textboxes inside toolbarpaletteitems ::::: */ 1.87 + 1.88 +toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input { 1.89 + visibility: hidden; 1.90 +} 1.91 + 1.92 +/* ::::: context menu ::::: */ 1.93 + 1.94 +menuitem:not([type]) { 1.95 + -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic"); 1.96 +} 1.97 + 1.98 +menuitem[cmd="cmd_undo"] { 1.99 + list-style-image: url("moz-icon://stock/gtk-undo?size=menu"); 1.100 +} 1.101 + 1.102 +menuitem[cmd="cmd_undo"][disabled] { 1.103 + list-style-image: url("moz-icon://stock/gtk-undo?size=menu&state=disabled"); 1.104 +} 1.105 + 1.106 +menuitem[cmd="cmd_cut"] { 1.107 + list-style-image: url("moz-icon://stock/gtk-cut?size=menu"); 1.108 +} 1.109 + 1.110 +menuitem[cmd="cmd_cut"][disabled] { 1.111 + list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled"); 1.112 +} 1.113 + 1.114 +menuitem[cmd="cmd_copy"] { 1.115 + list-style-image: url("moz-icon://stock/gtk-copy?size=menu"); 1.116 +} 1.117 + 1.118 +menuitem[cmd="cmd_copy"][disabled] { 1.119 + list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled"); 1.120 +} 1.121 + 1.122 +menuitem[cmd="cmd_paste"] { 1.123 + list-style-image: url("moz-icon://stock/gtk-paste?size=menu"); 1.124 +} 1.125 + 1.126 +menuitem[cmd="cmd_paste"][disabled] { 1.127 + list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled"); 1.128 +} 1.129 + 1.130 +menuitem[cmd="cmd_delete"] { 1.131 + list-style-image: url("moz-icon://stock/gtk-delete?size=menu"); 1.132 +} 1.133 + 1.134 +menuitem[cmd="cmd_delete"][disabled] { 1.135 + list-style-image: url("moz-icon://stock/gtk-delete?size=menu&state=disabled"); 1.136 +} 1.137 + 1.138 +menuitem[cmd="cmd_selectAll"] { 1.139 + list-style-image: url("moz-icon://stock/gtk-select-all?size=menu"); 1.140 +} 1.141 + 1.142 +menuitem[cmd="cmd_selectAll"][disabled] { 1.143 + list-style-image: url("moz-icon://stock/gtk-select-all?size=menu&state=disabled"); 1.144 +} 1.145 +