X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fin-content%2Fcommon.css;h=868ada8a919aeb66093e9ce7166ee5dc5cd66f63;hp=17aecf568d89f9eb1913521d3b845ff8d359fca6;hb=dae4507500ac2bc6547a8303851bc9b0bcae5ddf;hpb=d471380e99d65fcd126e0f04b94c1d3a8004cf3d diff --git a/LCARStrek/global/in-content/common.css b/LCARStrek/global/in-content/common.css index 17aecf56..868ada8a 100644 --- a/LCARStrek/global/in-content/common.css +++ b/LCARStrek/global/in-content/common.css @@ -43,11 +43,30 @@ --in-content-primary-button-background-active: #FF9F00; --in-content-table-border-dark-color: #9C9CFF; --in-content-table-header-background: #A09090; - ---in-content-help-button-background: #ffcb00; - ---in-content-help-button-background-hover: #f4c200; - ---in-content-help-button-background-active: #eaba00; --in-content-disabled-text: #8050B0; } + +@-moz-document url("about:privatebrowsing") { + #bar { + background-color: #6000CF !important; + color: #FFCF00 !important; + } + + #tpEnabled { + background-color: #008484 !important; + color: #000000 !important; + } + + #tpDisabled { + background-color: #FF0000 !important; + color: #000000 !important; + } + + #trackingProtectionSection { + border-color: #A09090 !important; + } +} + html|html, xul|page, xul|window { @@ -88,9 +107,9 @@ xul|caption > xul|label { *|*.main-content { padding-top: 40px; - -moz-padding-end: 48px; /* orig is 44px to compensate the 4px margin of child elements */ + padding-inline-end: 48px; /* orig is 44px to compensate the 4px margin of child elements */ padding-bottom: 48px; - -moz-padding-start: 48px; + padding-inline-start: 48px; overflow: auto; } @@ -104,16 +123,16 @@ xul|groupbox { -moz-appearance: none; border: none; margin: 15px 0 0; - -moz-padding-start: 0; - -moz-padding-end: 0; + padding-inline-start: 0; + padding-inline-end: 0; font-size: 1.25rem; } -xul|groupbox xul|label, +xul|groupbox xul|label:not(.menu-accel):not(.menu-text):not(.indent), xul|groupbox xul|description { / !important needed to override toolkit !important rule / - -moz-margin-start: 0 !important; - -moz-margin-end: 0 !important; + margin-inline-start: 0 !important; + margin-inline-end: 0 !important; } */ /* tabpanels and tabs */ @@ -182,6 +201,7 @@ html|button { /* xul buttons and menulists */ /* *|button, +html|select, xul|colorpicker[type="button"], xul|menulist { -moz-appearance: none; @@ -197,6 +217,7 @@ xul|menulist { } */ html|button:enabled:hover, +html|select:enabled:hover, xul|button:not([disabled="true"]):hover, xul|colorpicker[type="button"]:not([disabled="true"]):hover, xul|menulist:not([disabled="true"]):hover { @@ -205,6 +226,7 @@ xul|menulist:not([disabled="true"]):hover { } html|button:enabled:hover:active, +html|select:enabled:hover:active, xul|button:not([disabled="true"]):hover:active, xul|colorpicker[type="button"]:not([disabled="true"]):hover:active, xul|menulist[open="true"]:not([disabled="true"]) { @@ -213,10 +235,10 @@ xul|menulist[open="true"]:not([disabled="true"]) { } html|button:disabled, +html|select:disabled, xul|button[disabled="true"], xul|colorpicker[type="button"][disabled="true"], xul|menulist[disabled="true"] { - cursor: not-allowed; background-color: var(--in-content-box-background-disabled); color: var(--in-content-selected-text); } @@ -247,13 +269,13 @@ xul|menulist > xul|*.menulist-label-box { } xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] { - -moz-margin-end: 5px; + margin-inline-end: 5px; } xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker { -moz-appearance: none; margin: 1px 0; - -moz-margin-start: 10px; + margin-inline-start: 10px; padding: 0; width: 10px; height: 16px; @@ -265,10 +287,9 @@ xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker { */ xul|*.help-button { /* - min-width: 30px; - border-radius: 2px; + min-width: 16px; + margin-inline-end: 0; border-width: 0; - background-color: #ffcb00; background-image: none; box-shadow: none; */ @@ -276,13 +297,16 @@ xul|*.help-button { } /* xul|*.help-button:not([disabled="true"]):hover { - background-color: #f4c200; background-image: none; + / Override default button background / + background-color: transparent; + list-style-image: url("chrome://global/skin/in-content/help-glyph.svg#help-hover"); } - xul|*.help-button:not([disabled="true"]):hover:active { - background-color: #eaba00; background-image: none; + / Override default button background / + background-color: transparent; + list-style-image: url("chrome://global/skin/in-content/help-glyph.svg#help-pressed"); } xul|*.close-icon > xul|*.button-box, @@ -294,8 +318,8 @@ xul|*.help-button > xul|*.button-box { } */ xul|*.help-button > xul|*.button-box > xul|*.button-icon { - width: 18px; - height: 18px; + width: 16px; + height: 16px; } xul|*.help-button > xul|*.button-box > xul|*.button-text { @@ -304,8 +328,8 @@ xul|*.help-button > xul|*.button-box > xul|*.button-text { /* xul|*.spinbuttons-button { min-height: initial; - -moz-margin-start: 10px !important; - -moz-margin-end: 2px !important; + margin-inline-start: 10px !important; + margin-inline-end: 2px !important; } xul|*.spinbuttons-up { @@ -340,7 +364,7 @@ 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: 4px; + margin-inline-end: 4px; padding: 0; border: none; background-color: transparent; @@ -373,8 +397,8 @@ xul|button[type="menu"] > xul|menupopup xul|menuitem { color: var(--in-content-text-color); padding-top: 0.2em; padding-bottom: 0.2em; - -moz-padding-start: 10px; - -moz-padding-end: 30px; + padding-inline-start: 10px; + padding-inline-end: 30px; } xul|menulist > xul|menupopup > xul|menu:not([disabled="true"])[_moz-menuactive="true"], @@ -418,11 +442,7 @@ html|input[type="text"], html|textarea, xul|textbox { -moz-appearance: none; - height: 30px; color: var(--in-content-text-color); - line-height: 20px; - padding-right: 10px; - padding-left: 10px; border: 1px solid var(--in-content-box-border-color); -moz-border-top-colors: none !important; -moz-border-right-colors: none !important; @@ -438,6 +458,14 @@ xul|textbox { padding-left: 10px; } +/ Create a separate rule to unset these styles on .tree-input instead of + using :not(.tree-input) so the selector specifity doesn't change. / +xul|textbox.tree-input { + min-height: unset; + padding-right: unset; + padding-left: unset; +} + html|input[type="text"], html|textarea { font-family: inherit; @@ -460,15 +488,13 @@ xul|textbox[disabled="true"] { /* Links */ html|a, -.text-link, -.inline-link { +.text-link { color: var(--in-content-link-color); text-decoration: none; } html|a:hover, -.text-link:hover, -.inline-link:hover { +.text-link:hover { color: var(--in-content-link-color-hover); text-decoration: underline; } @@ -478,8 +504,7 @@ html|a:visited { } html|a:hover:active, -.text-link:hover:active, -.inline-link:hover:active { +.text-link:hover:active { color: var(--in-content-link-color-active); text-decoration: underline; } @@ -487,12 +512,14 @@ html|a:hover:active, /* Checkboxes and radio buttons */ /* Hide the actual checkbox */ html|input[type="checkbox"] { - visibility: hidden; + opacity: 0; + width: 0; + pointer-events: none; position: absolute; } /* Create a box to style as the checkbox */ -html|input[type="checkbox"] + html|label:before { +html|input[type="checkbox"] + html|label::before { display: inline-block; content: ""; vertical-align: middle; @@ -503,24 +530,24 @@ html|input[type="checkbox"] + html|label { } /* xul|checkbox { - -moz-margin-start: 0; + margin-inline-start: 0; } */ /* xul|*.checkbox-check, */ -html|input[type="checkbox"] + html|label:before { +html|input[type="checkbox"] + html|label::before { -moz-appearance: none; width: 23px; height: 23px; border-radius: 0; border: 1px solid var(--in-content-box-border-color); - -moz-margin-end: 10px; + margin-inline-end: 10px; background-color: var(--in-content-box-background); background-position: center center; background-repeat: no-repeat; } /* xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check, */ -html|input[type="checkbox"]:not(:disabled) + html|label:hover:before { +html|input[type="checkbox"]:not(:disabled) + html|label:hover::before { border-color: var(--in-content-border-focus); } html|input[type="checkbox"]:not(:disabled) + html|label:hover { @@ -533,18 +560,18 @@ xul|*.checkbox-check[checked] { linear-gradient(#fff, rgba(255,255,255,0.8)) !important; } */ -html|input[type="checkbox"]:checked + html|label:before { +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 { +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 { +html|input[type="checkbox"]:checked: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 { +html|input[type="checkbox"]:disabled + html|label::before { border-color: var(--in-content-border-disabled); } html|input[type="checkbox"]:disabled + html|label { @@ -552,8 +579,8 @@ html|input[type="checkbox"]:disabled + html|label { } /* xul|*.checkbox-label-box { - -moz-margin-start: -1px; / * negative margin for the transparent border * / - -moz-padding-start: 0; + margin-inline-start: -1px; / * negative margin for the transparent border * / + padding-inline-start: 0; } xul|richlistitem > xul|*.checkbox-check { @@ -561,7 +588,7 @@ xul|richlistitem > xul|*.checkbox-check { } xul|radio { - -moz-margin-start: 0; + margin-inline-start: 0; } xul|*.radio-check { @@ -570,7 +597,7 @@ xul|*.radio-check { height: 23px; border: 1px solid var(--in-content-box-border-color); border-radius: 50%; - -moz-margin-end: 10px; + margin-inline-end: 10px; background-color: #f1f1f1; background-image: linear-gradient(#fff, rgba(255,255,255,0.80)); box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03); @@ -589,9 +616,9 @@ xul|radio[disabled="true"] > xul|*.radio-check { } xul|*.radio-label-box { - -moz-margin-start: -1px; / * negative margin for the transparent border * / - -moz-margin-end: 10px; - -moz-padding-start: 0; + margin-inline-start: -1px; / * negative margin for the transparent border * / + margin-inline-end: 10px; + padding-inline-start: 0; } */ /* Category List */ @@ -607,9 +634,9 @@ xul|*.radio-label-box { *|*.category { background-color: var(--in-content-category-background); color: var(--in-content-category-text); - -moz-border-end-width: 0; - -moz-padding-start: 15px; - -moz-padding-end: 21px; + border-inline-end-width: 0; + padding-inline-start: 15px; + padding-inline-end: 21px; min-height: 40px; transition: background-color 150ms; } @@ -619,7 +646,8 @@ xul|*.radio-label-box { color: var(--in-content-category-text-selected); } -*|*.category[selected] { +*|*.category[selected], +*|*.category.selected { background-color: var(--in-content-category-background-active); color: var(--in-content-category-text-selected); } @@ -633,7 +661,7 @@ xul|*.radio-label-box { line-height: 22px; font-size: 1.25rem; padding-bottom: 2px; - -moz-padding-start: 9px; + padding-inline-start: 9px; margin: 0; -moz-user-select: none; } @@ -646,10 +674,11 @@ xul|*.radio-label-box { /* header */ *|*.header { -/* -moz-margin-end: 4px; / add the 4px end-margin of other elements / +/* margin-inline-end: 4px; / add the 4px end-margin of other elements / border-bottom: 1px solid var(--in-content-header-border-color); margin-bottom: 15px; padding-bottom: 15px; */ + -moz-box-align: baseline; } *|*.header-name { @@ -674,13 +703,13 @@ xul|*.fileFieldContentBox { } xul|*.fileFieldIcon { - -moz-margin-start: 10px; - -moz-margin-end: 0; + margin-inline-start: 10px; + margin-inline-end: 0; } xul|*.fileFieldLabel { - -moz-margin-start: -26px; - -moz-padding-start: 36px; + margin-inline-start: -26px; + padding-inline-start: 36px; } xul|textbox:-moz-locale-dir(rtl), @@ -701,7 +730,7 @@ xul|filefield + xul|button:-moz-locale-dir(rtl) { xul|textbox + xul|button, xul|filefield + xul|button { - -moz-border-start: none; + border-inline-start: none; } */ /* List boxes */ @@ -709,7 +738,7 @@ xul|filefield + xul|button { xul|richlistbox, xul|listbox { -moz-appearance: none; - -moz-margin-start: 0; + margin-inline-start: 0; background-color: var(--in-content-box-background); border: 1px solid var(--in-content-box-border-color); color: var(--in-content-text-color); @@ -772,6 +801,10 @@ xul|treecols { padding: 0; } +.autocomplete-tree > xul|treecols { + border-bottom: none !important; +} + xul|treecol:not([hideheader="true"]), xul|treecolpicker { -moz-appearance: none; @@ -789,8 +822,8 @@ xul|treecolpicker:hover { xul|treecol:not([hideheader="true"]):not(:first-child), xul|treecolpicker { - -moz-border-start-width: 1px; - -moz-border-start-style: solid; + border-inline-start-width: 1px; + border-inline-start-style: solid; border-image: linear-gradient(transparent 0%, transparent 20%, #c1c1c1 20%, #c1c1c1 80%, transparent 80%, transparent 100%) 1 1; } @@ -837,21 +870,20 @@ xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker { } xul|checkbox { - -moz-padding-start: 0; + padding-inline-start: 0; } xul|radio { -moz-binding: url("chrome://global/content/bindings/radio.xml#radio"); - -moz-padding-start: 0; + padding-inline-start: 0; } xul|*.radio-icon, xul|*.checkbox-icon { - -moz-margin-end: 0; + margin-inline-end: 0; } */ -.text-link:-moz-focusring, -.inline-link:-moz-focusring { +.text-link:-moz-focusring { /* Don't specify the outline-color, we should always use initial value. */ outline: 1px dotted; }