newTab.css.inc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. :root {
  5. -moz-appearance: none;
  6. font-size: 75%;
  7. background-color: transparent;
  8. }
  9. body {
  10. background: #eee;
  11. }
  12. /* SCROLLBOX */
  13. #newtab-scrollbox:not([page-disabled]) {
  14. background-color: #eee;
  15. background-attachment: fixed;
  16. }
  17. /* UNDO */
  18. #newtab-undo-container {
  19. padding: 4px 3px;
  20. border: 1px solid;
  21. border-color: rgba(8,22,37,.12) rgba(8,22,37,.14) rgba(8,22,37,.16);
  22. background-color: rgba(255,255,255,.4);
  23. color: #525e69;
  24. }
  25. #newtab-undo-label {
  26. margin-top: 0;
  27. margin-bottom: 0;
  28. }
  29. .newtab-undo-button:hover {
  30. text-decoration: underline;
  31. }
  32. .newtab-undo-button:-moz-focusring {
  33. outline: 1px dotted;
  34. }
  35. #newtab-undo-close-button {
  36. -moz-appearance: none;
  37. padding: 0;
  38. border: none;
  39. width: 16px;
  40. height: 16px;
  41. float: right;
  42. right: 0;
  43. }
  44. /* TOGGLE */
  45. #newtab-toggle {
  46. width: 16px;
  47. height: 16px;
  48. padding: 0;
  49. border: none;
  50. background: -216px 0 transparent url(chrome://browser/skin/newtab/controls.png);
  51. }
  52. #newtab-toggle[page-disabled] {
  53. background-position: -232px 0;
  54. }
  55. /* ROWS */
  56. .newtab-row {
  57. margin-bottom: 20px;
  58. }
  59. .newtab-row:last-child {
  60. margin-bottom: 0;
  61. }
  62. /* CELLS */
  63. .newtab-cell {
  64. -moz-margin-end: 20px;
  65. background-color: rgba(255,255,255,.3);
  66. border: 1px solid;
  67. border-color: rgba(8,22,37,.12) rgba(8,22,37,.14) rgba(8,22,37,.16);
  68. border-radius: 3.5px;
  69. transition: border-color 100ms ease-out;
  70. }
  71. .newtab-cell:empty {
  72. border: 1px dashed;
  73. border-color: rgba(8,22,37,.15) rgba(8,22,37,.17) rgba(8,22,37,.19);
  74. }
  75. .newtab-cell:last-child {
  76. -moz-margin-end: 0;
  77. }
  78. .newtab-cell:hover:not(:empty):not([dragged]) {
  79. border-color: rgba(8,16,37,.25) rgba(8,16,37,.27) rgba(8,16,37,.3);
  80. }
  81. /* SITES */
  82. .newtab-site {
  83. text-decoration: none;
  84. transition-property: top, left, opacity, box-shadow, background-color;
  85. border-radius: 2.5px;
  86. overflow: hidden;
  87. }
  88. .newtab-site:hover,
  89. .newtab-site[dragged] {
  90. box-shadow: 0 3px 6px 0px rgba(75,80,89,.6);
  91. }
  92. .newtab-site[dragged] {
  93. transition-property: box-shadow, background-color;
  94. background-color: rgb(242,242,242);
  95. }
  96. /* THUMBNAILS */
  97. .newtab-thumbnail {
  98. background-origin: padding-box;
  99. background-clip: padding-box;
  100. background-repeat: no-repeat;
  101. background-size: cover;
  102. }
  103. /* TITLES */
  104. .newtab-title {
  105. padding: 0 8px 1px;
  106. background: linear-gradient(to bottom, rgba(245, 245, 245, .95), rgba(225, 225, 225, .95));
  107. color: #303030;
  108. line-height: 24px;
  109. }
  110. .newtab-site[pinned] .newtab-title {
  111. padding-inline-start: 16px;
  112. }
  113. .newtab-site[pinned] .newtab-title::before {
  114. background-image: url(chrome://browser/skin/newtab/pinned.png);
  115. content: "";
  116. left: 2px;
  117. top: 2px;
  118. position: absolute;
  119. width: 12px;
  120. height: 20px;
  121. }
  122. .newtab-site[pinned] .newtab-title:dir(rtl)::before {
  123. left: auto;
  124. right: 2px;
  125. }
  126. /* CONTROLS */
  127. .newtab-control {
  128. background-color: transparent;
  129. background-size: 24px;
  130. border: none;
  131. height: 24px;
  132. width: 24px;
  133. top: 4px;
  134. background: transparent url(chrome://browser/skin/newtab/controls.png);
  135. }
  136. .newtab-control-pin:dir(ltr),
  137. .newtab-control-block:dir(rtl) {
  138. left: 4px;
  139. }
  140. .newtab-control-block:dir(ltr),
  141. .newtab-control-pin:dir(rtl) {
  142. right: 4px;
  143. }
  144. .newtab-control-pin:hover {
  145. background-position: -24px 0;
  146. }
  147. .newtab-control-pin:active {
  148. background-position: -48px 0;
  149. }
  150. .newtab-site[pinned] .newtab-control-pin {
  151. background-position: -72px 0;
  152. }
  153. .newtab-site[pinned] .newtab-control-pin:hover {
  154. background-position: -96px 0;
  155. }
  156. .newtab-site[pinned] .newtab-control-pin:active {
  157. background-position: -120px 0;
  158. }
  159. .newtab-control-block {
  160. background-position: -144px 0;
  161. }
  162. .newtab-control-block:hover {
  163. background-position: -168px 0;
  164. }
  165. .newtab-control-block:active {
  166. background-position: -192px 0;
  167. }