Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Remove redundant "button" related styles from app_components.css.
Sayam Samal40b7f1c20ebd
diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex e318f2de8ab..7e9a6744ab7 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -119,138 +119,6 @@ input::placeholder {@extend .placeholder;}-/* -- base button styling -- */--.button {- padding: 7px 14px;- margin: 0;- min-width: 130px;-- font-weight: 400;- line-height: normal;- text-align: center;-- background-color: var(--color-background-zulip-button);- color: inherit;- outline: none;- border: 1px solid var(--color-border-zulip-button);- border-radius: 2px;-- box-shadow: none;-- cursor: pointer;-- /* -- button style variations -- */- &.no-style {- padding: 0;- background-color: transparent;- border: none;- min-width: 0;- width: auto;- outline: none;- box-shadow: none !important;- }-- &.rounded {- border-radius: 4px;- }-- &.green {- background-color: hsl(150deg 31% 53%);- }-- &.grey {- background-color: hsl(0deg 0% 67%);- }-- &.small {- /* 16 / 14 * 0.8 = 0.9143, from original 0.8rem */- font-size: 0.9143em;- min-width: inherit;- padding: 6px 10px;- }-- &:hover,- &:focus,- &:active {- border-color: var(--color-border-zulip-button-interactive);- }-- &:hover {- background-color: var(--color-background-zulip-button-hover);- /* Reset styles on a.button instances. */- text-decoration: none;- color: inherit;- }-- &:focus {- /* Maintain no outline for pointer focus. */- outline: 0;- }-- &:focus-visible {- /* Set Zulip outline style with keyboard/assistive focus. */- outline: 2px solid var(--color-outline-focus);- }-- &:active {- color: inherit;- background-color: var(--color-background-zulip-button-active);- }-- &.add-subscription-button {- &:focus-visible {- border: 1px solid;- border-color: var(- --color-border-add-subscription-button-focus- ) !important;- }- }-- &.button-warning {- color: hsl(35deg 70% 56%);- border-color: hsl(35deg 98% 84%);-- &:hover,- &:focus {- border-color: hsl(35deg 55% 70%);- }-- &:active {- color: hsl(35deg 82% 40%);- border-color: hsl(35deg 55% 70%);- }- }-- &.button-danger {- color: hsl(357deg 64% 72%);- border-color: hsl(4deg 56% 82%);-- &:hover,- &:focus {- border-color: hsl(2deg 46% 68%);- }-- &:active {- color: hsl(357deg 55% 63%);- border-color: hsl(2deg 46% 68%);- }- }-- &:disabled {- cursor: not-allowed;- filter: saturate(0);- background-color: var(--color-background-zulip-button-disabled);- color: hsl(0deg 3% 52%);-- &:hover {- background-color: var(--color-background-zulip-button-disabled);- color: hsl(156deg 39% 54%);- border-color: hsl(156deg 39% 77%);- }- }-}-/* -- tab switcher -- */.tab-switcher {diff --git a/web/styles/lightbox.css b/web/styles/lightbox.cssindex 11c8d5dd431..806fb67bab7 100644--- a/web/styles/lightbox.css+++ b/web/styles/lightbox.css@@ -82,7 +82,7 @@flex-shrink: 0;gap: 10px;- .button {+ .lightbox-media-action {font-size: 0.9rem;min-width: inherit;padding: 4px 10px;diff --git a/web/templates/lightbox_overlay.hbs b/web/templates/lightbox_overlay.hbsindex b8dc16fdd27..4a6dbf79237 100644--- a/web/templates/lightbox_overlay.hbs+++ b/web/templates/lightbox_overlay.hbs@@ -5,9 +5,9 @@<div class="user"></div></div><div class="media-actions">- <a class="button lightbox-zoom-reset disabled">{{t "Reset zoom" }}</a>- <a class="button open" rel="noopener noreferrer" target="_blank">{{t "Open" }}</a>- <a class="button download" download>{{t "Download" }}</a>+ <a class="lightbox-media-action lightbox-zoom-reset disabled">{{t "Reset zoom" }}</a>+ <a class="lightbox-media-action open" rel="noopener noreferrer" target="_blank">{{t "Open" }}</a>+ <a class="lightbox-media-action download" download>{{t "Download" }}</a></div><div class="exit" aria-label="{{t 'Close' }}"><span aria-hidden="true" class="zulip-icon zulip-icon-close"></span>