I
I
Ivan2017-02-28 20:19:10
css
Ivan, 2017-02-28 20:19:10

Why is there no colon in the text?

I don't have colons and other characters in content: "";I use less.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stepan Krapivin, 2017-02-28
@Captain96

.myShinyClass {
  .case-parameters(2, ":");
}

turns into
.MyShinyClass .block-case li:nth-of-type(2):after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: ":";
  font-size: 23px;
  color: #fff;
  text-shadow: 0px 0px 5px #171717;
  display: inline-block;
  width: 100%;
  position: relative;
  margin-top: 90px;
  text-align: center;
}

I
Ivan, 2017-02-28
@Captain96

As I write some text with a colon, the error occurs
.case-parameters(@cn; @namecase) {
.block-case li:nth-of-type(@{cn}):after {
top: 0;
right: 0;
bottom: 0;
left: 0;
content: "@{namecase}";
font-size: 23px;
color: #fff;
text-shadow: 0px 0px 5px rgba(23, 23, 23, 1);
display: inline-block
width: 100%
position: relative;
margin-top: 90px;
text-align: center;
}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question