Move all of our CSS rules into our CssResource

This save us from needing to download the application's CSS
resources in a separate HTTP connection.  It also allowed us
to find and remove some unused class names.

I may have broken a few style classes here.  I plan to break
the CSS up into smaller chunks and fix any broken styles as I
go through them.

Change-Id: I81b60ff8d93be3faedf606d2f40a6f89d401909d
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-12-19 17:53:06 -08:00
parent f2d68b182d
commit f511d760db
76 changed files with 1103 additions and 764 deletions

View File

@@ -14,6 +14,7 @@
package com.google.gerrit.client.ui;
import com.google.gerrit.client.Gerrit;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.AnchorElement;
import com.google.gwt.user.client.DOM;
@@ -27,7 +28,7 @@ public class LinkMenuItem extends InlineHyperlink {
public LinkMenuItem(final String text, final String targetHistoryToken) {
super(text, targetHistoryToken);
setStyleName("gerrit-MenuItem");
setStyleName(Gerrit.RESOURCES.css().menuItem());
Accessibility.setRole(getElement(), Accessibility.ROLE_MENUITEM);
}