Module: Breeze

Defined in:
lib/breeze.rb,
lib/breeze/engine.rb,
lib/breeze/version.rb,
app/models/breeze/card.rb,
app/models/breeze/page.rb,
app/models/breeze/image.rb,
app/models/breeze/style.rb,
lib/breeze/shared_helper.rb,
app/models/breeze/section.rb,
app/models/breeze/view_base.rb,
app/models/breeze/card_style.rb,
app/models/breeze/change_set.rb,
app/models/breeze/page_style.rb,
app/models/breeze/active_base.rb,
app/models/breeze/active_yaml.rb,
app/models/breeze/shared_base.rb,
app/models/breeze/translation.rb,
app/helpers/breeze/form_helper.rb,
app/helpers/breeze/view_helper.rb,
app/helpers/breeze/cards_helper.rb,
app/helpers/breeze/pages_helper.rb,
app/jobs/breeze/application_job.rb,
app/models/breeze/section_style.rb,
app/helpers/breeze/breeze_helper.rb,
app/helpers/breeze/images_helper.rb,
app/helpers/breeze/styles_helper.rb,
app/helpers/breeze/changes_helper.rb,
app/helpers/breeze/options_helper.rb,
app/helpers/breeze/sections_helper.rb,
app/models/breeze/option_definition.rb,
app/mailers/breeze/application_mailer.rb,
app/controllers/breeze/form_controller.rb,
app/controllers/breeze/view_controller.rb,
app/helpers/breeze/translations_helper.rb,
app/controllers/breeze/cards_controller.rb,
app/controllers/breeze/pages_controller.rb,
app/controllers/breeze/breeze_controller.rb,
app/controllers/breeze/images_controller.rb,
app/controllers/breeze/styles_controller.rb,
app/controllers/breeze/changes_controller.rb,
app/controllers/breeze/sections_controller.rb,
app/controllers/breeze/application_controller.rb,
lib/generators/breeze/update/update_generator.rb,
app/controllers/breeze/translations_controller.rb,
lib/generators/breeze/install/install_generator.rb

Defined Under Namespace

Modules: BreezeHelper, CardsHelper, ChangesHelper, FormHelper, ImagesHelper, OptionsHelper, PagesHelper, SectionsHelper, SharedHelper, StylesHelper, TranslationsHelper, ViewHelper Classes: ActiveBase, ActiveYaml, ApplicationController, ApplicationJob, ApplicationMailer, BreezeController, Card, CardStyle, CardsController, ChangeSet, ChangesController, Engine, FormController, Image, ImagesController, InstallGenerator, OptionDefinition, Page, PageStyle, PagesController, Section, SectionStyle, SectionsController, SharedBase, Style, StylesController, Translation, TranslationsController, UpdateGenerator, ViewBase, ViewController

Constant Summary collapse

VERSION =
"1.0.1"
@@images_dir =
"breeze"
@@languages =
""
@@data_dir =
"."
@@text_color =
{ "white" => "text-white",
  "none" => "",
  "light_blue" => "text-cyan-100",
  "light_gray" => "text-gray-100",
  "solid_blue" => "text-cyan-700",
  "solid_red" => "text-orange-800",
  "solid_green" => "text-green-700",
  "solid_petrol" => "text-teal-700",
  "solid_indigo" => "text-indigo-800",
  "solid_black" => "text-slate-800",
}
@@margin =
{ "none" =>  "m-0",
"small" => " m-2 md:m-4  lg:6  xl:m-8",
"medium" => "m-5 md:m-8  lg:10 xl:m-14",
"large" => " m-8 md:m-12 lg:16 xl:m-20",}
@@background =
{"white" =>  "bg-white",
"none" =>  "",
"light_blue" => "bg-cyan-100",
"light_gray" => "bg-gray-100",
"light_orange" => "bg-orange-50",
"solid_blue" => "bg-cyan-700  text-white",
"solid_red" => "bg-amber-600  text-white",
"solid_green" => "bg-green-700 text-white",
"solid_petrol" => "bg-teal-700  text-white",
"solid_indigo" => "bg-cyan-900 text-white",
"solid_black" => "bg-slate-900  text-white",  }
@@shade_color =
{"white_25" => "bg-white/25",
"none" => "",
"black_25" => "bg-black/25",
"light_blue_25" => "bg-cyan-100/25",
"light_red_25" => "bg-orange-300/25",
"solid_blue_25" => "bg-cyan-700/25",
"solid_red_25" => "bg-orange-800/25", }
@@text_columns =
{
"3" => "columns-1 md:columns-2 lg:columns-3",
"4" => "columns-1 md:columns-2 lg:columns-3 xl:columns-4",
"2" => "columns-1 md:columns-2" }
@@slider_columns =
{
 "1" => {  640 => { slidesPerView: 1, spaceBetween: 20 }, },
 "2" => {  640 => { slidesPerView: 1, spaceBetween: 20 },
           1280 => { slidesPerView: 2, spaceBetween: 30 }, },
 "3" => {  640 => { slidesPerView: 1, spaceBetween: 20 },
           1024 => { slidesPerView: 2, spaceBetween: 30 },
           1536 => { slidesPerView: 3, spaceBetween: 40 } },
 "4" => {  640 => { slidesPerView: 1, spaceBetween: 20 },
           1024 => { slidesPerView: 2, spaceBetween: 30 },
           1536 => { slidesPerView: 4, spaceBetween: 40 }  },
}
@@columns =
{
"1" => "grid-cols-1 gap-8 md:gap-12 lg:gap-16",
"2" => "grid-cols-1 md:grid-cols-2  gap-8 md:gap-12 lg:gap-16" ,
"3" => "grid-cols-1 md:grid-cols-2 lg:grid-cols-3  gap-8 md:gap-12 lg:gap-16",
"4" => "grid-cols-1 md:grid-cols-2 lg:grid-cols-4  gap-8 md:gap-12 lg:gap-16",
"5" => "grid-cols-1 md:grid-cols-3 lg:grid-cols-5  gap-8 md:gap-12 lg:gap-16",
"6" => "grid-cols-2 md:grid-cols-4 lg:grid-cols-6  gap-8 md:gap-12 lg:gap-16", }

Class Method Summary collapse

Class Method Details

.has_language(lang) ⇒ Object



16
17
18
# File 'lib/breeze.rb', line 16

def self.has_language( lang )
  @@languages.include?(lang)
end

.language_stringsObject



20
21
22
# File 'lib/breeze.rb', line 20

def self.language_strings
  @@languages.split
end