From de77cd8d3a91aaa8bffcad0098229a58d429652b Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 2 Feb 2010 06:38:52 +0000 Subject: [PATCH] =?UTF-8?q?Sidebar=E3=82=B9=E3=82=BF=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6192 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- .../treestyletab/sidebar/closetab-white.png | Bin 0 -> 3129 bytes .../classic/treestyletab/sidebar/closetab.png | Bin 0 -> 3119 bytes skin/classic/treestyletab/sidebar/sidebar.css | 94 +++++++++++++----- skin/classic/treestyletab/twisty/twisty.css | 9 ++ 4 files changed, 77 insertions(+), 26 deletions(-) create mode 100644 skin/classic/treestyletab/sidebar/closetab-white.png create mode 100644 skin/classic/treestyletab/sidebar/closetab.png diff --git a/skin/classic/treestyletab/sidebar/closetab-white.png b/skin/classic/treestyletab/sidebar/closetab-white.png new file mode 100644 index 0000000000000000000000000000000000000000..01a7fca62629bbbde9ae807cef88d660b4d79f25 GIT binary patch literal 3129 zcmV-9494?`P)EX>4Tx0C?J+Q+HUC_ZB|i_hk=OLfG)Jmu!ImA|tE_$Pihg5Rw34gb)%y#f69p zRumNxoJdu~g4GI0orvO~D7a@qiilc^Ra`jkAKa(4eR}Wh?fcjJyyu+f{LXpL4}cL8 zCXwc%Y5+M>g*-agACFH+#L2yY0u@N$1RxOR%fe>`#Q*^C19^CUbg)1C0k3ZW0swH; zE+i7i;s1lWP$pLZAdvvzA`<5d0gzGv$SzdK6adH=0I*ZDWC{S3003-xd_p1ssto|_ z^hrJi0NAOM+!p}Yq8zCR0F40vnJ7mj0zkU}U{!%qECRs70HCZuA}$2Lt^t5qwlYTo zfV~9(c8*w(4?ti5fSE!p%m5%b0suoE6U_r4Oaq`W(!b!TUvP!ENC5!A%azTSOVTqG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bzpif`a%ODmMBScJ@}{+h`*wTBx7|MZqK_H)E06b#oyL%goN6 z+4(s;m>Gb~jIaR#nM(nAiU~TPjATg?fDP9Gr~(saR#@!i0jEe0fB}Z| z2H81KDPdJkX&&h*acm=Xkj!oO)M{%ZK1l}CNYC!rM=FpEsq40Hm!H65;uoWzIlzEj zpo#S3kxzgI(xaa*Ln;6DNG~yUIB-A{ICgyw>DBLx$dX^qc=QfZ-$92-nhm5@#0>A( z&5S@}C1JDh+!msxTAc;zPFt|%K?x=NBK7?BBagfS?76-Hv^;!wO>AOP=Tf8!K9Ig5rO*Sy|L6dl<37?BQaffcY*-f&8rK7M#(kvRB)YfU@GbxV002ov JPDHLkV1lIR=B)q# literal 0 HcmV?d00001 diff --git a/skin/classic/treestyletab/sidebar/sidebar.css b/skin/classic/treestyletab/sidebar/sidebar.css index 18cb6006..33ec419f 100644 --- a/skin/classic/treestyletab/sidebar/sidebar.css +++ b/skin/classic/treestyletab/sidebar/sidebar.css @@ -29,38 +29,48 @@ Contributor(s): Philipp von Weitershausen /* Unset bottom border, instead let's have a border on the right-hand side, much like the sidebar does. */ -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrowser-strip { - border-right: 1px solid #404040; +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-strip { border-top: 1px solid #404040; border-bottom: none !important; } #main-window:not([active="true"]) -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrowser-strip { - border-right: 1px solid #868686; +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-strip { border-top: 1px solid #868686; } /* Background colour for the tree sidebar (light blue when window is active, grey otherwise) */ -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tabs { - -moz-appearance: none !important; +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tabs { background: transparent !important; background-color: #d4dde5 !important; } #main-window:not([active="true"]) -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tabs { +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tabs { background-color: #e8e8e8 !important; } /* Don't display unnecessary clutter */ -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabs-bottom, -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabs-left, -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tab-text-shadow { +tabbrowser[treestyletab-mode="vertical"] .tabs-bottom, +tabbrowser[treestyletab-mode="vertical"] .tabs-left, +tabbrowser[treestyletab-mode="vertical"] .tab-text-shadow, +tabbrowser[treestyletab-mode="vertical"] .treestyletab-splitter grippy { display: none !important; } +/* Use the splitter to display the border of .tabbrowser-strip */ +tabbrowser[treestyletab-mode="vertical"] .treestyletab-splitter { + width: 1px !important; + min-width: 1px !important; + background-image: none; + background-color: #404040; +} +#main-window:not([active="true"]) +tabbrowser[treestyletab-mode="vertical"] .treestyletab-splitter { + background-color: #868686; +} + /* Style tabs themselves. Get rid of most of the initial XUL styling */ -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tab { +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab { -moz-appearance: none !important; background: transparent !important; -moz-border-top-colors: none !important; @@ -80,20 +90,20 @@ tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrows border-top: 1px solid transparent !important; } -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] { +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] { border-top: 1px solid #94A1C0 !important; background: -moz-linear-gradient(top, #A0B0CF, #7386AB) repeat-x !important; } #main-window:not([active="true"]) -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] { +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] { border-top: 1px solid #979797 !important; background: -moz-linear-gradient(top, #B4B4B4, #8A8A8A) repeat-x !important; } /* Get the favicon and close button off the ground and towards the vertical center of the tab. */ -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tab-icon-image, -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tab-close-button { +tabbrowser[treestyletab-mode="vertical"] .tab-icon-image, +tabbrowser[treestyletab-mode="vertical"] .tab-close-button { margin-bottom: 1px; } @@ -101,26 +111,41 @@ tabbrowser[treestyletab-mode="vertical"] .tab-close-button { margin-left: 3px; } +tabbrowser[treestyletab-mode="vertical"] +.tab-close-button image { + list-style-image: url("closetab.png"); + opacity: 0.27; /* turn black into #b9b9b9 */ +} +tabbrowser[treestyletab-mode="vertical"] +.tab-close-button:active image { + opacity: 0.46; /* turn black into #8a8a8a */ +} +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] +.tab-close-button image { + list-style-image: url("closetab-white.png"); + opacity: 1; +} + /* Always display the favicon at 100% opacity */ -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab:not(:hover):not([selected="true"]) .tab-icon-image { opacity: 1.0 !important; } -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab:not(:hover):not([selected="true"]) > .tab-close-button { display: none !important; } /* Tab label is without special decoration except when selected: then the text is white and bold. */ -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tab-text { +tabbrowser[treestyletab-mode="vertical"] .tab-text { font-size: 11px; font-weight: normal !important; color: #000000 !important; text-shadow: none !important; } -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] .tab-text { font-weight: bold !important; color: #ffffff !important; @@ -129,39 +154,56 @@ tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] /* Make the tab counter look like the bubbles in Mail.app et.al. */ -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .treestyletab-counter-container { +tabbrowser[treestyletab-mode="vertical"] .treestyletab-counter-container { padding: 0 6px !important; background-color: #91a0c0 !important; -moz-border-radius: 8px !important; } -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .treestyletab-counter { +tabbrowser[treestyletab-mode="vertical"] .treestyletab-counter { color: #ffffff !important; font-weight: bold !important; text-shadow: none !important; } -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] .treestyletab-counter-container { background-color: #ffffff !important; } -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] .treestyletab-counter { color: #91a0c0 !important; } #main-window:not([active="true"]) -tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .treestyletab-counter-container { +tabbrowser[treestyletab-mode="vertical"] .treestyletab-counter-container { background-color: #b5b5b5 !important; } -#main-window:not([active="true"]) tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] +#main-window:not([active="true"]) tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] .treestyletab-counter-container { background-color: #ffffff !important; } -#main-window:not([active="true"]) tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] +#main-window:not([active="true"]) tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] .treestyletab-counter { color: #929292 !important; } +/* changed from original SidebarStyleTab */ + +tabbrowser[treestyletab-mode="vertical"] +.tab-close-button image, +tabbrowser[treestyletab-mode="vertical"] +.tab-close-button:active image, +tabbrowser[treestyletab-mode="vertical"] +.tab-close-button:hover image, +tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] +.tab-close-button image { + -moz-image-region: auto !important; +} + +tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .tabbrowser-tabs { + -moz-appearance: none !important; +} + tabbrowser[treestyletab-style="sidebar"][treestyletab-mode="vertical"] .treestyletab-counter-paren { display: none !important; diff --git a/skin/classic/treestyletab/twisty/twisty.css b/skin/classic/treestyletab/twisty/twisty.css index 49b40d37..b0bc5a2b 100644 --- a/skin/classic/treestyletab/twisty/twisty.css +++ b/skin/classic/treestyletab/twisty/twisty.css @@ -59,6 +59,7 @@ tabbrowser[treestyletab-twisty-style^="osx"][treestyletab-allow-subtree-collapse list-style-image: url("twisty-retro.png"); -moz-image-region: rect(0, 32px, 16px, 16px); } + tabbrowser[treestyletab-twisty-style="modern-black"] .treestyletab-twisty { list-style-image: url("twisty-modern-b-l.png"); @@ -75,14 +76,22 @@ tabbrowser[treestyletab-twisty-style="modern-white"][treestyletab-tab-contents-i .treestyletab-twisty { list-style-image: url("twisty-modern-w-r.png"); } + tabbrowser[treestyletab-twisty-style="osx"] .treestyletab-twisty { list-style-image: url("twisty-osx-l.png"); + opacity: 0.38; } tabbrowser[treestyletab-twisty-style="osx"][treestyletab-tab-contents-inverted="true"] .treestyletab-twisty { list-style-image: url("twisty-osx-r.png"); } +tabbrowser[treestyletab-twisty-style="osx"] + .treestyletab-twisty:active, +tabbrowser[treestyletab-twisty-style="osx"] + .tabbrowser-tab[selected="true"] .treestyletab-twisty { + opacity: 1; +} .tabbrowser-tab[treestyletab-subtree-collapsed="true"] .treestyletab-twisty {