msky
千年狐狸
千年狐狸
  • UID14649
  • 注册日期2006-09-21
  • 最后登录2023-04-03
  • 发帖数2959
  • 经验166枚
  • 威望0点
  • 贡献值12点
  • 好评度9点
  • 社区居民
阅读:3833回复:8

贡献一个我觉得不错的标签栏和标题栏合并的脚本

楼主#
更多 发布于:2010-10-20 08:45
http://userstyles.org/styles/36877


  -moz-padding-start: 9.5em !important;
  -moz-padding-end: 9em !important;

这个距离需要根据自身的情况调节一下。忘了说了,仅限4.0使用
msky
千年狐狸
千年狐狸
  • UID14649
  • 注册日期2006-09-21
  • 最后登录2023-04-03
  • 发帖数2959
  • 经验166枚
  • 威望0点
  • 贡献值12点
  • 好评度9点
  • 社区居民
1楼#
发布于:2010-10-20 08:45
我这里能上啊,干脆贴出来算了,没有几行

@namespace url(http://www.mozilla.org/keymaster/gateke ... s.only.xul);

#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #TabsToolbar {
  -moz-padding-start: 9.5em !important;
  -moz-padding-end: 9em !important;
}

window[sizemode="maximized"]:not([inFullscreen]) #navigator-toolbox[tabsontop="true"] #TabsToolbar {
  margin-top: -24px !important;
  -moz-box-ordinal-group: 1 !important;
padding-left: 110px !important;
padding-right: 130px !important;
}

#main-window[tabsontop="true"]:not([inFullscreen]) #appmenu-button-container {
  position: fixed !important;
  z-index: 1;
}

#main-window:not([chromehidden=""]) #appmenu-button-container
   {margin-top: -7px !important; }

#main-window[tabsontop="true"]:not([inFullscreen]) #titlebar-buttonbox {
  position: relative !important;
  z-index: 1;
}

#main-window[tabsontop="true"]:not([inFullscreen]) #TabsToolbar {
  position: relative !important;
}
msky
千年狐狸
千年狐狸
  • UID14649
  • 注册日期2006-09-21
  • 最后登录2023-04-03
  • 发帖数2959
  • 经验166枚
  • 威望0点
  • 贡献值12点
  • 好评度9点
  • 社区居民
2楼#
发布于:2010-10-20 08:45
这个脚本有个问题就是不用personas时整个界面都是系统默认的色调。用personas时,标签栏的自画标题栏就会出现,而导航栏却是personas的背景。不知怎么解决

第一个标签页左侧和Firefox按钮之间的间距调整
-moz-padding-start: 9.5em !important;

把9.5改小一点,比如6.5,同样后面那个tab candy图标和最小化按钮的距离也可以调整小一点

-moz-padding-end: 9em !important;

比如改为6,看自己的情况了。调整标签背景色这个也不太会,不过可以参考别的帖子试试
https://www.firefox.net.cn/forum/viewtopic.php?t=33002

/* Fix tab styling for the dark background */


#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #alltabs-button[type="menu"] {
  list-style-image: url("chrome://browser/skin/appmenu-dropmarker.png") !important;
  -moz-image-region: rect(0, 9px, 7px, 0) !important;
}

#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #alltabs-button[type="menu"] image {
  opacity: 0.7 !important;
  margin-top: 4px !important;
}

#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) .tabbrowser-tab:not([selected="true"]),
#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) .tabs-newtab-button,
#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #TabsToolbar > #home-button {
  background-image: -moz-linear-gradient(hsla(0,0%,80%,.6), hsla(0,0%,75%,.4) 50%, hsla(0,0%,70%,.4) 51%) !important;
  text-shadow: white 0 0 2px;
}

#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) .tabbrowser-tab:not([selected="true"]):hover,
#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) .tabs-newtab-button:hover,
#main-window[sizemode="maximized"][tabsontop="true"][chromemargin]:not([inFullscreen]) #TabsToolbar > #home-button:hover {
  background-image: -moz-linear-gradient(hsla(0,0%,100%,.<!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->, hsla(0,0%,90%,.6) 50%, hsla(0,0%,85%,.6) 51%) !important;
}
游客

返回顶部