Source code

Revision control

Other Tools

.icon {
background-position: center center;
background-repeat: no-repeat;
background-size: $icon-size;
-moz-context-properties: fill;
display: inline-block;
color: var(--newtab-icon-primary-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-icon-secondary-color);
border: 0;
&:focus,
&:hover {
fill: var(--newtab-text-primary-color);
}
}
// icon images
&.icon-bookmark-added {
background-image: url('chrome://browser/skin/bookmark.svg');
}
&.icon-bookmark-hollow {
background-image: url('chrome://browser/skin/bookmark-hollow.svg');
}
&.icon-clear-input {
}
&.icon-delete {
}
&.icon-search {
}
&.icon-modal-delete {
flex-shrink: 0;
background-size: $larger-icon-size;
height: $larger-icon-size;
width: $larger-icon-size;
}
&.icon-mail {
}
&.icon-dismiss {
}
&.icon-info {
}
&.icon-new-window {
@include flip-icon;
}
&.icon-new-window-private {
background-image: url('chrome://browser/skin/privateBrowsing.svg');
}
&.icon-settings {
background-image: url('chrome://global/skin/icons/settings.svg');
}
&.icon-pin {
@include flip-icon;
}
&.icon-unpin {
@include flip-icon;
}
&.icon-edit {
}
&.icon-pocket {
}
&.icon-pocket-save {
}
&.icon-pocket-delete {
}
&.icon-pocket-archive {
}
&.icon-history-item {
background-image: url('chrome://browser/skin/history.svg');
}
&.icon-trending {
transform: translateY(2px); // trending bolt is visually top heavy
}
&.icon-now {
background-image: url('chrome://browser/skin/history.svg');
}
&.icon-topsites {
}
&.icon-pin-small {
@include flip-icon;
background-size: $smaller-icon-size;
height: $smaller-icon-size;
width: $smaller-icon-size;
}
&.icon-check {
background-image: url('chrome://global/skin/icons/check.svg');
}
&.icon-download {
}
&.icon-copy {
background-image: url('chrome://browser/skin/edit-copy.svg');
}
&.icon-open-file {
}
&.icon-webextension {
}
&.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;
transform: rotate(-90deg);
width: $smaller-icon-size;
&:dir(rtl) {
transform: rotate(90deg);
}
}
&.icon-arrowhead-up {
transform: rotate(180deg);
}
&.icon-add {
}
&.icon-minimize {
}
&.icon-maximize {
}
&.icon-arrow {
}
}