Class: MerbUi::Styles

Inherits:
Application show all
Defined in:
app/controllers/styles.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/controllers/styles.rb', line 5

def index
  if mui_browser == 'gecko'
    focus = selector('*::-moz-focus-inner') do
      property('border', :value => 'none') +
      property('padding', :linebreak => true, :value => 0)
    end
    input = selector('input') do
      property('-moz-box-sizing', :value => 'border-box')
    end
    @browser = focus + input
  elsif mui_browser == 'msie'
    @browser = selector('*.mui_button') do
      property('overflow', :value => 'visible') +
      property('width', :linebreak => true, :value => 'auto')
    end
  end
  render :layout => false
end