@cssIndentedRegion(COLOR, BACKGROUND_COLOR, BORDER_COLOR, BORDER_WIDTH)

Creates a indented region having specific colors and border size.

The following parameters are recognized:

COLOR

The CSS color for text.

BACKGROUND_COLOR

The CSS color for the background.

BORDER_COLOR

The CSS color for the border.

BORDER_WIDTH

The CSS size of the border.

This macro is used to create a "indented box region" on the page. You get to specify the color of the text and background as well as the border color and size.

Example of using the macro:

.resultsSuccess {
  @cssIndentedRegion("black","#80ff80","@darkgray()","4px")
}

.resultsFailure {
  @cssIndentedRegion("black","yellow","@darkgray()","4px")
}

Assuming the com.ccg.macros.at.All class is within your CLASSPATH and the config/html.at macros file has been generated (Hint: run make atmacros in the wui directory), a developer should be able to run the above example by copy/pasting from below:

[root@probe root]# java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")

.resultsSuccess {
  @cssIndentedRegion("black","#80ff80","@darkgray()","4px")
}

.resultsFailure {
  @cssIndentedRegion("black","yellow","@darkgray()","4px")
}

EOF

This macro is defined as:

  color: @param(0);
  background-color: @param(1);
  width: 96%;
  text-align: left;
  border-style: solid;
  border-color: @param(2);
  border-width: @param(3);
  margin-top: 6px;
  margin-bottom: 6px;
  margin-left: auto;
  margin-right: auto;
  padding: 1%;