diff --git a/scss/ui/_base.scss b/scss/ui/_base.scss index 52643bb8..90e66ce3 100644 --- a/scss/ui/_base.scss +++ b/scss/ui/_base.scss @@ -98,6 +98,11 @@ hr { border: none; border-top: 1px solid var(--bg-3) } } } + &[disabled] { + color: var(--fg-4); + border-color: var(--bg-3); + } + // Override light mode colors. [data-color-scheme="light"] & { &.primary, &.stylus { diff --git a/typescript/page/view-style.ts b/typescript/page/view-style.ts index 59ff09f8..52c8f13d 100644 --- a/typescript/page/view-style.ts +++ b/typescript/page/view-style.ts @@ -35,10 +35,6 @@ function checkIfStyleInstalled() { if ('usw-style-info-response' === type && 'installed' === data.requestType) { window.removeEventListener('message', onMessage); if (data.installed) { - const writeReviewButton: HTMLAnchorElement = document.querySelector('#write-review'); - if (writeReviewButton) { - writeReviewButton.style.display = ''; - } const installButton: HTMLAnchorElement = document.querySelector('#install'); if (installButton) { // Need to user innerHTML to preserve the icon. diff --git a/views/style/view.html b/views/style/view.html index 5ae208d4..6430f1b9 100644 --- a/views/style/view.html +++ b/views/style/view.html @@ -83,14 +83,17 @@

{{ .Style.Name -}} href="https://github.com/openstyles/stylus/#readme" id="stylus" class="btn icon stylus ml:s" >{{ template "icons/brush" 16 }} Get Stylus - {{ if .User.ID }} - - {{ end }} + Write a review