Commit Graph

295 Commits

Author SHA1 Message Date
Shubham Padia
66466760a0 css: Move out --box-shadow-overlay out of dark_theme.css.
Fixes #35881.
2025-10-08 23:35:46 -07:00
Shubham Padia
d9b7d8d2a6 overlay: Make sure all overlays have the same box shadow in dark mode.
Drafts, scheduled messages and message edit history had different
box-shadow done in #25771. The main reason for the different color was
for these overlays with the new background colors to play nice with the
then message/sidebar sections using the old background colors. Since
there is no such difference anymore, we can have one box-shadow for all
overlays.
2025-10-08 23:35:46 -07:00
Shubham Padia
44d1343158 css: Remove redundant border-color for message rows.
The dark component out of the light-dark() of
--color-message-list-border is hsl(0deg 0% 0% / 40%), which is the same
as the color we specify in dark_theme.css.

- .recipient_row already uses the above variable, so it's entry is not
  needed in dark_theme.css
- .message_row uses the same variable as well.
- .overlay-message-row does not have a direct border. Although
  .message_row nested inside it does. It already uses the above
  variable, so we can remove this entry as well.
2025-10-06 17:44:11 -07:00
Shubham Padia
f6d972048b css: Remove redundant border related css for .preview_message_area.
We removed the border declaration in #29953. We do not need the
border-radius anymore, nor the border-color declaration in
dark_theme.css.
2025-10-06 17:44:11 -07:00
Shubham Padia
de2126d240 subscriptions: Use light-dark() instead of dark_theme.css for stream-row.
Fixes part of #35881.

We extract out relevant colors from dark_theme.css for .stream-row and
.group-row and place them in light-dark(). We also transform all these
colors for .group-row and .stream-row into variables.

We use the alpha value for hsl() colors as a stand-in for the opacity we
were defining in dark_theme.css.
2025-10-06 17:44:11 -07:00
Shubham Padia
567e8f369e css: Move out background-color hsl(0deg 0% 0% / 20%) out of dark_theme.
Fixes part of #35881.
2025-10-06 17:44:05 -07:00
Shubham Padia
c96caded1f subscriptions: Use existing variable for .subscriber-list-box.
Fixes part of #35881.

Instead of having all the rules in the dark_theme.css, we use the
existing variable which uses `light-dark()`.

We also create a new variable color-border-settings-radio-input-parent,
since the existing variable was not created for that radio input and
they should be allowed to change independently.
2025-10-06 17:44:00 -07:00
Shubham Padia
ee298be34b subscriptions: Replace svg with .sub-unsub-icon in dark_theme.css.
We missed doing so in #36047.
2025-10-06 17:43:23 -07:00
Sayam Samal
a8387a6487 dark_theme: Clean up input styles in dark_theme.css.
Fixes part of #35135.
2025-10-03 18:18:27 -07:00
Sayam Samal
3070c78cc5 popovers: Remove "light-border" Tippyjs theme usage.
The "light-border" theme was set as the default theme for all the
popovers, but was no longer in use, since all of our current popovers
either use the "popover-menu" theme or the "dropdown-widget" theme.

In response to the above reasoning, this commit removes the redundant
"light-border" Tippyjs theme usage from the codebase.
2025-09-15 09:25:39 -07:00
Sayam Samal
b9b1798a1e dark_theme: Clean up Tippy box styles.
Fixes part of #35880.
2025-09-15 09:25:39 -07:00
Sayam Samal
930eadb085 dark_theme: Clean up manage user profile footer border color.
Fixes part of #35880.
2025-09-12 13:10:09 -07:00
Sayam Samal
ad8c2b7275 dark_theme: Clean up user profile modal tables' related border colors.
In the light theme, the user profile modal tables were using two
different border colors, both very similar to one another. This commit
consolidates them into a single border color for consistency.
2025-09-12 13:10:09 -07:00
Sayam Samal
ec611fda69 dark_theme: Clean up user profile modal field name related colors. 2025-09-12 13:10:09 -07:00
Sayam Samal
c1e65280aa dark_theme: Cleanup todo widget colors.
Fixes part of #35880.
2025-09-10 12:28:40 -05:00
Sayam Samal
732cdaa800 dark_theme: Cleanup poll widget colors.
Fixes part of #35880.
2025-09-10 12:28:40 -05:00
Sayam Samal
fa154b675d dark_theme: Clean up feedback container styles.
The feedback container doesn't have a border so it doesn't make sense
to have a border color defined for the dark theme, and the hover color
change on the `a` tag was an unintended side effect of
commit d73a5d06c0, which while correcting
the hover effect on the typeaheads, also affected the link hover styles
in the feedback container.

This commit, due the reasons mentioned above, removes the entire CSS
block related to the feedback container from web/styles/dark_theme.css.

Fixes part of #35880.
2025-09-09 09:21:36 -07:00
Sayam Samal
f724ad7a33 dark_theme: Clean up read receipts modal styles.
Fixes part of #35880.
2025-09-09 09:21:16 -07:00
Sayam Samal
a4dd8e515d input_pill: Move input pill styles to app_variables.css.
This prep commit consolidates the input pill styles into
`app_variables.css` and uses the light-dark notation for the color
variables to avoid specificity issues that arose from `dark_theme.css`.
2025-07-14 13:58:02 -07:00
Sayam Samal
71d75532fe inputs: Implement redesigned input component.
This commit serves as the base for the ongoing effort to standardize
redesigned input elements throughout the Zulip Web UI. It introduces a
new Handlebars partial block for inputs, located at
web/templates/components/input.hbs.

The partial can be used with the partial block syntax: {{#> input}},
allowing contributors to pass in the input element as a template. This
approach wraps the input with a consistent structure that includes
support for an icon and an action button. It also applies the necessary
styling to ensure visual and functional consistency across the web UI.

This commit also implements the filter input component at
/devtools/inputs/ showroom page for design discussions and prototyping.
2025-07-03 11:45:35 -07:00
Pratik Chanda
ac4c3335e8 help_menu: Center keyboard shortcut text in kbd element.
This commit fixes the kbd element text being centered in dark theme
but not in light theme. Aligns text for all kbd elements not just
in dark theme.

Fixes:zulip#35059.
2025-07-02 09:26:45 -07:00
Aman Agrawal
8427c2e763 css: Remove outline on buttons on click.
Fixes #34479
2025-06-25 11:55:36 -07:00
Karl Stolley
9e2ffe7fd5 inputs: Set default text-color explicitly.
This removes the previous slightly-lighter text shade
in light mode, and gets away from the trickiness of
`color: inherit` in dark mode.

While we could probably go with inheritance
everywhere, simply by removing the color: value on
these element, setting an explicit color variable on
the inputs here builds better confidence as to what
the color value will ultimately be.
2025-06-13 16:53:46 -07:00
Sayam Samal
f2b4480d76 blueslip: Decouple blueslip error overlay from popup alerts. 2025-06-04 11:28:49 -07:00
Sahil Batra
72e2605b98 stream-settings: Fix duplicate IDs.
"stream-advanced-configurations" was being used as ID for
advanced configurations section in both stream edit and
creation UI, which is not correct as ID should be unique.

This commit fixes it by removing the ID and instead using
class in selectors. Also, there was some unused CSS, as
we do not have dropdown widget buttons in advanced
configurations section, written using the duplicate ID so
removed that as well.
2025-05-20 10:40:19 -07:00
Karl Stolley
0c07bf79f1 bootstrap: Clean up .close references.
Removing `.alert` from the dark theme seems acceptable,
as there is nowhere in the codebase we're setting a
`text-shadow` value that would require `none` here.
2025-04-30 10:26:20 -07:00
Sayam Samal
b5e41e1ca0 css: Use CSS variable for bookend and date row spacer lines. 2025-04-16 10:44:51 -07:00
Sayam Samal
f1b3867c6a message_row: Remove tag-level filtering in the date row timerender CSS.
This commit improves the CSS matching performance by avoiding tag-level
filtering in the date row CSS. Instead of using the `span` tag we use
the ".timerender-content" class to filter the same time/date elements.

Since this class is added by `timerender.render_date()` to the span
element inside date_row on every instance, we can use it with assurance.
2025-04-16 10:44:51 -07:00
Sayam Samal
93fb84bc98 message_row: Remove tag-level filtering in the bookends CSS.
This commit reduces the selector scope and improves the CSS matching
performance by avoiding tag-level filtering in the bookends CSS.

This also removes the `.sub-unsub-message` class from the bookend as it
served no additional support and the `.bookend`` class can be used
directly instead to maintain the styling of this element.
2025-04-16 10:44:51 -07:00
Karl Stolley
9392a1c8a6 cleanup: Move thumbnail values to CSS variables. 2025-04-10 12:55:15 -07:00
Sayam Samal
6bf2887991 settings: Update save and discard buttons to redesigned button styles.
This commit updates the save and discard buttons in the setting modals
to use redesigned button styles along with the new loading indicator.
2025-04-07 18:22:16 -07:00
Karl Stolley
33522543c6 dark_theme: Clean up moving bar on main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
2e8c1407ae dark_theme: Clean up action link on main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
4ccea351f4 dark_theme: Clean up info-style main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
8f465c9836 dark_theme: Clean up error-style main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
78de5c05a1 dark_theme: Clean up warning-style main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
c2b1c2ca5a dark_theme: Clean up success-style main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
5026a5b5c5 dark_theme: Remove out-specified compose recipients selector. 2025-04-04 14:04:52 -07:00
Karl Stolley
ce7cc60e54 dark_theme: Remove unusable color from horizontal rules.
We style horizontal rules with explicit border colors, so the color
value here is extraneous.
2025-04-04 14:04:52 -07:00
Karl Stolley
5709d5f26e dark_theme: Remove unnecessary background for search typeahead.
There is no background color set in light theme or elsewhere that
necessitates this style. Good riddance to the expensive `ul` at the
end of the selector, too.
2025-04-04 14:04:52 -07:00
Karl Stolley
30752a0011 dark_theme: Set color variables for overlays, non-empty indicators. 2025-04-04 14:04:52 -07:00
Karl Stolley
65e3d487bf dark_theme: Set color variables for compose-content border.
Note that the dark-theme color comes from the stack of selectors
that included `#compose-content`.
2025-04-04 14:04:52 -07:00
Karl Stolley
2b552d8036 dark_theme: Remove unnecessary compose-control hover color. 2025-04-04 14:04:52 -07:00
Karl Stolley
46d4f32473 dark_theme: Set color variables for plus buttons. 2025-04-04 14:04:52 -07:00
Karl Stolley
1c5b5ddf46 dark_theme: Remove overridden profile-field border.
The orange color here is never visible, and there is no analogous
selector-color combo like this in light theme.
2025-04-04 14:04:52 -07:00
Karl Stolley
d9fea6b382 dark_theme: Remove redundant .pill-container border properties.
Nowhere are these values different in light theme.
2025-04-04 14:04:52 -07:00
Karl Stolley
8b9942c015 dark_theme: Remove unused colorblock selectors.
None of these selectors appear in any template or JavaScript.
2025-04-04 14:04:52 -07:00
Karl Stolley
bdffa08c3e dark_theme: Remove unnecessary transparent background. 2025-04-04 14:04:52 -07:00
Karl Stolley
4c79c3c44c dark_theme: Remove selectors already in zulip.css. 2025-04-04 14:04:52 -07:00
Karl Stolley
59bc431243 dark_theme: Clean up modal close button colors. 2025-04-04 14:04:52 -07:00