improved css
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.srsoftware</groupId>
|
<groupId>de.srsoftware</groupId>
|
||||||
<artifactId>web4rail</artifactId>
|
<artifactId>web4rail</artifactId>
|
||||||
<version>1.2.27</version>
|
<version>1.2.28</version>
|
||||||
<name>Web4Rail</name>
|
<name>Web4Rail</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<description>Java Model Railway Control</description>
|
<description>Java Model Railway Control</description>
|
||||||
|
|||||||
@@ -7,7 +7,10 @@ html{
|
|||||||
}
|
}
|
||||||
body{
|
body{
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
background: rgb(198,219,210);
|
background-size: 30px 30px;
|
||||||
|
background-image:
|
||||||
|
linear-gradient(to right, grey 1px, transparent 1px),
|
||||||
|
linear-gradient(to bottom, grey 1px, transparent 1px);
|
||||||
}
|
}
|
||||||
button{
|
button{
|
||||||
border: 1px solid blue;
|
border: 1px solid blue;
|
||||||
@@ -36,11 +39,14 @@ button{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tile{
|
.tile{
|
||||||
border: 1px solid black;
|
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tile.fill{
|
||||||
background: white;
|
background: white;
|
||||||
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.crossH{
|
.crossH{
|
||||||
|
|||||||
@@ -32,13 +32,6 @@ public class TextDisplay extends StretchableTile {
|
|||||||
return super.load(json);
|
return super.load(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Tag tag(Map<String, Object> replacements) throws IOException {
|
|
||||||
if (isNull(replacements)) replacements = new HashMap<String, Object>();
|
|
||||||
replacements.put("%text%",text);
|
|
||||||
return super.tag(replacements);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Window properties(List<Fieldset> preForm, FormInput formInputs, List<Fieldset> postForm) {
|
protected Window properties(List<Fieldset> preForm, FormInput formInputs, List<Fieldset> postForm) {
|
||||||
formInputs.add(t("Text"),new Input(TEXT, text));
|
formInputs.add(t("Text"),new Input(TEXT, text));
|
||||||
@@ -61,6 +54,15 @@ public class TextDisplay extends StretchableTile {
|
|||||||
protected String stretchType() {
|
protected String stretchType() {
|
||||||
return t("Width");
|
return t("Width");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Tag tag(Map<String, Object> replacements) throws IOException {
|
||||||
|
if (isNull(replacements)) replacements = new HashMap<String, Object>();
|
||||||
|
replacements.put("%text%",text);
|
||||||
|
Tag tag = super.tag(replacements);
|
||||||
|
return tag.clazz(tag.get("class")+" fill");
|
||||||
|
}
|
||||||
|
|
||||||
public TextDisplay text(String tx) {
|
public TextDisplay text(String tx) {
|
||||||
text = tx;
|
text = tx;
|
||||||
|
|||||||
Reference in New Issue
Block a user