X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fglobal.css;h=6a661111a8c8e30ad8f86a2b24dae4081d0257dc;hp=edb546e5a363a35595af3636d56c2720b7eeb45c;hb=a9f6369d5cebd3c329b993d57e73bcf30fffd2cd;hpb=507ac7083376c5328e9b5657f4f4a1d9c27815fa diff --git a/LCARStrek/global/global.css b/LCARStrek/global/global.css index edb546e5..6a661111 100644 --- a/LCARStrek/global/global.css +++ b/LCARStrek/global/global.css @@ -1,39 +1,6 @@ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Netscape Public License - * Version 1.1 (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at - * http://www.mozilla.org/NPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * Robert Kaiser - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* ===== global.css ===================================================== == Styles that apply everywhere. @@ -54,15 +21,10 @@ radio { -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing"); } -menulist > menupopup, -.menulist-menupopup { +menulist > menupopup { -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars"); } -.menulist-compact { - -moz-binding: url("chrome://global/skin/globalBindings.xml#menulist-compact"); -} - /* LCARStrek special bindings */ statusbar { @@ -78,14 +40,24 @@ menubar { } toolbaritem > menubar { - -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar"); + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar"); } -/* -progressmeter[mode="undetermined"] { - -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter-undetermined"); +@media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) { + /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */ + toolbar.chromeclass-menubar { + -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar"); + border-bottom: none; + } +} + +/* ::::: Variables ::::: */ +:root { + --arrowpanel-padding: 6px; + --arrowpanel-background: #000000; + --arrowpanel-color: #FF9F00; + --arrowpanel-border-color: #FF9F00; } -*/ /* ::::: root elements ::::: */ @@ -97,7 +69,7 @@ prefwindow { background-color: #000000; color: #FF9F00; /* font: 3mm "Final Frontier",tahoma,arial,helvetica,sans-serif; */ - font: 11px helvetica,arial,tahoma,sans-serif; + font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; padding: 3px; } @@ -106,8 +78,8 @@ window.dialog { background-color: #000000; padding-top: 8px; padding-bottom: 10px; - -moz-padding-start: 8px; - -moz-padding-end: 10px; + padding-inline-start: 8px; + padding-inline-end: 10px; } /* ::::: alert icons :::::*/ @@ -125,6 +97,7 @@ window.dialog { list-style-image: url("chrome://global/skin/icons/alert-message.gif"); } +.alert-dialog #info\.icon, .alert-icon { list-style-image: url("chrome://global/skin/icons/alert-exclam.gif"); } @@ -157,31 +130,43 @@ statusbar { .statusbar-center { background-color: #8050B0; - -moz-padding-start: 2px; + padding-inline-start: 2px; color: #FFCF00; -moz-box-align: stretch; } .statusbar-left { - -moz-border-radius: 9px 0px 0px 9px; + border-radius: 9px 0px 0px 9px; background-color: #6000CF; width: 13px; - -moz-margin-end: 3px; + margin-inline-end: 3px; } .statusbar-right { - -moz-border-radius: 0px 9px 9px 0px; + border-radius: 0px 9px 9px 0px; background-color: #6000CF; width: 13px; - -moz-margin-start: 3px; + margin-inline-start: 3px; } statusbarpanel { -moz-box-align: center; -moz-box-pack: center; + border-left: 3px solid black; padding: 0px 2px; } +statusbarpanel:first-child { + border-left: none; +} + +statusbarpanel:not(.statusbar-resizerpanel):-moz-lwtheme { + -moz-appearance: none; + border-top-style: none; + border-bottom-style: none; + border-inline-start-style: none; +} + .statusbar-resizerpanel { -moz-box-align: end; -moz-box-pack: end; @@ -191,23 +176,44 @@ statusbarpanel { .statusbarpanel-iconic, .statusbarpanel-iconic-text, .statusbarpanel-menu-iconic { - padding: 0px 2px; } .statusbarpanel-progress { -moz-box-orient: vertical; -} - -window:not([active="true"]) menubar > menu { - color: #8050B0; + padding: 0px; } .toolbar-focustarget { -moz-user-focus: ignore !important; } +toolbar[mode="text"] .toolbarbutton-text { + /* padding: 0 !important; + margin: 3px 5px !important; */ +} + /* ::::: miscellaneous formatting ::::: */ +:root:-moz-lwtheme, +[lwthemefooter="true"] { + -moz-appearance: none; +} + +:root:-moz-lwtheme-darktext { + text-shadow: 0 -0.5px 1.5px #FFCF00; +} + +:root:-moz-lwtheme-brighttext { + text-shadow: 1px 1px 2px #000000; +} + +statusbar:-moz-lwtheme, +sidebarheader:-moz-lwtheme { + -moz-appearance: none; + background: none; + border-style: none; +} + .inset { /* border: 1px inset #FF9F00; margin: 0px 5px 5px; */ @@ -243,8 +249,8 @@ separator.groove:not([orient="vertical"]) { separator.groove[orient="vertical"] { border-left: 2px groove #FF9F00; - -moz-margin-start: 0.4em; - -moz-margin-end: 0.4em; + margin-inline-start: 0.4em; + margin-inline-end: 0.4em; } /* groove separators (0 padding, for dividing effects) */ @@ -262,6 +268,7 @@ separator[orient="vertical"].groove-thin { } .plain { + -moz-appearance: none; margin: 0px !important; border: none; padding: 0px; @@ -269,7 +276,7 @@ separator[orient="vertical"].groove-thin { description, label { cursor: default; - margin: 1px 3px; + margin: 1px 2px; } label[disabled="true"] { @@ -289,12 +296,12 @@ description { } .monospace { - font-family: monospace; + font-family: "Liberation Mono", Consolas, "Courier New", monospace; } .indent { -/* -moz-margin-start: 23px; */ - -moz-margin-start: 15px; +/* margin-inline-start: 23px; */ + margin-inline-start: 15px; } .box-padded { @@ -310,30 +317,42 @@ description { } .text-link { - color: blue; - text-decoration: underline; + color: #3333FF; cursor: pointer; } -.text-link:focus { - color: red; +.text-link:hover { + text-decoration: underline; +} + +.text-link:-moz-focusring { /* Don't specify the outline-color, we should always use initial value. */ outline: 1px dotted; } -.text-link:hover:active { - color: red; +popupnotificationcontent { + margin-top: .5em; } -.text-link[visited="true"] { - color: purple; -} +/* === BEGIN notification-popup.inc.css === */ +.popup-notification-panel > .panel-arrowcontainer > .panel-arrowcontent { + /* In order to display the action buttons near the edge of the arrow panel we + * have to reset its default padding and specify the padding in the individual + * "popupnotification" elements instead. To keep the rounded borders of the + * panel, we also have to ensure the contents are clipped to the border box + * by hiding the overflow, and we have to override the "display" property so + * that the height of the contents is computed correctly in that case. */ + padding: 0; + overflow: hidden; + display: block; +} +/* === END notification-popup.inc.css === */ /* :::::: autoscroll popup ::::: */ -#autoscroller { +.autoscroller { height: 28px; width: 28px; border: 0px; @@ -344,34 +363,52 @@ description { -moz-appearance: none; } -#autoscroller[scrolldir="NS"] { +.autoscroller[scrolldir="NS"] { background-position: left center; } -#autoscroller[scrolldir="EW"] { +.autoscroller[scrolldir="EW"] { background-position: left bottom; } -#autoscroller[transparent="true"] { +.autoscroller[transparent="true"] { background-position: center top; } -#autoscroller[transparent="true"][scrolldir="NS"] { +.autoscroller[transparent="true"][scrolldir="NS"] { background-position: center center; } -#autoscroller[transparent="true"][scrolldir="EW"] { +.autoscroller[transparent="true"][scrolldir="EW"] { background-position: center bottom; } -#autoscroller[translucent="true"] { +.autoscroller[translucent="true"] { background-position: right top; } -#autoscroller[translucent="true"][scrolldir="NS"] { +.autoscroller[translucent="true"][scrolldir="NS"] { background-position: right center; } -#autoscroller[translucent="true"][scrolldir="EW"] { +.autoscroller[translucent="true"][scrolldir="EW"] { background-position: right bottom; } + +/* :::::: Close button icons ::::: */ + +.close-icon { + list-style-image: url("chrome://global/skin/icons/close.png"); + -moz-image-region: rect(0, 16px, 16px, 0); +} + +.close-icon:hover, +.close-icon:hover:active { + -moz-image-region: rect(0, 32px, 16px, 16px); +} + +.close-icon > .button-icon, +.close-icon > .button-box > .button-icon, +.close-icon > .toolbarbutton-icon { + width: 16px; +}