Files
wolfcode 49cf32a15e fix(switchSelect): improve CSS and JS for better functionality
- Add padding to radio-container for better layout
- Remove padding for switch-select inside form-pane
- Update JS to use dynamic filters for radio and select elements
- Improve event handling for radio and select changes
2025-08-19 11:30:14 +08:00

44 lines
764 B
PHP

.layui-switch-select {
position: relative;
}
.layui-switch-select .radio-container {
border: 1px solid #eee;
padding: 0 5px;
}
.layui-switch-select .toggle-dots {
position: absolute;
top: 5px;
right: 5px;
display: flex;
gap: 8px;
z-index: 999;
background: #e9e9e9;
padding: 5px;
border-radius: 25px;
}
.layui-switch-select .dot {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #ccc;
cursor: pointer;
}
.layui-switch-select .dot.active {
background-color: #1E9FFF;
}
.layui-switch-select .radio-group {
display: flex;
}
.layui-switch-select .toggle-hidden {
display: none !important;
}
.layui-form-pane .layui-switch-select .radio-container {
padding: 0;
}