Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
75c027dfce
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2 4
      go/blog/blog.go

+ 2 - 4
go/blog/blog.go

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