encre_css/plugins/interactivity/appearance/
mod.rs

1#![doc = include_str!("README.md")]
2#![doc(alias = "interactivity")]
3use crate::prelude::build_plugin::*;
4
5#[derive(Debug)]
6pub(crate) struct PluginDefinition;
7
8impl Plugin for PluginDefinition {
9    fn can_handle(&self, context: ContextCanHandle) -> bool {
10        matches!(context.modifier, Modifier::Builtin { value: "none", .. })
11    }
12
13    fn handle(&self, context: &mut ContextHandle) {
14        context.buffer.lines([
15            "-webkit-appearance: none;",
16            "-moz-appearance: none;",
17            "appearance: none;",
18        ]);
19    }
20}