Skip to content

Commit 4e9f208

Browse files
committed
wip
1 parent cc62c3f commit 4e9f208

File tree

2 files changed

+252
-118
lines changed

2 files changed

+252
-118
lines changed

deps/rabbitmq_management/priv/www/css/main.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,49 @@ div.bindings-wrapper p.arrow { font-size: 200%; }
367367
}
368368

369369
table.dynamic-shovels td label {width: 200px; margin-right:10px;padding: 4px 0px 5px 0px}
370+
371+
input[type=checkbox].toggle {
372+
display: none;
373+
}
374+
375+
label.toggle {
376+
cursor: pointer;
377+
text-indent: -9999px;
378+
width: 32px;
379+
height: 16px;
380+
background: #b81d13;
381+
display: block;
382+
border-radius: 16px;
383+
position: relative;
384+
margin: auto;
385+
}
386+
387+
label.toggle:after {
388+
content: '';
389+
position: absolute;
390+
top: 2px;
391+
left: 2px;
392+
width: 12px;
393+
height: 12px;
394+
background: #fff;
395+
border-radius: 12px;
396+
transition: 0.3s;
397+
}
398+
399+
input.toggle:indeterminate + label.toggle {
400+
background: #efb700;
401+
}
402+
403+
input.toggle:checked + label.toggle {
404+
background: #008450;
405+
}
406+
407+
input.toggle:indeterminate + label.toggle:after {
408+
left: calc(50%);
409+
transform: translateX(-50%);
410+
}
411+
412+
input.toggle:checked + label.toggle:after {
413+
left: calc(100% - 2px);
414+
transform: translateX(-100%);
415+
}

0 commit comments

Comments
 (0)