Sha256: 33514e91ab7c165ef81f504bd0a43db7cf601eef7a3a0b3c063b056ba704ecd4

Contents?: true

Size: 1.45 KB

Versions: 165

Compression:

Stored size: 1.45 KB

Contents

@import "../tokens/transition";

[class^=pb_selectable_icon] {

	text-align: center;
	cursor: pointer;
	transition: all $transition_short ease;
	@media (hover:hover) {
		&:hover * {
			transition: transform $transition_short ease;
			transform: translateY(-2px);
		}
	}

	* {
		cursor: pointer;
	}

	h4 {
		margin-top: $space_xs !important;
		user-select: none;
		transition: color $transition_short ease;
	}

	label {
		transition: color $transition_short ease;
	}

	&[class*=_disabled] {
		opacity: $opacity_6;
		cursor: not-allowed;
		* {
			cursor: not-allowed;
		}
	}
	
	input[type="checkbox"],
	input[type="radio"] {
		-webkit-appearance: none;
		-moz-appearance: none;
		display: none;
		appearance: none;
		transition: color $transition_short ease;

		&:checked ~ label * {
			transition: color $transition_short ease;
			color: $primary;
		}
		
		&:not(:checked) ~ label {
			transition: color $transition_short ease;
			color: $slate;

		}
	}


	&.dark {
		input[type="checkbox"],
		input[type="radio"] {
			-webkit-appearance: none;
			-moz-appearance: none;
			display: none;
			appearance: none;
			transition: color $transition_short ease;
			
			&:checked ~ label * {
				transition: color $transition_short ease;
				color: $active_dark !important;
			}
				
			&:not(:checked) ~ label {
				transition: color $transition_short ease;
				color: $text_dk_lighter;

				h4 {
					transition: color $transition_short ease;
					color: $text_dk_default;
				}
			}
		}
 	}
}

Version data entries

165 entries across 165 versions & 1 rubygems

Version Path
playbook_ui-12.6.0.pre.alpha.sectionseparator1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.6.0.pre.alpha.menuyml1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.6.0.pre.alpha.collapsible1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.6.0.pre.alpha.cssphone1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.6.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.5.0.pre.alpha.datepickerinput1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.5.0.pre.alpha.phonerails1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.5.0.pre.alpha.filter1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.5.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.4.0.pre.alpha.map1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.4.0.pre.alpha.devdocstest1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.4.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.3.1.pre.alpha.phone1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.3.1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.3.0.pre.alpha.patchtest1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.3.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.2.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.1.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.0.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss