diff --git a/templates/index.tmpl b/templates/index.tmpl index 8b29762..16a1f61 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -30,167 +30,203 @@ visibility: visible; display: inline-block; } + + @media only screen and (max-width: 900px) { + .level-item { + justify-content: unset + } + + table#cards td { + display: none; + } + table#cards th { + display: none; + } + table#cards th:nth-child(1) { + display: revert; + } + table#cards th:nth-child(2) { + display: revert; + } + table#cards th:nth-child(4) { + display: revert; + } + table#cards th:nth-child(5) { + display: revert; + } + table#cards th:nth-child(9) { + display: revert; + } + + table#cards td:nth-child(1) { + display: revert; + } + table#cards td:nth-child(2) { + display: revert; + } + table#cards td:nth-child(4) { + display: revert; + } + table#cards td:nth-child(5) { + display: revert; + } + table#cards td:nth-child(9) { + display: revert; + } + } - -
-- {{ .title }} -
-- Magic: The Gathering Collection -
-| # | -Name | -Type | -Set | -C | -Rar | -$ | -$* | -€ | -€* | -
|---|---|---|---|---|---|---|---|---|---|
| # | -Name | -Type | -Set | -C | -Rar | -$ | -$* | -€ | -€* | -
| {{.SerraCount}} | -
- {{.Name }}
-
-
- |
- {{.TypeLine}} | -{{.Set}} | -{{.CollectorNumber}} | -{{.Rarity}} | -{{.Prices.Usd}} | -{{.Prices.UsdFoil}} | -{{.Prices.Eur}} | -{{.Prices.EurFoil}} | -
+ {{ .title }} +
++ Magic: The Gathering Collection +
| # | +Name | +Type | +Set | +C | +Rar | +$ | +$* | +€ | +€* | +
|---|---|---|---|---|---|---|---|---|---|
| # | +Name | +Type | +Set | +C | +Rar | +$ | +$* | +€ | +€* | +
| {{.SerraCount}} | +
+ {{.Name }}
+
+
+ |
+ {{.TypeLine}} | +{{.Set}} | +{{.CollectorNumber}} | +{{.Rarity}} | +{{.Prices.Usd}} | +{{.Prices.UsdFoil}} | +{{.Prices.Eur}} | +{{.Prices.EurFoil}} | +