Class: Policygen::Css::Tailwind
- Inherits:
-
Object
- Object
- Policygen::Css::Tailwind
- Defined in:
- lib/policygen/css/tailwind.rb
Instance Attribute Summary collapse
-
#body_class ⇒ Object
readonly
Returns the value of attribute body_class.
-
#bold_class ⇒ Object
readonly
Returns the value of attribute bold_class.
-
#container_class ⇒ Object
readonly
Returns the value of attribute container_class.
-
#h1_class ⇒ Object
readonly
Returns the value of attribute h1_class.
-
#h2_class ⇒ Object
readonly
Returns the value of attribute h2_class.
-
#h3_class ⇒ Object
readonly
Returns the value of attribute h3_class.
-
#link_class ⇒ Object
readonly
Returns the value of attribute link_class.
-
#ol_class ⇒ Object
readonly
Returns the value of attribute ol_class.
-
#section_class ⇒ Object
readonly
Returns the value of attribute section_class.
-
#ul_class ⇒ Object
readonly
Returns the value of attribute ul_class.
Instance Method Summary collapse
-
#initialize ⇒ Tailwind
constructor
A new instance of Tailwind.
Constructor Details
#initialize ⇒ Tailwind
Returns a new instance of Tailwind.
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/policygen/css/tailwind.rb', line 15 def initialize @container_class = "container mx-auto px-4" @h1_class = "text-4xl font-bold #{Policygen.config.get_tailwind_config(:heading_color)}" @h2_class = "text-2xl mt-4 font-bold #{Policygen.config.get_tailwind_config(:heading_color)}" @h3_class = "text-xl mt-4 font-bold #{Policygen.config.get_tailwind_config(:heading_color)}" @section_class = "mt-8" @body_class = "mt-4 #{Policygen.config.get_tailwind_config(:body_color)}" @ul_class = "list-disc list-inside #{Policygen.config.get_tailwind_config(:body_color)}" @ol_class = "list-decimal list-inside #{Policygen.config.get_tailwind_config(:body_color)}" @bold_class = "font-bold" @link_class = "underline #{Policygen.config.get_tailwind_config(:link_color)}" end |
Instance Attribute Details
#body_class ⇒ Object (readonly)
Returns the value of attribute body_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def body_class @body_class end |
#bold_class ⇒ Object (readonly)
Returns the value of attribute bold_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def bold_class @bold_class end |
#container_class ⇒ Object (readonly)
Returns the value of attribute container_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def container_class @container_class end |
#h1_class ⇒ Object (readonly)
Returns the value of attribute h1_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def h1_class @h1_class end |
#h2_class ⇒ Object (readonly)
Returns the value of attribute h2_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def h2_class @h2_class end |
#h3_class ⇒ Object (readonly)
Returns the value of attribute h3_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def h3_class @h3_class end |
#link_class ⇒ Object (readonly)
Returns the value of attribute link_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def link_class @link_class end |
#ol_class ⇒ Object (readonly)
Returns the value of attribute ol_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def ol_class @ol_class end |
#section_class ⇒ Object (readonly)
Returns the value of attribute section_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def section_class @section_class end |
#ul_class ⇒ Object (readonly)
Returns the value of attribute ul_class.
4 5 6 |
# File 'lib/policygen/css/tailwind.rb', line 4 def ul_class @ul_class end |