Sha256: 22e6246e53c52b64e6536c725a436c3ed3188fa3111dfd4aafc072287647c617

Contents?: true

Size: 1.46 KB

Versions: 938

Compression:

Stored size: 1.46 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

938 entries across 938 versions & 1 rubygems

Version Path
playbook_ui-12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown628 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0.pre.alpha.play786multilevelselectimprovements627 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown626 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown617 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0.pre.alpha.PLAY735mobileheadersfix616 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0.pre.alpha.play786multilevelselectimprovements613 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0.pre.alpha.PLAY747carddarktokens610 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0.pre.alpha.PLAY785typeaheadts608 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0.pre.alpha.PLAY785typeaheadts607 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.18.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.17.1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.17.0.pre.alpha.lightboxcurrentPhotoIndex582 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.17.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.16.0.pre.alpha.tooltippositionprop566 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.16.0.pre.alpha.PLAY693tooltipwrongbg558 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.16.0.pre.alpha.PLAY693tooltipwrongbg547 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.16.0.pre.alpha.PLAY693tooltipwrongbg532 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.16.0.pre.alpha.lightboxcurrentphotoprop531 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.16.0.pre.alpha.tiptaptestingpart1528 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-12.16.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss