mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
css_utils.ts: Add statuspanel
rule
Related issue: https://github.com/tridactyl/tridactyl/issues/1284#issuecomment-459488419
This commit is contained in:
parent
bdaa65d216
commit
536dcb3abc
2 changed files with 19 additions and 2 deletions
|
@ -356,6 +356,13 @@ export async function guiset_quiet(rule: string, option: string) {
|
|||
* - top-left
|
||||
* - top-right
|
||||
*
|
||||
* - statuspanel (hoverlink + the indicator that appears when a website is loading)
|
||||
* - none
|
||||
* - left
|
||||
* - right
|
||||
* - top-left
|
||||
* - top-right
|
||||
*
|
||||
* If you want to use guiset in your tridactylrc, you might want to use [[guiset_quiet]] instead.
|
||||
*/
|
||||
//#background
|
||||
|
|
|
@ -36,6 +36,16 @@ export function findCssRules(
|
|||
*
|
||||
*/
|
||||
export const potentialRules = {
|
||||
statuspanel: {
|
||||
name: `#statuspanel`,
|
||||
options: {
|
||||
none: `display: none !important;`,
|
||||
right: `right: 0; display: inline;`,
|
||||
left: ``,
|
||||
"top-left": `top: 2em; z-index: 2; display: inline;`,
|
||||
"top-right": `top: 2em; z-index: 2; right: 0; display: inline;`,
|
||||
},
|
||||
},
|
||||
hoverlink: {
|
||||
name: `statuspanel[type="overLink"], #statuspanel[type="overLink"]`,
|
||||
options: {
|
||||
|
|
Loading…
Add table
Reference in a new issue