1

Я нашел this css рамки, к сожалению, ему не хватает поддержки драгоценных камней, как то, что делает Twitter-бутстрап.materializecss рамки рельсы 4.2 интеграция

Так что я загрузил их источник sass и попытался интегрироваться в конвейер ресурсов rails, хотя и с ошибками.

Undefined variable: "$button-height". 
    (in /app/assets/stylesheets/components/_buttons.scss:4) 

Или я должен положить это в папку/lib? enter image description here

Мой вопрос: Как установить этот каркас с рельсами 4.2?

ответ

5

Вы можете Youse bower или использовать этот драгоценный камень https://github.com/mkhairi/materialize-sass

Я имел некоторые проблемы с материализовать шрифты с помощью беседки, я предлагаю использовать камень =)

5

Я нашел решение, добавив камень в Gemfile

просто сделать:

gem 'materialize-sass' 

и обновить Gems, поиск в ваших активов/ст ylesheets application.css, если у вас есть расширение «.css», вам необходимо переименовать его в applications.scss и, наконец, добавить этот импорт @import «материализоваться»;

/* 
* This is a manifest file that'll be compiled into application.scss, which will include all the files 
* listed below. 
* 
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, 
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. 
* 
* You're free to add application-wide styles to this file and they'll appear at the bottom of the 
* compiled file so the styles you add here take precedence over styles defined in any styles 
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new 
* file per style scope. 
* 
*= require_tree . 
*= require_self 
*/ 
@import "materialize"; 

:)

+0

Эй! Вы мне очень помогли!! Благодаря! Это работает ! – daronwolff

Смежные вопросы