Jump to content
  • 0

Style.less Unrecognised input


Akbar
 Share

Question

Здравствуйте!У меня такая проблема в коде в style.less

style.less

@main-color: red;
@main-bg-color: lightgray;

@base-size: 24px;

body {
    margin: 0;
    padding: 0;
    color: black;
    font-size: 14px;
}
p {
    color: @main-color;
    background-color: @main-bg-color;
}
.bordered {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.sq {
    height: @base-size * 15;
    width: @base-size * 15;
    background-color:darken(@main-bg-color, 50%)
    .bordered;
}

style.css

body {
  margin: 0;
  padding: 0;
  color: black;
  font-size: 14px;
}
p {
  color: red;
  background-color: lightgray;
}
.bordered {
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.sq {
  height: 360px;
  width: 360px;
  background-color: #535353;
}


Пишу в style.less . имя миксина .bordered; в программе brackets, не компилирует миксины в сss и выводит ошибку  ? Почему?

Error in file 'C:/Users/Патша/Desktop/Project 2/style.less' on line 23: Unrecognised input

как можно исправить?подскажите пожалуйста

Ответы уже 2 дня ищу не могу исправить

Edited by klierik
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy