gecko-dev/browser/themes/shared/browser.inc.css
Dave Townsend 5d41d30a08 Bug 1518632: Show the first-run experience for users that get pushed to a new profile. r=Gijs, r=flod, r=stomlinson
On startup of a fresh dedicated profile show a welcome page and a modal dialog
to explain what has happened.

--HG--
extra : rebase_source : 1505cf27f900070debc1f9e1c71ec4bef3bc099d
extra : source : 05200c5388b4f7adc4414268727458515d7b9ed9
2019-01-30 11:31:13 -08:00

282 lines
6.5 KiB
CSS

/* 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/. */
%include downloads/indicator.inc.css
%include addons/extension-controlled.inc.css
%filter substitution
%define navbarTabsShadowSize 1px
%define themeTransition background-color 0.1s cubic-bezier(.17,.67,.83,.67)
%define lwtPopupBrighttextLinkColor #45a1ff
:root {
/* Note: Setting this to 0 (without px) breaks CSS calculations for OSX. */
--space-above-tabbar: 0px;
}
:root[extradragspace][tabsintitlebar]:not([inFullscreen]) {
--space-above-tabbar: 8px;
}
/* Increase contrast of UI links on dark themes */
:root[lwt-popup-brighttext] panel .text-link {
color: @lwtPopupBrighttextLinkColor@;
}
/* Toolbar / content area border */
#navigator-toolbox::after {
content: "";
display: -moz-box;
border-bottom: 1px solid var(--chrome-content-separator-color);
}
:root[customizing] #navigator-toolbox::after {
border-bottom-style: none;
}
:root[sessionrestored] #nav-bar:-moz-lwtheme {
transition: @themeTransition@;
}
/* Bookmark toolbar */
#PersonalToolbar {
overflow: -moz-hidden-unscrollable;
max-height: 4em;
padding: 0 6px 2px;
}
:root[sessionrestored] #PersonalToolbar {
transition: min-height 170ms ease-out, max-height 170ms ease-out, @themeTransition@;
}
#PersonalToolbar[collapsed=true] {
min-height: 0.1px;
max-height: 0;
}
:root[sessionrestored] #PersonalToolbar[collapsed=true] {
transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
}
#PersonalToolbar[customizing] {
outline: 1px dashed;
outline-offset: -3px;
-moz-outline-radius: 2px;
}
#PersonalToolbar[customizing]:empty {
/* Avoid the toolbar having no height when there's no items in it */
min-height: 22px;
}
/* Required for Library animation */
#navigator-toolbox {
position: relative;
}
#library-animatable-box {
display: none;
}
#library-animatable-box[animate] {
display: -moz-box;
}
/* Back / Forward context menu */
.unified-nav-back,
.unified-nav-forward {
-moz-context-properties: fill;
fill: currentColor;
}
.unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr),
.unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
list-style-image: url("chrome://browser/skin/back.svg") !important;
}
.unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr),
.unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) {
list-style-image: url("chrome://browser/skin/forward.svg") !important;
}
/* Private browsing and accessibility indicators */
.accessibility-indicator,
.private-browsing-indicator {
background-repeat: no-repeat;
background-size: 100% auto;
background-position: center;
width: 24px;
height: 24px;
margin-left: 7px;
margin-right: 7px;
position: relative;
/* Need to ensure this gets positioned on top of the position:relative #navigator-toolbox
* in case the dark/light themes give that item a background. */
z-index: 1;
}
.accessibility-indicator {
background-image: url("chrome://browser/skin/accessibility.svg");
-moz-user-focus: normal;
/* Clear default button styling */
-moz-appearance: none;
margin-top: unset;
margin-bottom: unset;
min-width: unset;
color: unset;
text-shadow: unset;
}
.accessibility-indicator:-moz-any(:hover, :active, :focus, :-moz-focusring) {
background-image: url("chrome://browser/skin/accessibility-active.svg");
outline: 0;
}
.private-browsing-indicator {
background-image: url("chrome://browser/skin/private-browsing.svg");
}
:root:not([accessibilitymode]) .accessibility-indicator,
:root:not([privatebrowsingmode=temporary]) .private-browsing-indicator {
display: none;
}
/* End private browsing and accessibility indicators */
/* Override theme colors since the picker uses extra colors that
themes cannot set */
#DateTimePickerPanel {
--arrowpanel-background: var(--default-arrowpanel-background);
--arrowpanel-color: var(--default-arrowpanel-color);
--arrowpanel-border-color: var(--default-arrowpanel-border-color);
}
#DateTimePickerPanel[side="top"],
#DateTimePickerPanel[side="bottom"] {
margin-left: 0;
margin-right: 0;
}
#widget-overflow .webextension-popup-browser {
background: #fff;
}
#addon-progress-notification-progressmeter {
margin: 2px 4px;
}
/* Contextual Feature Recommendation popup-notification */
#cfr-notification-header {
width: 100%;
text-align: center;
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2);
}
#cfr-notification-header-stack {
width: 100%;
}
#cfr-notification-header-label {
margin: 9px;
font-size: 12px;
font-weight: 600;
}
#cfr-notification-header-link {
margin: 7px;
color: inherit;
cursor: default;
}
#cfr-notification-header-image {
width: 19px;
height: 19px;
padding: 2px;
-moz-context-properties: fill, fill-opacity;
fill: currentColor;
fill-opacity: 0.6;
list-style-image: url(resource://activity-stream/data/content/assets/glyph-help-24.svg);
}
#cfr-notification-header-image:hover {
background-color: hsla(0,0%,70%,.2);
border-radius: 2px;
}
#contextual-feature-recommendation-notification .popup-notification-icon {
margin-inline-end: 4px;
}
#contextual-feature-recommendation-notification .popup-notification-body-container {
padding-bottom: 0;
}
#contextual-feature-recommendation-notification popupnotificationcontent {
margin-top: 0;
}
#contextual-feature-recommendation-notification description {
margin-bottom: 0;
}
#cfr-notification-footer {
padding: 10px var(--arrowpanel-padding);
}
#cfr-notification-footer-text,
#cfr-notification-footer-users,
#cfr-notification-footer-learn-more-link {
margin: 0;
}
#cfr-notification-footer-addon-info {
align-items: center;
display: flex;
margin-top: 10px;
margin-bottom: 6px;
}
#cfr-notification-footer-filled-stars,
#cfr-notification-footer-empty-stars {
-moz-context-properties: fill, fill-opacity;
background-image: url(resource://activity-stream/data/content/assets/glyph-star-17.svg);
background-size: 17px;
fill: currentColor;
fill-opacity: 0.7;
height: 16px;
}
#cfr-notification-footer-filled-stars:-moz-locale-dir(rtl),
#cfr-notification-footer-empty-stars {
background-position-x: right;
}
#cfr-notification-footer-filled-stars,
#cfr-notification-footer-empty-stars:-moz-locale-dir(rtl) {
background-position-x: left;
}
#cfr-notification-footer-empty-stars[tooltiptext] {
margin-inline-end: 6px;
opacity: 0.3;
}
#cfr-notification-footer-users {
opacity: 0.7;
}
#cfr-notification-footer-spacer {
flex-grow: 1;
}
#content-mask {
background: rgba(0, 0, 0, 0.5);
}