CSSで縦置きタブ

サイドバー出しながらでも縦タブしたかったから無理やり立てた

2017/11/24
フルスクリーン時邪魔だから画面端にマウスオーバーで表示されるように。

縦置きタブ(Firefox57から)

:root {
  --verticaltabbar-width:        120px; /* タブバーの横幅 */
  --verticaltab-height:           25px; /* タブの高さ */
  --verticaltabpinned-width:       25%; /* ピン留めタブの横幅 */
}
#main-window:not([inFullscreen]) {
  margin-left: var(--verticaltabbar-width) !important;
}
#TabsToolbar {
  width: var(--verticaltabbar-width) !important;
  position:fixed !important;
  left: 0px !important;
  top: 0px !important;
  bottom: var(--verticaltab-height) !important;
  background: #a9a9a9 !important;
}
#main-window[inFullscreen] #TabsToolbar:not(:hover) {
  width: 1px !important;
  opacity: 0 !important;
  transition: .5s !important;
}
#main-window[inFullscreen] #TabsToolbar:hover {
  width: var(--verticaltabbar-width) !important;
  transition: .2s !important;
}
#main-window[tabsintitlebar] #tabbrowser-tabs,
#main-window[tabsintitlebar] #content-deck {
  -moz-window-dragging: no-drag !important;
}
.tabbrowser-arrowscrollbox {
  -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox") !important;
}
.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
  overflow: visible !important;
  padding: 0 !important;
}
.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox > .scrollbox-innerbox {
  display: block !important;
}
#tabbrowser-tabs {
  height: 100% !important;
  overflow-x: hidden !important;
}
.tabbrowser-tab:not([pinned]) {
  width:100% !important;
}
.tabbrowser-tab[pinned] {
  width: var(--verticaltabpinned-width) !important;
}
.tab-content[pinned] {
    padding: 0 0 0 7px !important;
}
.tab-content[pinned] .tab-text {
    display: none !important;
}
.tabbrowser-tab {
  -moz-box-align: unset !important;
  min-height: var(--verticaltab-height) !important;
  vertical-align: top !important;
}
.tabs-newtab-button {
  display: none !important;
}
#new-tab-button {
  visibility: visible !important;
  width: 100% !important;
  background: #a9a9a9 !important;
}
#new-tab-button:hover {
  background: var(--toolbarbutton-hover-background) !important;
}
#new-tab-button .toolbarbutton-icon {
  width: 16px !important;
  height: 16px !important;
  margin: 0px !important;
  padding: 0px !important;
  background: none !important;
}

更新履歴

2017-11-28
ホイールでスクロールできるように
2017-11-26
タイトルバーなくてもスクロールできるように
2017-11-24
フルスクリーン
2017-11-18
ピン留めタブと新しいタブを開くボタン
2017/11/16
公開

ページ内検索バーをChrome風にする.css

Chrome風findbar(Firefox57から)

.browserContainer {
  direction: rtl !important;
}
.browserContainer > * {
  direction: ltr !important;
}
statuspanel {
  left: 0 !important;
}
.statuspanel-inner {
  width: unset !important;
}
.statuspanel-label[mirror] {
  border-left-style: unset !important;
  margin-left: unset !important;
}
findbar {
  -moz-box-ordinal-group: 0 !important;
  position: fixed !important;
  margin: -1px 20px 0 0 !important;
  box-shadow: none !important;
  border: 1px solid var(--toolbox-border-bottom-color) !important;
  border-top: 0 !important;
  background-color: var(--toolbar-bgcolor) !important;
  background-image: none !important;
  display: -webkit-box !important;
}
.findbar-textbox {
  font-size: medium !important;
}
.findbar-highlight[checked="true"],
.findbar-case-sensitive[checked="true"] {
  box-shadow: var(--toolbarbutton-active-boxshadow) !important;
  background: var(--toolbarbutton-active-background) !important;
}
.findbar-highlight:not([checked="true"]):hover,
.findbar-case-sensitive:not([checked="true"]):hover {
  box-shadow: var(--toolbarbutton-hover-boxshadow) !important;
  background: var(--toolbarbutton-hover-background) !important;
}
.findbar-highlight,
.findbar-case-sensitive {
  padding: var(--toolbarbutton-inner-padding) !important;
}
.findbar-highlight:after {
  content: "\00a0\00a0\00a0\00a0";
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABlElEQVR42mL8//8/Ay0BQAAxMdAYAAQQzS0ACCCaWwAQQDS3ACCAWEjVsGzLvv/HLlxjsDLQYojycWIkpB4ggJhINZyfl5thcnU2Aw83J8OijbsJJkGAAGIi1XAvOzOG33/+MDia6TMwMzExzF69Da8lAAHERI7hP3/9Zvj24yeDlaE2mD9l6UaclgAEEBMphv/5+xdu+LfvQPzjB4OpjjrD4aNHceoHCCAWclwOMxxE7z1xnsHc3BynGQABxIivqNC3dPh/4dh+rIZ///GLYc/xcwxsbKwMRfHBOFMTQADhDaJLJw4yxBU1gA1DdzkxhoMAQADhDKL44kaw15ZMaALzm4oz4YbvO3mBKMNBACCAcFrw8d0bOBtmSV5SFDjMiTUcBAACiAEUB+h4w96j/0HYyt0f5As41rOw/9+7YM1/bHpwYYAAwumD4xeuM9i6+YLZKtqGDAt76xnJKYsAAogFl+GHd20Gs4/u2MBISWEHEECMtK7RAAKI5sU1QADR3AKAAKK5BQABRHMLAAKI5hYABBgAGVz2EZX7WKAAAAAASUVORK5CYII=) center no-repeat !important;
}
.findbar-case-sensitive:after {
  content: "Aa" !important;
}
.findbar-highlight .toolbarbutton-text,
.findbar-case-sensitive > .toolbarbutton-text {
  display: none !important;
}
.found-matches {
  -moz-box-ordinal-group: 0 !important;
  margin: 0 8px 0 0 !important;
}
.findbar-find-status {
  display: none !important;
}
.findbar-container,
.findbar-closebutton {
  vertical-align: middle !important;
}

Chrome風findbar(Firefox56まで)

.browserContainer {
  direction: rtl !important;
}
statuspanel {
  left: 0 !important;
}
statuspanel[mirror="true"] {
  margin-left: -14px !important;
}
findbar {
  -moz-box-ordinal-group: 0 !important;
  direction: ltr !important;
  position: fixed !important;
  margin: -1px 20px 0 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  border: 1px solid threedshadow !important;
  border-top: 0 !important;
}
/*
.findbar-textbox {
  font-size: medium !important;
}
*/
.findbar-highlight[checked="true"],
.findbar-case-sensitive[checked="true"] {
  border: 1px solid !important;
  border-radius: 2px !important;
  border-color: var(--toolbarbutton-active-bordercolor) !important;
  box-shadow: var(--toolbarbutton-active-boxshadow) !important;
  background: var(--toolbarbutton-active-background) !important;
}
.findbar-highlight:not([checked="true"]):hover,
.findbar-case-sensitive:not([checked="true"]):hover {
  border: 1px solid !important;
  border-radius: 2px !important;
  border-color: var(--toolbarbutton-hover-bordercolor) !important;
  box-shadow: var(--toolbarbutton-hover-boxshadow) !important;
  background: var(--toolbarbutton-hover-background) !important;
}
.findbar-highlight:not(:hover):not([checked="true"]) {
  padding: 0 1px !important;
}
.findbar-highlight .toolbarbutton-text{
  border: none !important;
  box-shadow: none !important;
  font-size: 0 !important;
  padding: 10px 11px !important;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABlElEQVR42mL8//8/Ay0BQAAxMdAYAAQQzS0ACCCaWwAQQDS3ACCAWEjVsGzLvv/HLlxjsDLQYojycWIkpB4ggJhINZyfl5thcnU2Aw83J8OijbsJJkGAAGIi1XAvOzOG33/+MDia6TMwMzExzF69Da8lAAHERI7hP3/9Zvj24yeDlaE2mD9l6UaclgAEEBMphv/5+xdu+LfvQPzjB4OpjjrD4aNHceoHCCAWclwOMxxE7z1xnsHc3BynGQABxIivqNC3dPh/4dh+rIZ///GLYc/xcwxsbKwMRfHBOFMTQADhDaJLJw4yxBU1gA1DdzkxhoMAQADhDKL44kaw15ZMaALzm4oz4YbvO3mBKMNBACCAcFrw8d0bOBtmSV5SFDjMiTUcBAACiAEUB+h4w96j/0HYyt0f5As41rOw/9+7YM1/bHpwYYAAwumD4xeuM9i6+YLZKtqGDAt76xnJKYsAAogFl+GHd20Gs4/u2MBISWEHEECMtK7RAAKI5sU1QADR3AKAAKK5BQABRHMLAAKI5hYABBgAGVz2EZX7WKAAAAAASUVORK5CYII=) center no-repeat !important;
}
.findbar-case-sensitive {
  padding: 0 3px !important;
}
.findbar-case-sensitive[checked="true"],
.findbar-case-sensitive:not([checked="true"]):hover {
  padding: 1px 2px !important;
}
.findbar-case-sensitive > .toolbarbutton-text {
  display: none !important;
}
.findbar-case-sensitive:after {
  content: "Aa" !important;
  margin: 0 2px 0 !important;
}
.found-matches {
  -moz-box-ordinal-group: 0 !important;
  margin: 0 8px 0 0 !important;
}
.findbar-find-status {
  display: none !important;
}
.findbar-container,
.findbar-closebutton {
  vertical-align: middle !important;
}

更新履歴

2017-11-24
2017-11-20
×ボタンが改行しないように
2017-11-18
Firefox57
2015-04-05
2015-04-02
2013-11-08
公開

プロフィール

豆腐

Author:豆腐

最新記事

最新コメント

カテゴリ

月別アーカイブ

FC2カウンター