feat: `View in LibreScore` btn light color

This commit is contained in:
Xmader 2021-05-19 02:02:52 -04:00
parent 88fdfff054
commit 5d1639dddf
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
2 changed files with 7 additions and 1 deletions

View File

@ -52,12 +52,18 @@ button {
/* fix `View in LibreScore` button text overflow */ /* fix `View in LibreScore` button text overflow */
button:last-of-type { button:last-of-type {
width: unset !important; width: unset !important;
color: #2e68c0;
background: #e1effe;
} }
button:hover { button:hover {
background: #1a4f9f; background: #1a4f9f;
} }
button:last-of-type:hover {
background: #c3ddfd;
}
svg { svg {
display: inline-block; display: inline-block;
margin-right: 5px; margin-right: 5px;

View File

@ -34,7 +34,7 @@ const buildDownloadBtn = (icon: ICON) => {
svg.setAttribute('viewBox', '0 0 24 24') svg.setAttribute('viewBox', '0 0 24 24')
const svgPath = document.createElementNS('http://www.w3.org/2000/svg', 'path') const svgPath = document.createElementNS('http://www.w3.org/2000/svg', 'path')
svgPath.setAttribute('d', icon) svgPath.setAttribute('d', icon)
svgPath.setAttribute('fill', '#fff') svgPath.setAttribute('fill', icon === ICON.DOWNLOAD ? '#fff' : '#2e68c0')
svg.append(svgPath) svg.append(svgPath)
const textNode = document.createElement('span') const textNode = document.createElement('span')