本帖最后由 tyjk 于 2011-5-3 20:13 编辑
4# wen1jian
stylish弄的。
用的是一整套的,会改动很多地方(不只地址栏),另外要用这个代码还有很多地方要调整。总之代码贴上来了(这个应该是在userstyles上找来的,不过不知道地址了):- @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
- /*change the ugly throbber*/
- .tab-throbber[progress] {
- list-style-image: url("chrome://browser/skin/places/searching_16.png") !important;
- }
- /*remove background of the combined go/reload/stop button in location bar*/
- #urlbar > toolbarbutton {
- border-left: none !important;
- border-radius: 0 !important;
- padding-left: 2px !important;
- }
- #urlbar-go-button, #urlbar-go-button:hover, #urlbar-reload-button, #urlbar-reload-button:hover, #urlbar-stop-button, #urlbar-stop-button:hover {
- background-image: none !important;
- box-shadow: none !important;
- }
- /*Transparency, hover and more naked UI*/
- #nav-bar {
- background-image: -moz-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.1)) !important;
- background-color: transparent !important;
- border: none !important;
- margin-bottom: 0 !important;
- padding: 0 !important;
- }
- #urlbar {
- background: none !important;
- border: none !important;
- border-radius: 3.5px 0 0 0 !important;
- margin: 0 !important;
- box-shadow: none !important;
- }
- #searchbar > *, #search-box {
- background: none !important;
- border: none !important;
- border-radius: 3.5px 0 0 0 !important;
- margin: 0 !important;
- padding-left: 4px !important;
- box-shadow: none !important;
- height: 24px !important;
- }
- #urlbar:hover {
- background: -moz-linear-gradient(left, rgba(255,255,255,.1), rgba(255,255,255,.1)) !important;
- }
- #searchbar:hover > *, .findbar-textbox:hover {
- background: -moz-linear-gradient(left, rgba(255,255,255,.4), rgba(255,255,255,.0)) !important;
- }
- .urlbar-over-link-box {
- color: #222222 !important;
- }
- #PersonalToolbar {
- background-color: rgba(255,255,255,.1) !important;
- border: none !important;
- margin-top: 0 !important;
- margin-bottom: 0 !important;
- padding: 0 !important;
- }
- .tabbrowser-tab:not([selected="true"]) {
- background-image: -moz-linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)) !important;
- color: #dddddd !important;
- text-shadow: none !important;
- }
- .tabbrowser-tab:not([selected="true"]):hover {
- background-image: -moz-linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.5)) !important;
- }
- .tabbrowser-tab[selected="true"] {
- margin-bottom: 0 !important;
- padding-bottom: 0 !important;
- background-image: -moz-linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.67)) !important;
- text-shadow: none !important;
- }
- .tabbrowser-tab[pinned] {
- height: 23px !important;
- }
- .tabs-newtab-button {
- background: none !important;
- border: none !important;
- }
- .tabs-newtab-button:hover, #new-tab-button:hover, .scrollbutton-down:hover, .scrollbutton-up:hover, #alltabs-button, #tabview-button:hover, #TabsToolbar #feed-button {
- -moz-appearance: none !important;
- background: none !important;
- box-shadow: none !important;
- border: none !important;
- }
- .toolbarbutton-1 > .toolbarbutton-menubutton-button, .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker, .toolbarbutton-1 {
- background: none !important;
- box-shadow: none !important;
- border-color: transparent !important;
- }
- .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled="true"]):not(:active):hover, .toolbarbutton-1:not([open="true"]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled="true"]), .toolbarbutton-1:not([type="menu-button"]):not([disabled="true"]):not([checked="true"]):not([open="true"]):not(:active):hover {
- background-color: hsla(190,60%,70%,.5) !important;
- border-color: hsla(190,50%,65%,.8) hsla(190,50%,50%,.8) hsla(190,50%,40%,.8) !important;
- box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 0 0 1.5px rgba(255,255,255,.1) inset, 0 1px 0 rgba(0,0,0,.1), 0 0 3.5px hsl(190,90%,80%) !important;
- -moz-transition: background-color .4s ease-in, border-color .2s ease-in, box-shadow .2s ease-in !important;
- }
- #browser-bottombox {
- background: rgba(255,255,255,.1) !important;
- margin-top: -2px !important;
- margin-bottom: 0 !important;
- padding: 0 !important;
- }
- /* Uncomment this block if you prefer add-on Bar always showing */
- #addon-bar > * {
- background: transparent !important;
- }
- #addon-bar, #addon-bar toolbarbutton, #addon-bar dropmarker{
- -moz-appearance: none !important;
- margin: 0 !important;
- border: none !important;
- height: 15px !important;
- box-shadow: none !important;
- }
- /* Autohide Add-on Bar - 99% by SoapyHamHocks and dert07 - comment-remove this block if you prefer add-on Bar always showing */
- #navigator-toolbox:not([customizing]) ~ #browser-bottombox #addon-bar {
- position: fixed;
- bottom: -22px;
- right: 20px;
- border: none !important;
- -moz-appearance: none !important;
- -moz-transition: bottom .2s 1s ease-in;
- padding-top: 22px !important;
- margin-right: 20px !important;
- }
- #navigator-toolbox:not([customizing]) ~ #browser-bottombox #addon-bar:hover {
- bottom: 1px;
- -moz-transition: bottom .3s .4s ease-out;
- }
- #navigator-toolbox:not([customizing]) ~ #browser-bottombox #addon-bar > #status-bar {
- margin: 0 !important;
- padding: 0 2px 0 2px;
- border-left: 1px solid rgba(0,0,0,.25) !important;
- border-right: 1px solid rgba(0,0,0,.25) !important;
- border-top: 1px solid rgba(0,0,0,.25) !important;
- border-radius: 4px 4px 0 0;
- background-color: rgba(255,255,255,.5) !important;
- background-image: -moz-linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.5)) !important;
- box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset;
- height: 22px !important;
- }
复制代码 PS:怎么都注意到别的地方去了。。。。。。 |