Class: Lato::Btstrap

Inherits:
Object
  • Object
show all
Defined in:
lib/lato/btstrap.rb

Overview

Btstrap This class contains the default boostrap classes used on layout elements of the application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBtstrap

Returns a new instance of Btstrap.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/lato/btstrap.rb', line 18

def initialize
  # Navbar defaults
  @navbar = 'navbar-light navbar-expand-lg fixed-top bg-light shadow-sm px-md-3'
  @navbar_container = 'container-fluid'
  @navbar_collapse = 'justify-content-end'

  # Sidebar defaults
  @sidebar = 'p-3 bg-light border-end'

  # Content defaults
  @content = 'px-md-3 py-3'
  @content_container = 'container-fluid'

  # Footer defaults
  @footer = 'bg-light px-md-3 py-2'
  @footer_container = 'container-fluid text-center text-muted d-md-flex justify-content-between p-3'
end

Instance Attribute Details

#contentObject

Content classes



13
14
15
# File 'lib/lato/btstrap.rb', line 13

def content
  @content
end

#content_containerObject

Content classes



13
14
15
# File 'lib/lato/btstrap.rb', line 13

def content_container
  @content_container
end

Footer classes



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

def footer
  @footer
end

Footer classes



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

def footer_container
  @footer_container
end

Navbar classes



7
8
9
# File 'lib/lato/btstrap.rb', line 7

def navbar
  @navbar
end

Navbar classes



7
8
9
# File 'lib/lato/btstrap.rb', line 7

def navbar_collapse
  @navbar_collapse
end

Navbar classes



7
8
9
# File 'lib/lato/btstrap.rb', line 7

def navbar_container
  @navbar_container
end

Sidebar classes



10
11
12
# File 'lib/lato/btstrap.rb', line 10

def sidebar
  @sidebar
end