package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
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
include struct [@@@ocaml.warning "-32"] let () = Inline_css.Private.append {| /* _none_ */ @layer kado.checkboxes{ *.button-box-container_hash_c0b7956991 { display:inline-flex; position:relative; align-self:flex-start; margin:0.25em; padding-right:0.5em; background:var(--bg_hash_c0b7956991); border:1px solid var(--border_hash_c0b7956991); border-radius:4px; white-space:pre; user-select:none; cursor:pointer } *.button-box-container_hash_c0b7956991:has(:focus-visible) { outline:3px solid var(--touch_hash_c0b7956991); z-index:1; outline-offset:-3px } *.button-box-container_hash_c0b7956991>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_c0b7956991); outline:0px; outline-offset:-1px; cursor:pointer } *.button-box-container_hash_c0b7956991>input:focus-visible { border:1px solid var(--touch_hash_c0b7956991) } *.button-box-container_hash_c0b7956991:has(input:checked) { background:#152632 } *.button-box-container_hash_c0b7956991>input:checked { background:var(--touch_hash_c0b7956991); border:0; outline:1px solid var(--touch_hash_c0b7956991); outline-offset:0px } *.button-box-container_hash_c0b7956991>input:focus-visible:not(:checked) { border-right:1px solid var(--touch_hash_c0b7956991) } *.button-box-container_hash_c0b7956991>input:not(:checked) { border-top-right-radius:0; border-bottom-right-radius:0 } *.button-box-container_hash_c0b7956991>input:checked::before,*.button-box-container_hash_c0b7956991:focus-visible>input::before,*.button-box-container_hash_c0b7956991:hover>input::before,*.button-box-container_hash_c0b7956991>input:checked::after,*.button-box-container_hash_c0b7956991:focus-visible>input::before,*.button-box-container_hash_c0b7956991:hover>input::after { content:""; display:block; position:absolute; background:currentcolor } *.button-box-container_hash_c0b7956991>input:checked::before,*.button-box-container_hash_c0b7956991:focus-visible>input::before,*.button-box-container_hash_c0b7956991:hover>input::before { width:35%; height:13%; transform:rotate(45deg) translate(145%,230%); border-bottom-right-radius:1px } *.button-box-container_hash_c0b7956991>input:checked::after,*.button-box-container_hash_c0b7956991:focus-visible>input::before,*.button-box-container_hash_c0b7956991:hover>input::after { width:65%; height:15%; transform:translate(35%,285%) rotate(309deg); border-bottom-left-radius:1px } *.button-box-container_hash_c0b7956991:hover>input:checked,*.button-box-container_hash_c0b7956991:focus-visible>input:checked { filter:brightness(1.2) } *.button-box-container_hash_c0b7956991:hover>input:not(:checked)::before,*.button-box-container_hash_c0b7956991:hover>input:not(:checked)::after { background:#3f444a } *.vbox_hash_c0b7956991 { display:flex; flex-direction:column; align-self:flex-start; align-items:stretch; margin:0.25em } *.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991 { margin:0; align-self:unset } *.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991,*.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991>input { border-radius:0 } *.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991:first-child,*.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991:first-child>input { border-top-left-radius:3px } *.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991:first-child { border-top-right-radius:3px } *.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991:last-child,*.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991:last-child>input { border-bottom-left-radius:3px } *.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991:last-child { border-bottom-right-radius:3px } *.vbox_hash_c0b7956991>*.button-box-container_hash_c0b7956991:not(:first-child) { border-top:0 } }|} 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 -> unit -> 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 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 set ?bg ?border ?touch () = 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_c0b7956991|}, 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_c0b7956991|}, 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_c0b7956991|}, ppx_css_value__002_) :: ppx_css_acc__001_ in Virtual_dom.Vdom.Attr.__css_vars_no_kebabs ppx_css_acc__001_ end module For_referencing = struct let = {|button-box-container_hash_c0b7956991|} let vbox = {|vbox_hash_c0b7956991|} let border = {|--border_hash_c0b7956991|} let touch = {|--touch_hash_c0b7956991|} let bg = {|--bg_hash_c0b7956991|} end let = Virtual_dom.Vdom.Attr.class_ {|button-box-container_hash_c0b7956991|} let vbox = Virtual_dom.Vdom.Attr.class_ {|vbox_hash_c0b7956991|} end include Default let default : t = (module Default) end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>