Sha256: d5abb08412f70532de5a0ffba8110ce946a1f15da72db67a43129660654fc6d5

Contents?: true

Size: 1.45 KB

Versions: 179

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: all $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

179 entries across 179 versions & 1 rubygems

Version Path
playbook_ui-7.4.1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0.pre.alpha6 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0.pre.alpha5 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0.pre.test4 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0.pre.test3 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0.pre.test2 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0.pre.alpha4 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0.pre.alpha2 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.4.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha12 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha11 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha10 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha9 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha8 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha7 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha6 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha5 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
playbook_ui-7.3.0.pre.alpha4 app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss