Opportunity html
Jump to navigation
Jump to search
| Line 463: | Line 463: | ||
| − | <div | + | <div class="checkbox-container"> |
| − | < | + | <label class="checkbox-label"> |
| − | + | <input type="checkbox"> | |
| − | <input type="checkbox | + | <span class="checkbox-custom rectangular"></span> |
| − | <span | + | </label> |
| − | </ | + | <div class="input-title">Rectangular</div> |
| − | < | + | </div> |
| − | </div> | + | |
</div> | </div> | ||
<style> | <style> | ||
| − | |||
| − | |||
| + | .checkbox-container { | ||
| + | float: left; | ||
| + | width: 50%; | ||
| + | box-sizing: border-box; | ||
| + | text-align:center; | ||
| + | padding: 40px 0px; | ||
} | } | ||
| − | . | + | |
| − | + | .input-title { | |
| + | clear: both; | ||
| + | padding: 22px 0px 0px 0px; | ||
| + | font-size: 16px; | ||
| + | color: rgba(255,255,255,.6); | ||
| + | font-weight: 300; | ||
} | } | ||
| − | . | + | |
| − | display: | + | /* Styling Checkbox Starts */ |
| − | + | .checkbox-label { | |
| + | display: block; | ||
position: relative; | position: relative; | ||
| − | line-height: | + | margin: auto; |
| − | + | cursor: pointer; | |
| + | font-size: 22px; | ||
| + | line-height: 24px; | ||
| + | height: 24px; | ||
| + | width: 24px; | ||
| + | clear: both; | ||
} | } | ||
| − | . | + | .checkbox-label input { |
| − | position: | + | position: absolute; |
| − | |||
| − | |||
| − | |||
| − | |||
opacity: 0; | opacity: 0; | ||
| − | + | cursor: pointer; | |
| + | } | ||
| + | |||
| + | .checkbox-label .checkbox-custom { | ||
| + | position: absolute; | ||
| + | top: 0px; | ||
| + | left: 0px; | ||
| + | height: 24px; | ||
| + | width: 24px; | ||
| + | background-color: transparent; | ||
| + | border-radius: 5px; | ||
| + | transition: all 0.3s ease-out; | ||
| + | -webkit-transition: all 0.3s ease-out; | ||
| + | -moz-transition: all 0.3s ease-out; | ||
| + | -ms-transition: all 0.3s ease-out; | ||
| + | -o-transition: all 0.3s ease-out; | ||
| + | border: 2px solid #FFFFFF; | ||
} | } | ||
| − | . | + | .checkbox-label input:checked ~ .checkbox-custom { |
| − | + | background-color: #FFFFFF; | |
| − | -webkit- | + | border-radius: 5px; |
| − | + | -webkit-transform: rotate(0deg) scale(1); | |
| − | + | -ms-transform: rotate(0deg) scale(1); | |
| + | transform: rotate(0deg) scale(1); | ||
| + | opacity:1; | ||
| + | border: 2px solid #FFFFFF; | ||
} | } | ||
| − | |||
| − | |||
| − | |||
| − | . | + | .checkbox-label .checkbox-custom::after { |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
position: absolute; | position: absolute; | ||
| − | left: | + | content: ""; |
| − | + | left: 12px; | |
| − | height: | + | top: 12px; |
| − | border- | + | height: 0px; |
| − | border- | + | width: 0px; |
| − | + | border-radius: 5px; | |
| − | + | border: solid #009BFF; | |
| + | border-width: 0 3px 3px 0; | ||
| + | -webkit-transform: rotate(0deg) scale(0); | ||
| + | -ms-transform: rotate(0deg) scale(0); | ||
| + | transform: rotate(0deg) scale(0); | ||
| + | opacity:1; | ||
| + | transition: all 0.3s ease-out; | ||
| + | -webkit-transition: all 0.3s ease-out; | ||
| + | -moz-transition: all 0.3s ease-out; | ||
| + | -ms-transition: all 0.3s ease-out; | ||
| + | -o-transition: all 0.3s ease-out; | ||
} | } | ||
| − | . | + | |
| − | + | .checkbox-label input:checked ~ .checkbox-custom::after { | |
| − | + | -webkit-transform: rotate(45deg) scale(1); | |
| + | -ms-transform: rotate(45deg) scale(1); | ||
| + | transform: rotate(45deg) scale(1); | ||
| + | opacity:1; | ||
| + | left: 8px; | ||
| + | top: 3px; | ||
| + | width: 6px; | ||
| + | height: 12px; | ||
| + | border: solid #009BFF; | ||
| + | border-width: 0 2px 2px 0; | ||
| + | background-color: transparent; | ||
| + | border-radius: 0; | ||
} | } | ||
| − | . | + | |
| − | + | ||
| − | + | ||
| + | /* For Ripple Effect */ | ||
| + | .checkbox-label .checkbox-custom::before { | ||
| + | position: absolute; | ||
| + | content: ""; | ||
| + | left: 10px; | ||
| + | top: 10px; | ||
| + | width: 0px; | ||
| + | height: 0px; | ||
| + | border-radius: 5px; | ||
| + | border: 2px solid #FFFFFF; | ||
| + | -webkit-transform: scale(0); | ||
| + | -ms-transform: scale(0); | ||
| + | transform: scale(0); | ||
} | } | ||
| − | . | + | .checkbox-label input:checked ~ .checkbox-custom::before { |
| − | + | left: -3px; | |
| − | + | top: -3px; | |
| − | + | width: 24px; | |
| + | height: 24px; | ||
| + | border-radius: 5px; | ||
| + | -webkit-transform: scale(3); | ||
| + | -ms-transform: scale(3); | ||
| + | transform: scale(3); | ||
| + | opacity:0; | ||
| + | z-index: 999; | ||
| + | transition: all 0.3s ease-out; | ||
| + | -webkit-transition: all 0.3s ease-out; | ||
| + | -moz-transition: all 0.3s ease-out; | ||
| + | -ms-transition: all 0.3s ease-out; | ||
| + | -o-transition: all 0.3s ease-out; | ||
} | } | ||
| − | . | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | /* Style for Circular Checkbox */ | |
| + | .checkbox-label .checkbox-custom.circular { | ||
| + | border-radius: 50%; | ||
| + | border: 2px solid #FFFFFF; | ||
} | } | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</style> | </style> | ||
| − | |||
<span class="ci_form_section_help"> | <span class="ci_form_section_help"> | ||
Revision as of 15:15, 4 March 2020