Loading...

Top
PFQ Banner

This is PokéFarm Q, a free online Pokémon collectables game.

Already a user? New to PFQ?

Site Skins: How-To, and Helpful CSS

Forum Index > PokéFarm > Guides >

Pages: 123··· 169170171172173··· 403404405

Crazy's AvatarCrazy
Crazy's Avatar
Is there anyway I could hide the particular badge upgrade boxes on the wishforge page? I want to hide all the wishalloy ones so I can clearly see ones I'm actively working on
Avatar made circe ^^ Help with some research?

QUOTE originally posted by AuracleOfBacon

Does anybody know of a CSS that turns one kind of minispirte into another when hovered, ie. a Spectral Leiomano into a Marshadow when hovered over? I can see this not going well with mobile users if not coded correctly, but I can see this being useful for a bunch of Type Race Skins I made Speaking of minisprites, is there a code, similar to the Type Race Egg Highlight codes, but for Summon Item minisprites?
I think this was overlooked? I'm sorry if I sound impatient

Current Type Race Score: 0

Even if I'm offline for an extended period of time, that does not mean I lose intrest.
70% of the world thinks Warrior Cats is stupid. 25% say: "Who cares?". Repost if you are part of that 5% that would take a hard cover copy of Warrior Cats and slap the other people saying: "STARCLAN IS OUT FOR REVENGE!”
Avatar is by me Please visit the Vivillon Breeders' Directory to see which users hatch which Vivillon Pattern, or the Maravol Breeders' Directory for the Maravol patterns. Consider joining the Mythbusters PFQ Division! My Hero Academia: Wider World is looking for peospective students!
eura's Avatareura
eura's Avatar

QUOTE originally posted by AuracleOfBacon

Does anybody know of a CSS that turns one kind of minispirte into another when hovered, ie. a Spectral Leiomano into a Marshadow when hovered over? I can see this not going well with mobile users if not coded correctly, but I can see this being useful for a bunch of Type Race Skins I made Speaking of minisprites, is there a code, similar to the Type Race Egg Highlight codes, but for Summon Item minisprites?
there's probably a simpler way to do the hovers but eh

[style] img[src*="summon image code"]{ border-radius: 50px; box-shadow: 0px 0px 0px 5px @col-border1; padding: 2px;} [/style]

[style] .hover{ height:30px; width:30px; background: url("summon image url") no-repeat; } .hover:hover { height:30px; background: url("pokemon image url") no-repeat; } [/style] [sc=hover] [/sc]

QUOTE originally posted by DrWho

I think the problem is `#field_nav > button:nth-child(3)`. When you move a pokemon the 3rd button gets wrapped by a div.dragmask so you're no longer selecting the button w/ the field name and it shows in its full size. But I'm not sure why it stays when you're done moving the Pokemon, maybe a differnet part of your code causes that. How about confining the entire #field_nav to a certain height instead? #field_nav {height:32px; white-space: nowrap; overflow: hidden;}
Thank you for the suggestion, but I'm still having the same issue. In addition, on mobile the field names are cut off because they flow off-screen with this change.
image is official pokemon art; icon is official from witch's heart
silver ☀ he/they/pup ☀ 28
DrWho's AvatarDrWho
DrWho's Avatar
thanks for the reply susie. on a clean skin (no other css active) this seems to do the job button[data-action='jump'] { white-space: nowrap; } could you try this and let us know how it goes? if there's still issues maybe post your whole css to see if a different part conflicts with it?
also, an alternative solution to the hover to change image. the advantage is you only need one block of css and can for any number of items

Code

[sc=change][item=Ancient Drive][pkmn=Genesect][/sc] [sc=change][item=Azure Flute][pkmn=Arceus][/sc] [style] .change { display: inline-grid; grid-template-areas: 1fr 1fr; align-items: center; img { z-index: 1; grid-area: ~"1 / 1"; opacity: 0; } img:first-of-type { opacity: 1; } &:hover > img:first-of-type { opacity: 0; } &:hover > img:last-of-type { opacity: 1; } } [/style]
Avatar by Kaelwolfur. Sent from my PokéNav
Gracidea's AvatarGracidea
Gracidea's Avatar
Howdy y'all! I'm wondering if there's a css code I could use to change the notification noise to something like a Solgaleo call rather than a Absol call? If it's not possible then I'll be fine haha
Yo, I’m Gracie, and this is Disney channel. Local Shaymin hoarder and rpg fan. Credits
Signature by CatEnergetic,with help from Wardove.Official Pokemon Gif
Rory's AvatarRory
Rory's Avatar
I have this one that changes the notifs icon to an image when there are no notifs and to another when there are:

#notifs > a > img { opacity: 0; } /*No notifications*/ #notifs > a[data-count='0'] { background-image: url('IMAGE1'); } /*Notifications available*/ #notifs > a { background-image: url('IMAGE2'); background-position: center center; background-size: cover; background-repeat: no-repeat; }
I want to add something for the noise too to this, it's possible?
img official by Honkai Impact 3rd
DrWho's AvatarDrWho
DrWho's Avatar
The short answer: With CSS you cannot change the sound. For the notification, an audio player loads the absol cry i.e. <audio src='absol.mp3' type='audio/mpeg'></audio> and triggers a play when appropriate. With javascript you could change the 'src' attribute to play a different file, like the pidgey cry hosted on pokemon showdown:
let notifPlayer = document.querySelector('#notification_sound') notifPlayer.src = 'https://play.pokemonshowdown.com/audio/cries/pidgey.mp3'
but this won't work. for security reasons you can only play online mp3 files when they're hosted by Pokefarm. So your browser will refuse to load the file.
As a workaround however, you can play raw bytes. You can convert your custom notification sound to raw bytes. An example snippet to do this in python:
import base64 data = open('pidgey.mp3', 'rb').read() result = base64.b64encode(data).decode('ascii') print(result)
This will give you a long, base-64 encoded string like
//tQxAAAB
... (I only pasted the first few characters here, the triple dots are not part of the string). Then you can replace the 'src' attribute with
data:audio/mpeg;base64,//tQxAAAB
... in Javascript. Full code snippet to do this: (it's very long because it contains the pidget cry encoded in base 64):

Code

let notifPlayer = document.querySelector('#notification_sound') notifPlayer.src='data:audio/mpeg;base64,//tQxAAAB1QDLZQRgAHWpihzGIAAJBJIDoCwECD5uD7y4nBwEDHE+CYPh/BB3+Jw/rB/5QEw/nygIBiXD//EDvEBnlwQBAEHfqBA5y7/4P3W5/6W1ySdc0yKqDycJzomHLCRgc8iJMCZQMj9QqHMQKC4fECdzhoi4sMMLPFBgTCMLTQ6kYPFq+hSnRXLKijDqa0Ir8l3cjMLk91hHrWnH8o6ND73UxWtXF7s9cTEzt9zaNNX8S721ZIfYEgxefX3JLWaL3LVh4yJdWU+6QU8Kf/7UsQFAAq8bUXdhIABlSxo+p4wAAgj7lw84AiKErfqLSiCXhrXKOrKxWFCAgiu5ucHb29hKpyupX/TG2t17m84B1yDBhImfE4UaK8Y+LLexG5wVeAN7qvC9uIDDVyXVzRy60jqhDUqDCMsw3jyNCVVMqeP+RgXK6jMTjDHCCAAQHN3JIqV300QOSDobg9hgMDompXP451abWtkSL1UL4R6llNL//xL+RwjOmXZznoe93L/2sNCn+Y4hIuRF/5ml3SuHfq/9CrWa3TS9ut5Itxt//tSxAUAC3jhj7hlkhGApzA/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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+1LEiIAJZGkZIIxSgSuo2lgwCYhVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQ=='
sorry this is stupidly complicated but i don't think you can get around the extra step of converting the audio files to raw bytes.
Soul's AvatarSoul
Soul's Avatar
Hello! I apologize if this has been asked before, but is there any way of changing the background on the Shelter page (the grassy background) with CSS? I have a night mode based theme, and so, the Shelter is a bit of an eyesore due to the brightness. Thank you in advance.
Perhaps returning? Avatar (c) Splatoon/Nintendo (In-game/Promotional Screenshot)
Vixony An's AvatarVixony An
Vixony An's Avatar
Is there a way to make the shelter alert about legendaries, ditto, pfq fakemon, exclusives and variants including their eggs?

Pages: 123··· 169170171172173··· 403404405

Cannot post: Please log in to post

© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page