Source code
Revision control
Copy as Markdown
Other Tools
.icon {
background-position: center center;
background-repeat: no-repeat;
background-size: $icon-size;
-moz-context-properties: fill;
display: inline-block;
color: var(--icon-color);
fill: currentColor;
height: $icon-size;
vertical-align: middle;
width: $icon-size;
// helper classes
&.icon-spacer {
margin-inline-end: 8px;
}
&.icon-small-spacer {
margin-inline-end: 6px;
}
&.icon-button-style {
fill: var(--newtab-text-secondary-color);
border: 0;
&:focus,
&:hover {
fill: var(--newtab-text-primary-color);
}
}
// icon images
&.icon-bookmark-added {
}
&.icon-bookmark-hollow {
}
&.icon-clear-input {
}
&.icon-delete {
}
&.icon-search {
}
&.icon-modal-delete {
flex-shrink: 0;
background-image: url('chrome://activity-stream/content/data/content/assets/glyph-modal-delete-20.svg');
background-size: $larger-icon-size;
height: $larger-icon-size;
width: $larger-icon-size;
}
&.icon-mail {
}
&.icon-dismiss {
}
&.icon-info {
}
&.icon-help {
}
&.icon-new-window {
@include flip-icon;
background-image: url('chrome://activity-stream/content/data/content/assets/glyph-newWindow-16.svg');
}
&.icon-new-window-private {
}
&.icon-settings {
}
&.icon-pin {
@include flip-icon;
}
&.icon-unpin {
@include flip-icon;
}
&.icon-edit {
}
&.icon-pocket {
}
&.icon-pocket-save {
fill: $white;
}
&.icon-pocket-delete {
background-image: url('chrome://activity-stream/content/data/content/assets/glyph-pocket-delete-16.svg');
}
&.icon-pocket-archive {
background-image: url('chrome://activity-stream/content/data/content/assets/glyph-pocket-archive-16.svg');
}
&.icon-history-item {
}
&.icon-trending {
transform: translateY(2px); // trending bolt is visually top heavy
}
&.icon-now {
}
&.icon-topsites {
}
&.icon-pin-small {
@include flip-icon;
background-size: $smaller-icon-size;
height: $smaller-icon-size;
width: $smaller-icon-size;
}
&.icon-check {
}
&.icon-download {
}
&.icon-copy {
}
&.icon-open-file {
background-image: url('chrome://activity-stream/content/data/content/assets/glyph-open-file-16.svg');
}
&.icon-webextension {
background-image: url('chrome://activity-stream/content/data/content/assets/glyph-webextension-16.svg');
}
&.icon-highlights {
}
&.icon-arrowhead-down {
}
&.icon-arrowhead-down-small {
background-size: $smaller-icon-size;
height: $smaller-icon-size;
width: $smaller-icon-size;
}
&.icon-arrowhead-forward-small {
background-size: $smaller-icon-size;
height: $smaller-icon-size;
width: $smaller-icon-size;
&:dir(rtl) {
}
}
&.icon-arrowhead-up {
}
&.icon-add {
}
&.icon-minimize {
background-image: url('chrome://activity-stream/content/data/content/assets/glyph-minimize-16.svg');
}
&.icon-maximize {
background-image: url('chrome://activity-stream/content/data/content/assets/glyph-maximize-16.svg');
}
&.icon-arrow {
}
}