to the block style. you can add the configuration like this:`
const config = {
"div#article":{
type:'text',
style:'radius:50%'
children:{
"a":{
type:"block",
}
}
},
}
`If you want to configure all the a tags in the article tag
For the second, you can config what is your cursor look like.
My Usage
`js
import init from "https://unpkg.com/ipad-cursor-hexo@latest";import { config, cursorConfig } from "./config.js"
const effect = () => {
document.querySelector('img').style.userSelect = 'none'
}
document.addEventListener('DOMContentLoaded', () => init(config, cursorConfig));
`Notice
In hexo, some tags are very difficult to locate with id or class, like:
or
`html
`For the former, you have to add
id locator into the .swig file (you can use global search in vscode to find them).For the later, you can use a special selector that we support, like
"div#menu-container>ul#menu":`js
const config = {
"div#menu-container>ul#menu":{
type:'block'
}
}
``Case
Reference
Great thanks for @CatsJuice, and this great project ipad-cursor.
Ref:
- 🔥:ipad-cursor
- 🔥:oooo.so🔥
- 🔥:ipad-cursor.oooo.so🔥

