playframework - Play 2.2.1 using LESS (bootstrap.less and bootswatch.less). Theme wont load correctly -
I did not understand how to work within at least 2.2.1 framework. For example, I have to load some topics, for example
basically I reduce the bootstrap and put it in "property / stylesheet / bootstrap" and also variables.css And bootswatch.css "amelia" theme
Official play 2.2.1 from mine documentation. SBT looks like this:
name: = "bla bla" version: = "1.0-SNAPSHOT" library definitions ++ = Sik (jdbc, cache) play. Prix Playskool settings play.Keylesslessentary points & lt; & Lt; = Base directory {base = & gt; (Base / "app" / "property" / "stylesheets" ** "main.")}
main. Alas
@import "variables.less"; @ Import "bootstrap / bootstrap.less"; @import "bootswatch.less";
Folder structure:
& lt; Button type = "button" class = "btn btn-default" & gt; Default & lt; / = button & gt; & Lt; Button type = "button" class = "btn btn-primary" & gt; Primary & lt; / Button & gt; & Lt; Button Type = "Button" class = "BTN BTN-Success" & gt; Success & lt; / Button & gt; & Lt; Button type = "button" class = "btn btn-notification" & gt; Notification & lt; / Button & gt; & Lt; Button type = "button" class = "btn btn-warning" & gt; Warning & lt; / Button & gt; & Lt; Button Type = "Button" class = "BTN BTN-Danger" & gt; Danger & lt; / Button & gt; & Lt; Button type = "button" class = "btn btn-link" & gt; Link & lt; / Button & gt;
With the AMLI theme, I should get the following:
But I can only see bootstrap default:
Also read
The problem is the main. The actual file appears, you should import the variable after importing it. Bootstrap.less is as follows:
main.less
@import "bootstrap / bootstrap.less"; @import "variables.less"; @import "bootswatch.less";
Last Announcement Win rule
Comments
Post a Comment