Skip to content

Commit

Permalink
gs-reactor: Rewrite GSResponsive with new framework version
Browse files Browse the repository at this point in the history
  • Loading branch information
fducroquet committed Oct 11, 2016
1 parent 557e181 commit 5cd26c0
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.genericsystem.reactor.gscomponents3;

import org.genericsystem.reactor.Tag;
import org.genericsystem.reactor.annotations.Styles.FlexDirectionStyle;
import org.genericsystem.reactor.annotations.Styles.Style;
import org.genericsystem.reactor.gscomponents.FlexDirection;
import org.genericsystem.reactor.gscomponents.GSDiv;

@FlexDirectionStyle(FlexDirection.ROW)
@Style(name = "flex-wrap", value = "wrap")
public class Responsive extends GSDiv {
@Override
public void init() {
for (Tag tag : getObservableChildren()) {
tag.addStyle("margin", "10px");
tag.addStyle("padding", "10px");
tag.addStyle("border-radius", "10px");
tag.addStyle("background-color", "white");
tag.addStyle("min-width", "10cm");
}
}
}

0 comments on commit 5cd26c0

Please sign in to comment.