pg_rails 7.0.8.pre.alpha.99 → 7.0.8.pre.alpha.101

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eec38e939cd0d6ff81cd8cdf6d90eab6ea2e9ad52e0ac2a037f72708912430b
4
- data.tar.gz: f2a4a37206c8593891d74bfc24f2928ee4698f23b1ca89c5e71cf21515e0f486
3
+ metadata.gz: e5de324bc6986949e29a2e77a3caba22be62d6363982a48aba84dfb14af5c837
4
+ data.tar.gz: fa43530ad2711da42f2e03fba31fbc9a008a410bb13367f8b8b507cda5dbdd51
5
5
  SHA512:
6
- metadata.gz: 54e5d70844d9f3b49c9747807ba72a90d764000263497a18e45087ba110d50c5eb090769c1602be21a1705660fefe8f8c0fa8e2ba5916d172c8abb500c88c95e
7
- data.tar.gz: d40747733ad590ca22b37971ddc724454ec3259422176e50dbec5d7d74168d42600d32586d33e741257bffa6fa2714a40acdba466290519011980c73d0153815
6
+ metadata.gz: e25a3e0166fab9e1ab64ac74b9d1fdff3f9a32125aa6b82b502e20983d7f07e737f0c61493da19be1273941e9859f92b7d081a616af18c34ea8203a8822ee58c
7
+ data.tar.gz: 805e8f1371b927c43ac7ea91b440c306fc6379dec6389277c519401bcfb5c2b85325cb59455badfd0a6759d055dea011028855a8983960daaf07cdf4bdad8fc8
@@ -3,9 +3,9 @@ include PgEngine::RouteHelpers
3
3
  Rails.application.routes.draw do
4
4
  get "pg_engine/health" => "pg_engine/health#show", as: :pg_engine_health_check
5
5
 
6
- get '404', to: 'pg_engine/base#page_not_found'
7
- get '500', to: 'pg_engine/base#internal_error'
8
- get 'internal_error_but_with_status200', to: 'pg_engine/base#internal_error_but_with_status200'
6
+ get '404', to: 'application#page_not_found'
7
+ get '500', to: 'application#internal_error'
8
+ get 'internal_error_but_with_status200', to: 'application#internal_error_but_with_status200'
9
9
 
10
10
  namespace :public, path: '' do
11
11
  pg_resource(:mensaje_contactos, only: [:new, :create], path: 'contacto')
@@ -46,9 +46,9 @@ $chevron-color: 200,200,200,.5;
46
46
  // background-color: #d2f4ea;
47
47
  }
48
48
 
49
- #sidebar li a.active {
50
- font-weight: bold;
49
+ .pg--nav-button.active {
51
50
  --bs-link-color-rgb: white!important;
51
+ background-color: tint-color($primary, 17%);
52
52
  }
53
53
  // Los small-items están deprecados
54
54
  #sidebar {
@@ -94,11 +94,29 @@ $chevron-color: 200,200,200,.5;
94
94
  flex-basis: 10em;
95
95
  }
96
96
  & > * {
97
- width: 9em;
97
+ width: 10em;
98
98
  position:fixed;
99
99
  }
100
100
  }
101
101
 
102
+ .pg--nav-button {
103
+ padding: 0.4em 1.7em;
104
+ width: 100%;
105
+ text-align: right;
106
+ display: inline-block !important;
107
+ }
108
+ .offcanvas-body {
109
+ padding: 0!important;
110
+ }
111
+ .pg--nav-button:hover {
112
+ background-color: tint-color($primary, 20%);
113
+ }
114
+
115
+ .offcanvas .pg--nav-button {
116
+ padding: 0.7em 1.7em;
117
+ text-align: right;
118
+ }
119
+
102
120
  .with-sidebar > :last-child {
103
121
  flex-basis: 0;
104
122
  flex-grow: 999;
@@ -4,7 +4,7 @@
4
4
  <%= @navbar.logo if @navbar.logo.present? %>
5
5
  </div>
6
6
  <% if user_signed_in? %>
7
- <span class="ms-3 text-light"><%= Current.user %></span>
7
+ <span class="d-inline-block px-3 text-end text-light"><%= Current.user %></span>
8
8
  <hr>
9
9
  <% end %>
10
10
  <ul class="list-unstyled ps-0">
@@ -15,7 +15,7 @@
15
15
  <a
16
16
  href="<%= entry[:path] %>"
17
17
  class="
18
- d-inline-flex text-decoration-none ms-3
18
+ d-inline-flex text-decoration-none pg--nav-button
19
19
  <%= @navbar.active_entry?(entry, request) ? 'active' : '' %>"
20
20
  <%= entry[:attributes] %>
21
21
  >
@@ -3,9 +3,9 @@
3
3
  <h5 class="offcanvas-title" id="offcanvasExampleLabel"></h5>
4
4
  <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
5
5
  </div>
6
- <div class="offcanvas-body">
6
+ <div class="offcanvas-body text-end">
7
7
  <% if user_signed_in? %>
8
- <span class="text-light"><%= Current.user %></span>
8
+ <span class="text-light pe-4 mt-4 d-inline-block"><%= Current.user %></span>
9
9
  <hr>
10
10
  <% end %>
11
11
  <ul class="list-unstyled mt-4">
@@ -15,7 +15,7 @@
15
15
  <li>
16
16
  <a
17
17
  href="<%= entry[:path] %>"
18
- class="text-light <%= @navbar.active_entry?(entry, request) ? 'active' : '' %>"
18
+ class="pg--nav-button pe-4 text-light <%= @navbar.active_entry?(entry, request) ? 'active' : '' %>"
19
19
  <%= entry[:attributes] %>
20
20
  >
21
21
  <%= entry[:title] %>
@@ -30,6 +30,6 @@
30
30
  text-decoration: none;
31
31
  }
32
32
  .offcanvas li {
33
- margin-top: 0.75em;
33
+ xmargin-top: 0.75em;
34
34
  }
35
35
  </style>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.99'
4
+ VERSION = '7.0.8-alpha.101'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.99
4
+ version: 7.0.8.pre.alpha.101
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso