Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
portico: Restyle "View without an account" as outlined secondary button.
Alya Abbottbbe489fa7b54
diff --git a/templates/zerver/login.html b/templates/zerver/login.htmlindex 05e4d4bf4d6..95b41f5ec78 100644--- a/templates/zerver/login.html+++ b/templates/zerver/login.html@@ -40,7 +40,8 @@ page can be easily identified in it's respective JavaScript file. --><form class="anonymous_access_form form-inline" action="/" method="post">{{ csrf_input }}<input type="hidden" name="next" value="{{ next }}" />- <button class="full-width">+ <button class="full-width anonymous-access-button">+ <i class="zulip-icon zulip-icon-preview" aria-hidden="true"></i>{{ _('View without an account') }}</button></form>diff --git a/web/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.cssindex f61446111f9..bcc86b94b27 100644--- a/web/styles/portico/portico_signin.css+++ b/web/styles/portico/portico_signin.css@@ -460,6 +460,33 @@ html {&.full-width {width: 100%;}++ &.anonymous-access-button {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 8px;+ background-color: hsl(0deg 0% 100%);+ color: var(--color-action-button);+ box-shadow: 0 0 0 1px var(--color-action-button) inset;++ &:hover {+ background-color: var(--color-action-button-subtle-hover);+ }++ &:active {+ background-color: var(--color-action-button-subtle-active);+ /* Preserve the inset border — the default active+ clip-path would crop the bottom edge. */+ clip-path: inset(0 round 4px);+ }++ .zulip-icon {+ font-size: 1.3em;+ /* Nudge icon down to visually align with text x-height. */+ transform: translateY(1px);+ }+ }}.alert-info {diff --git a/web/styles/portico/portico_variables.css b/web/styles/portico/portico_variables.cssindex af6521aa2f9..7ff079d27e8 100644--- a/web/styles/portico/portico_variables.css+++ b/web/styles/portico/portico_variables.css@@ -30,6 +30,8 @@--color-action-button: hsl(240deg 66% 60%);--color-action-button-hover: hsl(240deg 66% 55%);--color-action-button-active: hsl(240deg 66% 50%);+ --color-action-button-subtle-hover: hsl(240deg 66% 97%);+ --color-action-button-subtle-active: hsl(240deg 66% 94%);@media (prefers-color-scheme: dark) {--color-background-gradient-start: hsl(209deg 63% 40%);