EOP Frontend 介绍

这是一套内部使用的界面系统
包含常用组件, 主要应用在 Rails 项目当中。

包涵脚手架的生成模版。

EOP Frontend 使用帮助

Rails 中使用 rails 4.0 以上
Gemfile 中增加:
      gem 'compass-rails', '~> 3.0', '>= 3.0.2' # compass 必须是这个版本
      gem 'simple_form' # 此框架表单是根据simple_form生成的
      gem 'jquery-rails' # 如果是rails 5
      gem "eop_frontend", git: "git@git.wityun.com:eop/eop_frontend.git"
    
修改 config/environments/production.rb:
      config.assets.js_compressor = Uglifier.new(harmony: true)
    
执行:
      bundle install
      rails g eop_frontend:install
    
这样就可以使用相关的样式了!

基础颜色

红色 白色
红色 白色
    
<span class="red">红色</span>
<span class="white bg_red">白色</span>
<br />
<a href="#nogo" class="red">红色</a>
<a href="#nogo" class="white bg_red">白色</a>