From 67d669287a55841aa1789f3ab3e3f1b4b2262a67 Mon Sep 17 00:00:00 2001 From: Witoslaw Koczewski Date: Fri, 3 Jul 2015 08:55:07 +0200 Subject: [PATCH] whiteboard style --- .../scrum/client/tasks/TaskListWidget.java | 14 +- .../scrum/client/tasks/WhiteboardWidget.java | 12 +- .../scrum/server/css/KunagiCssBuilder.java | 157 ++++++++---------- 3 files changed, 88 insertions(+), 95 deletions(-) diff --git a/src/main/java/scrum/client/tasks/TaskListWidget.java b/src/main/java/scrum/client/tasks/TaskListWidget.java index 214fce9f..8a5916a0 100644 --- a/src/main/java/scrum/client/tasks/TaskListWidget.java +++ b/src/main/java/scrum/client/tasks/TaskListWidget.java @@ -1,14 +1,14 @@ /* * Copyright 2011 Witoslaw Koczewsi , Artjom Kochtchi - * + * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero * General Public License as published by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * License for more details. - * + * * You should have received a copy of the GNU General Public License along with this program. If not, see * . */ @@ -29,6 +29,7 @@ import scrum.client.sprint.Task; import com.google.gwt.user.client.ui.FlowPanel; +import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.Widget; public class TaskListWidget extends AScrumWidget { @@ -39,13 +40,15 @@ public class TaskListWidget extends AScrumWidget { private TaskBlockContainer container; private Requirement requirement; private boolean createTaskButton; + private String color; public TaskListWidget(Requirement requirement, TaskBlockContainer container, BlockListDropAction dropAction, - boolean createTaskButton) { + boolean createTaskButton, String color) { this.requirement = requirement; this.container = container; this.dropAction = dropAction; this.createTaskButton = createTaskButton; + this.color = color; } public Task getSelectedTask() { @@ -64,6 +67,9 @@ protected Widget onInitialization() { } FlowPanel panel = new FlowPanel(); + + panel.add(new HTML("
")); + panel.add(list); if (createTaskButton) panel.add(Gwt.createDiv("CreateTaskButtonWrapper", diff --git a/src/main/java/scrum/client/tasks/WhiteboardWidget.java b/src/main/java/scrum/client/tasks/WhiteboardWidget.java index 558599f8..7758f6f1 100644 --- a/src/main/java/scrum/client/tasks/WhiteboardWidget.java +++ b/src/main/java/scrum/client/tasks/WhiteboardWidget.java @@ -129,11 +129,11 @@ protected void onUpdate() { for (Requirement requirement : requirements) { openTasks.put(requirement, new TaskListWidget(requirement, this, new UnclaimTaskDropAction(requirement), - true)); + true, "#f99")); ownedTasks.put(requirement, new TaskListWidget(requirement, this, new ClaimTaskDropAction(requirement), - false)); + false, "#ff9")); closedTasks.put(requirement, new TaskListWidget(requirement, this, new CloseTaskDropAction(requirement), - false)); + false, "#9e9")); } setWidget(0, 0, openLabel, "33%", "WhiteboardWidget-header"); @@ -154,9 +154,9 @@ protected void onUpdate() { updateTaskLists(requirement); // grid.setWidget(row, 0, new Label(requirement.getLabel())); - setWidget(row, 0, openTasks.get(requirement), null, "WhiteboardWidget-open"); - setWidget(row, 1, ownedTasks.get(requirement), null, "WhiteboardWidget-owned"); - setWidget(row, 2, closedTasks.get(requirement), null, "WhiteboardWidget-done"); + setWidget(row, 0, openTasks.get(requirement), "33%", "WhiteboardWidget-open"); + setWidget(row, 1, ownedTasks.get(requirement), "33%", "WhiteboardWidget-owned"); + setWidget(row, 2, closedTasks.get(requirement), "33%", "WhiteboardWidget-done"); row++; } diff --git a/src/main/java/scrum/server/css/KunagiCssBuilder.java b/src/main/java/scrum/server/css/KunagiCssBuilder.java index 8fc71d5f..ac8e78c6 100644 --- a/src/main/java/scrum/server/css/KunagiCssBuilder.java +++ b/src/main/java/scrum/server/css/KunagiCssBuilder.java @@ -1,14 +1,14 @@ /* * Copyright 2011 Witoslaw Koczewsi , Artjom Kochtchi - * + * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero * General Public License as published by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * License for more details. - * + * * You should have received a copy of the GNU General Public License along with this program. If not, see * . */ @@ -133,9 +133,9 @@ public void buildCss(CssBuilder css) { userStatus(css); css.style("#body .EmoticonSelectorWidget-emoticon").border(1, "white").borderRadius(2).padding(2, 1, 0, 1) - .cursorPointer(); + .cursorPointer(); css.style("#body .EmoticonSelectorWidget-emoticon-selected").background(cBlockHeaderBackground) - .border(1, cBlockSelectionBorder).padding(2, 3, 0, 2); + .border(1, cBlockSelectionBorder).padding(2, 3, 0, 2); css.style("#body .ToolbarWidget").background(cToolbarBackground).padding(3, 0, 3, 3); css.style("#body .ToolbarWidget .FloatingFlowPanel-element-left").marginRight(3); @@ -143,7 +143,7 @@ public void buildCss(CssBuilder css) { css.style("#body .fieldLabel").color(cHeaderBackground).lineHeight(22).whiteSpaceNowrap(); css.style("#body .AFieldValueWidget").background("white").border(1, "dotted", "white").minWidth(16) - .minHeight(16).displayBlock().padding(3); + .minHeight(16).displayBlock().padding(3); css.style("#body .FieldsWidget-fieldLabel").color(cHeaderBackground).lineHeight(22).whiteSpaceNowrap(); css.style("#body .dnd-drop-allowed").background(cHeaderBackground); @@ -155,31 +155,31 @@ public void buildCss(CssBuilder css) { css.style("#body .LockInfoWidget-icon").marginRight(10); css.style("#body .WaitWidget").background(cWaitBackground).margin(200, 0, 200, 0) - .borderTop(1, cPagePanelBorder).borderBottom(1, cPagePanelBorder).fontSize(fontSize + 2); + .borderTop(1, cPagePanelBorder).borderBottom(1, cPagePanelBorder).fontSize(fontSize + 2); css.style("#body .LoginWidget-errorMessage").background(cErrorBackground).color(cError).border(1, cError) - .fontSize(fontSize + 2).padding(5); + .fontSize(fontSize + 2).padding(5); css.style("#body .PunishmentsWidget-tableHeader").padding(10).fontSize(fontSizeTitle) - .lineHeight(lineHeightTitle); + .lineHeight(lineHeightTitle); css.style("#body .AViewEditWidget-viewer").minWidth(16).minHeight(16).displayBlock().padding(3); css.style("#body .AViewEditWidget-viewer-editable").background(cFieldBackground) - .border(1, "dotted", cNavigatorSelectedItemBackground).cursorPointer(); + .border(1, "dotted", cNavigatorSelectedItemBackground).cursorPointer(); css.style("#body .ARichtextViewEditWidget-viewer .codeBlock").displayBlock().padding(5).margin(0, 10, 10, 10) - .border(1, "#EEE").background(Colors.lighten(cFieldBackground)).maxWidth(350).maxHeight(400) - .overflowScroll(); + .border(1, "#EEE").background(Colors.lighten(cFieldBackground)).maxWidth(350).maxHeight(400) + .overflowScroll(); css.style("#body .ARichtextViewEditWidget-viewer div.toc").border(1, cPagePanelBorder).background("#EEE") - .floatRight().padding(10, 10, 3, 5).margin(10); + .floatRight().padding(10, 10, 3, 5).margin(10); css.style("#body .ARichtextViewEditWidget-editor").border(1, cPagePanelBorder); css.style("#body .ARichtextViewEditWidget-editor .html-editor-toolbar").displayNone(); css.style("#body .AEditableTextareaWidget-editorPanel").width100(); css.style("#body .Integer-editor").width(10, "%"); css.style("#body .AViewEditWidget-error").color(cError).background(cErrorBackground).border(1, cError) - .margin(2).padding(2); + .margin(2).padding(2); css.style("#body .data-table").borderCollapseCollapse(); css.style("#body .data-table td").border(1, "#ccc").padding(5); css.style("#body .data-table th").border(1, "#ccc").padding(5).fontWeightBold().textAlignCenter() - .background("#eee"); + .background("#eee"); css.style("#body .AIntegerViewEditWidget .gwt-Button").padding(0, 3, 0, 3).fontSize(fontSizeSmall); @@ -194,11 +194,11 @@ public void buildCss(CssBuilder css) { css.style("#body .EstimationBarWidget-bar1").background(cEstimationBar1).lineHeight(1).fontSize(1); css.style("#body .SprintBorderIndicatorWidget-certain").background(cPagePanelHeaderBackground) - .color(cPagePanelHeader).border(1, cPagePanelBorder).textAlignCenter().borderRadius(10) - .fontSize(fontSizeSmall).margin(3, 100, 3, 100); + .color(cPagePanelHeader).border(1, cPagePanelBorder).textAlignCenter().borderRadius(10) + .fontSize(fontSizeSmall).margin(3, 100, 3, 100); css.style("#body .SprintBorderIndicatorWidget-uncertain").background(cPagePanelHeaderBackground).colorGray() - .border(1, cPagePanelBorder).textAlignCenter().borderRadius(10).fontSize(fontSizeSmall) - .margin(3, 100, 3, 100); + .border(1, cPagePanelBorder).textAlignCenter().borderRadius(10).fontSize(fontSizeSmall) + .margin(3, 100, 3, 100); css.style("#body ul.toc");// .displayInline().floatRight(); @@ -209,13 +209,13 @@ public void buildCss(CssBuilder css) { css.style("#body .CreateTaskButtonWrapper").marginTop(5); css.style("#body .CreateTaskButtonWrapper .ButtonWidget .gwt-Button").fontSize(fontSizeSmall).margin(0) - .padding(1); + .padding(1); css.style("#body .CreateStoryButtonWidget").marginTop(1).width(140); css.style("#body .CreateStoryButtonWidget-dragHandle").marginTop(0).width(40).colorBlack(); css.style("#body .ReleaseWidget-script-running").fontFamilyMonospace().overflowHidden().color("red") - .fontWeightBold().textDecorationBlink(); + .fontWeightBold().textDecorationBlink(); css.style("#body .ReleaseWidget-script-ok").fontFamilyMonospace().overflowHidden(); css.style("#body .ReleaseWidget-script-empty").fontFamilyMonospace().overflowHidden(); css.style("#body .ReleaseWidget-script-failed").fontFamilyMonospace().overflowHidden().color("red"); @@ -228,14 +228,14 @@ private void loginPage(CssBuilder css) { css.style(".loginPage a").color("moccasin"); css.style(".loginPage code").color("#FFA"); css.style(".loginPage .panel").background(cHeaderBackground).width(380).margin("50px auto").padding(20) - .borderRadius(15); + .borderRadius(15); css.style(".loginPage .panel img").marginBottom(-20); css.style(".loginPage .message").color("gold").fontWeightBold().marginBottom(10).fontSize(fontSizeTitle); String labelColor = Colors.lighten(Colors.lighten(Colors.lighten(cHeaderBackground))); css.style(".loginPage .inputButton, .loginPage a.openid .button").background(Colors.darken(cHeaderBackground)) - .border(1, cPagePanelBorder).borderRadius(5).color(labelColor).fontWeightBold().padding(1, 10) - .cursorPointer().textShadow(-1, -1, 0, "#444"); + .border(1, cPagePanelBorder).borderRadius(5).color(labelColor).fontWeightBold().padding(1, 10) + .cursorPointer().textShadow(-1, -1, 0, "#444"); css.style(".loginPage .inputButton").marginRight(10); css.style(".loginPage a.openid .button").margin(0, 5, 5, 0).floatLeft(); css.style(".loginPage input:hover.inputButton, .loginPage a.openid:hover .button").color( @@ -245,7 +245,7 @@ private void loginPage(CssBuilder css) { css.style(".loginPage .panel label").color(labelColor).marginRight(5); css.style(".loginPage .panel .optionalLabel label").color(Colors.lighten(cHeaderBackground)); css.style(".loginPage h2").color("#fff").margin(30, 0, 20, 0).fontSize(fontSizeTitle + 4) - .textShadow(1, 1, 0, "#222"); + .textShadow(1, 1, 0, "#222"); css.style(".loginPage input").marginBottom(5); css.style("#username, #email, #password").width(150).marginRight(10); css.style("#openid").width(309).marginRight(10); @@ -257,47 +257,47 @@ private void loginPage(CssBuilder css) { private void planningPoker(CssBuilder css) { css.style("#body .PlanningPokerWidget-table-border").background("#333").border(2, "#2A2A2A").padding(12) - .borderRadius(60).marginBottom(10); + .borderRadius(60).marginBottom(10); css.style("#body .PlanningPokerWidget-table").border(2, "#2A2A2A").borderRadius(45) - .background("#5A5 url(pokertable_bg.jpg)").padding(40); + .background("#5A5 url(pokertable_bg.jpg)").padding(40); css.style("#body .PlanningPokerWidget-table-branding").color(cPlanningPokerTableLines) - .fontFamily("Times New Roman").fontWeightBold().fontSize(30).textAlignCenter().marginBottom(30); + .fontFamily("Times New Roman").fontWeightBold().fontSize(30).textAlignCenter().marginBottom(30); css.style( - "#body .PlanningPokerWidget-table .gwt-Hyperlink, .PlanningPokerWidget-table a, .PlanningPokerTableWidget-estimationHelp ul li a.reference") + "#body .PlanningPokerWidget-table .gwt-Hyperlink, .PlanningPokerWidget-table a, .PlanningPokerTableWidget-estimationHelp ul li a.reference") .color(cPlanningPokerTableLines); int cardWidth = 40; int cardHeight = 60; css.style("#body .PlanningPokerCardSlotWidget-slot").width(cardWidth - 8).height(cardHeight - 8) - .border(5, "solid", cPlanningPokerTableLines).borderRadius(5); + .border(5, "solid", cPlanningPokerTableLines).borderRadius(5); css.style("#body .PlanningPokerCardSlotWidget-text").color(cPlanningPokerTableLines).fontSize(fontSizeSmall) - .textAlignCenter(); + .textAlignCenter(); css.style("#body .PlanningPokerCardWidget").borderRadius(5).width(cardWidth).height(cardHeight) - .background("#FFF").border(1, "#333"); + .background("#FFF").border(1, "#333"); css.style("#body .PlanningPokerCardWidget-clickable").cursorPointer(); css.style("#body .PlanningPokerCardWidget-text").fontSize(23).lineHeight(60).fontFamily("Times New Roman") - .textAlignCenter(); + .textAlignCenter(); css.style("#body .PlanningPokerCardWidget-back").height100() - .background(cHeaderBackground + " url(pokercard_bg.jpg)"); + .background(cHeaderBackground + " url(pokercard_bg.jpg)"); } private void calendar(CssBuilder css) { css.style(".DateSelectorWidget").background("white").textAlignCenter().border(1, "white"); css.style(".DateSelectorWidget-weekday").background("white").textAlignCenter().color(cBlockHeaderCellSecondary) - .border(1, "white"); + .border(1, "white"); css.style(".DateSelectorWidget-weeknumber").background("white").color(cBlockHeaderCellSecondary).width(20) - .border(1, "white"); + .border(1, "white"); css.style(".DateSelectorWidget-spacer").background("white").textAlignCenter().height(20) - .border(1, "solid", "white"); + .border(1, "solid", "white"); css.style(".DateSelectorWidget-selected").background(cNavigatorHoverItemBackground).textAlignCenter() - .border(1, cNavigatorHoverItemBackground); + .border(1, cNavigatorHoverItemBackground); css.style(".DateSelectorWidget-visible").background(cBackground).textAlignCenter() - .border(1, "solid", cBackground); + .border(1, "solid", cBackground); css.style(".DateSelectorWidget-today").border(1, cNavigatorSelectedItemBackground); css.style(".DateSelectorWidget-events").color("red").fontSize(fontSizeSmall).lineHeight(lineHeightSmall) - .textAlignCenter(); + .textAlignCenter(); css.style(".DayListWidget-date").color(cBlockHeaderCellSecondary); css.style(".DayListWidget-date-info").padding(2); css.style(".DayListWidget-week").color(cBlockHeaderCellSecondary); @@ -306,7 +306,7 @@ private void calendar(CssBuilder css) { private void dashboard(CssBuilder css) { css.style( - ".TeamTasksWidget, .UpcomingTasksWidget, .AcceptedIssuesWidget, .OpenImpedimentsWidget, .HighestRisksWidget, .LatestEventsWidget td") + ".TeamTasksWidget, .UpcomingTasksWidget, .AcceptedIssuesWidget, .OpenImpedimentsWidget, .HighestRisksWidget, .LatestEventsWidget td") .lineHeight(lineHeight + 4); css.style(".TeamTasksWidget-user").borderTop(1, cBlockHeaderBackground).margin(3, 0); css.style(".TeamTasksWidget").borderBottom(1, cBlockHeaderBackground); @@ -316,20 +316,7 @@ private void dashboard(CssBuilder css) { } private void whiteboard(CssBuilder css) { - String cOpen = "#f99"; - css.style(".WhiteboardWidget-open").borderTop(3, cOpen); - String cOwned = "#ff9"; - css.style(".WhiteboardWidget-owned").borderTop(3, cOwned).padding(0, 1, 0, 1); - String cDone = "#9e9"; - css.style(".WhiteboardWidget-done").borderTop(3, cDone); - // int pad = 3; - // css.style(".WhiteboardWidget-open").padding(pad, pad, pad, pad).background("#fff5f5"); - // css.style(".WhiteboardWidget-owned").padding(pad, pad, pad, pad).background("#fffff5"); - // css.style(".WhiteboardWidget-done").padding(pad, pad, pad, pad).background("#f5fff5"); css.style(".WhiteboardWidget-columnLabel").fontSize(fontSizeTitle).lineHeight(lineHeightTitle); - css.style(".WhiteboardWidget-columnLabel-open").borderTop(3, cOpen); - css.style(".WhiteboardWidget-columnLabel-owned").borderTop(3, cOwned); - css.style(".WhiteboardWidget-columnLabel-done").borderTop(3, cDone); css.style(".WhiteboardWidget-requirement-list").padding(0).paddingTop(10); } @@ -343,31 +330,31 @@ private void ilarkesto(CssBuilder css) { css.style("#body .floatClear").clearBoth(); css.style("#body .BugMarker").border(1, cError).background(cErrorBackground).color(cError).displayBlock() - .margin(3).padding(3).fontWeightBold().fontSize(fontSizeSmall); + .margin(3).padding(3).fontWeightBold().fontSize(fontSizeSmall); css.style("#body .Tooltip").background(cUserguideBackground).color(cUserguide).padding(10) - .border(1, cUserguideBorder).maxWidth(400); + .border(1, cUserguideBorder).maxWidth(400); css.style("#body .DropdownMenuButtonWidget .gwt-MenuBar-horizontal").paddingLeft(1).border(1, cPagePanelBorder); css.style("#body .DropdownMenuButtonWidget .gwt-MenuBar-horizontal td").fontSize(fontSizeSmall) - .lineHeight(lineHeightSmall).padding(0, 3, 0, 3).whiteSpaceNowrap().cursorPointer(); + .lineHeight(lineHeightSmall).padding(0, 3, 0, 3).whiteSpaceNowrap().cursorPointer(); css.style("#body .DropdownMenuButtonWidget .gwt-MenuItem-selected").backgroundNone(); } private void gwt(CssBuilder css) { css.style("#body .gwt-Hyperlink a").whiteSpaceNowrap(); css.style("#body .gwt-Button").fontFamily(fontFamily).fontSize(fontSize).fontWeightBold().color(cButtonText) - .padding(2).margin(0).whiteSpaceNowrap().border(1, cButtonBorder); + .padding(2).margin(0).whiteSpaceNowrap().border(1, cButtonBorder); css.style("#body .gwt-Button:hover").color(cButtonTextHover).border(1, cButtonBorderHover); css.style("#body .gwt-Button[disabled], .gwt-Button[disabled]:hover").color(cButtonTextDisabled) - .border(1, "solid", cButtonBorderDisabled); + .border(1, "solid", cButtonBorderDisabled); css.style("#body .MenuItem-disabled").color(cButtonTextDisabled); } private void html(CssBuilder css) { css.html().padding(0).margin(0); css.style("#body").padding(0).margin(0).background(cBackground).fontFamily(fontFamily).fontSize(fontSize) - .lineHeight(lineHeight); + .lineHeight(lineHeight); css.style("#body table").borderCollapseCollapse(); css.style("#body td").verticalAlignTop().fontFamily(fontFamily).fontSize(fontSize).lineHeight(lineHeight); css.style("#body a").cursorPointer().color(cLink).textDecorationUnderline().outlineNone(); @@ -390,7 +377,7 @@ private void workspace(CssBuilder css) { css.style("#body .Workspace"); css.style("#body .Workspace-header").height(headerHeight).background(cHeaderBackground).positionFixed() - .width100(); + .width100(); css.style("#body .Workspace-sidebar").positionFixed(headerHeight + 10, 0).width(200).overflowAuto(); css.style("#body .Workspace-sidebar .PagePanel").padding(0); @@ -402,9 +389,9 @@ private void workspace(CssBuilder css) { css.style("#body .HeaderWidget-logo").marginLeft(5).marginRight(10); // .positionFixed().top(0).left(40).zIndex(100); css.style("#body .HeaderWidget-title").color(cHeaderText).fontSize(12).fontWeightBold().paddingLeft(5) - .paddingTop(3); + .paddingTop(3); css.style("#body .HeaderWidget-user").color(cHeaderText).fontSize(12).textAlignCenter().marginTop(3) - .marginRight(5); + .marginRight(5); css.style("#body .HeaderWidget .ToolbarWidget").background("none").margin(0).textAlignRight(); css.style("#body .HeaderWidget .ToolbarWidget .FloatingFlowPanel-element").floatRight(); css.style("#body .HeaderWidget a").color(cHeaderLink); @@ -412,12 +399,12 @@ private void workspace(CssBuilder css) { css.style("#body .StatusWidget").width(10).height(6).marginTop(8).borderRadius(1); css.style("#body .SearchInputWidget input").fontSize(fontSizeSmall).lineHeight(lineHeightSmall) - .margin(0, 10, 0, 10).padding(1); + .margin(0, 10, 0, 10).padding(1); } private void systemMessage(CssBuilder css) { css.style(".SystemMessageWidget-box").background(cErrorBackground).color(cError).border(1, cError).padding(10) - .marginBottom(10); + .marginBottom(10); css.style(".SystemMessageWidget-box-title").fontWeightBold().marginBottom(5); css.style(".SystemMessageWidget-box-time").fontStyleItalic().marginTop(5).textAlignRight(); } @@ -437,7 +424,7 @@ private void navigator(CssBuilder css) { css.style(".NavigatorWidget-head").borderBottom(1, cNavigatorSeparator).overflowHidden(); css.style(".NavigatorWidget-item-link").borderBottom(1, cNavigatorSeparator).overflowHidden(); css.style("#body .NavigatorWidget-item-link a").color(cNavigatorLink).displayBlock().padding(5, 3, 5, 3) - .textDecorationNone().overflowHidden(); + .textDecorationNone().overflowHidden(); css.style("#body .NavigatorWidget-item-link a:hover").background(cNavigatorHoverItemBackground); css.style("#body .NavigatorWidget-item-link-selected a").background(cNavigatorSelectedItemBackground); css.style("#body .NavigatorWidget-item-link-selected a:hover").background(cNavigatorSelectedItemBackground); @@ -447,33 +434,33 @@ private void navigator(CssBuilder css) { private void actions(CssBuilder css) { css.style(".ActionsPanel").background(cActionsBackground, "specialarea-bg.png", "repeat-x") - .border(1, cActionsBorder).padding(7).borderRadius(10); + .border(1, cActionsBorder).padding(7).borderRadius(10); css.style(".ProjectList").width100(); } private void userGuide(CssBuilder css) { css.style(".UserGuideWidget").color(cUserguide) - .background(cUserguideBackground, "specialarea-bg.png", "repeat-x").border(1, cUserguideBorder) - .borderRadius(10); + .background(cUserguideBackground, "specialarea-bg.png", "repeat-x").border(1, cUserguideBorder) + .borderRadius(10); css.style(".UserGuideWidget-header").padding(7); css.style(".UserGuideWidget-content").margin(0, 7, 7, 7).paddingTop(7).borderTop(1, cUserguideBorder) - .columnWidth(310).columnGap(25).textAlignJustify(); + .columnWidth(310).columnGap(25).textAlignJustify(); css.style("#body .UserGuideWidget-content table").width100().marginBottom(10); css.style("#body .UserGuideWidget-content table td").fontSize(fontSizeSmall); css.style("#body .UserGuideWidget-content table td.headerCell").background(cUserguideTableHeaderBackground) - .fontWeightBold(); + .fontWeightBold(); } private void comments(CssBuilder css) { css.style("#body .CommentsWidget").background(cCommentsBackground, "specialarea-bg.png", "repeat-x") - .border(1, cCommentsBorder).padding(7).borderRadius(10); + .border(1, cCommentsBorder).padding(7).borderRadius(10); css.style("#body .CommentsWidget-pageNavigator").borderTop(1, cPagePanelBorder).paddingTop(3); css.style("#body .CommentsWidget-pageNavigator-currentPage").border(1, cPagePanelBorder).padding(1, 5) - .background(Colors.darken(cCommentsBackground)); + .background(Colors.darken(cCommentsBackground)); css.style("#body .CommentsWidget-pageNavigator-page a").displayBlock().border(1, cPagePanelBorder) - .padding(1, 5).textDecorationNone().fontWeightBold(); + .padding(1, 5).textDecorationNone().fontWeightBold(); css.style(".CommentsWidget-pageNavigator-page-disabled").displayBlock().border(1, cPagePanelBorder) - .padding(1, 5).textDecorationNone().fontWeightBold().color(cPagePanelBorder); + .padding(1, 5).textDecorationNone().fontWeightBold().color(cPagePanelBorder); css.style("#body .CommentsWidget .AViewEditWidget-viewer").padding(0); css.style("#body .CommentsWidget .AViewEditWidget-viewer-editable").padding(3); @@ -489,7 +476,7 @@ private void comments(CssBuilder css) { private void changeHistory(CssBuilder css) { css.style(".ChangeHistoryWidget").background(cChangesBackground, "specialarea-bg.png", "repeat-x") - .border(1, cChangesBorder).padding(7).borderRadius(10); + .border(1, cChangesBorder).padding(7).borderRadius(10); css.style(".ChangeWidget").margin(15, 0, 10, 0).borderTop(1, cPagePanelBorder); css.style(".ChangeWidget-header").margin(4, 0, 2, 0); css.style(".ChangeWidget-header-author").floatLeft().marginRight(5); @@ -503,27 +490,27 @@ private void changeHistory(CssBuilder css) { private void blockList(CssBuilder css) { css.style("#body .ABlockWidget-extended").border(2, cBlockSelectionBorder).padding(3).backgroundWhite(); css.style("#body .ABlockWidget-body").padding(10).border(1, cBlockHeaderBackground) - .background(cBlockBackground); + .background(cBlockBackground); // css.style(".BlockListWidget").border(1, "yellow").minHeight(50, "px"); css.style("#body .BlockHeaderWidget").background(cBlockHeaderBackground, "blockheader-bg.png", "repeat-x"); css.style("#body .BlockHeaderWidget:hover").background(cBlockHeaderHoverBackground); css.style("#body .BlockHeaderWidget-dragHandle, .CreateStoryButtonWidget-dragHandle").margin(2).padding(2) - .fontSize(fontSize - 1).lineHeight(lineHeight - 2).textAlignCenter() - .background(cBlockHeaderDragHandleBackground, "blockdraghandle-bg.png").border(1, cNavigatorSeparator) - .borderRadius(5); + .fontSize(fontSize - 1).lineHeight(lineHeight - 2).textAlignCenter() + .background(cBlockHeaderDragHandleBackground, "blockdraghandle-bg.png").border(1, cNavigatorSeparator) + .borderRadius(5); css.style("#body .BlockHeaderWidget-anchor").displayBlock().floatLeft().width100().textDecorationNone(); css.style("#body .BlockHeaderWidget-dragHandle:hover").background("white", "blockdraghandle-hover-bg.png"); css.style("#body .BlockHeaderWidget-cell").fontWeightBold().color(cHeaderBackground).padding(4, 5, 0, 5); css.style("#body a.BlockHeaderWidget-anchor:hover, a.BlockHeaderWidget-anchor:visited") - .color(cHeaderBackground); + .color(cHeaderBackground); css.style( - "#body .BlockHeaderWidget-cell-secondary, a.BlockHeaderWidget-cell-secondary:visited, a.BlockHeaderWidget-cell-secondary:hover") + "#body .BlockHeaderWidget-cell-secondary, a.BlockHeaderWidget-cell-secondary:visited, a.BlockHeaderWidget-cell-secondary:hover") .color(cBlockHeaderCellSecondary).fontWeightNormal(); css.style( - "#body .BlockHeaderWidget-cell-small, a.BlockHeaderWidget-cell-small:visited, a.BlockHeaderWidget-cell-small:hover") + "#body .BlockHeaderWidget-cell-small, a.BlockHeaderWidget-cell-small:visited, a.BlockHeaderWidget-cell-small:hover") .color(cBlockHeaderCellSecondary).fontSize(fontSizeSmall).fontWeightNormal().paddingTop(6); css.style("#body .BlockHeaderWidget .ButtonWidget").padding(2, 5, 0, 5).margin(0); @@ -542,7 +529,7 @@ private void userStatus(CssBuilder css) { css.style("#body .UserStatusWidget").padding(3).borderTop(1, cNavigatorSeparator); css.style("#body .UserStatusWidget-name").floatLeft().textDecorationLineThrough().fontStyleItalic() - .cursorPointer(); + .cursorPointer(); css.style("#body .UserStatusWidget-name-online").textDecorationNone().fontStyleNormal(); css.style("#body .UserStatusWidget-selectedEntities a").fontFamilyMonospace(); css.style("#body .UserStatusWidget-selectedEntities").floatRight().fontSize(fontSizeSmall + 1); @@ -553,7 +540,7 @@ private void pagePanel(CssBuilder css) { css.style("#body .PagePanel");// .padding(10); css.style("#body .PagePanel-content").background("white").border(1, cPagePanelBorder); css.style("#body .PagePanel-header").padding(6, 10, 6, 10).fontSize(fontSizeTitle).lineHeight(lineHeightTitle) - .background(cPagePanelHeaderBackground, "page-header-bg.png").color(cPagePanelHeader); + .background(cPagePanelHeaderBackground, "page-header-bg.png").color(cPagePanelHeader); css.style("#body .PagePanel-header .gwt-Button").fontSize(fontSizeSmall); css.style("#body .PagePanel-header input").fontSize(fontSizeSmall); css.style("#body .PagePanel-header .gwt-Hyperlink").fontSize(fontSizeSmall);