Skip to content

Commit 549317b

Browse files
committed
A bit of styling
1 parent 0385f1a commit 549317b

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<label>
1313
Word list (separated by commas or linebreaks)
1414
<br>
15-
<textarea style="width: 99%;" :rows="Math.max(listLength,2)" x-model="wordBox" @input="changeWordBox()"></textarea>
15+
<textarea placeholder="Add words here..." style="width: 99%;" :rows="Math.max(listLength,2)" x-model="wordBox" @input="changeWordBox()"></textarea>
1616
</label>
1717
</div>
1818
<br>
@@ -74,7 +74,7 @@
7474
<tbody>
7575
<template x-for="(word, index) in node.words">
7676
<tr x-show="word != ''">
77-
<td x-text="word"></td>
77+
<td class="wordhere" x-text="word"></td>
7878
<template x-for="(exists, index) in node.matrix[index]">
7979
<td class="pickercol" :class=" node.colors[index] + (hindex == index ? ' hovering' : '')" @click.stop="selectLetter(node, index)" @mouseenter="hindex = index" @mouseleave="hindex = -1">
8080
<template x-if="exists"><span>X</span></template>
@@ -119,7 +119,7 @@
119119
<tbody>
120120
<template x-for="(word, index) in node.words">
121121
<tr x-show="word != ''">
122-
<td x-text="word"></td>
122+
<td class="wordhere" x-text="word"></td>
123123
<template x-for="(exists, index) in node.matrix[index]">
124124
<td class="pickercol" :class="node.colors[index] + (hindex == index ? ' hovering' : '')" @click.stop="selectLetter(node, index)" @mouseenter="hindex = index" @mouseleave="hindex = -1">
125125
<template x-if="exists"><span>X</span></template>

main.css

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
1-
body{
1+
@media (min-width: 576px) {
2+
body {
3+
max-width: 510px;
4+
padding-right: 0;
5+
padding-left: 0;
6+
}
7+
}
8+
@media (min-width: 768px) {
9+
body {
10+
max-width: 700px;
11+
}
12+
}
13+
@media (min-width: 1024px) {
14+
body {
15+
max-width: 950px;
16+
}
17+
}
18+
@media (min-width: 1280px) {
19+
body {
20+
max-width: 1200px;
21+
}
22+
}
23+
@media (min-width: 1536px) {
24+
body {
25+
max-width: 1450px;
26+
}
27+
}
28+
body {
229
-webkit-print-color-adjust:exact !important;
330
print-color-adjust:exact !important;
31+
font-family: sans-serif;
32+
width: 100%;
33+
margin-right: auto;
34+
margin-left: auto;
435
}
536
th, td { border: 1px solid; vertical-align: top; }
637
table { border-collapse: collapse; border: 1px solid; }
@@ -15,6 +46,7 @@ table { border-collapse: collapse; border: 1px solid; }
1546
.picker { margin: 0.5em; }
1647
.gridclicky { place-content: center; padding: 1em; }
1748
.pickersum { font-weight: normal; }
49+
.wordhere { padding-left: 0.5em; }
1850
.dupewarn {
1951
border: 2px solid red;
2052
margin-bottom: 1em;

0 commit comments

Comments
 (0)