Removing icons in favor of icon font

This commit is contained in:
James Barnsley
2018-05-13 16:03:51 +12:00
parent d5108822a6
commit 9d398e53c9
87 changed files with 985 additions and 9515 deletions

View File

@ -1,11 +1,230 @@
.icon {
margin-top: -0.2em;
vertical-align: middle;
@font-face {
font-family: 'iris';
src:
url('../assets/fonts/iris.ttf?wncwx9') format('truetype'),
url('../assets/fonts/iris.woff?wncwx9') format('woff'),
url('../assets/fonts/iris.svg?wncwx9#iris') format('svg');
font-weight: normal;
font-style: normal;
}
$icon-back: \e900;
$icon-broadcast: \e901;
$icon-cd: \e902;
$icon-chevron-left: \e903;
$icon-chevron-right: \e904;
$icon-close: \e905;
$icon-cog: \e906;
$icon-compass: \e907;
$icon-connection: \e908;
$icon-consume: \e909;
$icon-filter: \e90a;
$icon-folder: \e90b;
$icon-grid: \e90c;
$icon-leaf: \e90d;
$icon-list: \e90e;
$icon-local: \e90f;
$icon-mic: \e910;
$icon-music: \e911;
$icon-pause: \e912;
$icon-play: \e913;
$icon-play-alt: \e914;
$icon-playlist: \e915;
$icon-repeat: \e916;
$icon-search: \e917;
$icon-sections: \e918;
$icon-server: \e919;
$icon-shuffle: \e91a;
$icon-skip: \e91b;
$icon-soundcloud: \e91c;
$icon-spotify: \e91d;
$icon-star: \e91e;
$icon-stop: \e91f;
$icon-websocket: \e920;
[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'iris' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@function unicode($str) {
@return unquote("\"") + $str + unquote("\"");
}
.icon-back {
&:before {
content: unicode($icon-back);
}
}
.icon-broadcast {
&:before {
content: unicode($icon-broadcast);
}
}
.icon-cd {
&:before {
content: unicode($icon-cd);
}
}
.icon-chevron-left {
&:before {
content: unicode($icon-chevron-left);
}
}
.icon-chevron-right {
&:before {
content: unicode($icon-chevron-right);
}
}
.icon-close {
&:before {
content: unicode($icon-close);
}
}
.icon-cog {
&:before {
content: unicode($icon-cog);
}
}
.icon-compass {
&:before {
content: unicode($icon-compass);
}
}
.icon-connection {
&:before {
content: unicode($icon-connection);
}
}
.icon-consume {
&:before {
content: unicode($icon-consume);
}
}
.icon-filter {
&:before {
content: unicode($icon-filter);
}
}
.icon-folder {
&:before {
content: unicode($icon-folder);
}
}
.icon-grid {
&:before {
content: unicode($icon-grid);
}
}
.icon-leaf {
&:before {
content: unicode($icon-leaf);
}
}
.icon-list {
&:before {
content: unicode($icon-list);
}
}
.icon-local {
&:before {
content: unicode($icon-local);
}
}
.icon-mic {
&:before {
content: unicode($icon-mic);
}
}
.icon-music {
&:before {
content: unicode($icon-music);
}
}
.icon-pause {
&:before {
content: unicode($icon-pause);
}
}
.icon-play {
&:before {
content: unicode($icon-play);
}
}
.icon-play-alt {
&:before {
content: unicode($icon-play-alt);
}
}
.icon-playlist {
&:before {
content: unicode($icon-playlist);
}
}
.icon-repeat {
&:before {
content: unicode($icon-repeat);
}
}
.icon-search {
&:before {
content: unicode($icon-search);
}
}
.icon-sections {
&:before {
content: unicode($icon-sections);
}
}
.icon-server {
&:before {
content: unicode($icon-server);
}
}
.icon-shuffle {
&:before {
content: unicode($icon-shuffle);
}
}
.icon-skip {
&:before {
content: unicode($icon-skip);
}
}
.icon-soundcloud {
&:before {
content: unicode($icon-soundcloud);
}
}
.icon-spotify {
&:before {
content: unicode($icon-spotify);
}
}
.icon-star {
&:before {
content: unicode($icon-star);
}
}
.icon-stop {
&:before {
content: unicode($icon-stop);
}
}
.icon-websocket {
&:before {
content: unicode($icon-websocket);
}
}
svg {
height: 1.4em;
fill: $white;
vertical-align: middle;
}
}

View File

@ -287,6 +287,13 @@
}
}
&.library-local-view,
&.library-local-directory-list {
.list-item {
cursor: pointer;
}
}
@include responsive($bp_medium){
.list-item {

View File

@ -98,12 +98,10 @@
}
&.play {
margin-bottom: -4px;
margin-bottom: -6px;
.icon {
svg {
height: 24px;
}
font-size: 2em;
}
}
@ -125,7 +123,7 @@
bottom: 8px;
&.playback {
bottom: 6px;
bottom: 8px;
left: 10px;
width: 125px;
text-align: center;

View File

@ -51,19 +51,13 @@ aside{
color: $white;
text-decoration: none;
display: block;
padding: 9px 10px 5px;
padding: 10px 10px 8px;
margin: 0 16px;
border-radius: 3px;
line-height: 18px;
.icon {
padding-right: 6px;
vertical-align: top;
margin-top: 0;
svg {
height: 14px;
}
font-size: 0.8em;
}
.status {