Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

css: Remove font-family CSS for type selectors.

Sahil Batra9bfcca68c1e0
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index b6a414165f8..6b0d9bc2218 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -992,6 +992,7 @@ div.overlay .flex.overlay-content > .overlay-container,
outline: none;
color: var(--color-text-default);
width: var(--width-dropdown-widget-button);
+ font-family: inherit;
&:disabled {
cursor: not-allowed;
@@ -1050,6 +1051,7 @@ div.overlay .flex.overlay-content > .overlay-container,
box-shadow linear 0.2s;
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%);
border-radius: 4px;
+ font-family: inherit;
&:focus {
border-color: hsl(206deg 80% 62% / 80%);
@@ -1243,6 +1245,7 @@ div.overlay .flex.overlay-content > .overlay-container,
border-top: 1px solid var(--color-border-zulip-button);
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
+ font-family: inherit;
&:hover {
color: var(--color-dropdown-item);
diff --git a/web/styles/compose.css b/web/styles/compose.css
index e73074bef73..61947263283 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -21,6 +21,7 @@
would likely be a better choice here.
1.2em is 16.8px at 14px em. */
font-size: 1.2em;
+ font-family: inherit;
/* 1.2em is 16.8px at 14px em; this
maintains the 20px em-equivalent compose
line height, but at a 16.8px em. */
@@ -75,6 +76,7 @@
/* Keep the new message button sized to match
adjacent buttons. */
font-size: inherit;
+ font-family: inherit;
min-width: inherit;
padding: 3px 10px;
outline: none;
@@ -144,6 +146,7 @@
adjacent buttons. */
align-self: stretch;
font-size: inherit;
+ font-family: inherit;
min-width: inherit;
line-height: var(--line-height-compose-buttons);
padding: 3px 10px;
@@ -756,6 +759,7 @@
font-weight: 600;
margin-top: 4.5px;
margin-bottom: 4.5px;
+ font-family: inherit;
/* Buttons take a minimum height for
when their text fits on a single
line. 2.1333em is 32px at 15px/1em. */
@@ -1134,6 +1138,7 @@ textarea.new_message_textarea {
padding: 0 6px;
/* Reset height to let `align-items: stretch` on the grid parent handle this. */
height: auto;
+ font-family: inherit;
&.empty-topic-display::placeholder {
color: var(--color-compose-recipient-box-text-color);
diff --git a/web/styles/image_upload_widget.css b/web/styles/image_upload_widget.css
index 0b2b47dd528..81d24729e3d 100644
--- a/web/styles/image_upload_widget.css
+++ b/web/styles/image_upload_widget.css
@@ -49,6 +49,7 @@
right: 10px;
z-index: 99;
line-height: 20px;
+ font-family: inherit;
&:focus:not(:focus-visible) {
outline: none;
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 1704dc14c68..57ba769db8f 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -327,6 +327,7 @@
text-overflow: ellipsis;
overflow-wrap: normal;
font-variant: all-small-caps;
+ font-family: inherit;
&:hover {
background-color: var(
@@ -834,6 +835,7 @@
border-radius: 4px;
border: 0;
line-height: 1;
+ font-family: inherit;
&:focus {
outline: none;
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 0a0e6a8c50d..f491d8bd132 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -200,6 +200,7 @@
/* We need the backup value for billing related html files where
this variable is not defined. */
font-size: var(--base-font-size-px, 14px);
+ font-family: inherit;
padding: 8px 16px;
background-color: hsl(0deg 0% 90%);
border-radius: 4px;
@@ -872,6 +873,7 @@
100% - 2 * var(--input-horizontal-padding) - 2 *
var(--input-border-width)
);
+ font-family: inherit;
&:focus {
border-color: hsl(206deg 80% 62% / 80%);
@@ -1172,6 +1174,7 @@
border-radius: 8px;
border: 1px solid hsl(0deg 0% 100%);
transition: transform 0.25s ease-out;
+ font-family: inherit;
&:hover {
transform: scale(1.05);
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css
index 6a84e738c73..f338c2e782d 100644
--- a/web/styles/recent_view.css
+++ b/web/styles/recent_view.css
@@ -189,6 +189,7 @@
flex: 0 0 auto;
display: flex;
align-items: center;
+ font-family: inherit;
&:hover {
background-color: var(--color-background-zulip-button-hover);
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 5739f3c99c8..f2b4c94d8ce 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -380,6 +380,7 @@ select.settings_select {
background-repeat: no-repeat;
background-position: 98%;
background-size: 1em;
+ font-family: inherit;
}
#admin-active-users-list,
@@ -1619,6 +1620,7 @@ label.preferences-radio-choice-label {
transition:
border-color linear 0.2s,
box-shadow linear 0.2s;
+ font-family: inherit;
&:focus {
border-color: hsl(206deg 80% 62% / 80%);
@@ -2328,6 +2330,7 @@ label.preferences-radio-choice-label {
var(--modal-input-width) - 2 * var(--input-horizontal-padding) - 2 *
var(--input-border-width)
);
+ font-family: inherit;
&:focus {
border-color: hsl(206deg 80% 62% / 80%);
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index f9aa61f011d..51f8c482311 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -615,6 +615,7 @@ h4.user_group_setting_subsection_title {
padding: 6px 10px 8px;
display: block;
margin: 0 auto 10px;
+ font-family: inherit;
}
.main-view-banner.group_deactivated {
diff --git a/web/styles/widgets.css b/web/styles/widgets.css
index dcc35c4c0b9..6ca2ba06fcb 100644
--- a/web/styles/widgets.css
+++ b/web/styles/widgets.css
@@ -15,6 +15,7 @@
& button {
font-weight: 700;
color: hsl(240deg 100% 50%);
+ font-family: inherit;
}
.widget-choices-heading {
@@ -137,6 +138,7 @@
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%);
border-radius: 4px;
color: var(--color-text-default);
+ font-family: inherit;
&:focus {
border-color: hsl(206deg 80% 62% / 80%);
@@ -188,6 +190,7 @@
height: 1.7857em; /* 25px at 14px / em */
font-size: 0.9285em; /* 13px at 14px / em */
background-color: var(--color-background-widget-button);
+ font-family: inherit;
&:hover {
color: var(--color-poll-vote-hover);
@@ -229,6 +232,7 @@ button {
padding: 4px;
padding-left: 14px;
padding-right: 14px;
+ font-family: inherit;
&:hover,
&:focus {
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 2c5ded623fd..3d3fa2e4fc3 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -133,7 +133,6 @@ button {
input,
button,
select {
- font-family: inherit;
/* Disable bootstrap size CSS; we want to use our default font size on
body for input elements. */
line-height: normal;
@@ -999,6 +998,7 @@ div.focused-message-list.is-conversation-view .recipient_row {
color: var(--color-text-default);
border-radius: 4px;
border: 1px solid hsl(0deg 0% 80%);
+ font-family: inherit;
transition:
border-color linear 0.2s,
@@ -1393,6 +1393,7 @@ div.topic_edit_spinner .loading_indicator_spinner {
transition:
border-color linear 0.2s,
box-shadow linear 0.2s;
+ font-family: inherit;
&:focus {
border-color: hsl(206deg 80% 62% / 80%);
@@ -1529,6 +1530,7 @@ div.topic_edit_spinner .loading_indicator_spinner {
.exit {
font-size: 1.5rem;
font-weight: 600;
+ font-family: inherit;
background-color: transparent;
border: none;
position: absolute;