score and mobile
This commit is contained in:
@ -2,6 +2,16 @@
|
||||
@import "tailwindcss/components";
|
||||
@import "tailwindcss/utilities";
|
||||
|
||||
@layer utilities {
|
||||
.text-shadow {
|
||||
text-shadow: 2px 2px 4px #000;
|
||||
}
|
||||
|
||||
.text-outline {
|
||||
text-shadow: 2px 2px 2px #801B71, -2px 2px 2px #801B71, 2px -2px 2px #801B71, -2px -2px 2px #801B71;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
@apply overflow-hidden;
|
||||
}
|
@ -22,8 +22,18 @@ import {Socket} from "phoenix"
|
||||
import {LiveSocket} from "phoenix_live_view"
|
||||
import topbar from "../vendor/topbar"
|
||||
|
||||
let Hooks = {}
|
||||
Hooks.ChickenEgg = {
|
||||
mounted() {
|
||||
this.el.addEventListener("touchstart", _e => {
|
||||
this.pushEvent("boak", {})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
|
||||
let liveSocket = new LiveSocket("/live", Socket, {params: {_csrf_token: csrfToken}})
|
||||
let liveSocket = new LiveSocket("/live", Socket, {hooks: Hooks, params: {_csrf_token: csrfToken}})
|
||||
|
||||
// Show progress bar on live navigation and form submits
|
||||
topbar.config({barColors: {0: "#29d"}, shadowColor: "rgba(0, 0, 0, .3)"})
|
||||
|
Reference in New Issue
Block a user