HEX
Server: Apache
System: Linux b5.s-host.com.ua 4.18.0-305.10.2.el7.x86_64 #1 SMP Fri Jul 23 21:00:55 UTC 2021 x86_64
User: unelbhzm (1470)
PHP: 8.0.18
Disabled: NONE
Upload Files
File: /sites/nuofama.com/wp-content/themes/blocksy/static/sass/backend/options/number.scss
.ct-option-number {
	display: flex;
	align-items: center;
	position: relative;
	height: 30px;
	width: 100px;

	&[data-width="full"] {
		width: 100%;
	}

	&[data-position="right"] {
		margin-left: auto;
	}

	input {
		--padding: 3px 30px;
		text-align: center;
	}

	> a {
		position: absolute;
		top: 1px;
		width: 30px;
		height: calc(100% - 2px);
		color: inherit;

		&:before, &:after {
			position: absolute;
			content: '';
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			margin: auto;
			width: 8px;
			height: 1px;
			opacity: 0.8;
			background: currentColor;
			transition: background 0.1s linear,
						opacity 0.1s linear;
		}

		&.ct-minus {
			left: 1px;
			border-top-left-radius: 2px;
			border-bottom-left-radius: 2px;
			
			&:after {
				display: none;
			}
		}

		&.ct-plus {
			right: 1px;
			border-top-right-radius: 2px;
			border-bottom-right-radius: 2px;

			&:after {
				transform: rotate(90deg);
			}
		}

		// not disabled state
		&:not(.ct-disabled) {
			cursor: pointer;

			&:hover {
				color: #fff;
				opacity: 1;
				background: var(--accentColor);
			}
		}

		&.ct-disabled {
			opacity: 0.4;
		}

		&:hover {
			~ input {
				--borderColor: var(--accentColor) !important;
			}
		}
	}
}