Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 14.23 KB | None | 0 0
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2.  * License, v. 2.0. If a copy of the MPL was not distributed with this
  3.  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4.  
  5. html {
  6.   width: 100%;
  7.   height: 100%;
  8. }
  9.  
  10. body {
  11.   font: message-box;
  12.   width: 100%;
  13.   height: 100%;
  14.   padding: 0;
  15.   margin: 0;
  16.   background-color: #F9F9F9;
  17.   display: -moz-box;
  18.   position: relative;
  19.   -moz-box-flex: 1;
  20.   -moz-user-focus: normal;
  21.   -moz-box-orient: vertical;
  22. }
  23.  
  24. input {
  25.   font: message-box;
  26.   font-size: 16px;
  27. }
  28.  
  29. input[type=button] {
  30.   cursor: pointer;
  31. }
  32.  
  33. /* UNDO */
  34. #newtab-undo-container {
  35.   transition: opacity 100ms ease-out;
  36.   -moz-box-align: center;
  37.   -moz-box-pack: center;
  38. }
  39.  
  40. #newtab-undo-container[undo-disabled] {
  41.   opacity: 0;
  42.   pointer-events: none;
  43. }
  44.  
  45. /* CUSTOMIZE */
  46. #newtab-customize-button {
  47.   position: absolute;
  48.   top: 10px;
  49.   right: 20px;
  50.   z-index: 101;
  51. }
  52.  
  53. #newtab-customize-button:dir(rtl) {
  54.   left: 20px;
  55.   right: auto;
  56. }
  57.  
  58. /* MARGINS */
  59. #newtab-vertical-margin {
  60.   display: -moz-box;
  61.   position: relative;
  62.   -moz-box-flex: 1;
  63.   -moz-box-orient: vertical;
  64. }
  65.  
  66. #newtab-margin-undo-container {
  67.   display: -moz-box;
  68.   left: 6px;
  69.   position: absolute;
  70.   top: 6px;
  71.   z-index: 1;
  72. }
  73.  
  74. #newtab-margin-undo-container:dir(rtl) {
  75.   left: auto;
  76.   right: 6px;
  77. }
  78.  
  79. #newtab-undo-close-button:dir(rtl) {
  80.   float:left;
  81. }
  82.  
  83. #newtab-horizontal-margin {
  84.   display: -moz-box;
  85.   -moz-box-flex: 1;
  86. }
  87.  
  88. #newtab-margin-top,
  89. #newtab-margin-bottom {
  90.   display: -moz-box;
  91.   position: relative;
  92. }
  93.  
  94. #newtab-margin-top {
  95.   -moz-box-flex: 1;
  96. }
  97.  
  98. #newtab-margin-bottom {
  99.   -moz-box-flex: 2;
  100. }
  101.  
  102. .newtab-side-margin {
  103.   min-width: 10px;
  104.   -moz-box-flex: 1;
  105. }
  106.  
  107. /* GRID */
  108. #newtab-grid {
  109.   -moz-box-flex: 5;
  110.   overflow: hidden;
  111.   text-align: center;
  112.   transition: 100ms ease-out;
  113.   transition-property: opacity;
  114. }
  115.  
  116. #newtab-grid[page-disabled] {
  117.   opacity: 0;
  118. }
  119.  
  120. #newtab-grid[locked],
  121. #newtab-grid[page-disabled] {
  122.   pointer-events: none;
  123. }
  124.  
  125. body:not(.compact) #topsites-heading {
  126.   display: none;
  127. }
  128.  
  129. /*
  130.  * If you change the sizes here, make sure you
  131.  * change the preferences:
  132.  * toolkit.pageThumbs.minWidth
  133.  * toolkit.pageThumbs.minHeight
  134.  */
  135. /* CELLS */
  136. .newtab-cell {
  137.   display: -moz-box;
  138.   height: 210px;
  139.   margin: 20px 10px 35px;
  140.   width: 290px;
  141. }
  142.  
  143. body.compact .newtab-cell {
  144.   width: 110px;
  145.   height: 110px;
  146.   margin: 12px;
  147. }
  148.  
  149. /* SITES */
  150. .newtab-site {
  151.   position: relative;
  152.   -moz-box-flex: 1;
  153.   transition: 100ms ease-out;
  154.   transition-property: top, left, opacity;
  155. }
  156.  
  157. .newtab-site[frozen] {
  158.   position: absolute;
  159.   pointer-events: none;
  160. }
  161.  
  162. .newtab-site[dragged] {
  163.   transition-property: none;
  164.   z-index: 10;
  165. }
  166.  
  167. /* LINK + THUMBNAILS */
  168. .newtab-link,
  169. .newtab-thumbnail {
  170.   position: absolute;
  171.   left: 0;
  172.   top: 0;
  173.   right: 0;
  174.   bottom: 0;
  175. }
  176.  
  177. /* TITLES */
  178. .newtab-sponsored,
  179. .newtab-title,
  180. .newtab-suggested {
  181.   overflow: hidden;
  182.   position: absolute;
  183.   right: 0;
  184.   text-align: center;
  185. }
  186.  
  187. .newtab-sponsored,
  188. .newtab-title {
  189.   bottom: 0;
  190.   white-space: nowrap;
  191.   text-overflow: ellipsis;
  192.   vertical-align: middle;
  193. }
  194.  
  195. .newtab-suggested {
  196.   border: 1px solid transparent;
  197.   border-radius: 2px;
  198.   font-size: 12px;
  199.   height: 17px;
  200.   line-height: 17px;
  201.   margin-bottom: -1px;
  202.   padding: 2px 8px;
  203.   display: none;
  204.   margin-left: auto;
  205.   margin-right: auto;
  206.   left: 0;
  207.   top: 215px;
  208.   -moz-user-select: none;
  209. }
  210.  
  211. .newtab-suggested-bounds {
  212.   max-height: 34px; /* 34 / 17 = 2 lines maximum */
  213. }
  214.  
  215. .newtab-title {
  216.   left: 0;
  217.   padding: 0 4px;
  218. }
  219.  
  220. .newtab-sponsored {
  221.   background-color: #FFFFFF;
  222.   border: 1px solid #E2E2E2;
  223.   border-radius: 3px;
  224.   color: #4A4A4A;
  225.   cursor: pointer;
  226.   display: none;
  227.   font-family: Arial;
  228.   font-size: 9px;
  229.   height: 17px;
  230.   left: 0;
  231.   line-height: 6px;
  232.   padding: 4px;
  233.   right: auto;
  234.   top: -15px;
  235. }
  236.  
  237. .newtab-site[suggested=true] > .newtab-sponsored {
  238.   background-color: #E2E2E2;
  239.   border: none;
  240. }
  241.  
  242. .newtab-site > .newtab-sponsored:-moz-any(:hover, [active]) {
  243.   background-color: #4A90E2;
  244.   border: 0;
  245.   color: white;
  246. }
  247.  
  248. .newtab-site > .newtab-sponsored[active] {
  249.   background-color: #000000;
  250. }
  251.  
  252. .newtab-sponsored:dir(rtl) {
  253.   right: 0;
  254.   left: auto;
  255. }
  256.  
  257. .newtab-site:-moz-any([type=enhanced], [type=sponsored], [suggested]) .newtab-sponsored {
  258.   display: block;
  259. }
  260.  
  261. .newtab-site[suggested] .newtab-suggested {
  262.   display: table;
  263. }
  264.  
  265. .sponsored-explain,
  266. .sponsored-explain a,
  267. .suggested-explain,
  268. .suggested-explain a {
  269.   color: white;
  270. }
  271.  
  272. .sponsored-explain,
  273. .suggested-explain {
  274.   background-color: rgba(51, 51, 51, 0.95);
  275.   bottom: 30px;
  276.   line-height: 20px;
  277.   padding: 15px 10px;
  278.   position: absolute;
  279.   text-align: start;
  280. }
  281.  
  282. .sponsored-explain input,
  283. .suggested-explain input {
  284.   background-size: 18px;
  285.   height: 18px;
  286.   opacity: 1;
  287.   pointer-events: none;
  288.   position: static;
  289.   width: 18px;
  290. }
  291.  
  292. /* CONTROLS */
  293. .newtab-control {
  294.   position: absolute;
  295.   opacity: 0;
  296.   transition: opacity 100ms ease-out;
  297. }
  298.  
  299. .newtab-control:-moz-focusring,
  300. .newtab-cell:not([ignorehover]) > .newtab-site:hover > .newtab-control {
  301.   opacity: 1;
  302. }
  303.  
  304. .newtab-control[dragged] {
  305.   opacity: 0 !important;
  306. }
  307.  
  308. @media (-moz-touch-enabled) {
  309.   .newtab-control {
  310.     opacity: 1;
  311.   }
  312. }
  313.  
  314. /* DRAG & DROP */
  315.  
  316. /*
  317.  * This is just a temporary drag element used for dataTransfer.setDragImage()
  318.  * so that we can use custom drag images and elements. It needs an opacity of
  319.  * 0.01 so that the core code detects that it's in fact a visible element.
  320.  */
  321. .newtab-drag {
  322.   width: 1px;
  323.   height: 1px;
  324.   background-color: #fff;
  325.   opacity: 0.01;
  326. }
  327.  
  328. /* SEARCH */
  329. #newtab-search-container {
  330.   display: -moz-box;
  331.   position: relative;
  332.   -moz-box-pack: center;
  333.   margin: 40px 0 15px;
  334. }
  335.  
  336. body.compact #newtab-search-container {
  337.   margin-top: 0;
  338.   margin-bottom: 80px;
  339. }
  340.  
  341. #newtab-search-container[page-disabled] {
  342.   opacity: 0;
  343.   pointer-events: none;
  344. }
  345.  
  346. #newtab-search-form {
  347.   display: -moz-box;
  348.   position: relative;
  349.   height: 36px;
  350.   -moz-box-flex: 1;
  351.   max-width: 600px; /* 2 * (290 cell width + 10 cell margin) */
  352. }
  353.  
  354. #newtab-search-icon {
  355.   border: 1px transparent;
  356.   padding: 0;
  357.   margin: 0;
  358.   width: 36px;
  359.   height: 36px;
  360.   background: url("chrome://browser/skin/search-indicator-magnifying-glass.svg") center center no-repeat;
  361.   position: absolute;
  362. }
  363.  
  364. #newtab-search-text {
  365.   -moz-box-flex: 1;
  366.   padding-top: 6px;
  367.   padding-bottom: 6px;
  368.   padding-inline-start: 34px;
  369.   padding-inline-end: 8px;
  370.   background: hsla(0,0%,100%,.9) padding-box;
  371.   border: 1px solid;
  372.   border-spacing: 0;
  373.   border-radius: 2px 0 0 2px;
  374.   border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2);
  375.   box-shadow: 0 1px 0 hsla(210,65%,9%,.02) inset,
  376.               0 0 2px hsla(210,65%,9%,.1) inset,
  377.               0 1px 0 hsla(0,0%,100%,.2);
  378.   color: inherit;
  379.   unicode-bidi: plaintext;
  380. }
  381.  
  382. #newtab-search-text:dir(rtl) {
  383.   border-radius: 0 2px 2px 0;
  384. }
  385.  
  386. #newtab-search-text[aria-expanded="true"] {
  387.   border-radius: 2px 0 0 0;
  388. }
  389.  
  390. #newtab-search-text[aria-expanded="true"]:dir(rtl) {
  391.   border-radius: 0 2px 0 0;
  392. }
  393.  
  394. #newtab-search-text[keepfocus],
  395. #newtab-search-text:focus,
  396. #newtab-search-text[autofocus] {
  397.   border-color: hsla(206,100%,60%,.6) hsla(206,76%,52%,.6) hsla(204,100%,40%,.6);
  398. }
  399.  
  400. #newtab-search-submit {
  401.   margin-inline-start: -1px;
  402.   color: transparent;
  403.   background: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go") center center no-repeat, linear-gradient(hsla(0,0%,100%,.8), hsla(0,0%,100%,.1)) padding-box;
  404.   padding: 0;
  405.   border: 1px solid;
  406.   border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2);
  407.   border-radius: 0 2px 2px 0;
  408.   border-inline-start: 1px solid transparent;
  409.   box-shadow: 0 0 2px hsla(0,0%,100%,.5) inset,
  410.               0 1px 0 hsla(0,0%,100%,.2);
  411.   cursor: pointer;
  412.   transition-property: background-color, border-color, box-shadow;
  413.   transition-duration: 150ms;
  414.   width: 50px;
  415. }
  416.  
  417. #newtab-search-submit:dir(rtl) {
  418.   border-radius: 2px 0 0 2px;
  419.   background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go-rtl"), linear-gradient(hsla(0,0%,100%,.8), hsla(0,0%,100%,.1));
  420. }
  421.  
  422. #newtab-search-text:focus + #newtab-search-submit,
  423. #newtab-search-text + #newtab-search-submit:hover,
  424. #newtab-search-text[autofocus] + #newtab-search-submit {
  425.   border-color: #59b5fc #45a3e7 #3294d5;
  426. }
  427.  
  428. #newtab-search-text:focus + #newtab-search-submit,
  429. #newtab-search-text[keepfocus] + #newtab-search-submit,
  430. #newtab-search-text[autofocus] + #newtab-search-submit {
  431.   background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go-inverted"), linear-gradient(#4cb1ff, #1793e5);
  432.   box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset,
  433.               0 0 0 1px hsla(0,0%,100%,.1) inset,
  434.               0 1px 0 hsla(210,54%,20%,.03);
  435. }
  436.  
  437. #newtab-search-text + #newtab-search-submit:hover {
  438.   background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go-inverted"), linear-gradient(#4cb1ff, #1793e5);
  439.   box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset,
  440.               0 0 0 1px hsla(0,0%,100%,.1) inset,
  441.               0 1px 0 hsla(210,54%,20%,.03),
  442.               0 0 4px hsla(206,100%,20%,.2);
  443. }
  444.  
  445. #newtab-search-text + #newtab-search-submit:hover:active {
  446.   box-shadow: 0 1px 1px hsla(211,79%,6%,.1) inset,
  447.               0 0 1px hsla(211,79%,6%,.2) inset;
  448.   transition-duration: 0ms;
  449. }
  450.  
  451. #newtab-search-text:focus + #newtab-search-submit:dir(rtl),
  452. #newtab-search-text[keepfocus] + #newtab-search-submit:dir(rtl),
  453. #newtab-search-text[autofocus] + #newtab-search-submit:dir(rtl),
  454. #newtab-search-text + #newtab-search-submit:dir(rtl):hover {
  455.   background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go-rtl-inverted"), linear-gradient(#4cb1ff, #1793e5);
  456. }
  457.  
  458. /* CUSTOMIZE */
  459. #newtab-customize-overlay {
  460.   opacity: 0;
  461.   display: none;
  462.   width: 100%;
  463.   height: 100%;
  464.   background: #F9F9F9;
  465.   z-index: 100;
  466.   position: fixed;
  467.   transition: opacity .07s linear;
  468. }
  469.  
  470. .newtab-customize-panel-container {
  471.   position: absolute;
  472.   margin-right: 40px;
  473.   right: 0;
  474. }
  475.  
  476. .newtab-customize-panel-container:dir(rtl) {
  477.   right: auto;
  478.   left: 0;
  479. }
  480.  
  481. #newtab-customize-panel {
  482.   z-index: 999;
  483.   margin-top: 55px;
  484.   min-width: 270px;
  485.   position: absolute;
  486.   top: 100%;
  487.   right: -25px;
  488.   filter: drop-shadow(0 0 1px rgba(0,0,0,0.4)) drop-shadow(0 3px 4px rgba(0,0,0,0.4));
  489.   transition: all 200ms ease-in-out;
  490.   transform-origin: top right;
  491.   transform: translate(-30px, -20px) scale(0) translate(30px, 20px);
  492. }
  493.  
  494. #newtab-customize-panel:dir(rtl) {
  495.   transform-origin: 40px top 20px;
  496. }
  497.  
  498. #newtab-customize-panel:dir(rtl),
  499. #newtab-customize-panel-anchor:dir(rtl) {
  500.   left: 15px;
  501.   right: auto;
  502. }
  503.  
  504. #newtab-customize-panel[open="true"] {
  505.   transform: translate(-30px, -20px) scale(1) translate(30px, 20px);
  506. }
  507.  
  508. #newtab-customize-panel-anchor {
  509.   width: 18px;
  510.   height: 18px;
  511.   background-color: white;
  512.   transform: rotate(45deg);
  513.   position: absolute;
  514.   top: -6px;
  515.   right: 15px;
  516. }
  517.  
  518. #newtab-customize-title {
  519.   color: #7A7A7A;
  520.   font-size: 14px;
  521.   background-color: #FFFFFF;
  522.   line-height: 25px;
  523.   padding: 15px;
  524.   font-weight: 600;
  525.   cursor: default;
  526.   border-radius: 5px 5px 0px 0px;
  527.   max-width: 300px;
  528.   overflow: hidden;
  529.   display: table-cell;
  530.   border-top: none;
  531. }
  532.  
  533. #newtab-customize-panel-inner-wrapper {
  534.   background-color: #FFFFFF;
  535.   border-radius: 6px;
  536.   overflow: hidden;
  537. }
  538.  
  539. #newtab-customize-title > label {
  540.   cursor: default;
  541. }
  542.  
  543. #newtab-customize-panel > .panel-arrowcontainer > .panel-arrowcontent {
  544.   padding: 0;
  545. }
  546.  
  547. .newtab-customize-panel-item {
  548.   line-height: 25px;
  549.   padding: 15px;
  550.   padding-inline-start: 40px;
  551.   font-size: 14px;
  552.   cursor: pointer;
  553.   max-width: 300px;
  554. }
  555.  
  556. .newtab-customize-panel-item:not(:first-child) {
  557.   border-top: 1px solid threedshadow;
  558. }
  559.  
  560. .newtab-customize-panel-subitem > label,
  561. .newtab-customize-panel-item > label,
  562. .newtab-customize-complex-option {
  563.   padding: 0;
  564.   margin: 0;
  565.   cursor: pointer;
  566. }
  567.  
  568. .newtab-customize-panel-item,
  569. .newtab-customize-complex-option {
  570.   display: block;
  571.   text-align: start;
  572.   background-color: #F9F9F9;
  573. }
  574.  
  575. .newtab-customize-panel-item[selected]:dir(rtl){
  576.   background-position: right 15px center;
  577. }
  578.  
  579. .newtab-customize-complex-option:hover > .selectable:not([selected]):dir(rtl),
  580. .selectable:not([selected]):hover:dir(rtl) {
  581.   background-position: right 15px center;
  582. }
  583.  
  584. .newtab-customize-panel-item:not([selected]),
  585. .newtab-customize-panel-subitem:not([selected]){
  586.   color: #7A7A7A;
  587. }
  588.  
  589. .newtab-customize-panel-item:not([selected]):hover {
  590.   color: #FFFFFF;
  591.   background-color: #4A90E2
  592. }
  593.  
  594. .newtab-customize-complex-option:hover > .selectable:not([selected]),
  595. .selectable:not([selected]):hover {
  596.   background: url("chrome://global/skin/menu/shared-menu-check-hover.svg") no-repeat #FFFFFF;
  597.   background-size: 16px 16px;
  598.   background-position: 15px 15px;
  599.   color: #171F26;
  600. }
  601.  
  602. .newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem {
  603.   background-color: #FFFFFF;
  604. }
  605.  
  606. .newtab-customize-panel-item[selected] {
  607.   background: url("chrome://global/skin/menu/shared-menu-check-active.svg") no-repeat transparent;
  608.   background-size: 16px 16px;
  609.   background-position: 15px 15px;
  610.   color: black;
  611.   font-weight: 600;
  612. }
  613.  
  614. .newtab-customize-panel-subitem > .checkbox {
  615.   width: 18px;
  616.   height: 18px;
  617.   background-color: #FFFFFF;
  618.   border: solid 1px threedshadow;
  619. }
  620.  
  621. .newtab-customize-panel-subitem[selected] > .checkbox {
  622.   background: url("chrome://global/skin/menu/shared-menu-check-black.svg") no-repeat #FFFFFF;
  623.   background-size: 9px 9px;
  624.   background-position: center;
  625.   color: #333333;
  626. }
  627.  
  628. .newtab-customize-panel-subitem {
  629.   font-size: 12px;
  630.   padding: 0px 15px 15px 15px;
  631.   padding-inline-start: 40px;
  632.   display: block;
  633.   max-width: 300px;
  634. }
  635.  
  636. .newtab-customize-panel-subitem > label {
  637.   padding: 0px 10px;
  638.   line-height: 20px;
  639.   vertical-align: middle;
  640.   max-width: 225px;
  641. }
  642.  
  643. .newtab-customize-panel-superitem {
  644.   line-height: 20px;
  645.   border-bottom: medium none !important;
  646.   padding: 15px 15px 10px 15px;
  647.   padding-inline-start: 40px;
  648.   border-top: 1px solid threedshadow;
  649. }
  650.  
  651. .contentSearchSuggestionTable {
  652.   font: message-box;
  653.   font-size: 16px;
  654. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement