dioxus_tailwindcss/
modifier.rs

1// https://tailwindcss.com/docs/hover-focus-and-other-states#pseudo-class-reference
2
3/// hover:
4pub fn hover(v: &str) -> String {
5    "hover:".to_owned() + v
6}
7
8/// focus:
9pub fn focus(v: &str) -> String {
10    "focus:".to_owned() + v
11}
12
13/// focus-width:
14pub fn focus_within(v: &str) -> String {
15    "focus-within:".to_owned() + v
16}
17
18/// focus-visible:
19pub fn focus_visible(v: &str) -> String {
20    "focus-visible:".to_owned() + v
21}
22
23/// active:
24pub fn active(v: &str) -> String {
25    "active:".to_owned() + v
26}
27
28/// visited:
29pub fn visited(v: &str) -> String {
30    "visited:".to_owned() + v
31}
32
33/// target:
34pub fn target(v: &str) -> String {
35    "target:".to_owned() + v
36}
37
38/// first:
39pub fn first(v: &str) -> String {
40    "first:".to_owned() + v
41}
42
43/// last:
44pub fn last(v: &str) -> String {
45    "last:".to_owned() + v
46}
47
48/// only:
49pub fn only(v: &str) -> String {
50    "only:".to_owned() + v
51}
52
53/// odd:
54pub fn odd(v: &str) -> String {
55    "odd:".to_owned() + v
56}
57
58/// even:
59pub fn even(v: &str) -> String {
60    "even:".to_owned() + v
61}
62
63/// first-of-type:
64pub fn first_of_type(v: &str) -> String {
65    "first-of-type:".to_owned() + v
66}
67
68/// last-of-type:
69pub fn last_of_type(v: &str) -> String {
70    "last-of-type:".to_owned() + v
71}
72
73/// only-of-type:
74pub fn only_of_type(v: &str) -> String {
75    "only-of-type:".to_owned() + v
76}
77
78/// empty:
79pub fn empty(v: &str) -> String {
80    "empty:".to_owned() + v
81}
82
83/// disabled:
84pub fn disabled(v: &str) -> String {
85    "disabled:".to_owned() + v
86}
87
88/// enabled:
89pub fn enabled(v: &str) -> String {
90    "enabled:".to_owned() + v
91}
92
93/// checked:
94pub fn checked(v: &str) -> String {
95    "checked:".to_owned() + v
96}
97
98/// indeterminate:
99pub fn indeterminate(v: &str) -> String {
100    "indeterminate:".to_owned() + v
101}
102
103/// default:
104pub fn default(v: &str) -> String {
105    "default:".to_owned() + v
106}
107
108/// required:
109pub fn required(v: &str) -> String {
110    "required:".to_owned() + v
111}
112
113/// valid:
114pub fn valid(v: &str) -> String {
115    "valid:".to_owned() + v
116}
117
118/// invalid:
119pub fn invalid(v: &str) -> String {
120    "invalid:".to_owned() + v
121}
122
123/// in-range:
124pub fn in_range(v: &str) -> String {
125    "in-range:".to_owned() + v
126}
127
128/// out-of-range:
129pub fn out_of_range(v: &str) -> String {
130    "out-of-range:".to_owned() + v
131}
132
133/// placeholder-shown:
134pub fn placeholder_shown(v: &str) -> String {
135    "placeholder-shown:".to_owned() + v
136}
137
138/// autofill:
139pub fn autofill(v: &str) -> String {
140    "autofill:".to_owned() + v
141}
142
143/// read-only:
144pub fn read_only(v: &str) -> String {
145    "read-only:".to_owned() + v
146}