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:
@@ -28,7 +28,7 @@ public class NotSignedInDialog extends AutoCenterDialogBox {
|
||||
setText(Gerrit.C.notSignedInTitle());
|
||||
|
||||
final FlowPanel buttons = new FlowPanel();
|
||||
buttons.setStyleName("gerrit-ErrorDialog-Buttons");
|
||||
buttons.setStyleName(Gerrit.RESOURCES.css().errorDialogButtons());
|
||||
|
||||
final Button signin = new Button();
|
||||
signin.setText(Gerrit.C.menuSignIn());
|
||||
@@ -52,7 +52,7 @@ public class NotSignedInDialog extends AutoCenterDialogBox {
|
||||
buttons.add(close);
|
||||
|
||||
final FlowPanel center = new FlowPanel();
|
||||
center.setStyleName("gerrit-ErrorDialog");
|
||||
center.setStyleName(Gerrit.RESOURCES.css().errorDialog());
|
||||
center.add(new HTML(Gerrit.C.notSignedInBody()));
|
||||
center.add(buttons);
|
||||
add(center);
|
||||
|
Reference in New Issue
Block a user