mini color adjustment

This commit is contained in:
Torsten 2022-12-23 21:52:02 +02:00
parent 730b49a8bb
commit ab05618c45
5 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,3 @@
guard :minitest , all_on_start: false do guard :minitest , all_on_start: false do
sys_tests = "test/integration" sys_tests = "test/integration"
# with Minitest::Unit # with Minitest::Unit
@ -8,4 +6,7 @@ guard :minitest , all_on_start: false do
watch(%r{^app/models/merged/([^/]+)\.rb$}) { |m| Dir["test/models/#{m[1]}*_test.rb"] } watch(%r{^app/models/merged/([^/]+)\.rb$}) { |m| Dir["test/models/#{m[1]}*_test.rb"] }
watch(%r{^app/views/merged/([^/]+)\/([^/]+)\.haml$}){ |m| Dir["test/integration/#{m[1]}_#{m[2]}_test.rb"] } watch(%r{^app/views/merged/([^/]+)\/([^/]+)\.haml$}){ |m| Dir["test/integration/#{m[1]}_#{m[2]}_test.rb"] }
watch(%r{^test/test_helper\.rb$}) { 'test' } watch(%r{^test/test_helper\.rb$}) { 'test' }
notification :off
end end

View File

@ -48,7 +48,7 @@ module Merged
def check_maths def check_maths
key = params[:bot_fudder].to_i / 2 key = params[:bot_fudder].to_i / 2
if( (2*key + 1).to_s != params[:challenge]) if( (2*key + 1).to_s != params[:challenge])
@errors[:challenge] = "Check the maths #{key.to_i} #{params[:challenge]}" @errors[:challenge] = "Check the maths #{params[:challenge]}"
end end
end end

View File

@ -93,10 +93,10 @@ module Merged
"light_gray" => " bg-gray-100" , "light_gray" => " bg-gray-100" ,
"light_orange" => " bg-orange-50" , "light_orange" => " bg-orange-50" ,
"solid_blue" => " bg-cyan-700" , "solid_blue" => " bg-cyan-700" ,
"solid_red" => " bg-orange-800" , "solid_red" => " bg-amber-600" ,
"solid_green" => " bg-green-700" , "solid_green" => " bg-green-700" ,
"solid_petrol" => " bg-teal-700" , "solid_petrol" => " bg-teal-700" ,
"solid_indigo" => " bg-indigo-800" , "solid_indigo" => " bg-cyan-900" ,
"solid_black" => " bg-slate-900" , "solid_black" => " bg-slate-900" ,
}[section.option('background')] || "" }[section.option('background')] || ""
end end

View File

@ -1,5 +1,5 @@
%section.overflow-hidden.bg-cover.bg-center.bg-no-repeat{bg(section)} %section.overflow-hidden.bg-cover.bg-center.bg-no-repeat{bg(section , "h-full")}
.px-4.py-8.sm:px-6.lg:px-8 .px-4.py-24.sm:px-6.lg:px-8
.flex{ item_align_option( section)} .flex{ item_align_option( section)}
.p-8.md:p-12.lg:px-16.lg:py-24{options(section , :shade )} .p-8.md:p-12.lg:px-16.lg:py-24{options(section , :shade )}
.mx-auto.max-w-xl{ options(section , :color, :text_align)} .mx-auto.max-w-xl{ options(section , :color, :text_align)}

View File

@ -212,7 +212,7 @@
:image_id: :image_id:
- :id: 45 - :id: 45
:header: Subject :header: Subject
:text: TEXT :text: ''
:options: :options:
compulsory: 'yes' compulsory: 'yes'
form_type: text form_type: text