Explorar el Código

Add some default styles for mobile

Lucas Stadler %!s(int64=9) %!d(string=hace) años
padre
commit
51ccff3180
Se han modificado 1 ficheros con 25 adiciones y 0 borrados
  1. 25 0
      go/blog/blog.go

+ 25 - 0
go/blog/blog.go

@ -77,6 +77,7 @@ article img {
77 77
78 78
.tags {
79 79
	display: flex;
80
	flex-wrap: wrap;
80 81
	list-style-type: none;
81 82
	padding: 0;
82 83
}
@ -99,6 +100,30 @@ article.does-not-match {
99 100
	font-size: smaller;
100 101
	margin-bottom: 1em;
101 102
}
103
104
@media(max-width: 25em) {
105
	article h1 {
106
		margin-right: 0;
107
		text-align: center;
108
	}
109
110
	article header {
111
		flex-direction: column;
112
	}
113
114
	article header .permalink {
115
		visibility: visible;
116
	}
117
118
	article pre {
119
		white-space: pre-wrap;
120
	}
121
122
	iframe {
123
		max-width: 95vw;
124
	}
125
}
126
102 127
`
103 128
104 129
func init() {