_icons.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. .icon {
  2. background-position: center center;
  3. background-repeat: no-repeat;
  4. background-size: $icon-size;
  5. -moz-context-properties: fill;
  6. display: inline-block;
  7. fill: var(--newtab-icon-primary-color);
  8. height: $icon-size;
  9. vertical-align: middle;
  10. width: $icon-size;
  11. // helper classes
  12. &.icon-spacer {
  13. margin-inline-end: 8px;
  14. }
  15. &.icon-small-spacer {
  16. margin-inline-end: 6px;
  17. }
  18. &.icon-button-style {
  19. fill: var(--newtab-icon-secondary-color);
  20. border: 0;
  21. &:focus,
  22. &:hover {
  23. fill: var(--newtab-text-primary-color);
  24. }
  25. }
  26. // icon images
  27. &.icon-bookmark-added {
  28. background-image: url('chrome://browser/skin/bookmark.svg');
  29. }
  30. &.icon-bookmark-hollow {
  31. background-image: url('chrome://browser/skin/bookmark-hollow.svg');
  32. }
  33. &.icon-clear-input {
  34. background-image: url('#{$image-path}glyph-cancel-16.svg');
  35. }
  36. &.icon-delete {
  37. background-image: url('#{$image-path}glyph-delete-16.svg');
  38. }
  39. &.icon-search {
  40. background-image: url('chrome://browser/skin/search-glass.svg');
  41. }
  42. &.icon-modal-delete {
  43. flex-shrink: 0;
  44. background-image: url('#{$image-path}glyph-modal-delete-32.svg');
  45. background-size: $larger-icon-size;
  46. height: $larger-icon-size;
  47. width: $larger-icon-size;
  48. }
  49. &.icon-dismiss {
  50. background-image: url('#{$image-path}glyph-dismiss-16.svg');
  51. }
  52. &.icon-info {
  53. background-image: url('#{$image-path}glyph-info-16.svg');
  54. }
  55. &.icon-new-window {
  56. @include flip-icon;
  57. background-image: url('#{$image-path}glyph-newWindow-16.svg');
  58. }
  59. &.icon-new-window-private {
  60. background-image: url('chrome://browser/skin/privateBrowsing.svg');
  61. }
  62. &.icon-settings {
  63. background-image: url('chrome://browser/skin/settings.svg');
  64. }
  65. &.icon-pin {
  66. @include flip-icon;
  67. background-image: url('#{$image-path}glyph-pin-16.svg');
  68. }
  69. &.icon-unpin {
  70. @include flip-icon;
  71. background-image: url('#{$image-path}glyph-unpin-16.svg');
  72. }
  73. &.icon-edit {
  74. background-image: url('#{$image-path}glyph-edit-16.svg');
  75. }
  76. &.icon-pocket {
  77. background-image: url('#{$image-path}glyph-pocket-16.svg');
  78. }
  79. &.icon-pocket-save {
  80. background-image: url('#{$image-path}glyph-pocket-save-16.svg');
  81. }
  82. &.icon-pocket-delete {
  83. background-image: url('#{$image-path}glyph-pocket-delete-16.svg');
  84. }
  85. &.icon-pocket-archive {
  86. background-image: url('#{$image-path}glyph-pocket-archive-16.svg');
  87. }
  88. &.icon-history-item {
  89. background-image: url('chrome://browser/skin/history.svg');
  90. }
  91. &.icon-trending {
  92. background-image: url('#{$image-path}glyph-trending-16.svg');
  93. transform: translateY(2px); // trending bolt is visually top heavy
  94. }
  95. &.icon-now {
  96. background-image: url('chrome://browser/skin/history.svg');
  97. }
  98. &.icon-topsites {
  99. background-image: url('#{$image-path}glyph-topsites-16.svg');
  100. }
  101. &.icon-pin-small {
  102. @include flip-icon;
  103. background-image: url('#{$image-path}glyph-pin-12.svg');
  104. background-size: $smaller-icon-size;
  105. height: $smaller-icon-size;
  106. width: $smaller-icon-size;
  107. }
  108. &.icon-check {
  109. background-image: url('chrome://global/skin/icons/check.svg');
  110. }
  111. &.icon-download {
  112. background-image: url('chrome://browser/skin/downloads/download-icons.svg#arrow-with-bar');
  113. }
  114. &.icon-copy {
  115. background-image: url('chrome://browser/skin/edit-copy.svg');
  116. }
  117. &.icon-open-file {
  118. background-image: url('#{$image-path}glyph-open-file-16.svg');
  119. }
  120. &.icon-webextension {
  121. background-image: url('#{$image-path}glyph-webextension-16.svg');
  122. }
  123. &.icon-highlights {
  124. background-image: url('#{$image-path}glyph-highlights-16.svg');
  125. }
  126. &.icon-arrowhead-down {
  127. background-image: url('#{$image-path}glyph-arrowhead-down-16.svg');
  128. }
  129. &.icon-arrowhead-down-small {
  130. background-image: url('#{$image-path}glyph-arrowhead-down-12.svg');
  131. background-size: $smaller-icon-size;
  132. height: $smaller-icon-size;
  133. width: $smaller-icon-size;
  134. }
  135. &.icon-arrowhead-forward-small {
  136. background-image: url('#{$image-path}glyph-arrowhead-down-12.svg');
  137. background-size: $smaller-icon-size;
  138. height: $smaller-icon-size;
  139. transform: rotate(-90deg);
  140. width: $smaller-icon-size;
  141. &:dir(rtl) {
  142. transform: rotate(90deg);
  143. }
  144. }
  145. &.icon-arrowhead-up {
  146. background-image: url('#{$image-path}glyph-arrowhead-down-16.svg');
  147. transform: rotate(180deg);
  148. }
  149. &.icon-add {
  150. background-image: url('#{$image-path}glyph-add-16.svg');
  151. }
  152. &.icon-minimize {
  153. background-image: url('#{$image-path}glyph-minimize-16.svg');
  154. }
  155. &.icon-maximize {
  156. background-image: url('#{$image-path}glyph-maximize-16.svg');
  157. }
  158. }