LaravelTest
187 строк · 6.2 Кб
1/**
2* bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
3*
4* @version v3.3.4
5* @homepage https://bttstrp.github.io/bootstrap-switch
6* @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
7* @license Apache-2.0
8*/
9
10.bootstrap-switch {11display: inline-block;12direction: ltr;13cursor: pointer;14border-radius: 4px;15border: 1px solid;16border-color: #ccc;17position: relative;18text-align: left;19overflow: hidden;20line-height: 8px;21z-index: 0;22-webkit-user-select: none;23-moz-user-select: none;24-ms-user-select: none;25user-select: none;26vertical-align: middle;27-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;28-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;29transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;30}
31.bootstrap-switch .bootstrap-switch-container {32display: inline-block;33top: 0;34border-radius: 4px;35-webkit-transform: translate3d(0, 0, 0);36transform: translate3d(0, 0, 0);37}
38.bootstrap-switch .bootstrap-switch-handle-on,
39.bootstrap-switch .bootstrap-switch-handle-off,
40.bootstrap-switch .bootstrap-switch-label {41-webkit-box-sizing: border-box;42-moz-box-sizing: border-box;43box-sizing: border-box;44cursor: pointer;45display: table-cell;46vertical-align: middle;47padding: 6px 12px;48font-size: 14px;49line-height: 20px;50}
51.bootstrap-switch .bootstrap-switch-handle-on,
52.bootstrap-switch .bootstrap-switch-handle-off {53text-align: center;54z-index: 1;55}
56.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
57.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {58color: #fff;59background: #337ab7;60}
61.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
62.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {63color: #fff;64background: #5bc0de;65}
66.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
67.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {68color: #fff;69background: #5cb85c;70}
71.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
72.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {73background: #f0ad4e;74color: #fff;75}
76.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
77.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {78color: #fff;79background: #d9534f;80}
81.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
82.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {83color: #000;84background: #eeeeee;85}
86.bootstrap-switch .bootstrap-switch-label {87text-align: center;88margin-top: -1px;89margin-bottom: -1px;90z-index: 100;91color: #333;92background: #fff;93}
94.bootstrap-switch span::before {95content: "\200b";96}
97.bootstrap-switch .bootstrap-switch-handle-on {98border-bottom-left-radius: 3px;99border-top-left-radius: 3px;100}
101.bootstrap-switch .bootstrap-switch-handle-off {102border-bottom-right-radius: 3px;103border-top-right-radius: 3px;104}
105.bootstrap-switch input[type='radio'],
106.bootstrap-switch input[type='checkbox'] {107position: absolute !important;108top: 0;109left: 0;110margin: 0;111z-index: -1;112opacity: 0;113filter: alpha(opacity=0);114visibility: hidden;115}
116.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,
117.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,
118.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label {119padding: 1px 5px;120font-size: 12px;121line-height: 1.5;122}
123.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,
124.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,
125.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label {126padding: 5px 10px;127font-size: 12px;128line-height: 1.5;129}
130.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,
131.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,
132.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label {133padding: 6px 16px;134font-size: 18px;135line-height: 1.3333333;136}
137.bootstrap-switch.bootstrap-switch-disabled,
138.bootstrap-switch.bootstrap-switch-readonly,
139.bootstrap-switch.bootstrap-switch-indeterminate {140cursor: default !important;141}
142.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,
143.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,
144.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,
145.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,
146.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,
147.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,
148.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,
149.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label,
150.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label {151opacity: 0.5;152filter: alpha(opacity=50);153cursor: default !important;154}
155.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {156-webkit-transition: margin-left 0.5s;157-o-transition: margin-left 0.5s;158transition: margin-left 0.5s;159}
160.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on {161border-bottom-left-radius: 0;162border-top-left-radius: 0;163border-bottom-right-radius: 3px;164border-top-right-radius: 3px;165}
166.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off {167border-bottom-right-radius: 0;168border-top-right-radius: 0;169border-bottom-left-radius: 3px;170border-top-left-radius: 3px;171}
172.bootstrap-switch.bootstrap-switch-focused {173border-color: #66afe9;174outline: 0;175-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);176box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);177}
178.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label,
179.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label {180border-bottom-right-radius: 3px;181border-top-right-radius: 3px;182}
183.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label,
184.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label {185border-bottom-left-radius: 3px;186border-top-left-radius: 3px;187}
188