Skip to content

Commit

Permalink
Rename Title modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar committed Sep 22, 2024
1 parent 6be2f19 commit 7bd9d67
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/PhlexyUI/phlexy_ui.git
revision: 0960d0452385017a96789f1f6ee51c45083efdaa
revision: f5a986cb4d338a66b5a64612f3c64c0fc6ba0e93
branch: main
specs:
phlexy_ui (0.1.5)
Expand Down
8 changes: 4 additions & 4 deletions app/views/components/shared/title.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def view_template(&)

TITLE_MODIFIERS_CLASSES = {
lg: "text-lg",
"1x": "text-xl",
"2x": "text-2xl",
"3x": "text-3xl",
"4x": "text-4xl",
xl: "text-xl",
"2xl": "text-2xl",
"3xl": "text-3xl",
"4xl": "text-4xl",
bold: "font-bold",
extrabold: "font-extrabold"
}
Expand Down
6 changes: 3 additions & 3 deletions app/views/docs/abouts/show_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def view_template
"Docs"
end

Title :"4x", :extrabold do
Title :"4xl", :extrabold do
"About"
end

Expand All @@ -31,7 +31,7 @@ def breadcrumbs

def render_about_section
DocsSection do
Title :"2x", :bold, as: :h2, class: "space-y-4" do
Title :"2xl", :bold, as: :h2 do
"Why PhlexyUI?"
end

Expand Down Expand Up @@ -59,7 +59,7 @@ def render_about_section
end

DocsSection do
Title :"2x", :bold, as: :h2, class: "space-y-4" do
Title :"2xl", :bold, as: :h2 do
"Vision"
end

Expand Down
10 changes: 5 additions & 5 deletions app/views/docs/configurations/show_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def view_template
"Docs"
end

Title :"4x", :extrabold do
Title :"4xl", :extrabold do
"Configuration"
end

Expand All @@ -32,7 +32,7 @@ def breadcrumbs

def render_prefix_section
DocsSection do
Title :"2x", :bold, as: :h2, class: "space-y-4" do
Title :"2xl", :bold, as: :h2 do
"Prefix"
end

Expand Down Expand Up @@ -71,11 +71,11 @@ def render_prefix_section

def render_custom_modifiers_section
DocsSection do
Title :"2x", :bold, as: :h2, class: "space-y-4" do
Title :"2xl", :bold, as: :h2 do
"Custom Modifiers"
end

Title :"1x", :bold, as: :h3, class: "space-y-4" do
Title :xl, :bold, as: :h3 do
"Component specific modifiers"
end

Expand Down Expand Up @@ -114,7 +114,7 @@ def render_custom_modifiers_section
HTML
end

Title :"1x", :bold, as: :h3, class: "space-y-4" do
Title :xl, :bold, as: :h3 do
"Global modifiers"
end

Expand Down
6 changes: 3 additions & 3 deletions app/views/docs/installations/show_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def view_template
"Docs"
end

Title :"4x", :extrabold do
Title :"4xl", :extrabold do
"Get started with PhlexyUI"
end

Expand Down Expand Up @@ -37,7 +37,7 @@ def render_summary
end

def render_css_dependencies_section
Title :"2x", :bold, as: :h3 do
Title :"2xl", :bold, as: :h3 do
"1. Install CSS dependencies"
end

Expand Down Expand Up @@ -150,7 +150,7 @@ def render_css_dependencies_section
end

def render_ruby_dependencies_section
Title :"2x", :bold, as: :h3 do
Title :"2xl", :bold, as: :h3 do
"2. Install Ruby dependencies"
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/examples/base_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def initialize(component:)
end

def title(&)
Title :"4x", :extrabold, &
Title :"4xl", :extrabold, &
end

def render_examples(example_components)
Expand Down

0 comments on commit 7bd9d67

Please sign in to comment.