PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.3.8
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.3.8
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
easy-invoice / assets / css / easy-invoice-frontend.css

easy-invoice-frontend.css in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.3.8, at assets/css/easy-invoice-frontend.css

172 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Styles for Easy Invoice Frontend - Panel and General */
2
3 html, body {
4 /* height: 100%; */ /* REMOVED: Allow natural height */
5 margin: 0;
6 padding: 0;
7 /* overflow: hidden; */ /* REMOVED: Allow body scroll by default */
8 overflow-x: hidden; /* Prevent horizontal scrollbars on body */
9 background-color: #f8f9fc;
10 }
11
12 /* New class to be added to body when panel is active */
13 body.body-panel-active {
14 overflow: hidden; /* Hide main browser scrollbar */
15 }
16
17 .easy-invoice-app {
18 /* height: 100%; */ /* REMOVED: Default height */
19 /* display: flex; */ /* REMOVED: Default display */
20 /* flex-direction: column; */ /* REMOVED */
21 transition: margin-right 0.3s ease-in-out; /* Add transition here */
22 }
23
24 /* Styles for .easy-invoice-app when panel is active */
25 body.body-panel-active .easy-invoice-app {
26 height: 100vh;
27 overflow-y: auto; /* This becomes the main content scrollbar */
28 margin-right: 450px; /* Adjust to panel's max-width */
29 }
30
31 /* Slide-Out Payment Panel */
32 .easy-invoice-payment-panel {
33 position: fixed;
34 top: 0;
35 right: 0;
36 height: 100vh; /* Use vh for consistency */
37 width: 100%;
38 max-width: 450px;
39 background-color: #ffffff;
40 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
41 transform: translateX(100%);
42 transition: transform 0.3s ease-in-out;
43 z-index: 1050;
44 display: flex;
45 flex-direction: column;
46 }
47
48 .easy-invoice-payment-panel.is-open {
49 transform: translateX(0);
50 }
51
52 /* Main content area - no longer directly handles scroll or margin shift */
53 .easy-invoice-main-content-area {
54 /* flex-grow: 1; */ /* REMOVED */
55 /* min-height: 0; */ /* REMOVED */
56 /* overflow-y: auto; */ /* REMOVED */
57 /* transition: margin-right 0.3s ease-in-out; */ /* REMOVED - handled by .easy-invoice-app */
58 }
59
60 /* .easy-invoice-main-content-area.panel-is-open { */
61 /* margin-right: 450px; */ /* REMOVED - handled by .easy-invoice-app */
62 /* } */
63
64
65 /* This class might be fully redundant now for overflow control */
66 body.easy-invoice-panel-open-body-no-scroll {
67 /* styles previously here are now handled by body.body-panel-active or default body */
68 }
69
70 /* Panel Sections Styling */
71 .easy-invoice-panel-header {
72 padding: 1.25rem;
73 border-bottom: 1px solid #e5e7eb;
74 display: flex;
75 align-items: center;
76 justify-content: space-between;
77 }
78
79 .easy-invoice-panel-body { /* This is the scrollable part OF THE PANEL */
80 flex-grow: 1;
81 overflow-y: auto;
82 padding: 1.5rem;
83 }
84
85 .easy-invoice-panel-footer {
86 padding: 1.25rem;
87 border-top: 1px solid #e5e7eb;
88 background-color: #f9fafb;
89 }
90
91 /* Payment Method Entry Styling */
92 .payment-method-entry {
93 /* Basic styling, can be enhanced by Tailwind in HTML */
94 /* border: 1px solid #d1d5db;
95 border-radius: 0.375rem;
96 transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; */
97 }
98
99 .payment-method-entry.selected-gateway {
100 border-color: #4f46e5;
101 box-shadow: 0 0 0 2px #4f46e5;
102 }
103
104 /* Basic Button styles */
105 .easy-invoice-btn {
106 display: inline-flex;
107 align-items: center;
108 justify-content: center;
109 padding: 0.625rem 1.25rem;
110 font-size: 0.875rem;
111 font-weight: 500;
112 border-radius: 0.375rem;
113 border: 1px solid transparent;
114 transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
115 cursor: pointer;
116 text-decoration: none;
117 }
118
119 .easy-invoice-btn-primary {
120 background-color: #4f46e5;
121 color: white;
122 }
123 .easy-invoice-btn-primary:hover {
124 background-color: #4338ca;
125 }
126
127 .easy-invoice-btn-secondary {
128 background-color: #ffffff;
129 color: #374151;
130 border-color: #d1d5db;
131 box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
132 }
133 .easy-invoice-btn-secondary:hover {
134 background-color: #f9fafb;
135 }
136
137 /* Alert Message Styling */
138 .payment-message .alert {
139 padding: 0.75rem 1.25rem;
140 margin-bottom: 1rem;
141 border: 1px solid transparent;
142 border-radius: 0.375rem; /* rounded-md */
143 font-size: 0.875rem;
144 }
145
146 .payment-message .alert-danger {
147 color: #721c24;
148 background-color: #f8d7da;
149 border-color: #f5c6cb;
150 }
151
152 .payment-message .alert-success {
153 color: #155724;
154 background-color: #d4edda;
155 border-color: #c3e6cb;
156 }
157
158 .payment-message .alert-warning {
159 color: #856404;
160 background-color: #fff3cd;
161 border-color: #ffeeba;
162 }
163
164 .payment-message .alert-info {
165 color: #0c5460;
166 background-color: #d1ecf1;
167 border-color: #bee5eb;
168 }
169
170 /* Ensure your Tailwind classes in the HTML take precedence if desired,
171 or integrate Tailwind more directly if setting up from scratch.
172 These are fallback/base styles. */