35 lines
805 B
Java
35 lines
805 B
Java
package Classes.css.user;
|
|
|
|
import Classes.css.core.Context;
|
|
import Classes.css.core.Ruleset;
|
|
import javafx.scene.Node;
|
|
|
|
public class Header{
|
|
|
|
/* Builds all necessary CSS/layout rules */
|
|
public Header(Node target) throws Exception{
|
|
|
|
/* (1) Set rules */
|
|
Ruleset.load(target)
|
|
// .add("top", 0)
|
|
// .add("left", 0)
|
|
// .add("right", 0)
|
|
|
|
.add("min-height", Context.get("header-height"))
|
|
.add("pref-height", Context.get("header-height"))
|
|
.add("max-height", Context.get("header-height"))
|
|
|
|
.add("min-width", Context.get("screen-width"))
|
|
.add("pref-width", Context.get("screen-width"))
|
|
.add("max-width", Context.get("screen-width"))
|
|
|
|
.add("background-color", "#3f51b5")
|
|
|
|
// .add("border-width", "0 0 1 0")
|
|
// .add("border-color", "#3240a3")
|
|
|
|
.apply();
|
|
}
|
|
|
|
}
|