Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexical error on line 1: Unrecognized text. (Solution) #94

Open
zkmark opened this issue Feb 21, 2020 · 3 comments
Open

Lexical error on line 1: Unrecognized text. (Solution) #94

zkmark opened this issue Feb 21, 2020 · 3 comments

Comments

@zkmark
Copy link

zkmark commented Feb 21, 2020

Error
Lexical error on line 1: Unrecognized text.
CompileError: Begins at CSS selector undefined

in icons.scss all calcs are wrong, they must be between # {}

maybe all ui kit have the same error

fail

width: calc(100% - $icon-size-xl - 1);
width: calc(100% - $icon-size - 1);
width: calc(100% - $icon-size-lg - 1);
width: calc(100% - $icon-size-sm - 1);
width: calc(100% - $icon-size-xs - 1);

solution

width: calc(100% - #{$icon-size-xl} - 1);
width: calc(100% - #{$icon-size} - 1);
width: calc(100% - #{$icon-size-lg} - 1);
width: calc(100% - #{$icon-size-sm} - 1);
width: calc(100% - #{$icon-size-xs} - 1);

Full Code

.icon {
	width: $icon-size;
	height: $icon-size;

	i, svg {
		font-size: $icon-size - .75;
	}
}

.icon + .icon-text {
	padding-left: 1rem;
	width: calc(100% - #{$icon-size} - 1);
}

.icon-xl {
	width: $icon-size-xl;
	height: $icon-size-xl;

	i, svg {
		font-size: $icon-size-xl - .75;
	}
}

.icon-xl + .icon-text {
	width: calc(100% - #{$icon-size-xl} - 1);
}

.icon-lg {
	width: $icon-size-lg;
	height: $icon-size-lg;

	i, svg {
		font-size: $icon-size-lg - .75;
	}
}

.icon-lg + .icon-text {
	width: calc(100% - #{$icon-size-lg} - 1);
}

.icon-sm {
	width: $icon-size-sm;
	height: $icon-size-sm;

	i, svg {
		font-size: $icon-size-sm - .75;
	}
}

.icon-sm + .icon-text {
	width: calc(100% - #{$icon-size-sm} - 1);
}

// Extra Small icon

.icon-xs {
	width: $icon-size-xs;
	height: $icon-size-xs;

	i, svg {
		font-size: $icon-size-xs - .75 !important;
	}

    + .icon-text {
    	width: calc(100% - #{$icon-size-xs} - 1);
    }
}


// Icons included in shapes
.icon-shape {
	padding: 12px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;


	i, svg {
		font-size: 1.25rem;
	}

	&.icon-lg {
		i, svg {
			font-size: 1.625rem;
		}
	}

	&.icon-sm {
		i, svg {
			font-size: .875rem;
		}
	}

	svg {
		width: 30px;
		height: 30px;
	}

}

@each $color, $value in $theme-colors {
	.icon-shape-#{$color} {
		@include icon-shape-variant(theme-color($color));
	}
}

@rarestoma
Copy link
Contributor

Hi @zkmark,

Thank you for pointing us this issue.

We added it to the list of fixes for the next update.

All the best,
Rares

@IqboljonR
Copy link

image

@rarestoma
Copy link
Contributor

Hi @iqbol-jon,

Thank you for working with our products.

Can you please give me more information about your issue?

Best regards,
Rares

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants