Commit Graph

170 Commits

Author SHA1 Message Date
Guangcong Luo
bdcbded0bb Update Font Awesome to 4.4.0
Font Awesome 3 -> 4 was a backwards-incompatible change, so this
update is pretty invasive. I tested everything we use it for and it
still works, though. Including supporting both Font Awesome versions
in battle.js.
2015-09-25 02:46:34 -05:00
Guangcong Luo
bb6b73b2dc Merge pull request #483 from urkerab/userlist-button-firefox
Firefox has magic button overflow
2015-09-24 14:56:42 -05:00
urkerab
42642f39b4 Firefox has magic button overflow 2015-09-24 09:52:34 +01:00
Guangcong Luo
447d11bd8a Improve visual appearance of PM header
Specifically, provide visual feedback that clicking it expands
and collapses PMs.
2015-09-23 20:23:01 -04:00
The Immortal
511cae6cf2 Merge pull request #475 from sobolews/teambuilder-validate
Add a validate button to the teambuilder
2015-09-19 21:12:28 +04:00
Carl Sobolewski
6855770aa6 Add a validate button to the teambuilder
The validate button sends the current team and a validation request to the
server. The server will respond with a positive acknowledgement for valid teams,
or else a list of problems (the same list as when seeking a battle).
2015-09-19 01:19:13 -06:00
urkerab
d54911cfe2 Preview your username colour as you type 2015-09-18 21:41:28 +01:00
urkerab
034b31ea52 Make teambuilder most resistant to zoom changes 2015-08-28 12:16:14 +01:00
urkerab
bd8dd3bf45 Make teambuilder more resistant to zoom changes 2015-08-26 14:37:31 +01:00
Guangcong Luo
099e5bcf68 Only show revealed Pokemon in main area
PS now tracks a lot more information about what information your
opponent does and doesn't know about you, for ease for keeping
track of things.
2015-07-26 03:43:53 -04:00
Guangcong Luo
d4ccabebef Redesign room join page
User and battle count are now buttons! Also, tables for layout,
but to be fair, the data is sort of tabular, and this is
basically the best option for this layout. Flexbox supposedly
fixes this, but we support plenty of browsers that don't
support flexbox, and I'm pragmatic enough to use tables here.
2015-07-24 03:18:32 -04:00
Guangcong Luo
7e4aa56313 Improve tournament UI
Some wording/layout is changed to look less ugly. This does come
with one major change, though: The team dropdown is now visible
at all times after clicking 'Join', and your selected team will
stay selected throughout the entire tournament.
2015-07-20 05:45:53 -04:00
Guangcong Luo
faf9ec33ce Support in-battle chat in low res 2015-07-17 14:41:30 -04:00
Guangcong Luo
99ae3f700d Zoom out teambuilder in mobile
The teambuilder honestly isn't great in mobile, but since it's
impossible to zoom out in mobile, it's better to start zoomed out
and let the user zoom in, than start zoomed in and not give the
user a choice.
2015-07-17 14:40:03 -04:00
Guangcong Luo
ba0a7e72ff Improve tab overflow button
With the tab overflow menu being perfect, I might as well fix the
button that opens it. It used to use default browser styles, which
was mostly fine in OS X but ugly on other systems, and nearly
unusable in iOS. The new one looks lovely on all OSes.
2015-07-17 14:40:03 -04:00
Guangcong Luo
ebd0bfef58 Fix disappearing Close button on tab overflow menu 2015-07-17 14:40:03 -04:00
Guangcong Luo
451a63348f Low-res topbar
We now support a new topbar optimized for low resolutions.
2015-07-17 03:10:57 -04:00
Guangcong Luo
59e01485a7 Nicer-looking tab overflow menu
.button styling has been consolidated in CSS, and the tab overflow
menu has been adjusted to use button styling, which is the "more
improvements in the future" mentioned by 69524e935b.

I now declare the tab overflow menu officially out of beta. Now
for the rest of PS!

The Ladder now also uses the new button styling, but it's not out
of beta yet, I just wanted to see how it looked.
2015-07-17 03:10:57 -04:00
Guangcong Luo
f91a6478ee Darken tab mouseover effect 2015-07-16 05:14:33 -04:00
Guangcong Luo
5a7acd09a9 Slightly faster tournament open/close animation 2015-07-15 19:04:28 -04:00
Guangcong Luo
838d855c72 Tweak chat appearance
- Highlighted messages now span the entire width of the chat.
- Highlighted and personal messages are more vertically centered.
- Links and code are again properly hidden by spoilers
2015-07-15 18:01:40 -04:00
Guangcong Luo
31c035abcb Make highlight background semitransparent 2015-07-15 06:03:22 -04:00
Guangcong Luo
1fdc52cbe7 Fix battle layout on iOS and old Android 2015-07-15 00:53:00 -04:00
Guangcong Luo
c63c75651a Improve teambuilder in low-res
This isn't a great improvement, and it involves horizontal scrollbars,
but it's still better than how it worked before.
2015-07-15 00:39:58 -04:00
Guangcong Luo
b96077039f Fix low-res userlist
The userlist in low-res mode now scrolls to top before collapsing,
which fixes the issue where it might not display the user-count
and toggle button.
2015-07-15 00:32:48 -04:00
Guangcong Luo
cce2fa5019 Responsive battle UI
Instead of our previous minimum width of 640px, the new battle UI is
now responsive down to 320px.

Screenshot: http://d.pr/i/17UYD/1V6IYX2T
2015-07-14 19:00:58 -04:00
Guangcong Luo
69524e935b Improve tab overflow menu
It might need more improvements in the future, but for now it's
already pretty good for switching between rooms.
2015-07-14 19:00:58 -04:00
Guangcong Luo
ccf73e7be9 Make PM/News close button easier to hit 2015-07-14 19:00:58 -04:00
Guangcong Luo
7d144dd411 Resize teambuilder clipboard
Old one was awkwardly wide
2015-07-14 19:00:58 -04:00
Guangcong Luo
ad692c2b6f Fix footer-mainmenu overlap on low res 2015-07-14 15:08:51 -04:00
Guangcong Luo
924ccd19fc Nicer tab overflow menu 2015-07-14 15:08:05 -04:00
Guangcong Luo
ebd77434d6 Show minimized userlist in low resolutions
Previously, the userlist would be completely hidden in low
resolutions, but now a user count is displayed in the top left
corner. When clicked, the entire userlist appears.
2015-07-14 15:07:38 -04:00
Ivo Julca
d2ccb0530a Remove deprecated message styles from client.css 2015-07-10 06:50:59 -05:00
Guangcong Luo
30f2d5649f Animate teams settling into place after dragging
This is supported on Chrome and Safari (and probably Opera), but
not Firefox because Firefox is too buggy.

(Honestly, every browser's HTML5 drag-and-drop implementation is
super buggy, but Firefox happens to be buggy in a way that makes
this feature semi-impossible.)
2015-07-04 22:35:00 -05:00
Guangcong Luo
627aa2a66c Add Firefox team-drag support
Team drag-rearranging is now supported on Firefox.
2015-07-04 16:10:54 -05:00
Guangcong Luo
64c22a9be0 Drag-rearrange-able teams
This is pretty experimental, but all the bugs I found are worked
out.

While researching how to best implement this, I came across the
famous PPK rant on why HTML5 drag-and-drop sucks:
http://quirksmode.org/blog/archives/2009/09/the_html5_drag.html

A lot of his complaints aren't really a big deal to me, but boy
was he right about browser bugs. Apparently mobile will never
support HTML5 drag-and-drop, either, and there are a lot of
other limitations. Oh well, this is all worth it for an
upcoming planned features: dragging and dropping team files to
and from your desktop.
2015-07-04 02:33:57 -05:00
Guangcong Luo
e1864520d9 Redesign teambuilder
- Nicer looking buttons
- Nicer layout
- Ctrl+F-able pokemon species names
2015-07-03 20:37:48 -04:00
MasterFloat
1603a1a7a5 Fix popmenu button padding in Mozilla
This adds 1px top and bottom padding to popupmenu's button to match its
hover offset. Necessary because of a bug in Mozilla involving box-sizing
of buttons.
2015-06-30 15:25:42 -05:00
Guangcong Luo
7c802fc4e0 Rainbow main menu!
In honor of Obergefell v. Hodges
2015-06-28 00:50:17 -04:00
Guangcong Luo
ea348e8a19 Remove outdated -webkit and -moz CSS
linear-gradient has been supported in most major browsers for long
enough that we can drop gradient support for really old browsers.
2015-06-28 00:50:16 -04:00
Guangcong Luo
9b57f521a5 Teambuilder: Fix import/export textbox size 2015-06-12 20:34:42 -04:00
Guangcong Luo
ec94d28cf4 Suppress horizontal scrollbar in userlist 2015-06-12 18:14:16 -04:00
SolarisFox
22de1647fd handle long team name overflow 2015-05-10 18:50:19 -07:00
Guangcong Luo
e646c23bc2 Add subtle notifications for room activity
Chat room titles now turn orange and their icon changes when someone
talks in them. This is subtler than the highlight notification, and
should make it easier to keep up with rooms.

This change involves a refactor of the notification system, which
also happens to improve room-switching performance by only running
updateTopbar once instead of 3-5 times like it would before.
2015-05-04 16:42:35 -04:00
Guangcong Luo
28e197b347 Move chat styles to battle.css
Some CSS that affects chat are in client.css. Since we want them
to affect battle logs, and thus replays, I've moved them to
battle.css
2015-04-02 23:13:44 -04:00
Morfent
74cb8bea77 Team/format button style fixes
The button's text is no longer offset vertically by the arrow added by
::after, and the background gradients now display properly on Firefox.
2015-03-07 10:57:00 -04:00
sirDonovan
8311dc889d Several improvements to |unlink|hide|
- Prevent messages from being hidden in replays
- Improve wording on the reveal button
- Highlight revealed messages
2015-02-09 17:14:19 -06:00
sirDonovan
49d5130180 Show tooltip for fainted pokemon
Allow tooltips to be displayed by styling buttons as disabled instead of actually disabling them
2015-01-20 20:41:23 -06:00
Yana
2f65b6aab9 /rank format targeting 2015-01-09 19:13:06 +01:00
Guangcong Luo
e7fad47f54 Larger chat font sizes
For now, battle chat is still at 8pt, but chatroom and PM font
size has been increased to 9pt. Join/leave messages, timestamps,
and user symbols in chat stay at 8pt, and timestamps are now
gray.
2014-09-26 23:37:50 -05:00