creativetimofficial / argon-design-system

Argon - Design System for Bootstrap 4 by Creative Tim

Home Page:https://www.creative-tim.com/product/argon-design-system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

zkmark opened this issue · comments

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));
	}
}

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

Hi @iqbol-jon,

Thank you for working with our products.

Can you please give me more information about your issue?

Best regards,
Rares