package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=c78c4476ee6b856846e2d0941e5965009d5e1b853e564b2b1bee61202f0b1ebb
doc/src/bonsai.kado/checkbox_style__generated.ml.html
Source file checkbox_style__generated.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224include struct let () = Inline_css.Private.append {| /* _none_ */ @layer kado.checkboxes{ *.button-box-container_hash_0b86ab8dc9 { display:inline-flex; position:relative; align-self:flex-start; margin:0.25em; padding-right:0.5em; background:var(--bg_hash_0b86ab8dc9); border:1px solid var(--border_hash_0b86ab8dc9); border-radius:4px; white-space:pre; user-select:none; cursor:pointer } *.button-box-container_hash_0b86ab8dc9:has(:focus-visible) { outline:3px solid var(--touch_hash_0b86ab8dc9); z-index:1; outline-offset:-3px } *.button-box-container_hash_0b86ab8dc9>input { appearance:none; position:relative; margin:0px; margin-right:0.5em; font-size:inherit; line-height:1.2em; width:1.2em; height:1.2em; border-radius:0; border-top-left-radius:3px; border-bottom-left-radius:3px; border:1px solid transparent; border-right:1px solid var(--border_hash_0b86ab8dc9); outline:0px; outline-offset:-1px; cursor:pointer } *.button-box-container_hash_0b86ab8dc9>input:focus-visible { border:1px solid var(--touch_hash_0b86ab8dc9) } *.button-box-container_hash_0b86ab8dc9:has(input:checked) { background:var(--touch_highlight_hash_0b86ab8dc9) } *.button-box-container_hash_0b86ab8dc9>input:checked { background:var(--touch_hash_0b86ab8dc9); border:0; outline:1px solid var(--touch_hash_0b86ab8dc9); outline-offset:0px } *.button-box-container_hash_0b86ab8dc9>input:focus-visible:not(:checked) { border-right:1px solid var(--touch_hash_0b86ab8dc9) } *.button-box-container_hash_0b86ab8dc9>input:not(:checked) { border-top-right-radius:0; border-bottom-right-radius:0 } *.button-box-container_hash_0b86ab8dc9>input:checked::before,*.button-box-container_hash_0b86ab8dc9:focus-visible>input::before,*.button-box-container_hash_0b86ab8dc9:hover>input::before,*.button-box-container_hash_0b86ab8dc9>input:checked::after,*.button-box-container_hash_0b86ab8dc9:focus-visible>input::before,*.button-box-container_hash_0b86ab8dc9:hover>input::after { content:""; display:block; position:absolute; background:currentcolor } *.button-box-container_hash_0b86ab8dc9>input:checked::before,*.button-box-container_hash_0b86ab8dc9:focus-visible>input::before,*.button-box-container_hash_0b86ab8dc9:hover>input::before { width:35%; height:13%; transform:rotate(45deg) translate(145%,230%); border-bottom-right-radius:1px } *.button-box-container_hash_0b86ab8dc9>input:checked::after,*.button-box-container_hash_0b86ab8dc9:focus-visible>input::before,*.button-box-container_hash_0b86ab8dc9:hover>input::after { width:65%; height:15%; transform:translate(35%,285%) rotate(309deg); border-bottom-left-radius:1px } *.button-box-container_hash_0b86ab8dc9:hover>input:checked,*.button-box-container_hash_0b86ab8dc9:focus-visible>input:checked { filter:brightness(1.2) } *.button-box-container_hash_0b86ab8dc9:hover>input:not(:checked)::before,*.button-box-container_hash_0b86ab8dc9:hover>input:not(:checked)::after { background:#3f444a } *.vbox_hash_0b86ab8dc9 { display:flex; flex-direction:column; align-self:flex-start; align-items:stretch; margin:0.25em } *.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9 { margin:0; align-self:unset } *.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9,*.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9>input { border-radius:0 } *.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9:first-child,*.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9:first-child>input { border-top-left-radius:3px } *.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9:first-child { border-top-right-radius:3px } *.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9:last-child,*.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9:last-child>input { border-bottom-left-radius:3px } *.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9:last-child { border-bottom-right-radius:3px } *.vbox_hash_0b86ab8dc9>*.button-box-container_hash_0b86ab8dc9:not(:first-child) { border-top:0 } }|} [@@@ocaml.warning "-32"] let (__type_info_for_ppx_css : ?rewrite:(string * string) list -> ?dont_hash:string list -> ?dont_hash_prefixes:string list -> string -> unit) = fun ?rewrite:_ -> fun ?dont_hash:_ -> fun ?dont_hash_prefixes:_ -> fun _ -> () module type S = sig module Variables : sig val set : ?bg:string -> ?border:string -> ?touch:string -> ?touch_highlight:string -> unit -> Virtual_dom.Vdom.Attr.t val set_all : bg:string -> border:string -> touch:string -> touch_highlight:string -> Virtual_dom.Vdom.Attr.t end module For_referencing : sig val bg : string val border : string val button_box_container : string val touch : string val touch_highlight : string val vbox : string end val button_box_container : Virtual_dom.Vdom.Attr.t val vbox : Virtual_dom.Vdom.Attr.t end type t = (module S) module Default : S = struct module Variables = struct let ppx_css_variable_set__003_ ?bg ?border ?touch ?touch_highlight () = let ppx_css_acc__001_ = [] in let ppx_css_acc__001_ = match bg with | None -> ppx_css_acc__001_ | Some ppx_css_value__002_ -> ({|--bg_hash_0b86ab8dc9|}, ppx_css_value__002_) :: ppx_css_acc__001_ in let ppx_css_acc__001_ = match border with | None -> ppx_css_acc__001_ | Some ppx_css_value__002_ -> ({|--border_hash_0b86ab8dc9|}, ppx_css_value__002_) :: ppx_css_acc__001_ in let ppx_css_acc__001_ = match touch with | None -> ppx_css_acc__001_ | Some ppx_css_value__002_ -> ({|--touch_hash_0b86ab8dc9|}, ppx_css_value__002_) :: ppx_css_acc__001_ in let ppx_css_acc__001_ = match touch_highlight with | None -> ppx_css_acc__001_ | Some ppx_css_value__002_ -> ({|--touch_highlight_hash_0b86ab8dc9|}, ppx_css_value__002_) :: ppx_css_acc__001_ in Virtual_dom.Vdom.Attr.__css_vars_no_kebabs ppx_css_acc__001_ let set = ppx_css_variable_set__003_ let set_all ~bg ~border ~touch ~touch_highlight = ppx_css_variable_set__003_ () ~bg ~border ~touch ~touch_highlight end module For_referencing = struct let = {|button-box-container_hash_0b86ab8dc9|} let vbox = {|vbox_hash_0b86ab8dc9|} let touch_highlight = {|--touch_highlight_hash_0b86ab8dc9|} let border = {|--border_hash_0b86ab8dc9|} let touch = {|--touch_hash_0b86ab8dc9|} let bg = {|--bg_hash_0b86ab8dc9|} end let = Virtual_dom.Vdom.Attr.class_ {|button-box-container_hash_0b86ab8dc9|} let vbox = Virtual_dom.Vdom.Attr.class_ {|vbox_hash_0b86ab8dc9|} end include Default let default : t = (module Default) end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>