瀏覽代碼

Fix tags style

Using `flex` works much better because we don't have to account for the
margin of the following element being shortened.
Lucas Stadler 9 年之前
父節點
當前提交
75c027dfce
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      go/blog/blog.go

+ 2 - 4
go/blog/blog.go

@ -41,8 +41,7 @@ var dataPath string = "blog.yaml"
41 41
42 42
var defaultStyle = `
43 43
article {
44
	margin-bottom: 2em;
45
	clear: left;
44
	margin-bottom: 1em;
46 45
}
47 46
48 47
article header {
@ -77,12 +76,12 @@ article img {
77 76
}
78 77
79 78
.tags {
79
	display: flex;
80 80
	list-style-type: none;
81 81
	padding: 0;
82 82
}
83 83
84 84
.tags .tag-link {
85
	float: left;
86 85
	color: black;
87 86
	margin-right: 0.5em;
88 87
}
@ -99,7 +98,6 @@ article.does-not-match {
99 98
	color: #555;
100 99
	font-size: smaller;
101 100
	margin-bottom: 1em;
102
	clear: left;
103 101
}
104 102
`
105 103