Skip to content

Commit 4d06cb4

Browse files
committed
fix: show a properly centered cloud of tags
The float left, irritatingly caused the items to pile up on the right side. This fixes this and produces a proper cloud. This fixes #311
1 parent 057f6e9 commit 4d06cb4

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

style.less

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -323,23 +323,27 @@ form.struct_newschema {
323323
}
324324

325325
.dokuwiki .structcloud {
326-
li {
327-
float: left;
328-
list-style: none;
329-
margin: 0 1em 0 0;
330-
padding: 0;
326+
ul {
327+
text-align: center;
331328

332-
.struct_color, .struct_media {
333-
a {
334-
display: block;
335-
height: 100%;
329+
li {
330+
list-style: none;
331+
margin: 0 1em 0 0;
332+
padding: 0;
333+
display: inline-block;
334+
335+
.struct_color, .struct_media {
336+
a {
337+
display: block;
338+
height: 100%;
339+
}
336340
}
337-
}
338341

339-
.struct_media a {
340-
background-size: cover;
341-
background-position: center;
342-
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.5)
342+
.struct_media a {
343+
background-size: cover;
344+
background-position: center;
345+
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.5)
346+
}
343347
}
344348
}
345349
}

0 commit comments

Comments
 (0)