fgyd1
小狐狸
小狐狸
  • UID35161
  • 注册日期2011-01-28
  • 最后登录2017-08-21
  • 发帖数85
  • 经验62枚
  • 威望0点
  • 贡献值40点
  • 好评度7点
  • 社区居民
阅读:2265回复:4

如何实现自动隐藏RoboForm Online Toolbar工具栏

楼主#
更多 发布于:2011-04-20 20:37
安装了一个填表扩展: RoboForm Online Toolbar 单独工具栏,同时把书签工具栏的书签全部移至此栏 取消了书签工具栏
如何实现自动隐藏书签工具栏方式, 自动隐藏RoboForm Online Toolbar工具栏?
PS: 如果RoboForm Online Toolbar的工具图标拉到书签工具栏 则每次启动会出现一个空白的RoboForm Online Toolbar工具栏
sungt
小狐狸
小狐狸
  • UID26668
  • 注册日期2008-10-15
  • 最后登录2011-11-10
  • 发帖数39
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
1楼#
发布于:2011-04-20 20:37
我也想问同样的问题。
sungt
小狐狸
小狐狸
  • UID26668
  • 注册日期2008-10-15
  • 最后登录2011-11-10
  • 发帖数39
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
2楼#
发布于:2011-04-20 20:37
楼主试试这个CSS代码:

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


#roboform-toolbar {
  visibility: hidden !important;
  opacity: 0;
  -moz-transition-duration: 0.4s;
  -moz-transition-property: visibility, opacity, margin;
  -moz-transition-delay: 3s}


#navigator-toolbox:hover > #roboform-toolbar {
  visibility: visible !important;
  opacity: 1;
  -moz-transition-delay: 0s}

#roboform-toolbar {
  margin-top: -26px !important}
#navigator-toolbox:hover > #roboform-toolbar {
  margin-top: 0px !important}
#main-window[stylish-url="about:addons"] #roboform-toolbar {
  margin-top: -26px !important}
#main-window[stylish-url="about:addons"] #navigator-toolbox:hover > roboform-toolbar {
  margin-top: 0px !important}
fgyd1
小狐狸
小狐狸
  • UID35161
  • 注册日期2011-01-28
  • 最后登录2017-08-21
  • 发帖数85
  • 经验62枚
  • 威望0点
  • 贡献值40点
  • 好评度7点
  • 社区居民
3楼#
发布于:2011-04-20 20:37
感谢LS  确实可行!!

根据LS提供的信息 结合自动隐藏书签工具栏CSS, 替换对应toolbar名称,  实验有效

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url(chrome://browser/content/browser.xul) {

#main-window:not([inFullscreen="true"]) #navigator-toolbox:not([customizing="true"]) ~ #browser {
  margin-top: -28px;/* 適宜調整 */
}

#main-window:not([inFullscreen="true"]) #navigator-toolbox:not([customizing="true"]) > #roboform-toolbar {
  -moz-transition: max-height 0.2s ease-in-out .3s !important;/*这个是消失时的动画延长时间 */

  padding: 0 3px !important;
  position: relative !important;
  z-index: 100 !important;
  overflow-y: hidden !important;
  max-height: 0px !important;
  min-height: 0px !important;
  border-bottom: 1px solid ThreeDShadow !Important;
  opacity:0.85;
}


/*#main-window[stylish-url="about:blank"] #navigator-toolbox:not([customizing="true"]) > #roboform-toolbar,*/
#main-window:not([inFullscreen="true"]) #navigator-toolbox:not([customizing="true"]):hover > #roboform-toolbar {
  -moz-transition: max-height 0.1s ease-in-out .6s !important;/* 这个是显示出来时的动画延长时间 */
  max-height: 30px !important;

}
#main-window[stylish-url="about:addons"] #navigator-toolbox:not([customizing="true"])  ~ #browser {
margin-top: 0px!important
}
}
kootu
小狐狸
小狐狸
  • UID33479
  • 注册日期2010-07-19
  • 最后登录2017-04-23
  • 发帖数32
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
4楼#
发布于:2011-04-20 20:37
游客

返回顶部