Sha256: 985d2f9c3ed9872db8ddba6d4548cc41f3f4f48f12e9f014fad75471916c5826

Contents?: true

Size: 968 Bytes

Versions: 5

Compression:

Stored size: 968 Bytes

Contents

/* ------------------------------------------------------------ *\
	Switch
\* ------------------------------------------------------------ */

.switch {
	display: flex;
	align-items: center;
	color: #b11c89;

	.form-switch {
		margin: 0 10px;
		padding: 0;
	}

	.form-switch .form-check-input {
		position: relative;
		width: 56px;
		height: 24px;
		margin: 0;
		box-shadow: none;
		background-color: #b11c89;
		border: 0;
		background-image: none;
		transition: background .2s;

		&:focus {
			--bs-form-switch-bg: none;
		}

		&:before {
			content: '';
			display: inline-block;
			width: 20px;
			height: 20px;
			background: $white;
			border-radius: 50%;
			position: absolute;
			left: 2px;
			top: 2px;
			transition: background .2s, left .3s;
		}

		&:checked {
			background-color: $white;

			&:before {
				background: #b11c89;
				left: 34px;
			}
		}
	}

	.form-check-label {
		display: none;
	}
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
nsit-jekyll-theme-0.1.0 _sass/_switch.scss
raikar11-0.1.3 _sass/_switch.scss
raikar11-0.1.2 _sass/_switch.scss
raikar11-0.1.1 _sass/_switch.scss
raikar11-0.1.0 _sass/_switch.scss