home *** CD-ROM | disk | FTP | other *** search
/ Freelog 112 / FreelogNo112-NovembreDecembre2012.iso / Multimedia / Songbird / Songbird_2.0.0-2311_windows-i686-msvc8.exe / chrome / songbird.jar / skin / bindings / syscontrols.css < prev    next >
Cascading Style Sheet File  |  2012-05-25  |  10KB  |  368 lines

  1. /*
  2. //
  3. // BEGIN SONGBIRD GPL
  4. // 
  5. // This file is part of the Songbird web player.
  6. //
  7. // Copyright(c) 2005-2008 POTI, Inc.
  8. // http://songbirdnest.com
  9. // 
  10. // This file may be licensed under the terms of of the
  11. // GNU General Public License Version 2 (the "GPL").
  12. // 
  13. // Software distributed under the License is distributed 
  14. // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 
  15. // express or implied. See the GPL for the specific language 
  16. // governing rights and limitations.
  17. //
  18. // You should have received a copy of the GPL along with this 
  19. // program. If not, go to http://www.gnu.org/licenses/gpl.html
  20. // or write to the Free Software Foundation, Inc., 
  21. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22. // 
  23. // END SONGBIRD GPL
  24. //
  25.  */
  26.  
  27.  
  28. /** 
  29. *******************************************************************************
  30. SYSTEM CONTROLS
  31.  
  32. Applies image and layout styles to the window chrome widgets 
  33. in app/bindings/sysControls.xml.
  34.  
  35. Use these styles to paint image graphics around the edge of the player
  36. and modify the custom titlebar and window controls
  37.  
  38. Imported by bindings.css or directly into feathers.
  39.  
  40. *******************************************************************************
  41. */ 
  42.  
  43.  
  44.  
  45. /** 
  46. *******************************************************************************
  47. WINDOWS TITLE BAR
  48. *******************************************************************************
  49. */
  50.  
  51.  
  52. /*  Topbar Icon */
  53. sb-sys-icon
  54. {
  55.   list-style-image: url(chrome://songbird-branding/skin/application-icon-16x16.png) ;
  56.   margin-top:5px;
  57. }
  58.  
  59. /*  Switch Feathers */
  60. .sb-feathers-toggle-button > .clickhold-button
  61. {
  62.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-win.png);
  63.   -moz-image-region: rect(0px 9px 9px 0px);
  64. }
  65. .sb-feathers-toggle-button:hover > .clickhold-button
  66. {
  67.   -moz-image-region: rect(9px 9px 18px 0px);
  68. }
  69.  
  70. .feathers-menu-selected-skin > .menu-iconic-left {
  71.   margin-left: 16px !important;
  72. }
  73.  
  74.  
  75. sb-sys-titlebar > menubar 
  76. {
  77.   margin-left: 15px;
  78. }
  79.  
  80. /* Keep feathers icon from exscaping the right side of the toolbar. */
  81. #sb-sys-dialog-titlebar-primary-content,
  82. #sb-sys-titlebar-primary-content,
  83. #sb-sys-titlebar-title
  84. {
  85.   overflow: hidden;
  86. }
  87.  
  88. sb-feathers-toggle-button,
  89. sb-sys-minimize-button.sb-player-button,
  90. sb-sys-close-button.sb-player-button,
  91. sb-sys-hide-button.sb-player-button,
  92. sb-player-fullscreen-button.sb-player-button,
  93. sb-sys-maximize-button
  94. {
  95.   margin: 0px 4px 0px 3px;
  96. }
  97.  
  98.  
  99. /*  Minimize */
  100. sb-sys-minimize-button
  101. {
  102.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-win.png);
  103.   -moz-image-region: rect(0px 18px 9px 9px);
  104. }
  105. sb-sys-minimize-button:hover
  106. {
  107.   -moz-image-region: rect(9px 18px 18px 9px);
  108. }
  109.  
  110. /*  Maximize - Evict the checkbox guts, just use it for click handling */
  111. sb-sys-maximize-button > .checkbox-label-box
  112. {
  113.   display: none;
  114. }
  115. sb-sys-maximize-button > .checkbox-check
  116. {
  117.   display: none;
  118. }
  119. sb-sys-maximize-button
  120. {
  121.   background-image: url(chrome://songbird/skin/buttons/sysbtns-win.png); 
  122.   background-position: -18px 0px; 
  123.   background-repeat: no-repeat;
  124.   height: 9px;  
  125.   width: 9px;
  126. }
  127. sb-sys-maximize-button:hover
  128. {
  129.   background-position: -18px -9px; 
  130. }
  131. /* Restore */
  132. window[sizemode="maximized"] sb-sys-maximize-button 
  133. {
  134.   background-image: url(chrome://songbird/skin/buttons/sysbtns-win.png);
  135.   background-position: -54px 0px; 
  136.   background-repeat: no-repeat;
  137.   height: 9px;  
  138.   width: 9px;
  139. }
  140. window[sizemode="maximized"] sb-sys-maximize-button:hover
  141. {
  142.   background-position: -54px -9px; 
  143. }
  144.  
  145. /*  Close Window */
  146. sb-sys-close-button
  147. {
  148.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-win.png);
  149.   -moz-image-region: rect(0px 36px 9px 27px);
  150. }
  151. sb-sys-close-button:hover
  152. {
  153.   -moz-image-region: rect(9px 36px 18px 27px);
  154. }
  155.  
  156. /*  Hide (Video Window) */
  157. sb-sys-hide-button
  158. {
  159.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-win.png);
  160.   -moz-image-region: rect(0px 54px 9px 45px);
  161. }
  162. sb-sys-hide-button:hover
  163. {
  164.   -moz-image-region: rect(9px 54px 18px 45px);
  165. }
  166.  
  167. /* Fullscreen (Video Window) */
  168. sb-player-fullscreen-button
  169. {
  170.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-win.png);
  171.   -moz-image-region: rect(0px 45px 9px 36px);
  172. }
  173. sb-player-fullscreen-button:hover
  174. {
  175.   -moz-image-region: rect(9px 45px 18px 36px);
  176. }
  177.  
  178. /* Media Pages */
  179. .mediapages-menu-selected-page > .menu-iconic-left {
  180.   margin-left: 16px !important;
  181. }
  182.  
  183.  
  184. /** 
  185. *******************************************************************************
  186. MAC OSX TITLE BAR
  187. *******************************************************************************
  188. */
  189.  
  190. #sb-sys-osx-buttons
  191. {
  192.   padding-left: 2px;
  193. }
  194.  
  195. #sb-sys-osx-buttons > sb-sys-maximize-button
  196. {
  197.   background-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png); 
  198.   background-position: 0px 0px; 
  199.   background-repeat: no-repeat;
  200.   height: 15px;  
  201.   width: 14px;
  202. }
  203. /* Restore */
  204. window[sizemode="maximized"] #sb-sys-osx-buttons > sb-sys-maximize-button 
  205. {
  206.   background-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png);
  207.   background-position: 0px 0px; 
  208.   background-repeat: no-repeat;
  209.   height: 15px;   
  210.   width: 14px;
  211. }
  212. #sb-sys-osx-buttons:hover > sb-sys-maximize-button
  213. {
  214.   background-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png);
  215.   background-position: 0px -15px; 
  216.   height: 15px;   
  217.   width: 14px;
  218. }
  219. #sb-sys-osx-buttons > sb-sys-maximize-button:active
  220. {
  221.   background-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png);
  222.   background-position: 0px -30px;
  223.   height: 15px;   
  224.   width: 14px;
  225. }
  226. #sb-sys-osx-buttons > sb-sys-maximize-button[disabled="true"]
  227. {
  228.   background-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png);
  229.   background-position: 0px -45px;
  230.   height: 15px;   
  231.   width: 14px;
  232. }
  233.  
  234. #sb-sys-osx-buttons > sb-sys-minimize-button
  235. {
  236.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png) ; 
  237.   -moz-image-region: rect(0px 28px 15px 14px); 
  238. }
  239. #sb-sys-osx-buttons:hover > sb-sys-minimize-button
  240. {
  241.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png) ; 
  242.   -moz-image-region: rect(15px 28px 30px 14px); 
  243. }
  244. #sb-sys-osx-buttons > sb-sys-minimize-button:active
  245. {
  246.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png) ; 
  247.   -moz-image-region: rect(30px 28px 45px 14px); 
  248. }
  249. #sb-sys-osx-buttons > sb-sys-minimize-button[disabled="true"]
  250. {
  251.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png) ; 
  252.   -moz-image-region: rect(45px 28px 60px 14px); 
  253. }
  254.  
  255. #sb-sys-osx-buttons > sb-sys-hide-button, 
  256. #sb-sys-osx-buttons > sb-sys-close-button
  257. {
  258.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png) ; 
  259.   -moz-image-region: rect(0px 42px 15px 28px); 
  260. }
  261. #sb-sys-osx-buttons:hover > sb-sys-hide-button, 
  262. #sb-sys-osx-buttons:hover > sb-sys-close-button
  263. {
  264.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png) ; 
  265.   -moz-image-region: rect(15px 42px 30px 28px); 
  266. }
  267. #sb-sys-osx-buttons > sb-sys-hide-button:active, 
  268. #sb-sys-osx-buttons > sb-sys-close-button:active
  269. {
  270.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png) ; 
  271.   -moz-image-region: rect(30px 42px 45px 28px); 
  272. }
  273. #sb-sys-osx-buttons > sb-sys-hide-button[disabled="true"], 
  274. #sb-sys-osx-buttons > sb-sys-close-button[disabled="true"]
  275. {
  276.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png) ; 
  277.   -moz-image-region: rect(45px 42px 60px 28px); 
  278. }
  279.  
  280. /**** NOTE: The Mac feathers button style is disabled, as it doesn't seem to
  281.       match the operating system ****/
  282. /*  Switch Feathers 
  283. sb-feathers-toggle-button[mac="true"] > hbox > .sb-feathers-toggle-button > .clickhold-button
  284. {
  285.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png);
  286.   -moz-image-region: rect(0px 56px 15px 42px);  
  287. }
  288. sb-feathers-toggle-button[mac="true"] > hbox > .sb-feathers-toggle-button > .clickhold-button:hover
  289. {
  290.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png);
  291.   -moz-image-region: rect(15px 56px 30px 42px); 
  292. }
  293. sb-feathers-toggle-button[mac="true"] > hbox > .sb-feathers-toggle-button > .clickhold-button:active
  294. {
  295.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png);
  296.   -moz-image-region: rect(30px 56px 45px 42px);
  297. }
  298. sb-feathers-toggle-button[mac="true"] > hbox > .sb-feathers-toggle-button > .clickhold-button[disabled="true"]
  299. {
  300.   list-style-image: url(chrome://songbird/skin/buttons/sysbtns-mac-mono.png);
  301.   -moz-image-region: rect(45px 56px 60px 42px); 
  302. }*/
  303.  
  304. /** 
  305. *******************************************************************************
  306. WINDOW FRAME
  307. *******************************************************************************
  308. */ 
  309.  
  310. sb-sys-outer-frame
  311. {
  312.   -moz-box-orient: vertical;
  313. }
  314.  
  315. .sb-sys-outer-frame-resizer
  316. {
  317.   height: 3px;
  318.   width: 3px;
  319. }
  320. .sb-sys-outer-frame-resizer-top,
  321. .sb-sys-outer-frame-resizer-topleft,
  322. .sb-sys-outer-frame-resizer-topright
  323. {
  324.   height: 1px;
  325.   width: 1px;
  326. }
  327.  
  328. .sb-sys-outer-frame-chrome-background,
  329. .sb-sys-outer-frame-chrome,
  330. .sb-sys-outer-frame-resizer
  331. {  
  332.   background-color: transparent;
  333. }
  334.  
  335. /** Set resizer mouse cursors (why doesn't XULRunner provide this?) **/
  336. .sb-sys-outer-frame-resizer[dir="topleft"] {
  337.   cursor: nw-resize;
  338. }
  339. .sb-sys-outer-frame-resizer[dir="top"] {
  340.   cursor: n-resize;
  341. }
  342. .sb-sys-outer-frame-resizer[dir="topright"] {
  343.   cursor: ne-resize;
  344. }
  345. .sb-sys-outer-frame-resizer[dir="left"] {
  346.   cursor: w-resize;
  347. }
  348. .sb-sys-outer-frame-resizer[dir="right"] {
  349.   cursor: e-resize;
  350. }
  351. .sb-sys-outer-frame-resizer[dir="bottomleft"] {
  352.   cursor: sw-resize;
  353. }
  354. .sb-sys-outer-frame-resizer[dir="bottom"] {
  355.   cursor: s-resize;
  356. }
  357. .sb-sys-outer-frame-resizer[dir="bottomright"] {
  358.   cursor: se-resize;
  359. }
  360.  
  361.  
  362. /** Mac bottom right resizer **/
  363. .sb-sys-outer-frame-resizer-image {
  364.   list-style-image: url(chrome://songbird/skin/buttons/window-resizer.png);
  365.   margin: 2px;
  366. }
  367.  
  368.