X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=EarlyBlue%2Fglobal%2Fin-content%2Fcommon.css;h=0b211eb5fd22e5db5b3e169123bfc3804ac4ab52;hp=b3777733edc7f4cb34d5824828752751bbc1da34;hb=f0a62060b4f916640a6c67be840b49b7713f1394;hpb=21c0144b2194f018832e93a3b6e112d3bd4852cb diff --git a/EarlyBlue/global/in-content/common.css b/EarlyBlue/global/in-content/common.css index b3777733..0b211eb5 100644 --- a/EarlyBlue/global/in-content/common.css +++ b/EarlyBlue/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: #CCD0DD; @@ -25,22 +26,25 @@ html|h1 { font-size: 2.5em; font-weight: lighter; line-height: 1.2; + color: #000000; margin: 0; margin-bottom: .5em; } +html|hr { + border-style: solid none none none; + border-color: #666699; +} + 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-top: 40px; -moz-padding-end: 48px; /* orig is 44px to compensate the 4px margin of child elements */ @@ -58,15 +62,14 @@ 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; } -xul|groupbox xul|label { +xul|groupbox xul|label, +xul|groupbox xul|description { / !important needed to override toolkit !important rule / -moz-margin-start: 0 !important; -moz-margin-end: 0 !important; @@ -111,7 +114,7 @@ xul|tab:hover { background-color: #ebebeb; } -xul|tab[selected] { +xul|tab[visuallyselected] { background-color: #ebebeb; padding-bottom: 0; / compensate the 4px border / border-bottom: 4px solid #ff9500; @@ -200,7 +203,7 @@ xul|menulist > xul|*.menulist-label-box { padding-left: 10px !important; } -xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon { +xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] { -moz-margin-end: 5px; } @@ -327,20 +330,30 @@ xul|button[type="menu"] > xul|menupopup xul|menuitem { -moz-padding-end: 30px; } -xul|menulist > xul|menupopup > xul|menu[_moz-menuactive="true"], -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"] { +xul|menulist > xul|menupopup > xul|menu:not([disabled="true"])[_moz-menuactive="true"], +xul|menulist > xul|menupopup > xul|menuitem:not([disabled="true"])[_moz-menuactive="true"], +xul|button[type="menu"] > xul|menupopup > xul|menu:not([disabled="true"])[_moz-menuactive="true"], +xul|button[type="menu"] > xul|menupopup > xul|menuitem:not([disabled="true"])[_moz-menuactive="true"] { color: #333; background-color: rgba(0,149,221,0.25); } -xul|menulist > xul|menupopup > xul|menu[selected="true"], -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"] { +xul|menulist > xul|menupopup > xul|menu:not([disabled="true"])[selected="true"], +xul|menulist > xul|menupopup > xul|menuitem:not([disabled="true"])[selected="true"], +xul|button[type="menu"] > xul|menupopup > xul|menu:not([disabled="true"])[selected="true"], +xul|button[type="menu"] > xul|menupopup > xul|menuitem:not([disabled="true"])[selected="true"] { color: #fff; - background-color: #0095DD; + background-color: #0095dd; +} + +xul|menulist > xul|menupopup > xul|menu[disabled="true"], +xul|menulist > xul|menupopup > xul|menuitem[disabled="true"], +xul|button[type="menu"] > xul|menupopup > xul|menu[disabled="true"], +xul|button[type="menu"] > xul|menupopup > xul|menuitem[disabled="true"] { + color: #999; + / override the [_moz-menuactive="true"] background color from + global/menu.css / + background-color: transparent; } xul|menulist > xul|menupopup xul|menuseparator, @@ -359,7 +372,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; @@ -384,34 +396,55 @@ xul|textbox[disabled="true"] { /* Links */ /* html|a, -xul|*.text-link, -xul|*.inline-link { - line-height: 22px; +.text-link, +.inline-link { color: #0095dd; text-decoration: none; } +html|a:visited { + color: #551a8b; +} + html|a:hover, -xul|*.text-link:hover, -xul|*.inline-link:hover { +.text-link:hover, +.inline-link:hover { color: #4cb1ff; text-decoration: none; } html|a:hover:active, -xul|*.text-link:hover:active, -xul|*.inline-link:hover:active { +.text-link:hover:active, +.inline-link:hover:active { color: #ff9500; text-decoration: none; } */ /* 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; @@ -426,7 +459,8 @@ xul|*.checkbox-check { 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 { +xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check, +html|input[type="checkbox"]:not(:disabled) + html|label:hover:before { border-color: #0095dd; } @@ -436,7 +470,12 @@ xul|*.checkbox-check[checked] { linear-gradient(#fff, rgba(255,255,255,0.8)) !important; } -xul|checkbox[disabled="true"] > xul|*.checkbox-check { +html|input[type="checkbox"]:checked + html|label:before { + background-image: url("chrome://global/skin/in-content/check.svg#check"), linear-gradient(#fff, rgba(255,255,255,0.8)) !important; +} + +xul|checkbox[disabled="true"] > xul|*.checkbox-check, +html|input[type="checkbox"]:disabled + html|label { opacity: 0.5; } @@ -449,6 +488,10 @@ xul|richlistitem > xul|*.checkbox-check { margin: 3px 6px; } +xul|radio { + -moz-margin-start: 0; +} + xul|*.radio-check { -moz-appearance: none; width: 23px; @@ -480,10 +523,10 @@ xul|*.radio-label-box { } */ /* Category List */ -/* + xul|*#categories { -moz-appearance: none; - background-color: #424f5a; + background-color: #666699; padding-top: 39px; margin: 0; border-width: 0; @@ -491,7 +534,7 @@ xul|*#categories { xul|*.category { -moz-appearance: none; - color: #c1c1c1; + color: #000000; -moz-border-end-width: 0; -moz-padding-start: 15px; -moz-padding-end: 21px; @@ -500,14 +543,14 @@ xul|*.category { } xul|*.category:hover { - background-color: #5e6972; + background-color: #CCD0DD; } xul|*.category[selected] { - background-color: #343f48; - color: #f2f2f2; - -moz-padding-start: 11px; / compensate the 4px border / - -moz-border-start: solid 4px #ff9500; + background-color: #336699; + color: #FFFFFF; + -moz-padding-start: 11px; /* compensate the 4px border */ + -moz-border-start: solid 4px #33FF33; } xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[current] { @@ -521,13 +564,14 @@ xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[cur padding-bottom: 2px; -moz-padding-start: 9px; margin: 0; + -moz-user-select: none; } *|*.category-icon { width: 24px; height: 24px; } -*/ + /* header */ /* *|*.header { @@ -542,6 +586,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 */ @@ -627,6 +672,11 @@ xul|tree { border: 1px solid #c1c1c1; } +xul|tree:-moz-focusring, +xul|richlistbox:-moz-focusring { + border: 1px dotted #0095dd; +} + xul|listheader, xul|treecols { -moz-appearance: none; @@ -644,7 +694,7 @@ xul|treecolpicker { padding: 5px 10px; } -xul|treecol:not([hideheader="true"]):hover, +xul|treecol:not([hideheader="true"]):not([sortable="false"]):hover, xul|treecolpicker:hover { background-color: #dadada; color: #333; @@ -658,21 +708,15 @@ xul|treecolpicker { } xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] { - list-style-image: url("chrome://global/skin/in-content/sorter.png"); - width: 12px; - height: 8px; + 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="descending"] { +xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="ascending"] { transform: scaleY(-1); } -@media (min-resolution: 2dppx) { - xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] { - list-style-image: url("chrome://global/skin/in-content/sorter@2x.png"); - } -} - / This is the only way to increase the height of a tree row unfortunately / xul|treechildren::-moz-tree-row { min-height: 2em; @@ -694,6 +738,7 @@ xul|caption { } xul|button, +html|button, xul|colorpicker[type="button"], xul|menulist { margin: 2px 4px; @@ -710,7 +755,6 @@ xul|checkbox { xul|radio { -moz-binding: url("chrome://global/content/bindings/radio.xml#radio"); - -moz-margin-start: 0; -moz-padding-start: 0; } @@ -719,9 +763,8 @@ xul|*.checkbox-icon { -moz-margin-end: 0; } -html|a:-moz-focusring, -xul|*.text-link:-moz-focusring, -xul|*.inline-link:-moz-focusring { +.text-link:-moz-focusring, +.inline-link:-moz-focusring { border: 1px dotted -moz-DialogText; } */ \ No newline at end of file