@@ -2420,4 +2420,76 @@ fieldset[disabled] .btn-grad.btn-metis-6.active {
24202420
24212421/*COMMENTS*/
24222422
2423- /* --------------- END Component Styles -------------------- */
2423+ /* --------------- END Component Styles -------------------- */
2424+
2425+ /* BEGIN animated checkbox styles */
2426+
2427+ .anim-checkbox {
2428+ /*adding some colors for fun*/
2429+
2430+ }
2431+
2432+ .anim-checkbox label {
2433+ position : relative;
2434+ }
2435+
2436+ .anim-checkbox label : before ,
2437+ .anim-checkbox label : after {
2438+ position : absolute;
2439+ left : -22px ;
2440+ font-family : FontAwesome;
2441+ }
2442+
2443+ .anim-checkbox label : before {
2444+ content : '\f096' ;
2445+ /*unchecked*/
2446+
2447+ }
2448+
2449+ .anim-checkbox label : after {
2450+ max-width : 0 ;
2451+ overflow : hidden;
2452+ content : '\f046' ;
2453+ opacity : 0.5 ;
2454+ transition : all 0.35s ;
2455+ }
2456+
2457+ .anim-checkbox input [type = "checkbox" ] {
2458+ display : none;
2459+ }
2460+
2461+ .anim-checkbox input [type = "checkbox" ]: checked + label : after {
2462+ max-width : 25px ;
2463+ /*an arbitratry number more than the icon's width*/
2464+
2465+ opacity : 1 ;
2466+ /*for fade in effect*/
2467+
2468+ }
2469+
2470+ .anim-checkbox .primary : checked + label : before ,
2471+ .anim-checkbox .primary : checked + label : after {
2472+ color : # 428bca ;
2473+ }
2474+
2475+ .anim-checkbox .success : checked + label : before ,
2476+ .anim-checkbox .success : checked + label : after {
2477+ color : # 5cb85c ;
2478+ }
2479+
2480+ .anim-checkbox .warning : checked + label : before ,
2481+ .anim-checkbox .warning : checked + label : after {
2482+ color : # f0ad4e ;
2483+ }
2484+
2485+ .anim-checkbox .danger : checked + label : before ,
2486+ .anim-checkbox .danger : checked + label : after {
2487+ color : # d9534f ;
2488+ }
2489+
2490+ .anim-checkbox .info : checked + label : before ,
2491+ .anim-checkbox .info : checked + label : after {
2492+ color : # 5bc0de ;
2493+ }
2494+
2495+ /* END animated checkbox styles */
0 commit comments