tweak the favourite pins
This commit is contained in:
parent
2cecf3405b
commit
fe66000f78
42
index.css
42
index.css
|
@ -5,19 +5,19 @@ html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
background: #f5f0e6;
|
background: #f5f0e6;
|
||||||
}
|
|
||||||
body {
|
|
||||||
color: #2a2a2a;
|
|
||||||
background: #f5f5f5;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont,
|
font-family: -apple-system, BlinkMacSystemFont,
|
||||||
"Segoe UI", "Roboto", "Oxygen",
|
"Segoe UI", "Roboto", "Oxygen",
|
||||||
"Ubuntu", "Cantarell", "Fira Sans",
|
"Ubuntu", "Cantarell", "Fira Sans",
|
||||||
"Droid Sans", "Helvetica Neue", sans-serif;
|
"Droid Sans", "Helvetica Neue", sans-serif;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
color: #2a2a2a;
|
||||||
|
background: #f5f5f5;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
font-weight: 300;
|
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -105,28 +105,39 @@ section.select-list .active .name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
section.select-list a.favoritelink {
|
section.select-list a.favoritelink {
|
||||||
margin-right: 2px;
|
margin-right: .25em;
|
||||||
color: #ccc;
|
color: #f5f5f5;
|
||||||
|
position: absolute;
|
||||||
|
top: .5rem;
|
||||||
|
right: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
section.select-list a.pinned {
|
section.select-list a.pinned {
|
||||||
color: black;
|
color: #777;
|
||||||
|
}
|
||||||
|
section.select-list a.favoritelink:hover {
|
||||||
|
color: currentColor;
|
||||||
}
|
}
|
||||||
section.select-list a.website {
|
section.select-list a.website {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5px;
|
bottom: .5rem;
|
||||||
right: 10px;
|
right: 1rem;
|
||||||
opacity: 0;
|
|
||||||
transition: all .2s ease-in-out;
|
transition: all .2s ease-in-out;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
padding: 2px 1ex;
|
padding: 0 .5rem;
|
||||||
|
color: #f5f5f5;
|
||||||
|
}
|
||||||
|
section.select-list a.website svg {
|
||||||
|
position: relative;
|
||||||
|
top: 2px;
|
||||||
}
|
}
|
||||||
section.select-list a.website span {
|
section.select-list a.website span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-right: 1ex;
|
padding-right: 1ex;
|
||||||
}
|
}
|
||||||
section.select-list .entry:hover a.website {
|
section.select-list .entry:hover a.website,
|
||||||
color: #e4e4e4;
|
section.select-list .entry:hover a.favoritelink {
|
||||||
opacity: 1;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
section.select-list .entry .active + a.website,
|
section.select-list .entry .active + a.website,
|
||||||
section.select-list .entry .active + a.website,
|
section.select-list .entry .active + a.website,
|
||||||
|
@ -134,7 +145,6 @@ section.select-list .entry a.website:hover,
|
||||||
section.select-list .entry a.website:active {
|
section.select-list .entry a.website:active {
|
||||||
background: #e4e4e4;
|
background: #e4e4e4;
|
||||||
color: #777;
|
color: #777;
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
section.select-list a.website:active {
|
section.select-list a.website:active {
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
|
|
14
index.js
14
index.js
|
@ -113,13 +113,13 @@ function renderSelectList() {
|
||||||
}
|
}
|
||||||
$("#select-font").append(
|
$("#select-font").append(
|
||||||
"<div class='entry'>" +
|
"<div class='entry'>" +
|
||||||
"<a class=\"favoritelink" + (favoritesMap[v.alias] ? ' pinned' : '') + "\" onclick=\"toggleFavorite('" + v.alias + "')\">" +
|
"<a href='#" + v.alias + "' data-value=\"" + v.alias + "\">" +
|
||||||
pinIcon +
|
"<span class='name'>" + v.name + "</span>" +
|
||||||
"</a>" +
|
"<span class='details'>" + v.author + " (" + v.year + ") — " + v.style + render_info + liga_info + "</span>" +
|
||||||
"<a href='#" + v.alias + "' data-value=\"" + v.alias + "\">" +
|
"</a>" +
|
||||||
"<span class='name'>" + v.name + "</span>" +
|
"<a class=\"favoritelink" + (favoritesMap[v.alias] ? ' pinned' : '') + "\" onclick=\"toggleFavorite('" + v.alias + "')\">" +
|
||||||
"<span class='details'>" + v.author + " (" + v.year + ") — " + v.style + render_info + liga_info + "</span>" +
|
pinIcon +
|
||||||
"</a>" +
|
"</a>" +
|
||||||
"<a class='website' href='" + v.website + "' rel=external> <span>Info & Download</span>" + icon + "</a></div>"
|
"<a class='website' href='" + v.website + "' rel=external> <span>Info & Download</span>" + icon + "</a></div>"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue