Skip to content

Commit e8fac78

Browse files
author
Julia Rienitz
committed
styling improvements
1 parent debd234 commit e8fac78

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
<h1>DSA Würfel Tool</h1>
1515

1616
<h2>Attribute</h2>
17-
<ul>
17+
<ul id="attributes">
1818
<li v-for="attribute in myAttributes">
1919
{{ attribute.name }}: {{ attribute.value }}
2020
</li>
2121
</ul>
2222

2323
<h2>Fertigkeiten</h2>
24-
<ul>
24+
<ul id="skills">
2525
<li v-for="(skill, skillID) in skills">
2626
<button v-on:click="rollSkill(skillID)">
2727
{{ skill.name }} ({{ skill.attributes[0] }}/{{ skill.attributes[1] }}/{{ skill.attributes[2] }}) - {{ skill.value }}

style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,22 @@ h1, h2, h3 {
2020
padding-bottom: 20px;
2121
box-sizing: border-box;
2222
}
23+
#attributes {
24+
display: flex;
25+
list-style: none;
26+
margin: 20px 0;
27+
padding: 0;
28+
text-align: center;
29+
flex-wrap: wrap;
30+
}
31+
32+
#attributes li {
33+
margin: 0 10px;
34+
}
2335

36+
#skills {
37+
columns: 2;
38+
}
2439

2540
.green {
2641
color: green;

0 commit comments

Comments
 (0)