home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 10900 / 10900.xpi / chrome.jar / skin / linux / personas.css
Encoding:
Cascading Style Sheet File  |  2009-11-25  |  3.9 KB  |  113 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Personas.
  15.  *
  16.  * The Initial Developer of the Original Code is Mozilla.
  17.  * Portions created by the Initial Developer are Copyright (C) 2007
  18.  * the Initial Developer. All Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Chris Beard <cbeard@mozilla.org>
  22.  *   Myk Melez <myk@mozilla.org>
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38.  
  39. /* Note: pan-OS styles live in the content/personas.css stylesheet. */
  40.  
  41.  
  42. /******************************************************************************/
  43. /* Personas Menu/Toolbarbutton */
  44.  
  45. /* Show the Personas icon to the Personas Tools menu item.  This is OS-specific
  46.  * because it doesn't look good on Mac, which also doesn't seem to respect
  47.  * the -moz-image-region rule, so we only show it on Windows and Linux. */
  48. #personas-menu {
  49.   list-style-image: url("chrome://personas/content/personas_16x16.png");
  50.   -moz-image-region: rect(0, 16px, 16px, 0px);
  51. }
  52.  
  53.  
  54. /******************************************************************************/
  55. /* Header */
  56.  
  57. #main-window[persona] {
  58.   -moz-appearance: none;
  59. }
  60.  
  61. #main-window[persona] #navigator-toolbox toolbar {
  62.   -moz-appearance: none;
  63. }
  64.  
  65. #main-window[persona] #navigator-toolbox toolbarbutton {
  66.   -moz-appearance: none;
  67. }
  68.  
  69.  
  70. /******************************************************************************/
  71. /* Make some elements a little transparent so the persona flavors their look. */
  72.  
  73. #main-window[persona] #urlbar,
  74. #main-window[persona] #searchbar,
  75. #main-window[persona] .tabbrowser-tab {
  76.   opacity: 0.8;
  77. }
  78.  
  79.  
  80. /******************************************************************************/
  81. /* Footer */
  82.  
  83. #browser-bottombox[persona] #status-bar {
  84.   border-left: none;
  85.   border-bottom: none;
  86.   border-right: none;
  87. }
  88.  
  89. #browser-bottombox[persona] #FindToolbar {
  90.   border-top-width: 1px;
  91.   border-top-color: transparent;
  92.   -moz-border-top-colors: transparent !important;
  93. }
  94.  
  95. /**
  96.  * The statusbarpanel element that sits inside the statusbar element defines
  97.  * its own background color and border, so we have to turn them off separately.
  98.  */
  99. #browser-bottombox[persona] statusbarpanel {
  100.   -moz-appearance: none; /* undo -moz-appearance: statusbarpanel */
  101.  
  102.   /* These rules prevent horizontal jumping, as -moz-appearance: statusbarpanel
  103.    * apparently creates hidden left-right (or perhaps there's margin or padding;
  104.    * there's no way to know with -moz-appearance because Gecko doesn't expose
  105.    * the results of applying OS-specific style via that rule). */
  106.   border-left: 2px solid transparent;
  107.   border-right: 2px solid transparent;
  108.  
  109.   /* These rules prevent top-bottom jumping. */
  110.   border-bottom: 2px solid transparent;
  111.   border-top: 2px solid transparent;
  112. }
  113.