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

@@ -218,7 +218,7 @@ public abstract class PatchScreen extends Screen {
initDisplayControls();
noDifference = new Label(PatchUtil.C.noDifference());
noDifference.setStyleName("gerrit-PatchNoDifference");
noDifference.setStyleName(Gerrit.RESOURCES.css().patchNoDifference());
noDifference.setVisible(false);
contentTable = createContentTable();
@@ -226,7 +226,7 @@ public abstract class PatchScreen extends Screen {
add(createNextPrevLinks());
contentPanel = new FlowPanel();
contentPanel.setStyleName("gerrit-SideBySideScreen-SideBySideTable");
contentPanel.setStyleName(Gerrit.RESOURCES.css().sideBySideScreenSideBySideTable());
contentPanel.add(noDifference);
contentPanel.add(contentTable);
add(contentPanel);
@@ -256,7 +256,7 @@ public abstract class PatchScreen extends Screen {
private void initDisplayControls() {
final Grid displayControls = new Grid(0, 5);
displayControls.setStyleName("gerrit-PatchScreen-DisplayControls");
displayControls.setStyleName(Gerrit.RESOURCES.css().patchScreenDisplayControls());
add(displayControls);
createIgnoreWhitespace(displayControls, 0, 0);
@@ -353,7 +353,7 @@ public abstract class PatchScreen extends Screen {
private Widget createNextPrevLinks() {
final Grid table = new Grid(1, 3);
final CellFormatter fmt = table.getCellFormatter();
table.setStyleName("gerrit-SideBySideScreen-LinkTable");
table.setStyleName(Gerrit.RESOURCES.css().sideBySideScreenLinkTable());
fmt.setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT);
fmt.setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_CENTER);
fmt.setHorizontalAlignment(0, 2, HasHorizontalAlignment.ALIGN_RIGHT);