Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
components: Decouple .button from .new-style tangle.
Karl Stolleyaf066842b120
diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex 489bf16cdce..33939de8323 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -109,52 +109,52 @@ input::placeholder {@extend .placeholder;}-.new-style {- /* -- base button styling -- */- .button {- padding: 7px 14px;- margin: 0;- min-width: 130px;-- font-weight: 400;- line-height: normal;- text-align: center;+/* -- base button styling -- */- background-color: hsl(0deg 0% 100%);- color: inherit;- outline: none;- border: 1px solid hsl(0deg 0% 80%);- border-radius: 2px;+.button {+ padding: 7px 14px;+ margin: 0;+ min-width: 130px;- box-shadow: none;+ font-weight: 400;+ line-height: normal;+ text-align: center;- cursor: pointer;+ background-color: hsl(0deg 0% 100%);+ color: inherit;+ outline: none;+ border: 1px solid hsl(0deg 0% 80%);+ border-radius: 2px;- /* -- button style variations -- */- &.no-style {- padding: 0;- background-color: transparent;- border: none;- min-width: 0;- width: auto;- outline: none;- box-shadow: none !important;- }+ box-shadow: none;- &.rounded {- border-radius: 4px;- }+ cursor: pointer;- &.green {- background-color: hsl(150deg 31% 53%);- }+ /* -- button style variations -- */+ &.no-style {+ padding: 0;+ background-color: transparent;+ border: none;+ min-width: 0;+ width: auto;+ outline: none;+ box-shadow: none !important;+ }- &.grey {- background-color: hsl(0deg 0% 67%);- }+ &.rounded {+ border-radius: 4px;+ }++ &.green {+ background-color: hsl(150deg 31% 53%);+ }++ &.grey {+ background-color: hsl(0deg 0% 67%);+ }- &.small {- /* This value was 0.8rem in the past. When using rem,+ &.small {+ /* This value was 0.8rem in the past. When using rem,the root font size was 16px when the base font-size was14px. Now, we have two modes, one with 14px basefont-size and one with 16px base font-size. We multiply@@ -165,100 +165,99 @@ input::placeholder {TODO: Refactor this part to either use `em` or `rem`and not this temporary hack of using calc() andvariables. */- font-size: calc(0.9143 * var(--base-font-size-px));- min-width: inherit;- padding: 6px 10px;+ font-size: calc(0.9143 * var(--base-font-size-px));+ min-width: inherit;+ padding: 6px 10px;+ }++ &:hover,+ &:focus {+ border-color: hsl(0deg 0% 60%);+ }++ &:active {+ border-color: hsl(0deg 0% 60%);+ color: inherit;+ background-color: hsl(0deg 0% 95%);+ }++ &.add-subscription-button {+ &:focus-visible {+ border: 1px solid;+ border-color: var(+ --color-border-add-subscription-button-focus+ ) !important;}+ }++ &.sea-green {+ color: hsl(156deg 41% 40%);+ border-color: hsl(156deg 28% 70%);&:hover,&:focus {- border-color: hsl(0deg 0% 60%);+ border-color: hsl(156deg 30% 50%);}&:active {- border-color: hsl(0deg 0% 60%);- color: inherit;- background-color: hsl(0deg 0% 95%);+ border-color: hsl(156deg 30% 40%);+ color: hsl(156deg 44% 43%);+ background-color: hsl(154deg 33% 96%);}+ }- &.add-subscription-button {- &:focus-visible {- border: 1px solid;- border-color: var(- --color-border-add-subscription-button-focus- ) !important;- }- }-- &.sea-green {- color: hsl(156deg 41% 40%);- border-color: hsl(156deg 28% 70%);-- &:hover,- &:focus {- border-color: hsl(156deg 30% 50%);- }+ &.btn-warning {+ color: hsl(35deg 70% 56%);+ border-color: hsl(35deg 98% 84%);- &:active {- border-color: hsl(156deg 30% 40%);- color: hsl(156deg 44% 43%);- background-color: hsl(154deg 33% 96%);- }+ &:hover,+ &:focus {+ border-color: hsl(35deg 55% 70%);}- &.btn-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%);- background-color: hsl(33deg 48% 96%);- }+ &:active {+ color: hsl(35deg 82% 40%);+ border-color: hsl(35deg 55% 70%);+ background-color: hsl(33deg 48% 96%);}+ }- &.btn-danger {- color: hsl(357deg 64% 72%);- border-color: hsl(4deg 56% 82%);+ &.btn-danger {+ color: hsl(357deg 64% 72%);+ border-color: hsl(4deg 56% 82%);- &:hover,- &:focus {- border-color: hsl(2deg 46% 68%);- }+ &:hover,+ &:focus {+ border-color: hsl(2deg 46% 68%);+ }- &:active {- color: hsl(357deg 55% 63%);- border-color: hsl(2deg 46% 68%);- background-color: hsl(7deg 82% 98%);- }+ &:active {+ color: hsl(357deg 55% 63%);+ border-color: hsl(2deg 46% 68%);+ background-color: hsl(7deg 82% 98%);}+ }- &.btn-link {- color: hsl(208deg 56% 53%);- text-decoration: none;+ &.btn-link {+ color: hsl(208deg 56% 53%);+ text-decoration: none;- &:hover,- &:focus {- color: hsl(208deg 56% 38%);- }+ &:hover,+ &:focus {+ color: hsl(208deg 56% 38%);}+ }- &:disabled {- cursor: not-allowed;- filter: saturate(0);- background-color: hsl(0deg 0% 93%);- color: hsl(0deg 3% 52%);+ &:disabled {+ cursor: not-allowed;+ filter: saturate(0);+ background-color: hsl(0deg 0% 93%);+ color: hsl(0deg 3% 52%);- &:hover {- background-color: hsl(0deg 0% 93%);- color: hsl(156deg 39% 54%);- border-color: hsl(156deg 39% 77%);- }+ &:hover {+ background-color: hsl(0deg 0% 93%);+ color: hsl(156deg 39% 54%);+ border-color: hsl(156deg 39% 77%);}}}diff --git a/web/styles/settings.css b/web/styles/settings.cssindex d8792e1271a..49448535d7f 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -193,11 +193,6 @@ h3,}}-td .button {- margin: 2px 0;- box-shadow: none;-}-#language_selection_modal {& table {width: 90%;@@ -347,12 +342,9 @@ select.settings_select {word-break: normal;}-.button,.input-group {margin: 0 0 20px;-}-.input-group {/* Class to use when the following input-group is related and shouldappear just after this element. Normally the margin is 20px, butfor related settings, we set it to 10px. */