first version of rewrite
This commit is contained in:
parent
f61c7c4a2d
commit
26df277f1b
226 changed files with 1649 additions and 6675 deletions
108
chrome/content/common.css
Normal file
108
chrome/content/common.css
Normal file
|
@ -0,0 +1,108 @@
|
|||
/* EdgeFr-Fox by bmFtZQ - content/common.css */
|
||||
|
||||
/* colours */
|
||||
@-moz-document url-prefix(about:) {
|
||||
:root {
|
||||
--in-content-page-color: #252525 !important;
|
||||
--in-content-page-background: #f7f7f7 !important;
|
||||
--in-content-deemphasized-text: #666 !important;
|
||||
--in-content-box-background: #fff !important;
|
||||
--in-content-box-background-odd: rgba(0, 0, 0, 0.05) !important;
|
||||
--in-content-box-info-background: #f7f7f7 !important;
|
||||
--in-content-icon-color: #666 !important;
|
||||
--in-content-accent-color: #006CBE !important;
|
||||
--in-content-accent-color-active: #1683D8 !important;
|
||||
--in-content-border-hover: rgba(0,0,0,0.5) !important;
|
||||
--in-content-border-invalid: var(--red-50) !important;
|
||||
--in-content-border-color: #bebebe !important;
|
||||
--in-content-error-text-color: #FF848A !important;
|
||||
--in-content-link-color: #0078D4 !important;
|
||||
--in-content-link-color-hover: #006CBE !important;
|
||||
--in-content-link-color-active: #0749AC !important;
|
||||
--in-content-link-color-visited: #0078D4 !important;
|
||||
--in-content-button-text-color: var(--in-content-text-color) !important;
|
||||
--in-content-button-text-color-hover: var(--in-content-text-color) !important;
|
||||
--in-content-button-text-color-active: var(--in-content-button-text-color-hover) !important;
|
||||
--in-content-button-background: #EDEDED !important;
|
||||
--in-content-button-background-hover: #e5e5e5 !important;
|
||||
--in-content-button-background-active: #d5d5d5 !important;
|
||||
--in-content-primary-button-text-color: #fff !important;
|
||||
--in-content-primary-button-background: #0061e0 !important;
|
||||
--in-content-primary-button-background-hover: #0250bb !important;
|
||||
--in-content-primary-button-background-active: #053e94 !important;
|
||||
--in-content-danger-button-background: #DF4951 !important;
|
||||
--in-content-danger-button-background-hover: #EA656C !important;
|
||||
--in-content-danger-button-background-active: #BB353C !important;
|
||||
--in-content-focus-outline-color: color-mix(in srgb, #0055D7 50%, transparent) !important;
|
||||
--in-content-table-background: #f7f7f7 !important;
|
||||
scrollbar-color: rgba(37, 37, 37, 0.4) #f7f7f7 !important;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--in-content-page-background: #252525 !important;
|
||||
--in-content-page-color: #fff !important;
|
||||
--in-content-deemphasized-text: #bbb !important;
|
||||
--in-content-box-background: #333 !important;
|
||||
--in-content-box-background-odd: rgba(255, 255, 255, 0.05) !important;
|
||||
--in-content-box-info-background: rgba(255, 255, 255, 0.15) !important;
|
||||
--in-content-border-color: rgba(255, 255, 255, 0.2) !important;
|
||||
--in-content-border-hover: rgba(255, 255, 255, 0.3) !important;
|
||||
--in-content-border-invalid: rgb(255,132,139) !important;
|
||||
--in-content-error-text-color: #FF9AA2 !important;
|
||||
--in-content-button-background: #3B3B3B !important;
|
||||
--in-content-button-background-hover: #545454 !important;
|
||||
--in-content-button-background-active: #606060 !important;
|
||||
--in-content-icon-color: #fff !important;
|
||||
--in-content-primary-button-text-color: #fff !important;
|
||||
--in-content-primary-button-background: #006CBE !important;
|
||||
--in-content-primary-button-background-hover: #0078D4 !important;
|
||||
--in-content-primary-button-background-active: #005CA3 !important;
|
||||
--in-content-danger-button-background: #E12424 !important;
|
||||
--in-content-danger-button-background-hover: #F94343 !important;
|
||||
--in-content-danger-button-background-active: #AA1E1E !important;
|
||||
--in-content-focus-outline-color: #63ADE5 !important;
|
||||
--in-content-table-background: #252525 !important;
|
||||
--in-content-accent-color: #75B6E8 !important;
|
||||
--in-content-accent-color-active: #4C98D1 !important;
|
||||
--in-content-link-color: #75B6E8 !important;
|
||||
--in-content-link-color-hover: #63ADE5 !important;
|
||||
--in-content-link-color-active: #4C98D1 !important;
|
||||
--in-content-link-color-visited: var(--in-content-link-color) !important;
|
||||
--card-outline-color: #555 !important;
|
||||
--dialog-warning-text-color: var(--red-40) !important;
|
||||
scrollbar-color: rgba(255,255,255,.4) #252525 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* preferences */
|
||||
@-moz-document url-prefix(about:preferences), url-prefix(about:addons) {
|
||||
.category[selected] {
|
||||
position: relative !important;
|
||||
border-radius: 4px !important;
|
||||
}
|
||||
|
||||
.category[selected]:not(:hover, :active) {
|
||||
background-color: var(--in-content-button-background) !important;
|
||||
}
|
||||
|
||||
.category[selected]::before {
|
||||
content: "";
|
||||
display: block;
|
||||
border-left: 3px solid var(--in-content-accent-color);
|
||||
height: 24px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
button.tab-button:hover {
|
||||
border-block-color: transparent var(--in-content-box-border-color) !important;
|
||||
}
|
||||
|
||||
button.tab-button[selected],
|
||||
button.tab-button[selected]:hover {
|
||||
border-block-color: transparent currentColor !important;
|
||||
}
|
||||
}
|
132
chrome/content/newtab.css
Normal file
132
chrome/content/newtab.css
Normal file
|
@ -0,0 +1,132 @@
|
|||
/* EdgeFr-Fox by bmFtZQ - content/newtab.css */
|
||||
|
||||
/* colours */
|
||||
@-moz-document url-prefix("about:newtab"), url-prefix("about:home") {
|
||||
body:not([lwt-newtab], [lwt-newtab-brighttext]) {
|
||||
--newtab-background-color: #F7F7F7 !important;
|
||||
--newtab-background-color-secondary: #fff !important;
|
||||
--newtab-text-primary-color: #000 !important;
|
||||
--newtab-primary-action-background: #0078D4 !important;
|
||||
--newtab-text-secondary-color: color-mix(in srgb, var(--newtab-text-primary-color) 80%, transparent) !important;
|
||||
--newtab-element-hover-color: color-mix(in srgb, var(--newtab-background-color) 95%, #000) !important;
|
||||
--newtab-element-active-color: color-mix(in srgb, var(--newtab-background-color) 90%, #000) !important;
|
||||
--newtab-element-secondary-color: color-mix(in srgb, currentColor 5%, transparent) !important;
|
||||
--newtab-element-secondary-hover-color: color-mix(in srgb, currentColor 12%, transparent) !important;
|
||||
--newtab-element-secondary-active-color: color-mix(in srgb, currentColor 25%, transparent) !important;
|
||||
--newtab-primary-element-hover-color: color-mix(in srgb, var(--newtab-primary-action-background) 90%, #000) !important;
|
||||
--newtab-primary-element-active-color: color-mix(in srgb, var(--newtab-primary-action-background) 80%, #000) !important;
|
||||
--newtab-primary-element-text-color: #fff !important;
|
||||
--newtab-primary-action-background-dimmed: color-mix(in srgb, var(--newtab-primary-action-background) 25%, transparent) !important;
|
||||
--newtab-border-color: color-mix(in srgb, var(--newtab-background-color) 75%, #000) !important;
|
||||
--newtab-wordmark-color: #737373 !important;
|
||||
--newtab-status-success: #50B080 !important;
|
||||
--newtab-status-error: #FF848A !important;
|
||||
--newtab-inner-box-shadow-color: rgba(0, 0, 0, 0.1) !important;
|
||||
--newtab-overlay-color: color-mix(in srgb, var(--newtab-background-color) 85%, transparent) !important;
|
||||
--newtab-text-emphasis-background: #FFED32 !important;
|
||||
--newtab-text-emphasis-text-color: #000 !important;
|
||||
--newtab-textbox-focus-color: var(--newtab-primary-action-background) !important;
|
||||
--newtab-textbox-focus-boxshadow: 0 0 0 1px var(--newtab-primary-action-background), 0 0 0 4px rgba(var(--newtab-primary-action-background), 0.3) !important;
|
||||
--newtab-button-secondary-color: inherit !important;
|
||||
}
|
||||
|
||||
body[style*="--newtab-background-color: rgb(43, 42, 51); --newtab-text-primary-color: rgba(251, 251, 254, 1);"]:not([style*="--newtab-background-color-secondary"])[lwt-newtab-brighttext],
|
||||
body:not([style*="color"])[lwt-newtab-brighttext] {
|
||||
--newtab-background-color: #252525 !important;
|
||||
--newtab-background-color-secondary: #4A4A4A !important;
|
||||
--newtab-text-primary-color: #fff !important;
|
||||
--newtab-primary-action-background: #75B6E8 !important;
|
||||
--newtab-element-hover-color: color-mix(in srgb, var(--newtab-background-color) 95%, #FFF) !important;
|
||||
--newtab-element-active-color: color-mix(in srgb, var(--newtab-background-color) 90%, #FFF) !important;
|
||||
--newtab-element-secondary-color: color-mix(in srgb, currentColor 10%, transparent) !important;
|
||||
--newtab-element-secondary-hover-color: color-mix(in srgb, currentColor 17%, transparent) !important;
|
||||
--newtab-element-secondary-active-color: color-mix(in srgb, currentColor 30%, transparent) !important;
|
||||
--newtab-border-color: color-mix(in srgb, var(--newtab-background-color) 75%, #FFF) !important;
|
||||
--newtab-primary-element-text-color: #252525 !important;
|
||||
--newtab-wordmark-color: #fff !important;
|
||||
--newtab-status-success: #50B080 !important;
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-document url-prefix("about:newtab"), url-prefix("about:home") {
|
||||
/* hide pin */
|
||||
.icon.icon-pin-small {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* unpinned sites have lower opacity title */
|
||||
.top-site-button .title:not(.pinned) {
|
||||
opacity: 0.6 !important;
|
||||
}
|
||||
|
||||
/* search bar */
|
||||
.search-wrapper .search-inner-wrapper {
|
||||
min-height: 44px !important;
|
||||
}
|
||||
.search-handoff-button {
|
||||
border-radius: 99px !important;
|
||||
background-position: 12px !important;
|
||||
padding-inline-start: 48px !important;
|
||||
white-space: nowrap !important;
|
||||
text-overflow: ellipsis !important;
|
||||
--elevation: 4;
|
||||
box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, 0.11), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, 0.13) !important;
|
||||
}
|
||||
|
||||
.search-handoff-button:hover {
|
||||
--elevation: 6;
|
||||
box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, 0.11), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, 0.13) !important;
|
||||
}
|
||||
|
||||
.search-wrapper.fake-focus:not(.search.disabled) .search-handoff-button {
|
||||
border-color: transparent !important;
|
||||
outline: 2px solid var(--newtab-primary-action-background) !important;
|
||||
outline-offset: -1px !important;
|
||||
}
|
||||
|
||||
.search-handoff-button .fake-caret {
|
||||
inset-inline-start: 48px !important;
|
||||
top: 13px !important;
|
||||
}
|
||||
|
||||
.search-disabled .search-handoff-button {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
||||
/* top sites */
|
||||
.top-site-outer .tile {
|
||||
border-radius: 12px !important;
|
||||
height: 44px !important;
|
||||
width: 44px !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.top-site-outer .tile .icon-wrapper {
|
||||
border-radius: 4px !important;
|
||||
width: 24px !important;
|
||||
height: 24px !important;
|
||||
}
|
||||
|
||||
.top-site-outer .default-icon,
|
||||
.top-site-outer .search-topsite {
|
||||
background-size: 24px !important;
|
||||
height: 24px !important;
|
||||
width: 24px !important;
|
||||
}
|
||||
|
||||
.top-site-outer .tile .icon-wrapper.letter-fallback::before {
|
||||
font-size: 32px !important;
|
||||
}
|
||||
|
||||
/* card */
|
||||
.card-outer .card,
|
||||
.ds-card-grid.ds-card-grid-border .ds-card:not(.placeholder) {
|
||||
border-radius: 4px !important;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
|
||||
}
|
||||
|
||||
.card-outer .card-preview-image-outer,
|
||||
.ds-card-grid.ds-card-grid-border .ds-card:not(.placeholder) .img-wrapper .img img {
|
||||
border-radius: 4px 4px 0 0 !important
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue