michael@0: %if 0 michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: %endif michael@0: michael@0: html { michael@0: font: message-box; michael@0: font-size: 100%; michael@0: background-color: hsl(0,0%,95%); michael@0: color: #000; michael@0: height: 100%; michael@0: } michael@0: michael@0: body { michael@0: margin: 0; michael@0: display: -moz-box; michael@0: -moz-box-orient: vertical; michael@0: width: 100%; michael@0: height: 100%; michael@0: } michael@0: michael@0: input, michael@0: button { michael@0: font-size: inherit; michael@0: font-family: inherit; michael@0: } michael@0: michael@0: a { michael@0: color: -moz-nativehyperlinktext; michael@0: text-decoration: none; michael@0: } michael@0: michael@0: .spacer { michael@0: -moz-box-flex: 1; michael@0: } michael@0: michael@0: #topSection { michael@0: text-align: center; michael@0: } michael@0: michael@0: #brandLogo { michael@0: height: 192px; michael@0: width: 192px; michael@0: margin: 22px auto 31px; michael@0: background-image: url("chrome://branding/content/about-logo.png"); michael@0: background-size: 192px auto; michael@0: background-position: center center; michael@0: background-repeat: no-repeat; michael@0: } michael@0: michael@0: #searchForm, michael@0: #snippets { michael@0: width: 470px; michael@0: } michael@0: michael@0: #searchForm { michael@0: display: -moz-box; michael@0: } michael@0: michael@0: #searchLogoContainer { michael@0: display: -moz-box; michael@0: -moz-box-align: center; michael@0: padding-top: 2px; michael@0: -moz-padding-end: 8px; michael@0: } michael@0: michael@0: #searchLogoContainer[hidden] { michael@0: display: none; michael@0: } michael@0: michael@0: #searchEngineLogo { michael@0: display: inline-block; michael@0: height: 28px; michael@0: width: 70px; michael@0: min-width: 70px; michael@0: } michael@0: michael@0: #searchText { michael@0: -moz-box-flex: 1; michael@0: padding: 6px 8px; michael@0: background: hsla(0,0%,100%,.9) padding-box; michael@0: border: 1px solid; michael@0: border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2); michael@0: box-shadow: 0 1px 0 hsla(210,65%,9%,.02) inset, michael@0: 0 0 2px hsla(210,65%,9%,.1) inset, michael@0: 0 1px 0 hsla(0,0%,100%,.2); michael@0: border-radius: 2.5px 0 0 2.5px; michael@0: } michael@0: michael@0: #searchText:-moz-dir(rtl) { michael@0: border-radius: 0 2.5px 2.5px 0; michael@0: } michael@0: michael@0: #searchText:focus, michael@0: #searchText[autofocus] { michael@0: border-color: hsla(206,100%,60%,.6) hsla(206,76%,52%,.6) hsla(204,100%,40%,.6); michael@0: } michael@0: michael@0: #searchSubmit { michael@0: -moz-margin-start: -1px; michael@0: background: linear-gradient(hsla(0,0%,100%,.8), hsla(0,0%,100%,.1)) padding-box; michael@0: padding: 0 9px; michael@0: border: 1px solid; michael@0: border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2); michael@0: -moz-border-start: 1px solid transparent; michael@0: border-radius: 0 2.5px 2.5px 0; michael@0: box-shadow: 0 0 2px hsla(0,0%,100%,.5) inset, michael@0: 0 1px 0 hsla(0,0%,100%,.2); michael@0: cursor: pointer; michael@0: transition-property: background-color, border-color, box-shadow; michael@0: transition-duration: 150ms; michael@0: } michael@0: michael@0: #searchSubmit:-moz-dir(rtl) { michael@0: border-radius: 2.5px 0 0 2.5px; michael@0: } michael@0: michael@0: #searchText:focus + #searchSubmit, michael@0: #searchText + #searchSubmit:hover, michael@0: #searchText[autofocus] + #searchSubmit { michael@0: border-color: #59b5fc #45a3e7 #3294d5; michael@0: color: white; michael@0: } michael@0: michael@0: #searchText:focus + #searchSubmit, michael@0: #searchText[autofocus] + #searchSubmit { michael@0: background-image: linear-gradient(#4cb1ff, #1793e5); michael@0: box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset, michael@0: 0 0 0 1px hsla(0,0%,100%,.1) inset, michael@0: 0 1px 0 hsla(210,54%,20%,.03); michael@0: } michael@0: michael@0: #searchText + #searchSubmit:hover { michael@0: background-image: linear-gradient(#66bdff, #0d9eff); michael@0: box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset, michael@0: 0 0 0 1px hsla(0,0%,100%,.1) inset, michael@0: 0 1px 0 hsla(210,54%,20%,.03), michael@0: 0 0 4px hsla(206,100%,20%,.2); michael@0: } michael@0: michael@0: #searchText + #searchSubmit:hover:active { michael@0: box-shadow: 0 1px 1px hsla(211,79%,6%,.1) inset, michael@0: 0 0 1px hsla(211,79%,6%,.2) inset; michael@0: transition-duration: 0ms; michael@0: } michael@0: michael@0: #defaultSnippet1, michael@0: #defaultSnippet2, michael@0: #rightsSnippet { michael@0: display: block; michael@0: min-height: 38px; michael@0: background: 30px center no-repeat; michael@0: padding: 6px 0; michael@0: -moz-padding-start: 79px; michael@0: } michael@0: michael@0: #rightsSnippet[hidden] { michael@0: display: none; michael@0: } michael@0: michael@0: #defaultSnippet1:-moz-dir(rtl), michael@0: #defaultSnippet2:-moz-dir(rtl), michael@0: #rightsSnippet:-moz-dir(rtl) { michael@0: background-position: right 30px center; michael@0: } michael@0: michael@0: #defaultSnippet1 { michael@0: background-image: url("chrome://browser/content/abouthome/snippet1.png"); michael@0: } michael@0: michael@0: #defaultSnippet2 { michael@0: background-image: url("chrome://browser/content/abouthome/snippet2.png"); michael@0: } michael@0: michael@0: #snippets { michael@0: display: inline-block; michael@0: text-align: start; michael@0: margin: 12px 0; michael@0: color: #3c3c3c; michael@0: font-size: 75%; michael@0: /* 12px is the computed font size, 15px the computed line height of the snippets michael@0: with Segoe UI on a default Windows 7 setup. The 15/12 multiplier approximately michael@0: converts em from units of font-size to units of line-height. The goal is to michael@0: preset the height of a three-line snippet to avoid visual moving/flickering as michael@0: the snippets load. */ michael@0: min-height: calc(15/12 * 3em); michael@0: } michael@0: michael@0: #launcher { michael@0: display: -moz-box; michael@0: -moz-box-align: center; michael@0: -moz-box-pack: center; michael@0: width: 100%; michael@0: background-color: hsla(0,0%,0%,.03); michael@0: border-top: 1px solid hsla(0,0%,0%,.03); michael@0: box-shadow: 0 1px 2px hsla(0,0%,0%,.02) inset, michael@0: 0 -1px 0 hsla(0,0%,100%,.25); michael@0: } michael@0: michael@0: #launcher:not([session]), michael@0: body[narrow] #launcher[session] { michael@0: display: block; /* display separator and restore button on separate lines */ michael@0: text-align: center; michael@0: white-space: nowrap; /* prevent navigational buttons from wrapping */ michael@0: } michael@0: michael@0: .launchButton { michael@0: display: -moz-box; michael@0: -moz-box-orient: vertical; michael@0: margin: 16px 1px; michael@0: padding: 14px 6px; michael@0: min-width: 88px; michael@0: max-width: 176px; michael@0: max-height: 85px; michael@0: vertical-align: top; michael@0: white-space: normal; michael@0: background: transparent padding-box; michael@0: border: 1px solid transparent; michael@0: border-radius: 2.5px; michael@0: color: #525c66; michael@0: font-size: 75%; michael@0: cursor: pointer; michael@0: transition-property: background-color, border-color, box-shadow; michael@0: transition-duration: 150ms; michael@0: } michael@0: michael@0: body[narrow] #launcher[session] > .launchButton { michael@0: margin: 4px 1px; michael@0: } michael@0: michael@0: .launchButton:hover { michael@0: background-color: hsla(211,79%,6%,.03); michael@0: border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2); michael@0: } michael@0: michael@0: .launchButton:hover:active { michael@0: background-image: linear-gradient(hsla(211,79%,6%,.02), hsla(211,79%,6%,.05)); michael@0: border-color: hsla(210,54%,20%,.2) hsla(210,54%,20%,.23) hsla(210,54%,20%,.25); michael@0: box-shadow: 0 1px 1px hsla(211,79%,6%,.05) inset, michael@0: 0 0 1px hsla(211,79%,6%,.1) inset; michael@0: transition-duration: 0ms; michael@0: } michael@0: michael@0: .launchButton[hidden], michael@0: #launcher:not([session]) > #restorePreviousSessionSeparator, michael@0: #launcher:not([session]) > #restorePreviousSession { michael@0: display: none; michael@0: } michael@0: michael@0: #restorePreviousSessionSeparator { michael@0: width: 3px; michael@0: height: 116px; michael@0: margin: 0 10px; michael@0: background-image: linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)), michael@0: linear-gradient(hsla(211,79%,6%,0), hsla(211,79%,6%,.2), hsla(211,79%,6%,0)), michael@0: linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)); michael@0: background-position: left top, center, right bottom; michael@0: background-size: 1px auto; michael@0: background-repeat: no-repeat; michael@0: } michael@0: michael@0: body[narrow] #restorePreviousSessionSeparator { michael@0: margin: 0 auto; michael@0: width: 512px; michael@0: height: 3px; michael@0: background-image: linear-gradient(to right, hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)), michael@0: linear-gradient(to right, hsla(211,79%,6%,0), hsla(211,79%,6%,.2), hsla(211,79%,6%,0)), michael@0: linear-gradient(to right, hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)); michael@0: background-size: auto 1px; michael@0: } michael@0: michael@0: #restorePreviousSession { michael@0: max-width: none; michael@0: font-size: 90%; michael@0: } michael@0: michael@0: body[narrow] #restorePreviousSession { michael@0: font-size: 80%; michael@0: } michael@0: michael@0: .launchButton::before { michael@0: display: block; michael@0: width: 32px; michael@0: height: 32px; michael@0: margin: 0 auto 6px; michael@0: line-height: 0; /* remove extra vertical space due to non-zero font-size */ michael@0: } michael@0: michael@0: #downloads::before { michael@0: content: url("chrome://browser/content/abouthome/downloads.png"); michael@0: } michael@0: michael@0: #bookmarks::before { michael@0: content: url("chrome://browser/content/abouthome/bookmarks.png"); michael@0: } michael@0: michael@0: #history::before { michael@0: content: url("chrome://browser/content/abouthome/history.png"); michael@0: } michael@0: michael@0: #apps::before { michael@0: content: url("chrome://browser/content/abouthome/apps.png"); michael@0: } michael@0: michael@0: #addons::before { michael@0: content: url("chrome://browser/content/abouthome/addons.png"); michael@0: } michael@0: michael@0: #sync::before { michael@0: content: url("chrome://browser/content/abouthome/sync.png"); michael@0: } michael@0: michael@0: #settings::before { michael@0: content: url("chrome://browser/content/abouthome/settings.png"); michael@0: } michael@0: michael@0: #restorePreviousSession::before { michael@0: content: url("chrome://browser/content/abouthome/restore-large.png"); michael@0: height: 48px; michael@0: width: 48px; michael@0: display: inline-block; /* display on same line as text label */ michael@0: vertical-align: middle; michael@0: margin-bottom: 0; michael@0: -moz-margin-end: 8px; michael@0: } michael@0: michael@0: #restorePreviousSession:-moz-dir(rtl)::before { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: body[narrow] #restorePreviousSession::before { michael@0: content: url("chrome://browser/content/abouthome/restore.png"); michael@0: height: 32px; michael@0: width: 32px; michael@0: } michael@0: michael@0: #aboutMozilla { michael@0: display: block; michael@0: position: relative; /* pin wordmark to edge of document, not of viewport */ michael@0: -moz-box-ordinal-group: 0; michael@0: opacity: .5; michael@0: transition: opacity 150ms; michael@0: } michael@0: michael@0: #aboutMozilla:hover { michael@0: opacity: 1; michael@0: } michael@0: michael@0: #aboutMozilla::before { michael@0: content: url("chrome://browser/content/abouthome/mozilla.png"); michael@0: display: block; michael@0: position: absolute; michael@0: top: 12px; michael@0: right: 12px; michael@0: width: 69px; michael@0: height: 19px; michael@0: } michael@0: michael@0: /* [HiDPI] michael@0: * At resolutions above 1dppx, prefer downscaling the 2x Retina graphics michael@0: * rather than upscaling the original-size ones (bug 818940). michael@0: */ michael@0: @media not all and (max-resolution: 1dppx) { michael@0: #brandLogo { michael@0: background-image: url("chrome://branding/content/about-logo@2x.png"); michael@0: } michael@0: michael@0: #defaultSnippet1, michael@0: #defaultSnippet2, michael@0: #rightsSnippet { michael@0: background-size: 40px; michael@0: } michael@0: michael@0: #defaultSnippet1 { michael@0: background-image: url("chrome://browser/content/abouthome/snippet1@2x.png"); michael@0: } michael@0: michael@0: #defaultSnippet2 { michael@0: background-image: url("chrome://browser/content/abouthome/snippet2@2x.png"); michael@0: } michael@0: michael@0: .launchButton::before, michael@0: #aboutMozilla::before { michael@0: transform: scale(.5); michael@0: transform-origin: 0 0; michael@0: } michael@0: michael@0: .launchButton:-moz-dir(rtl)::before, michael@0: #aboutMozilla:-moz-dir(rtl)::before { michael@0: transform: scale(.5) translateX(32px); michael@0: } michael@0: michael@0: #downloads::before { michael@0: content: url("chrome://browser/content/abouthome/downloads@2x.png"); michael@0: } michael@0: michael@0: #bookmarks::before { michael@0: content: url("chrome://browser/content/abouthome/bookmarks@2x.png"); michael@0: } michael@0: michael@0: #history::before { michael@0: content: url("chrome://browser/content/abouthome/history@2x.png"); michael@0: } michael@0: michael@0: #apps::before { michael@0: content: url("chrome://browser/content/abouthome/apps@2x.png"); michael@0: } michael@0: michael@0: #addons::before { michael@0: content: url("chrome://browser/content/abouthome/addons@2x.png"); michael@0: } michael@0: michael@0: #sync::before { michael@0: content: url("chrome://browser/content/abouthome/sync@2x.png"); michael@0: } michael@0: michael@0: #settings::before { michael@0: content: url("chrome://browser/content/abouthome/settings@2x.png"); michael@0: } michael@0: michael@0: #restorePreviousSession::before { michael@0: content: url("chrome://browser/content/abouthome/restore-large@2x.png"); michael@0: } michael@0: michael@0: body[narrow] #restorePreviousSession::before { michael@0: content: url("chrome://browser/content/abouthome/restore@2x.png"); michael@0: } michael@0: michael@0: #restorePreviousSession:-moz-dir(rtl)::before { michael@0: transform: scale(-0.5, 0.5) translateX(24px); michael@0: transform-origin: top center; michael@0: } michael@0: michael@0: #aboutMozilla::before { michael@0: content: url("chrome://browser/content/abouthome/mozilla@2x.png"); michael@0: } michael@0: } michael@0: