voidable-hotwire 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/devise/confirmations/new.html.erb +22 -0
- data/app/views/devise/passwords/edit.html.erb +27 -0
- data/app/views/devise/passwords/new.html.erb +21 -0
- data/app/views/devise/registrations/edit.html.erb +50 -0
- data/app/views/devise/registrations/new.html.erb +29 -0
- data/app/views/devise/sessions/new.html.erb +35 -0
- data/app/views/devise/shared/_error_messages.html.erb +10 -0
- data/app/views/devise/shared/_links.html.erb +33 -0
- data/app/views/devise/unlocks/new.html.erb +22 -0
- data/lib/generators/voidable/devise_views/devise_views_generator.rb +15 -0
- data/lib/generators/voidable/install/install_generator.rb +112 -0
- data/lib/generators/voidable/install/templates/_settings_menu.html.erb +31 -0
- data/lib/generators/voidable/install/templates/application_sidebar.html.erb.tt +86 -0
- data/lib/generators/voidable/install/templates/application_topbar.html.erb.tt +69 -0
- data/lib/generators/voidable/install/templates/initializer.rb.tt +2 -0
- data/lib/generators/voidable/install/templates/settings_controller.rb.tt +7 -0
- data/lib/generators/voidable/install/templates/sidebar.html.erb.tt +86 -0
- data/lib/generators/voidable/install/templates/topbar.html.erb.tt +69 -0
- data/lib/generators/voidable/install/templates/voidable-devise.css +37 -0
- data/lib/generators/voidable/install/templates/voidable-layout-sidebar.css +460 -0
- data/lib/generators/voidable/install/templates/voidable-layout-topbar.css +361 -0
- data/lib/generators/voidable/install/templates/voidable-layout.js +41 -0
- data/lib/templates/erb/scaffold/_form.html.erb.tt +80 -0
- data/lib/templates/erb/scaffold/edit.html.erb.tt +18 -0
- data/lib/templates/erb/scaffold/index.html.erb.tt +65 -0
- data/lib/templates/erb/scaffold/new.html.erb.tt +3 -0
- data/lib/templates/erb/scaffold/partial.html.erb.tt +17 -0
- data/lib/templates/erb/scaffold/show.html.erb.tt +56 -0
- data/lib/voidable/hotwire/engine.rb +5 -0
- data/lib/voidable/hotwire/version.rb +1 -1
- metadata +29 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" data-theme="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title><%%= content_for(:title) || "<%= app_name.titleize %>" %></title>
|
|
7
|
+
<%%= csrf_meta_tags %>
|
|
8
|
+
<%%= csp_meta_tag %>
|
|
9
|
+
<%%= yield :head %>
|
|
10
|
+
<%%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
|
|
11
|
+
<%%= stylesheet_link_tag "voidable-theme", "data-turbo-track": "reload" %>
|
|
12
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.44.0/dist/tabler-icons.min.css">
|
|
13
|
+
<%%= stylesheet_link_tag "voidable-layout-sidebar", "data-turbo-track": "reload" %>
|
|
14
|
+
<%%= stylesheet_link_tag "voidable-devise", "data-turbo-track": "reload" %>
|
|
15
|
+
<%%= javascript_importmap_tags %>
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
<body>
|
|
19
|
+
<div class="app-shell">
|
|
20
|
+
<void-sidebar width="220px">
|
|
21
|
+
<div class="sidebar-header">
|
|
22
|
+
<div class="sidebar-brand-initial"><%= app_name.first.upcase %></div>
|
|
23
|
+
<div class="sidebar-brand-info">
|
|
24
|
+
<div class="sidebar-brand-name"><%= app_name.titleize %></div>
|
|
25
|
+
<div class="sidebar-brand-env">Production</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<nav class="sidebar-nav">
|
|
30
|
+
<div class="sidebar-nav-section">
|
|
31
|
+
<div class="sidebar-nav-label">Main</div>
|
|
32
|
+
<div class="sidebar-nav-item">
|
|
33
|
+
<%%= link_to "Dashboard", root_path %>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
</nav>
|
|
38
|
+
|
|
39
|
+
<div class="sidebar-footer">
|
|
40
|
+
<div class="sidebar-footer-row">
|
|
41
|
+
<%% if defined?(Devise) && user_signed_in? %>
|
|
42
|
+
<span class="sidebar-user-email"><%%= current_user.email %></span>
|
|
43
|
+
<%% end %>
|
|
44
|
+
<%%= render "layouts/settings_menu", popover_position: "top", layout_toggle: true, layout_toggle_icon: "layout-navbar", layout_toggle_label: "Switch to topbar" %>
|
|
45
|
+
</div>
|
|
46
|
+
<%% if defined?(Devise) && user_signed_in? %>
|
|
47
|
+
<void-button variant="ghost" size="sm" class="sidebar-sign-in"><a href="<%%= destroy_user_session_path %>" data-turbo-method="delete">Sign out</a></void-button>
|
|
48
|
+
<%% elsif defined?(Devise) %>
|
|
49
|
+
<void-button variant="ghost" size="sm" class="sidebar-sign-in"><a href="<%%= new_user_session_path %>">Sign in</a></void-button>
|
|
50
|
+
<%% end %>
|
|
51
|
+
</div>
|
|
52
|
+
</void-sidebar>
|
|
53
|
+
|
|
54
|
+
<main class="app-main">
|
|
55
|
+
<div class="app-content-header">
|
|
56
|
+
<div class="app-content-header-left">
|
|
57
|
+
<span class="app-content-header-breadcrumb"><%%= content_for(:breadcrumb) || content_for(:title) || "<%= app_name.titleize %>" %></span>
|
|
58
|
+
<%% if content_for?(:subtitle) %>
|
|
59
|
+
<span class="app-content-header-subtitle"><%%= content_for(:subtitle) %></span>
|
|
60
|
+
<%% end %>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="app-content-header-right">
|
|
63
|
+
<void-action-input icon="search" placeholder="Search..." size="sm" tooltip-position="bottom" class="app-content-header-search"></void-action-input>
|
|
64
|
+
<%%= content_for(:header_actions) %>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="app-content-body">
|
|
68
|
+
<%% if notice.present? %>
|
|
69
|
+
<div class="flash-messages">
|
|
70
|
+
<void-alert color="success" dismissible><%%= notice %></void-alert>
|
|
71
|
+
</div>
|
|
72
|
+
<%% end %>
|
|
73
|
+
<%% if alert.present? %>
|
|
74
|
+
<div class="flash-messages">
|
|
75
|
+
<void-alert color="error" dismissible><%%= alert %></void-alert>
|
|
76
|
+
</div>
|
|
77
|
+
<%% end %>
|
|
78
|
+
|
|
79
|
+
<%%= yield %>
|
|
80
|
+
</div>
|
|
81
|
+
</main>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<%%= javascript_include_tag "voidable-layout", "data-turbo-track": "reload" %>
|
|
85
|
+
</body>
|
|
86
|
+
</html>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" data-theme="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title><%%= content_for(:title) || "<%= app_name.titleize %>" %></title>
|
|
7
|
+
<%%= csrf_meta_tags %>
|
|
8
|
+
<%%= csp_meta_tag %>
|
|
9
|
+
<%%= yield :head %>
|
|
10
|
+
<%%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
|
|
11
|
+
<%%= stylesheet_link_tag "voidable-theme", "data-turbo-track": "reload" %>
|
|
12
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.44.0/dist/tabler-icons.min.css">
|
|
13
|
+
<%%= stylesheet_link_tag "voidable-layout-topbar", "data-turbo-track": "reload" %>
|
|
14
|
+
<%%= stylesheet_link_tag "voidable-devise", "data-turbo-track": "reload" %>
|
|
15
|
+
<%%= javascript_importmap_tags %>
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
<body>
|
|
19
|
+
<nav class="app-nav">
|
|
20
|
+
<div class="app-nav-inner">
|
|
21
|
+
<a href="/" class="app-nav-brand"><%= app_name.titleize %></a>
|
|
22
|
+
<div class="app-nav-right">
|
|
23
|
+
<span class="app-nav-auth">
|
|
24
|
+
<%% if defined?(Devise) && user_signed_in? %>
|
|
25
|
+
<span><%%= current_user.email %></span>
|
|
26
|
+
<%% elsif defined?(Devise) %>
|
|
27
|
+
<a href="<%%= new_user_session_path %>">Sign in</a>
|
|
28
|
+
<%% end %>
|
|
29
|
+
</span>
|
|
30
|
+
<%%= render "layouts/settings_menu", popover_position: "bottom", layout_toggle: true, layout_toggle_icon: "layout-sidebar-left-collapse", layout_toggle_label: "Switch to sidebar" %>
|
|
31
|
+
<%% if defined?(Devise) && user_signed_in? %>
|
|
32
|
+
<void-button variant="ghost" size="sm"><a href="<%%= destroy_user_session_path %>" data-turbo-method="delete">Sign out</a></void-button>
|
|
33
|
+
<%% end %>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</nav>
|
|
37
|
+
|
|
38
|
+
<main class="app-main">
|
|
39
|
+
<div class="app-content-header">
|
|
40
|
+
<div class="app-content-header-left">
|
|
41
|
+
<span class="app-content-header-breadcrumb"><%%= content_for(:breadcrumb) || content_for(:title) || "<%= app_name.titleize %>" %></span>
|
|
42
|
+
<%% if content_for?(:subtitle) %>
|
|
43
|
+
<span class="app-content-header-subtitle"><%%= content_for(:subtitle) %></span>
|
|
44
|
+
<%% end %>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="app-content-header-right">
|
|
47
|
+
<void-action-input icon="search" placeholder="Search..." size="sm" tooltip-position="bottom" class="app-content-header-search"></void-action-input>
|
|
48
|
+
<%%= content_for(:header_actions) %>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="app-content-body">
|
|
52
|
+
<%% if notice.present? %>
|
|
53
|
+
<div class="flash-messages">
|
|
54
|
+
<void-alert color="success" dismissible><%%= notice %></void-alert>
|
|
55
|
+
</div>
|
|
56
|
+
<%% end %>
|
|
57
|
+
<%% if alert.present? %>
|
|
58
|
+
<div class="flash-messages">
|
|
59
|
+
<void-alert color="error" dismissible><%%= alert %></void-alert>
|
|
60
|
+
</div>
|
|
61
|
+
<%% end %>
|
|
62
|
+
|
|
63
|
+
<%%= yield %>
|
|
64
|
+
</div>
|
|
65
|
+
</main>
|
|
66
|
+
|
|
67
|
+
<%%= javascript_include_tag "voidable-layout", "data-turbo-track": "reload" %>
|
|
68
|
+
</body>
|
|
69
|
+
</html>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Devise view styles */
|
|
2
|
+
|
|
3
|
+
/* Page-level container: centers content with max-width */
|
|
4
|
+
.devise-container { max-width: 28rem; margin: 0 auto; padding: 2rem; }
|
|
5
|
+
.devise-container--wide { max-width: 36rem; }
|
|
6
|
+
|
|
7
|
+
/* Card body padding */
|
|
8
|
+
.devise-card-body { padding: var(--void-space-6); }
|
|
9
|
+
|
|
10
|
+
/* Page heading */
|
|
11
|
+
.devise-heading { margin: 0 0 var(--void-space-5) 0; font-family: var(--void-font-sans); font-size: var(--void-text-xl); font-weight: var(--void-weight-bold); color: var(--void-color-text); }
|
|
12
|
+
|
|
13
|
+
/* Subtitle/description below heading */
|
|
14
|
+
.devise-description { margin: calc(-1 * var(--void-space-3)) 0 var(--void-space-5) 0; font-family: var(--void-font-sans); font-size: var(--void-text-sm); color: var(--void-color-text-secondary); }
|
|
15
|
+
|
|
16
|
+
/* Form layout */
|
|
17
|
+
.devise-form { display: flex; flex-direction: column; gap: var(--void-space-4); }
|
|
18
|
+
|
|
19
|
+
/* Submit button wrapper */
|
|
20
|
+
.devise-submit { padding-top: var(--void-space-2); }
|
|
21
|
+
|
|
22
|
+
/* Full-width button */
|
|
23
|
+
.devise-btn-full { width: 100%; }
|
|
24
|
+
|
|
25
|
+
/* "or" divider between form and links */
|
|
26
|
+
.devise-divider { display: flex; align-items: center; gap: var(--void-space-3); margin-top: var(--void-space-4); }
|
|
27
|
+
.devise-divider-line { flex: 1; height: 1px; background: var(--void-color-border); }
|
|
28
|
+
.devise-divider-text { font-family: var(--void-font-sans); font-size: var(--void-text-xs); color: var(--void-color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
|
|
29
|
+
|
|
30
|
+
/* Links container */
|
|
31
|
+
.devise-links { display: flex; flex-direction: column; gap: var(--void-space-2); margin-top: var(--void-space-3); }
|
|
32
|
+
|
|
33
|
+
/* Error list inside alert */
|
|
34
|
+
.devise-error-list { margin: var(--void-space-2) 0 0 var(--void-space-4); padding: 0; }
|
|
35
|
+
|
|
36
|
+
/* Danger zone label (uppercase section heading) */
|
|
37
|
+
.devise-danger-label { font-family: var(--void-font-sans); font-size: var(--void-text-xs); font-weight: var(--void-weight-semibold); color: var(--void-color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 var(--void-space-3) 0; }
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
2
|
+
|
|
3
|
+
html {
|
|
4
|
+
font-family: var(--void-font-sans);
|
|
5
|
+
color: var(--void-color-text);
|
|
6
|
+
background: var(--void-color-bg);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
min-height: 100dvh;
|
|
11
|
+
line-height: var(--void-leading-normal);
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
a { color: inherit; text-decoration: none; }
|
|
16
|
+
|
|
17
|
+
/* Sidebar shell */
|
|
18
|
+
.app-shell {
|
|
19
|
+
display: flex;
|
|
20
|
+
min-height: 100dvh;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.app-shell > void-sidebar {
|
|
25
|
+
position: fixed;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
height: 100dvh;
|
|
29
|
+
z-index: 20;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Sidebar header */
|
|
33
|
+
.sidebar-header, .app-content-header {
|
|
34
|
+
height: var(--void-space-14);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sidebar-header {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: var(--void-space-3);
|
|
41
|
+
padding: 0 var(--void-space-4);
|
|
42
|
+
border-bottom: 1px solid var(--void-color-border);
|
|
43
|
+
background: var(--void-color-bg-secondary);
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sidebar-brand-initial {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: var(--void-space-7);
|
|
52
|
+
height: var(--void-space-7);
|
|
53
|
+
background: var(--void-color-border-strong);
|
|
54
|
+
border-radius: var(--void-radius-sm);
|
|
55
|
+
font-family: var(--void-font-mono);
|
|
56
|
+
font-weight: var(--void-weight-bold);
|
|
57
|
+
font-size: var(--void-text-sm);
|
|
58
|
+
color: var(--void-color-text);
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sidebar-brand-info {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: var(--void-space-0-5);
|
|
66
|
+
min-width: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.sidebar-brand-name {
|
|
70
|
+
font-size: var(--void-text-sm);
|
|
71
|
+
font-weight: var(--void-weight-medium);
|
|
72
|
+
color: var(--void-color-text);
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
text-overflow: ellipsis;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sidebar-brand-env {
|
|
79
|
+
font-family: var(--void-font-mono);
|
|
80
|
+
font-size: var(--void-text-2xs);
|
|
81
|
+
color: var(--void-color-text-muted);
|
|
82
|
+
text-transform: uppercase;
|
|
83
|
+
letter-spacing: var(--void-tracking-widest);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Sidebar nav */
|
|
87
|
+
.sidebar-nav {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
gap: var(--void-space-4);
|
|
91
|
+
padding: var(--void-space-4) var(--void-space-3);
|
|
92
|
+
overflow-y: auto;
|
|
93
|
+
flex: 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.sidebar-nav-section {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: var(--void-space-1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.sidebar-nav-label {
|
|
103
|
+
font-family: var(--void-font-mono);
|
|
104
|
+
font-size: var(--void-text-2xs);
|
|
105
|
+
text-transform: uppercase;
|
|
106
|
+
color: var(--void-color-text-muted);
|
|
107
|
+
letter-spacing: var(--void-tracking-widest);
|
|
108
|
+
padding: 0 var(--void-space-2);
|
|
109
|
+
margin-bottom: var(--void-space-1);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sidebar-nav-item {
|
|
113
|
+
border-radius: var(--void-radius-md);
|
|
114
|
+
font-size: var(--void-text-sm);
|
|
115
|
+
color: var(--void-color-text-secondary);
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
transition: color var(--void-duration-fast), background var(--void-duration-fast);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.sidebar-nav-item:hover {
|
|
121
|
+
background: var(--void-color-bg-hover);
|
|
122
|
+
color: var(--void-color-text);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.sidebar-nav-item.active {
|
|
126
|
+
background: var(--void-color-border-strong);
|
|
127
|
+
color: var(--void-color-text);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.sidebar-nav-item a {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: var(--void-space-2);
|
|
134
|
+
padding: var(--void-space-2);
|
|
135
|
+
width: 100%;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Sidebar footer */
|
|
139
|
+
.sidebar-footer {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
gap: var(--void-space-3);
|
|
143
|
+
padding: var(--void-space-3) var(--void-space-4);
|
|
144
|
+
border-top: 1px solid var(--void-color-border);
|
|
145
|
+
background: var(--void-color-bg-secondary);
|
|
146
|
+
flex-shrink: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.sidebar-user {
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
justify-content: space-between;
|
|
153
|
+
gap: var(--void-space-2);
|
|
154
|
+
min-width: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.sidebar-user-email {
|
|
158
|
+
font-size: var(--void-text-xs);
|
|
159
|
+
color: var(--void-color-text-muted);
|
|
160
|
+
white-space: nowrap;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
text-overflow: ellipsis;
|
|
163
|
+
min-width: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.sidebar-footer-row {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: var(--void-space-2);
|
|
170
|
+
min-width: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.sidebar-sign-in { width: 100%; }
|
|
174
|
+
|
|
175
|
+
.settings-btn {
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
width: 28px;
|
|
180
|
+
height: 28px;
|
|
181
|
+
padding: 0;
|
|
182
|
+
border: 1px solid var(--void-color-border);
|
|
183
|
+
border-radius: var(--void-radius-sm);
|
|
184
|
+
background: transparent;
|
|
185
|
+
color: var(--void-color-text-muted);
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
flex-shrink: 0;
|
|
188
|
+
transition: color var(--void-duration-fast) var(--void-ease-in-out),
|
|
189
|
+
background var(--void-duration-fast) var(--void-ease-in-out);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.settings-btn:hover {
|
|
193
|
+
color: var(--void-color-text);
|
|
194
|
+
background: var(--void-color-bg-hover);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.settings-btn i {
|
|
198
|
+
font-size: 14px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.sidebar-footer void-popover {
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
margin-left: auto;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.sidebar-footer void-popover .void-popover-body {
|
|
208
|
+
left: auto;
|
|
209
|
+
right: 0;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.settings-menu {
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
gap: var(--void-space-1);
|
|
216
|
+
min-width: 160px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.settings-menu-item {
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: var(--void-space-2);
|
|
223
|
+
padding: var(--void-space-2);
|
|
224
|
+
border: none;
|
|
225
|
+
border-radius: var(--void-radius-sm);
|
|
226
|
+
background: transparent;
|
|
227
|
+
font-family: var(--void-font-sans);
|
|
228
|
+
font-size: var(--void-text-sm);
|
|
229
|
+
color: var(--void-color-text);
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
transition: background var(--void-duration-fast) var(--void-ease-in-out);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.settings-menu-item:hover {
|
|
235
|
+
background: var(--void-color-bg-hover);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.settings-menu-item void-switch {
|
|
239
|
+
margin-left: auto;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.settings-menu-item i {
|
|
243
|
+
font-size: 16px;
|
|
244
|
+
color: var(--void-color-text-secondary);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.settings-menu-item:has(.settings-menu-action) {
|
|
248
|
+
padding: 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.settings-menu-action {
|
|
252
|
+
display: flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
gap: var(--void-space-2);
|
|
255
|
+
width: 100%;
|
|
256
|
+
padding: var(--void-space-2);
|
|
257
|
+
border: none;
|
|
258
|
+
border-radius: var(--void-radius-sm);
|
|
259
|
+
background: transparent;
|
|
260
|
+
font-family: var(--void-font-sans);
|
|
261
|
+
font-size: var(--void-text-sm);
|
|
262
|
+
color: var(--void-color-text);
|
|
263
|
+
cursor: pointer;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.settings-menu-action i {
|
|
267
|
+
font-size: 16px;
|
|
268
|
+
color: var(--void-color-text-secondary);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.settings-menu-form {
|
|
272
|
+
display: contents;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Main content area */
|
|
276
|
+
.app-main {
|
|
277
|
+
flex: 1;
|
|
278
|
+
min-width: 0;
|
|
279
|
+
display: flex;
|
|
280
|
+
flex-direction: column;
|
|
281
|
+
margin-left: 220px;
|
|
282
|
+
height: 100dvh;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.app-content-header {
|
|
286
|
+
display: flex;
|
|
287
|
+
align-items: center;
|
|
288
|
+
justify-content: space-between;
|
|
289
|
+
padding: 0 var(--void-space-4);
|
|
290
|
+
border-bottom: 1px solid var(--void-color-border);
|
|
291
|
+
background: var(--void-color-bg-secondary);
|
|
292
|
+
flex-shrink: 0;
|
|
293
|
+
position: sticky;
|
|
294
|
+
top: 0;
|
|
295
|
+
z-index: 10;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.app-content-header-left {
|
|
299
|
+
display: flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
gap: var(--void-space-3);
|
|
302
|
+
min-width: 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.app-content-header-right {
|
|
306
|
+
display: flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
gap: var(--void-space-3);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.app-content-header-breadcrumb {
|
|
312
|
+
font-family: var(--void-font-mono);
|
|
313
|
+
font-size: var(--void-text-xs);
|
|
314
|
+
color: var(--void-color-text-muted);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.app-content-header-subtitle {
|
|
318
|
+
font-family: var(--void-font-sans);
|
|
319
|
+
font-size: var(--void-text-xs);
|
|
320
|
+
color: var(--void-color-text-muted);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.app-content-header-search { width: 220px; height: var(--void-space-8); }
|
|
324
|
+
.app-content-header-right void-button { height: var(--void-space-8); }
|
|
325
|
+
|
|
326
|
+
.app-content-body {
|
|
327
|
+
flex: 1;
|
|
328
|
+
display: flex;
|
|
329
|
+
flex-direction: column;
|
|
330
|
+
overflow-y: auto;
|
|
331
|
+
padding: var(--void-space-6);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.app-content-body:has(.table-section) {
|
|
335
|
+
overflow: hidden;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* Scrollbar styling */
|
|
339
|
+
.app-content-body::-webkit-scrollbar,
|
|
340
|
+
.table-section void-table::-webkit-scrollbar {
|
|
341
|
+
width: 6px;
|
|
342
|
+
height: 6px;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.app-content-body::-webkit-scrollbar-track,
|
|
346
|
+
.table-section void-table::-webkit-scrollbar-track {
|
|
347
|
+
background: transparent;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.app-content-body::-webkit-scrollbar-thumb,
|
|
351
|
+
.table-section void-table::-webkit-scrollbar-thumb {
|
|
352
|
+
background: color-mix(in srgb, var(--void-color-text-muted) 30%, transparent);
|
|
353
|
+
border-radius: var(--void-radius-full);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.app-content-body::-webkit-scrollbar-thumb:hover,
|
|
357
|
+
.table-section void-table::-webkit-scrollbar-thumb:hover {
|
|
358
|
+
background: color-mix(in srgb, var(--void-color-text-muted) 60%, transparent);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.app-content-body,
|
|
362
|
+
.table-section void-table {
|
|
363
|
+
scrollbar-width: thin;
|
|
364
|
+
scrollbar-color: color-mix(in srgb, var(--void-color-text-muted) 30%, transparent) transparent;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* Flash messages */
|
|
368
|
+
.flash-messages {
|
|
369
|
+
display: flex;
|
|
370
|
+
flex-direction: column;
|
|
371
|
+
gap: var(--void-space-2);
|
|
372
|
+
margin-bottom: var(--void-space-4);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/* Page components */
|
|
376
|
+
.page-header { margin-bottom: var(--void-space-5); }
|
|
377
|
+
.page-breadcrumb { font-family: var(--void-font-mono); font-size: var(--void-text-xs); color: var(--void-color-text-muted); margin: 0 0 var(--void-space-2) 0; }
|
|
378
|
+
.page-title { margin: 0; font-family: var(--void-font-sans); color: var(--void-color-text); }
|
|
379
|
+
.page-title-row { display: flex; justify-content: space-between; align-items: center; }
|
|
380
|
+
.page-subtitle { margin: var(--void-space-1) 0 0 0; font-family: var(--void-font-sans); font-size: var(--void-text-sm); color: var(--void-color-text-secondary); }
|
|
381
|
+
|
|
382
|
+
/* Detail views */
|
|
383
|
+
.detail-card-body { padding: var(--void-space-5); }
|
|
384
|
+
.detail-section-label { font-family: var(--void-font-sans); font-size: var(--void-text-xs); font-weight: var(--void-weight-semibold); color: var(--void-color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 var(--void-space-3) 0; }
|
|
385
|
+
.detail-grid { display: grid; grid-template-columns: 10rem 1fr; gap: var(--void-space-3) var(--void-space-4); margin: 0; }
|
|
386
|
+
.detail-label { font-family: var(--void-font-sans); font-size: var(--void-text-sm); color: var(--void-color-text-secondary); margin: 0; padding-top: 2px; }
|
|
387
|
+
.detail-value { font-family: var(--void-font-sans); font-size: var(--void-text-sm); color: var(--void-color-text); margin: 0; }
|
|
388
|
+
.detail-value-mono { font-family: var(--void-font-mono); font-size: var(--void-text-sm); color: var(--void-color-text); margin: 0; }
|
|
389
|
+
|
|
390
|
+
/* Danger zone */
|
|
391
|
+
.danger-zone { margin-top: var(--void-space-5); padding: var(--void-space-4); border: 1px solid var(--void-color-border); border-radius: var(--void-radius-md); }
|
|
392
|
+
.danger-zone-description { font-family: var(--void-font-sans); font-size: var(--void-text-sm); color: var(--void-color-text); margin: 0 0 var(--void-space-4) 0; }
|
|
393
|
+
.action-bar { display: flex; gap: var(--void-space-2); justify-content: flex-end; }
|
|
394
|
+
|
|
395
|
+
/* Forms */
|
|
396
|
+
.form-body { padding: var(--void-space-5); display: flex; flex-direction: column; gap: var(--void-space-4); }
|
|
397
|
+
.form-actions { display: flex; gap: var(--void-space-2); align-items: center; padding-top: var(--void-space-2); }
|
|
398
|
+
.form-errors { margin-bottom: var(--void-space-4); }
|
|
399
|
+
.form-error-list { margin: var(--void-space-2) 0 0 var(--void-space-4); padding: 0; }
|
|
400
|
+
.flash-alert { margin-bottom: var(--void-space-4); }
|
|
401
|
+
|
|
402
|
+
/* Table section */
|
|
403
|
+
.table-section {
|
|
404
|
+
flex: 1;
|
|
405
|
+
min-height: 0;
|
|
406
|
+
display: flex;
|
|
407
|
+
flex-direction: column;
|
|
408
|
+
border: 1px solid var(--void-color-border);
|
|
409
|
+
border-radius: var(--void-radius-lg);
|
|
410
|
+
overflow: hidden;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.table-section-header {
|
|
414
|
+
padding: var(--void-space-3) var(--void-space-5);
|
|
415
|
+
border-bottom: 1px solid var(--void-color-border);
|
|
416
|
+
display: flex;
|
|
417
|
+
align-items: center;
|
|
418
|
+
justify-content: space-between;
|
|
419
|
+
background: var(--void-color-bg-secondary);
|
|
420
|
+
flex-shrink: 0;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.table-section-title {
|
|
424
|
+
font-size: var(--void-text-sm);
|
|
425
|
+
font-weight: var(--void-weight-medium);
|
|
426
|
+
color: var(--void-color-text);
|
|
427
|
+
letter-spacing: var(--void-tracking-snug);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.table-section-count {
|
|
431
|
+
font-size: var(--void-text-xs);
|
|
432
|
+
color: var(--void-color-text-muted);
|
|
433
|
+
font-family: var(--void-font-mono);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.table-section void-table {
|
|
437
|
+
flex: 1;
|
|
438
|
+
overflow: auto;
|
|
439
|
+
min-height: 0;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.table-section void-table thead th {
|
|
443
|
+
position: sticky;
|
|
444
|
+
top: 0;
|
|
445
|
+
background: var(--void-color-bg);
|
|
446
|
+
z-index: 1;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.table-section .pagination-wrapper {
|
|
450
|
+
flex-shrink: 0;
|
|
451
|
+
margin-top: 0;
|
|
452
|
+
padding: var(--void-space-3) var(--void-space-5);
|
|
453
|
+
border-top: 1px solid var(--void-color-border);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* Tables */
|
|
457
|
+
.table-cell-right { text-align: right; }
|
|
458
|
+
.table-empty { text-align: center; padding: var(--void-space-6); font-family: var(--void-font-sans); font-size: var(--void-text-sm); color: var(--void-color-text-muted); }
|
|
459
|
+
.pagination-wrapper { display: flex; justify-content: center; margin-top: var(--void-space-4); }
|
|
460
|
+
.back-link-wrapper { margin-top: var(--void-space-4); }
|