aboutHome.css 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. %if 0
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. %endif
  6. html {
  7. font: message-box;
  8. font-size: 100%;
  9. background-color: #eee;
  10. color: #000;
  11. height: 100%;
  12. }
  13. body {
  14. margin: 0;
  15. display: -moz-box;
  16. -moz-box-orient: vertical;
  17. width: 100%;
  18. height: 100%;
  19. }
  20. input,
  21. button {
  22. font-size: inherit;
  23. font-family: inherit;
  24. }
  25. a {
  26. color: -moz-nativehyperlinktext;
  27. text-decoration: none;
  28. }
  29. .spacer {
  30. -moz-box-flex: 1;
  31. }
  32. #topSection {
  33. text-align: center;
  34. }
  35. #brandLogo {
  36. height: 192px;
  37. width: 192px;
  38. margin: 22px auto 31px;
  39. background-image: url("chrome://branding/content/about-logo.png");
  40. background-size: 192px auto;
  41. background-position: center center;
  42. background-repeat: no-repeat;
  43. }
  44. /* SEARCH */
  45. #searchContainer {
  46. display: -moz-box;
  47. position: relative;
  48. -moz-box-pack: center;
  49. margin: 10px 0 15px;
  50. }
  51. #searchForm {
  52. width: 470px;
  53. display: -moz-box;
  54. position: relative;
  55. height: 36px; /* 32 px logo + 2*1px pad + 2*1px border */
  56. -moz-box-flex: 1;
  57. max-width: 600px;
  58. }
  59. #searchEngineLogo {
  60. border: 1px transparent;
  61. padding: 4px;
  62. margin: 0;
  63. width: 28px;
  64. height: 28px;
  65. position: absolute;
  66. }
  67. #searchText {
  68. -moz-box-flex: 1;
  69. padding-top: 6px;
  70. padding-bottom: 6px;
  71. padding-inline-start: 38px; /* room for logo */
  72. padding-inline-end: 8px;
  73. background: rgba(255, 255, 255, 0.9) padding-box;
  74. border: 1px solid;
  75. border-color: rgba(37, 46, 65, 0.15) rgba(37, 46, 65, 0.17) rgba(37, 46, 65, 0.2);
  76. box-shadow: 0 1px 0 rgba(37, 46, 65, 0.02) inset,
  77. 0 0 2px rgba(37, 46, 65, 0.1) inset,
  78. 0 1px 0 rgba(255, 255, 255, 0.2);
  79. border-radius: 2.5px 0 0 2.5px;
  80. }
  81. #searchText:-moz-dir(rtl) {
  82. border-radius: 0 2.5px 2.5px 0;
  83. }
  84. #searchText:focus,
  85. #searchText[autofocus] {
  86. border-color: rgba(92, 133, 214, 0.6) rgba(78, 114, 188, 0.6) rgba(41, 82, 163, 0.6);
  87. }
  88. #searchText::placeholder {
  89. font-style: italic;
  90. opacity: 0.3;
  91. }
  92. #searchSubmit {
  93. margin-inline-start: -1px;
  94. background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1)) padding-box;
  95. padding: 0 9px;
  96. border: 1px solid;
  97. border-color: rgba(37, 46, 65, 0.2) rgba(37, 46, 65, 0.2) rgba(37, 46, 65, 0.2);
  98. border-inline-start: 1px solid transparent;
  99. border-radius: 0 2.5px 2.5px 0;
  100. box-shadow: 0 0 2px rgba(255, 255, 255, 0.5) inset,
  101. 0 1px 0 rgba(255, 255, 255, 0.2);
  102. cursor: pointer;
  103. transition-property: background-color, border-color, box-shadow;
  104. transition-duration: 150ms;
  105. }
  106. #searchSubmit:-moz-dir(rtl) {
  107. border-radius: 2.5px 0 0 2.5px;
  108. }
  109. #searchText:focus + #searchSubmit,
  110. #searchText + #searchSubmit:hover,
  111. #searchText[autofocus] + #searchSubmit {
  112. border-color: #8da1c8 #768bb5 #6579a2;
  113. color: white;
  114. }
  115. #searchText:focus + #searchSubmit,
  116. #searchText[autofocus] + #searchSubmit {
  117. background-image: linear-gradient(#85a8e0, #3d75cf);
  118. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
  119. 0 0 0 1px rgba(255, 255, 255, 0.1) inset,
  120. 0 1px 0 rgba(23, 46, 67, 0.03);
  121. }
  122. #searchText + #searchSubmit:hover {
  123. background-image: linear-gradient(#85a8e0, #3d75cf);
  124. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
  125. 0 0 0 1px rgba(255, 255, 255, 0.1) inset,
  126. 0 1px 0 rgba(23, 42, 79, 0.03),
  127. 0 0 4px rgba(0, 34, 102, 0.2);}
  128. #searchText + #searchSubmit:hover:active {
  129. box-shadow: 0 1px 1px rgba(3, 11, 27, 0.1) inset,
  130. 0 0 1px rgba(3, 11, 27, 0.2) inset;
  131. transition-duration: 0ms;
  132. }
  133. /* LAUNCHER */
  134. #launcher {
  135. display: -moz-box;
  136. -moz-box-align: center;
  137. -moz-box-pack: center;
  138. width: 100%;
  139. background-color: rgba(0, 0, 0, 0.03);
  140. border-top: 1px solid rgba(0, 0, 0, 0.03);
  141. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) inset,
  142. 0 -1px 0 rgba(255, 255, 255, 0.25);
  143. }
  144. #launcher:not([session]),
  145. body[narrow] #launcher[session] {
  146. display: block; /* display separator and restore button on separate lines */
  147. text-align: center;
  148. white-space: nowrap; /* prevent navigational buttons from wrapping */
  149. }
  150. .launchButton {
  151. display: -moz-box;
  152. -moz-box-orient: vertical;
  153. margin: 16px 1px;
  154. padding: 14px 6px;
  155. min-width: 88px;
  156. max-width: 176px;
  157. max-height: 85px;
  158. vertical-align: top;
  159. white-space: normal;
  160. background: transparent padding-box;
  161. border: 1px solid transparent;
  162. border-radius: 2.5px;
  163. color: #525c66;
  164. font-size: 75%;
  165. cursor: pointer;
  166. transition-property: background-color, border-color, box-shadow;
  167. transition-duration: 150ms;
  168. }
  169. body[narrow] #launcher[session] > .launchButton {
  170. margin: 4px 1px;
  171. }
  172. .launchButton:hover {
  173. background-color: hsla(211,79%,6%,.03);
  174. border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2);
  175. }
  176. .launchButton:hover:active {
  177. background-image: linear-gradient(hsla(211,79%,6%,.02), hsla(211,79%,6%,.05));
  178. border-color: hsla(210,54%,20%,.2) hsla(210,54%,20%,.23) hsla(210,54%,20%,.25);
  179. box-shadow: 0 1px 1px hsla(211,79%,6%,.05) inset,
  180. 0 0 1px hsla(211,79%,6%,.1) inset;
  181. transition-duration: 0ms;
  182. }
  183. .launchButton[hidden],
  184. #launcher:not([session]) > #restorePreviousSessionSeparator,
  185. #launcher:not([session]) > #restorePreviousSession {
  186. display: none;
  187. }
  188. #restorePreviousSessionSeparator {
  189. width: 3px;
  190. height: 116px;
  191. margin: 0 10px;
  192. background-image: linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)),
  193. linear-gradient(hsla(211,79%,6%,0), hsla(211,79%,6%,.2), hsla(211,79%,6%,0)),
  194. linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0));
  195. background-position: left top, center, right bottom;
  196. background-size: 1px auto;
  197. background-repeat: no-repeat;
  198. }
  199. body[narrow] #restorePreviousSessionSeparator {
  200. margin: 0 auto;
  201. width: 512px;
  202. height: 3px;
  203. background-image: linear-gradient(to right, hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)),
  204. linear-gradient(to right, hsla(211,79%,6%,0), hsla(211,79%,6%,.2), hsla(211,79%,6%,0)),
  205. linear-gradient(to right, hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0));
  206. background-size: auto 1px;
  207. }
  208. #restorePreviousSession {
  209. max-width: none;
  210. font-size: 90%;
  211. }
  212. body[narrow] #restorePreviousSession {
  213. font-size: 80%;
  214. }
  215. .launchButton::before {
  216. display: block;
  217. width: 32px;
  218. height: 32px;
  219. margin: 0 auto 6px;
  220. line-height: 0; /* remove extra vertical space due to non-zero font-size */
  221. }
  222. #downloads::before {
  223. content: url("chrome://browser/content/abouthome/downloads.png");
  224. }
  225. #bookmarks::before {
  226. content: url("chrome://browser/content/abouthome/bookmarks.png");
  227. }
  228. #history::before {
  229. content: url("chrome://browser/content/abouthome/history.png");
  230. }
  231. #addons::before {
  232. content: url("chrome://browser/content/abouthome/addons.png");
  233. }
  234. %ifdef MOZ_SERVICES_SYNC
  235. #sync::before {
  236. content: url("chrome://browser/content/abouthome/sync.png");
  237. }
  238. %endif
  239. #settings::before {
  240. content: url("chrome://browser/content/abouthome/settings.png");
  241. }
  242. #restorePreviousSession::before {
  243. content: url("chrome://browser/content/abouthome/restore-large.png");
  244. height: 48px;
  245. width: 48px;
  246. display: inline-block; /* display on same line as text label */
  247. vertical-align: middle;
  248. margin-bottom: 0;
  249. margin-inline-end: 8px;
  250. }
  251. #restorePreviousSession:-moz-dir(rtl)::before {
  252. transform: scaleX(-1);
  253. }
  254. body[narrow] #restorePreviousSession::before {
  255. content: url("chrome://browser/content/abouthome/restore.png");
  256. height: 32px;
  257. width: 32px;
  258. }
  259. /* [HiDPI]
  260. * At resolutions above 1dppx, prefer downscaling the 2x Retina graphics
  261. * rather than upscaling the original-size ones (bug 818940).
  262. */
  263. @media not all and (max-resolution: 1dppx) {
  264. #brandLogo {
  265. background-image: url("chrome://branding/content/about-logo@2x.png");
  266. }
  267. .launchButton::before {
  268. transform: scale(.5);
  269. transform-origin: 0 0;
  270. }
  271. #downloads::before {
  272. content: url("chrome://browser/content/abouthome/downloads@2x.png");
  273. }
  274. #bookmarks::before {
  275. content: url("chrome://browser/content/abouthome/bookmarks@2x.png");
  276. }
  277. #history::before {
  278. content: url("chrome://browser/content/abouthome/history@2x.png");
  279. }
  280. #addons::before {
  281. content: url("chrome://browser/content/abouthome/addons@2x.png");
  282. }
  283. %ifdef MOZ_SERVICES_SYNC
  284. #sync::before {
  285. content: url("chrome://browser/content/abouthome/sync@2x.png");
  286. }
  287. %endif
  288. #settings::before {
  289. content: url("chrome://browser/content/abouthome/settings@2x.png");
  290. }
  291. #restorePreviousSession::before {
  292. content: url("chrome://browser/content/abouthome/restore-large@2x.png");
  293. }
  294. body[narrow] #restorePreviousSession::before {
  295. content: url("chrome://browser/content/abouthome/restore@2x.png");
  296. }
  297. }