1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 10:34:26 +00:00
gitea/web_src/css/modules
Giteabot ab344a36e3
Rework and fix stopwatch (#30732) (#30787)
Backport #30732 by @silverwind

Fixes https://github.com/go-gitea/gitea/issues/30721 and overhauls the
stopwatch. Time is now shown inside the "dot" icon and on both mobile
and desktop. All rendering is now done by `<relative-time>`, the
`pretty-ms` dependency is dropped.

Desktop:
<img width="557" alt="Screenshot 2024-04-29 at 22 33 27"
src="https://github.com/go-gitea/gitea/assets/115237/3a46cdbf-6af2-4bf9-b07f-021348badaac">

Mobile:
<img width="640" alt="Screenshot 2024-04-29 at 22 34 19"
src="https://github.com/go-gitea/gitea/assets/115237/8a2beea7-bd5d-473f-8fff-66f63fd50877">

Note for tippy:
Previously, tippy instances defaulted to "menu" theme, but that theme is
really only meant for `.ui.menu`, so it was not optimal for the
stopwatch popover.

This introduces a unopinionated `default` theme that has no padding and
should be suitable for all content. I reviewed all existing uses and
explicitely set the desired `theme` on all of them.

Co-authored-by: silverwind <me@silverwind.io>
2024-04-30 21:46:45 +00:00
..
animations.css Remove fomantic input module (#30194) 2024-03-31 16:06:06 +00:00
breadcrumb.css Use unique class for breadcrumb divider (#26524) 2023-08-16 00:08:23 +00:00
button.css Tweak repo buttons on mobile and labeled button border-radius (#30503) 2024-04-16 17:46:12 +02:00
card.css Fix all rounded borders, change affected tab menus to pills (#30707) (#30769) 2024-04-29 21:19:44 +00:00
checkbox.css Tweak and fix toggle checkboxes (#30527) 2024-04-17 00:39:19 +02:00
comment.css Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) 2024-04-14 18:44:11 +08:00
container.css Right align the "Settings" menu item in overflow-menu (#30764) (#30777) 2024-04-30 16:40:09 +08:00
divider.css Pulse page improvements (#30149) 2024-04-14 09:21:16 +00:00
flexcontainer.css Use flex-container for dashboard layout (#30214) 2024-04-14 13:39:11 +02:00
grid.css Restore aligned grid column CSS (#30106) 2024-03-26 15:37:14 +00:00
header.css Pulse page improvements (#30149) 2024-04-14 09:21:16 +00:00
input.css Fix right-aligned input icons (#30301) 2024-04-07 16:53:28 +08:00
label.css Tweak repo buttons on mobile and labeled button border-radius (#30503) 2024-04-16 17:46:12 +02:00
list.css Fix floated list items (#30377) 2024-04-10 10:16:55 +08:00
menu.css Fix all rounded borders, change affected tab menus to pills (#30707) (#30769) 2024-04-29 21:19:44 +00:00
message.css Various code view improvements (#30014) 2024-03-24 12:14:03 +00:00
modal.css Fix all rounded borders, change affected tab menus to pills (#30707) (#30769) 2024-04-29 21:19:44 +00:00
navbar.css Rework and fix stopwatch (#30732) (#30787) 2024-04-30 21:46:45 +00:00
normalize.css Use line-height: normal by default (#26635) 2023-08-22 10:19:15 +00:00
segment.css Fix all rounded borders, change affected tab menus to pills (#30707) (#30769) 2024-04-29 21:19:44 +00:00
select.css add stylelint-stylistic (#25285) 2023-06-17 13:20:32 +00:00
svg.css Prevent SVG shrinking (#25652) 2023-07-04 02:15:06 +00:00
table.css Fix table alignment classes (#30144) 2024-03-27 21:47:40 +00:00
tippy.css Rework and fix stopwatch (#30732) (#30787) 2024-04-30 21:46:45 +00:00
toast.css Remove some unused CSS styles (#26852) 2023-09-01 08:59:38 +02:00