X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fin-content%2Fcommon.css;h=a7fda135efbc3aa46ed0a69d98d5a0955b8de98e;hp=fad3be94f9ddcd5d81f323139138bc08155236f3;hb=e0a1501955cc9b54835c4e082921cead70292b4e;hpb=a21f2959e83ccf2205d47a86451bb082cb3aef31 diff --git a/LCARStrek/global/in-content/common.css b/LCARStrek/global/in-content/common.css index fad3be94..a7fda135 100644 --- a/LCARStrek/global/in-content/common.css +++ b/LCARStrek/global/in-content/common.css @@ -8,7 +8,8 @@ @namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; html|body, -xul|page { +xul|page, +xul|window { font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; -moz-appearance: none; background-color: #000000; @@ -25,20 +26,34 @@ html|h1 { font-size: 2.5em; font-weight: lighter; line-height: 1.2; + color: #9C9CFF; margin: 0; margin-bottom: .5em; } +html|hr { + border-style: solid none none none; + border-color: #9C9CFF; +} + xul|caption { } +xul|caption > xul|checkbox, xul|caption > xul|label { margin-top: 0; margin-bottom: 0; } +xul|description { + -moz-margin-start: 0; +} + *|*.main-content { - padding: 40px 48px 48px; + padding-top: 40px; + -moz-padding-end: 48px; /* orig is 44px to compensate the 4px margin of child elements */ + padding-bottom: 48px; + -moz-padding-start: 48px; overflow: auto; } @@ -51,9 +66,7 @@ xul|prefpane > xul|*.content-box { xul|groupbox { -moz-appearance: none; border: none; - margin-top: 15px; - margin-bottom: 15px; - -moz-margin-end: 0; + margin: 15px 0 0; -moz-padding-start: 0; -moz-padding-end: 0; font-size: 1.25rem; @@ -74,6 +87,7 @@ xul|tabpanels { border: none; padding: 0; background-color: transparent; + color: inherit; } xul|tabs { @@ -91,7 +105,7 @@ xul|*.tabs-right { xul|tab { -moz-appearance: none; margin-top: 0; - padding: 0 20px; + padding: 4px 20px; min-height: 44px; color: #424f5a; background-color: #fbfbfb; @@ -103,9 +117,10 @@ xul|tab:hover { background-color: #ebebeb; } -xul|tab[selected] { +xul|tab[visuallyselected] { background-color: #ebebeb; - box-shadow: inset 0 -4px 0 0 #ff9500; + padding-bottom: 0; / compensate the 4px border / + border-bottom: 4px solid #ff9500; } xul|*.tab-text { @@ -120,7 +135,7 @@ html|button { border: none; background-color: #C09070; color: #000000; - / * override forms.css * / + /* override forms.css */ font: inherit; } @@ -133,7 +148,6 @@ xul|menulist { height: 30px; color: #333; line-height: 20px; - text-shadow: 0 1px 1px #fefffe; border: 1px solid #c1c1c1; -moz-border-top-colors: none !important; -moz-border-right-colors: none !important; @@ -167,6 +181,20 @@ xul|menulist[disabled="true"] { background-color: #402858; color: #000000; } + +*|button.primary { + background-color: #A06060; +} + +html|button.primary:enabled:hover, +xul|button.primary:not([disabled="true"]):hover { + background-color: #FFCF00; +} + +html|button.primary:enabled:hover:active, +xul|button.primary:not([disabled="true"]):hover:active { + background-color: #FF9F00; +} /* xul|colorpicker[type="button"] { padding: 6px; @@ -179,6 +207,10 @@ xul|menulist > xul|*.menulist-label-box { padding-left: 10px !important; } +xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] { + -moz-margin-end: 5px; +} + xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker { -moz-appearance: none; margin: 1px 0; @@ -188,18 +220,22 @@ xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker { height: 16px; border: none; background-color: transparent; - list-style-image: url("chrome://global/skin/in-content/dropdown.png"); + list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown"); } +*/ xul|*.help-button { +/* min-width: 30px; border-radius: 2px; - border: 1px solid #c1c1c1; + border-width: 0; background-color: #ffcb00; background-image: none; box-shadow: none; +*/ + list-style-image: url("chrome://global/skin/in-content/help-glyph.svg"); } - +/* xul|*.help-button:not([disabled="true"]):hover { background-color: #f4c200; background-image: none; @@ -219,17 +255,8 @@ xul|*.help-button > xul|*.button-box { } */ xul|*.help-button > xul|*.button-box > xul|*.button-icon { - width: 26px; - height: 26px; - background-image: url("chrome://global/skin/in-content/help-glyph.png"); - background-position: center; -} - -@media (min-resolution: 2dppx) { - xul|*.help-button > xul|*.button-box > xul|*.button-icon { - background-size: 26px 26px; - background-image: url("chrome://global/skin/in-content/help-glyph@2x.png"); - } + width: 18px; + height: 18px; } xul|*.help-button > xul|*.button-box > xul|*.button-text { @@ -273,38 +300,26 @@ xul|*.spinbuttons-down[disabled="true"] > xul|*.button-box > xul|*.button-icon { xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker { -moz-appearance: none; - -moz-margin-end: 10px; + -moz-margin-end: 4px; padding: 0; border: none; background-color: transparent; - list-style-image: url("chrome://global/skin/in-content/dropdown.png"); + list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown"); } -xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker { - list-style-image: url("chrome://global/skin/in-content/dropdown-disabled.png") +xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker > xul|*.dropmarker-icon { + width: 18px; + height: 18px; } -@media (min-resolution: 2dppx) { - xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker, - xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker { - list-style-image: url("chrome://global/skin/in-content/dropdown@2x.png"); - } - - xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker { - list-style-image: url("chrome://global/skin/in-content/dropdown-disabled@2x.png") - } - - xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker > xul|*.dropmarker-icon, - xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker > xul|*.dropmarker-icon { - width: 10px; - height: 16px; - } +xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker { + list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown-disabled") } xul|menulist > xul|menupopup, xul|button[type="menu"] > xul|menupopup { -moz-appearance: none; - border: 1px solid rgba(23,50,77,0.4); + border: 1px solid #c1c1c1; border-radius: 2px; background-color: #fff; } @@ -314,10 +329,10 @@ xul|menulist > xul|menupopup xul|menuitem, xul|button[type="menu"] > xul|menupopup xul|menu, xul|button[type="menu"] > xul|menupopup xul|menuitem { -moz-appearance: none; - font-size: 1.25rem; - line-height: 22px; - height: 40px; + font-size: 1rem; color: #333; + padding-top: 0.2em; + padding-bottom: 0.2em; -moz-padding-start: 10px; -moz-padding-end: 30px; } @@ -327,8 +342,7 @@ xul|menulist > xul|menupopup > xul|menuitem[_moz-menuactive="true"], xul|button[type="menu"] > xul|menupopup > xul|menu[_moz-menuactive="true"], xul|button[type="menu"] > xul|menupopup > xul|menuitem[_moz-menuactive="true"] { color: #333; - background-color: transparent; - background-image: linear-gradient(rgba(76,177,255,0.25), rgba(23,146,229,0.25)); + background-color: rgba(0,149,221,0.25); } xul|menulist > xul|menupopup > xul|menu[selected="true"], @@ -336,16 +350,15 @@ xul|menulist > xul|menupopup > xul|menuitem[selected="true"], xul|button[type="menu"] > xul|menupopup > xul|menu[selected="true"], xul|button[type="menu"] > xul|menupopup > xul|menuitem[selected="true"] { color: #fff; - background-image: linear-gradient(#4cb1ff, #1792e5); + background-color: #0095DD; } xul|menulist > xul|menupopup xul|menuseparator, xul|button[type="menu"] > xul|menupopup xul|menuseparator { -moz-appearance: none; - margin-top: 2px; - margin-bottom: 2px; + margin: 0; padding: 0; - border-top: 1px solid rgba(23,50,77,0.4); + border-top: 1px solid #c1c1c1; border-bottom: none; } */ @@ -356,7 +369,6 @@ xul|button[type="menu"] > xul|menupopup xul|menuseparator { height: 30px; color: #333; line-height: 20px; - text-shadow: 0 1px 1px #fefffe; padding-right: 10px; padding-left: 10px; border: 1px solid #c1c1c1; @@ -379,75 +391,107 @@ xul|textbox[disabled="true"] { } */ /* Links */ -/* + html|a, -xul|*.text-link, -xul|*.inline-link { - font-size: 1.25rem; - line-height: 22px; - color: #0095dd; +.text-link, +.inline-link { +/* line-height: 22px;*/ + color: #3333FF; text-decoration: none; } html|a:hover, -xul|*.text-link:hover, -xul|*.inline-link:hover { - color: #4cb1ff; - text-decoration: none; +.text-link:hover, +.inline-link:hover { + color: #FFCF00; + text-decoration: underline; } html|a:hover:active, -xul|*.text-link:hover:active, -xul|*.inline-link:hover:active { - color: #ff9500; - text-decoration: none; +.text-link:hover:active, +.inline-link:hover:active { + color: #FF9F00; + text-decoration: underline; } -*/ + /* Checkboxes and radio buttons */ +/* Hide the actual checkbox */ +html|input[type="checkbox"] { + opacity: 0; + position: absolute; +} + +/* Create a box to style as the checkbox */ +html|input[type="checkbox"] + html|label:before { + display: inline-block; + content: ""; + vertical-align: middle; +} + +html|input[type="checkbox"] + html|label { + line-height: 0px; +} /* xul|checkbox { -moz-margin-start: 0; } - -xul|*.checkbox-check { +*/ +/* xul|*.checkbox-check, */ +html|input[type="checkbox"] + html|label:before { -moz-appearance: none; width: 23px; height: 23px; - border-radius: 2px; - border: 1px solid #c1c1c1; + border-radius: 0; + border: 1px solid #FF9F00; -moz-margin-end: 10px; - background-color: #f1f1f1; - background-image: linear-gradient(#fff, rgba(255,255,255,0.8)); + background-color: #000000; background-position: center center; background-repeat: no-repeat; - box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03); } -xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check { - border-color: #0095dd; +/* xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check, */ +html|input[type="checkbox"]:not(:disabled) + html|label:hover:before { + border-color: #FFCF00; } - +html|input[type="checkbox"]:not(:disabled) + html|label:hover { + color: #FFCF00; +} +/* xul|*.checkbox-check[checked] { background-image: url("chrome://global/skin/in-content/check.png"), / * !important needed to override toolkit !important rule * / linear-gradient(#fff, rgba(255,255,255,0.8)) !important; } - -xul|checkbox[disabled="true"] > xul|*.checkbox-check { - opacity: 0.5; +*/ +html|input[type="checkbox"]:checked + html|label:before { + background-image: url("chrome://global/skin/in-content/check.svg#check"); } +/*xul|checkbox[checked][disabled="true"] > xul|*.checkbox-check,*/ +html|input[type="checkbox"]:checked:disabled + html|label:before { + background-image: url("chrome://global/skin/in-content/check.svg#check-disabled"); +} +html|input[type="checkbox"]:not(:disabled) + html|label:hover:before { + background-image: url("chrome://global/skin/in-content/check.svg#check-hover"); +} +html|input[type="checkbox"]:disabled + html|label:before { + border-color: #8050B0; +} +html|input[type="checkbox"]:disabled + html|label { + color: #8050B0; +} +/* xul|*.checkbox-label-box { -moz-margin-start: -1px; / * negative margin for the transparent border * / -moz-padding-start: 0; } -@media (min-resolution: 2dppx) { - xul|*.checkbox-check[checked] { - background-size: 12px 12px, auto; - background-image: url("chrome://global/skin/in-content/check@2x.png"), - linear-gradient(#fff, rgba(255,255,255,0.8)) !important; - } +xul|richlistitem > xul|*.checkbox-check { + margin: 3px 6px; +} + +xul|radio { + -moz-margin-start: 0; } xul|*.radio-check { @@ -467,10 +511,7 @@ xul|radio:not([disabled="true"]):hover > xul|*.radio-check { } xul|*.radio-check[selected] { - background-image: radial-gradient(circle, rgb(23,146,229), - rgb(76,177,255) 5.5px, rgba(76,177,255,0.2) 6px, - transparent 6px), - linear-gradient(rgb(255,255,255), rgba(255,255,255,0.8)); + list-style-image: url("chrome://global/skin/in-content/radio.svg#radio"); } xul|radio[disabled="true"] > xul|*.radio-check { @@ -490,6 +531,7 @@ xul|*#categories { background-color: #424f5a; padding-top: 39px; margin: 0; + border-width: 0; } xul|*.category { @@ -509,22 +551,26 @@ xul|*.category:hover { xul|*.category[selected] { background-color: #343f48; color: #f2f2f2; - box-shadow: inset 4px 0 0 0 #ff9500; + -moz-padding-start: 11px; / compensate the 4px border / + -moz-border-start: solid 4px #ff9500; } xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[current] { border-top: 1px #ffffff dotted; border-bottom: 1px #ffffff dotted; } - +*/ *|*.category-name { +/* line-height: 22px; font-size: 1.25rem; padding-bottom: 2px; -moz-padding-start: 9px; margin: 0; +*/ + -moz-user-select: none; } - +/* *|*.category-icon { width: 24px; height: 24px; @@ -533,7 +579,8 @@ xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[cur /* header */ *|*.header { -/* border-bottom: 1px solid #A09090; +/* -moz-margin-end: 4px; / add the 4px end-margin of other elements / + border-bottom: 1px solid #A09090; margin-bottom: 15px; padding-bottom: 15px; */ } @@ -543,6 +590,7 @@ xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[cur font-weight: normal; line-height: 40px; margin: 0; + -moz-user-select: none; } /* File fields */ @@ -589,6 +637,105 @@ xul|filefield + xul|button { -moz-border-start: none; } */ +/* List boxes */ +/* +xul|richlistbox, +xul|listbox { + -moz-appearance: none; + -moz-margin-start: 0; + background-color: #fff; + border: 1px solid #c1c1c1; + color: #333; +} + +xul|treechildren::-moz-tree-row, +xul|listbox xul|listitem { + padding: 0.3em; + margin: 0; + border: none; + border-radius: 0; + background-image: none; +} + +xul|treechildren::-moz-tree-row(hover), +xul|listbox xul|listitem:hover { + background-color: rgba(0,149,221,0.25); +} + +xul|treechildren::-moz-tree-row(selected), +xul|listbox xul|listitem[selected="true"] { + background-color: #0095dd; + color: #fff; +} + +/ This is the only way to increase the height of a tree row unfortunately / +xul|treechildren::-moz-tree-row { + min-height: 2em; +} + +/ Color needs to be set on tree cell in order to be applied / +xul|treechildren::-moz-tree-cell-text { + color: #333; +} + +xul|treechildren::-moz-tree-cell-text(selected) { + color: #fff; +} +*/ +/* Trees */ +/* +xul|tree { + -moz-appearance: none; + font-size: 1em; + border: 1px solid #c1c1c1; + margin: 0; +} + +xul|tree:-moz-focusring, +xul|richlistbox:-moz-focusring { + border: 1px dotted #0095dd; +} + +xul|listheader, +xul|treecols { + -moz-appearance: none; + border: none; + border-bottom: 1px solid #c1c1c1; + padding: 0; +} + +xul|treecol:not([hideheader="true"]), +xul|treecolpicker { + -moz-appearance: none; + border: none; + background-color: #ebebeb; + color: #808080; + padding: 5px 10px; +} + +xul|treecol:not([hideheader="true"]):not([sortable="false"]):hover, +xul|treecolpicker:hover { + background-color: #dadada; + color: #333; +} + +xul|treecol:not([hideheader="true"]):not(:first-child), +xul|treecolpicker { + -moz-border-start-width: 1px; + -moz-border-start-style: solid; + border-image: linear-gradient(transparent 0%, transparent 20%, #c1c1c1 20%, #c1c1c1 80%, transparent 80%, transparent 100%) 1 1; +} + +xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] { + list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown"); + width: 18px; + height: 18px; +} + +xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="ascending"] { + transform: scaleY(-1); +} +*/ /* === END common.inc.css === */ /* xul|caption { @@ -596,6 +743,7 @@ xul|caption { } xul|button, +html|button, xul|colorpicker[type="button"], xul|menulist { margin: 2px 4px; @@ -612,7 +760,6 @@ xul|checkbox { xul|radio { -moz-binding: url("chrome://global/content/bindings/radio.xml#radio"); - -moz-margin-start: 0; -moz-padding-start: 0; } @@ -620,10 +767,10 @@ xul|*.radio-icon, xul|*.checkbox-icon { -moz-margin-end: 0; } - +*/ html|a:-moz-focusring, -xul|*.text-link:-moz-focusring, -xul|*.inline-link:-moz-focusring { - border: 1px dotted -moz-DialogText; +.text-link:-moz-focusring, +.inline-link:-moz-focusring { + /* Don't specify the outline-color, we should always use initial value. */ + outline: 1px dotted; } -*/ \ No newline at end of file