HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/drakkar_site_dev/wp-content/themes/blocksy/static/sass/backend/options/value-changer.scss
// top level
.ct-value-changer {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	position: relative;
	height: 30px;
	border-radius: 3px;
	box-sizing: border-box;
	border: 1px solid var(--optionBorderColor, #ddd);
	background: var(--backgroundColor, #fff);
	transition: background 0.1s ease,
				border-color 0.1s ease;

	input[type="number"] {
		--input-width: auto;
		--input-font-size: 11px;
		--margin: -1px;
		--padding: 0 5px;
		--optionBorderColor: transparent;
		--background: transparent;
		position: relative;
		z-index: 1;
		min-width: 0;
		text-align: center;

		&:focus {
			--background: #fff;
		}
	}

	&.no-unit-list .ct-current-value {
		opacity: 0.6;
		pointer-events: none;
	}

	&.active {
		background: transparent;

		.ct-units-list {
			opacity: 1;
			visibility: visible;
			transform: scale3d(1, 1, 1);
		}
	}
}




// current value
.ct-current-value {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	padding: 0 3px;
	position: relative;
	cursor: pointer;
	height: 100%;
	font-size: 9px;
	font-weight: 600;
	line-height: normal;
	text-align: center;
	hyphens: auto;
	// word-break: break-all;
	letter-spacing: 1px;
	text-transform: uppercase;
	user-select: none;
	transition: color 0.1s ease,
				font-weight 0.1s ease;

	&:hover {
		color: var(--ui-accent-color);
	}

	// value divider
	&[data-unit='custom'], 
	&[data-style='none'] {
		grid-column: 1/-1;
	}

	&:not([data-unit='custom'], [data-style='none']) {

		&:before {
			position: absolute;
			content: '';
			inset-inline-start: 0;
			width: 1px;
			height: 50%;
			background: var(--optionBorderColor, #ddd);
		}
	}
}


// dropdown
.ct-units-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-column-gap: 5px;
	position: absolute;
	z-index: 2;
	top: -1px;
	inset-inline-start: -1px;
	width: calc(100% + 2px);
	padding: 0 2px;
	background: #fff;
	border-radius: inherit;
	box-sizing: border-box;
	border: 1px solid var(--optionBorderColor, #ddd);
	box-shadow: var(--option-modal-shadown, 0 15px 15px rgba(0, 0, 0, 0.08));
	opacity: 0;
	visibility: hidden;
	transform-origin: center top;
	transform: scale3d(0.95, 0.95, 1);
	transition: opacity 0.1s ease,
				visibility 0.1s ease,
				transform 0.1s ease-out;

	span {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 1;
		padding: 2px 3px;
		cursor: pointer;
		min-height: 24px;
		color: #555d66;
		font-size: 9px;
		font-weight: 700;
		line-height: normal;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		text-align: center;
		hyphens: auto;
		// word-break: break-all;
		background: inherit;
		box-sizing: content-box;


		&:before {
			position: absolute;
			z-index: -1;
			content: '';
			width: 100%;
			min-height: inherit;
			border-radius: 2px;
		}

		&:hover {
			color: #fff;

			&:before {
				background: var(--ui-accent-color);
			}
		}

		// special cases
		&:not(:last-child) {
			border-bottom: 1px dashed #eee;
		}


		&:nth-child(1):nth-last-child(2), // if 2 items - select second from last
		&:nth-child(3):nth-last-child(2), // if 4 items - select second from last
		&:nth-child(5):nth-last-child(2)  // if 6 items - select second from last
		{
			border-bottom: 0;
		}


		// special column
		&[data-unit='custom'] {
			grid-column: 1/-1;
		}
	}

	&:after {
		justify-self: center;
		align-self: center;
		position: absolute;
		content: '';
		width: 1px;
		height: calc(100% - 6px);
		margin-inline-start: 1px;
		border-inline-start: 1px dashed #eee;
	}
}