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