Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:18:01+00:00 2026-06-15T23:18:01+00:00

The Bootstrap vertical gradient mixin is defined as follows: #gradient { .vertical (@start-color, @end-color)

  • 0

The Bootstrap vertical gradient mixin is defined as follows:

#gradient {
  .vertical (@start-color, @end-color) when (@disable-filters)  {
    /* code */
  }
}

I’m calling .#gradient > .vertical(#fff, #ddd); in my LESS. But compiling gives me the following error.

ParseError: Syntax Error on line 104 in front.less:104:8
103         border-bottom: 2px solid white;
104         .#gradient > .vertical(#fff, #ddd);
105       }

Commenting out the line above fixes the issue. What’s the proper way to invoke Bootstrap’s vertical gradient mixin?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:18:03+00:00Added an answer on June 15, 2026 at 11:18 pm

    I think there may be a typo in the Bootstrap v2.2.2 docs for some of the gradient mixins. If you check the mixins.less file it looks like you don’t need the leading dot when calling the gradient mixin, ie
    #gradient > .vertical(#999, #fff);

    I have this working.

    On an html page I have a div with ID=gradient-test

    In my custom mixin I have:

    #gradient-test{  
    #gradient > .vertical(#999, #fff);  
    }
    

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Bootstrap .dropdown-menu.pull-right selector doesn't seem to work (the code is in navbar.less, lines
I have a dropdown menu in my layout/applications.html.erb done with twitter bootstrap <li class=divider-vertical></li>
Are there any existing plugins/extensions/methods to maintain vertical rhythm for Twitter's Bootstrap project? It
http://jsfiddle.net/Cwf4W/10/ there's my code I can't seem to get the bootstrap drop down menu
In the earlier version of Twitter Bootstrap their was a placeholder for the vertical
Bootstrap has many pre-defined styles for progress bar, but how to make them some
Twitter bootstrap modal doesn't load external urls inside modal. Sample Code : jsFiddle <a
Using a default/vertical form, the bootstrap documentation suggests that the submit button sits underneath
My installer bootstrap app makes a bunch of MSI calls at the start in
Twitter Bootstrap Version: 2.0.3 Example HTML code: <!DOCTYPE html> <html dir=ltr lang=en-US xmlns:og=http://opengraphprotocol.org/schema/> <head>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.