Aumentar fuente de índice
This commit is contained in:
parent
b1e21c6d8d
commit
78f3e96aa6
|
@ -1,9 +1,9 @@
|
|||
package storage
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -16,15 +16,18 @@ const (
|
|||
jsTimeLayout = "2006-01-02 15:04:05"
|
||||
)
|
||||
|
||||
func (ct JSTime) UnmarshalJSON(b []byte) (err error) {
|
||||
return ct.UnmarshalParam(string(b))
|
||||
func (ct *JSTime) UnmarshalJSON(blob []byte) (err error) {
|
||||
var jsonString string
|
||||
if err = json.Unmarshal(blob, &jsonString); err == nil {
|
||||
err = ct.UnmarshalParam(jsonString)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (ct JSTime) UnmarshalParam(param string) (err error) {
|
||||
s := strings.Trim(param, `"`)
|
||||
func (ct *JSTime) UnmarshalParam(param string) (err error) {
|
||||
loc, _ := time.LoadLocation("Europe/Madrid")
|
||||
nt, err := time.ParseInLocation(jsTimeLite, s, loc)
|
||||
ct = JSTime(nt)
|
||||
nt, err := time.ParseInLocation(jsTimeLite, param, loc)
|
||||
*ct = JSTime(nt)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ body {
|
|||
transition: transform .1s;
|
||||
box-sizing: border-box;
|
||||
word-break: break-word;
|
||||
font-size: calc(0.5em + 1vw);
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
.elem:hover {
|
||||
|
@ -89,14 +89,14 @@ nav > a:hover {
|
|||
}
|
||||
@media screen and (max-width: 700px) {
|
||||
.elem {
|
||||
width: calc((100% - (5px * 6)) / 2);
|
||||
width: calc((100% - (5px * 4)) / 2);
|
||||
font-size: medium;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 320px) {
|
||||
.elem {
|
||||
width: 100%;
|
||||
display: block;
|
||||
font-size: calc(0.65em + 1vw);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue