Ezmary commited on
Commit
3e50efe
·
verified ·
1 Parent(s): d7a267f

Update src/App.scss

Browse files
Files changed (1) hide show
  1. src/App.scss +19 -42
src/App.scss CHANGED
@@ -1,4 +1,4 @@
1
- // src/App.scss (نسخه نهایی با همه اصلاحات ظاهری)
2
 
3
  // 1. Import Tailwind's base, components, and utilities
4
  @import 'tailwindcss/base';
@@ -34,21 +34,16 @@
34
  height: 100vh; font-size: 1.2rem;
35
  color: theme('colors.custom-foreground');
36
  }
37
-
38
  .main-wrapper {
39
- min-height: 100vh;
40
- display: flex;
41
- flex-direction: column;
42
- position: relative;
43
  }
44
-
45
  .header-controls {
46
  display: flex; padding: 0.75rem 1rem; justify-content: space-between; align-items: center;
47
  width: 100%; position: absolute; top: 0; left: 0; z-index: 50;
48
  pointer-events: none;
49
  > div, > button { pointer-events: auto; }
50
  }
51
-
52
  .header-icon-button {
53
  display: flex; align-items: center; justify-content: center; padding: 0.5rem;
54
  width: 44px; height: 44px; border-radius: 9999px;
@@ -61,29 +56,13 @@
61
  }
62
 
63
  /* استایل نوتیفیکیشن زیبا و مرکزی */
 
 
 
64
  .notification-popover-wrapper {
65
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100;
66
  width: calc(100% - 2rem); max-width: 28rem; display: flex; justify-content: center; pointer-events: none;
67
  }
68
- #notification-popover.popover-content {
69
- width: 100%; border-radius: var(--radius-md, 0.5rem); border-width: 1px;
70
- background-color: theme('colors.custom-popover'); color: theme('colors.custom-popover-foreground');
71
- border-color: theme('colors.custom-border'); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
72
- outline: none; transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
73
- opacity: 0; transform: translateY(-120%) scale(0.9); pointer-events: none;
74
- &.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
75
- }
76
- .notification-popover-text-content {
77
- background-color: #eff6ff; font-size: 0.875rem; line-height: 1.5rem; direction: rtl;
78
- padding: 1rem; border-radius: var(--radius-md, 0.5rem); color: oklch(0.145 0 0);
79
- }
80
- .dark .notification-popover-text-content {
81
- background-color: oklch(0.25 0.05 230); color: oklch(0.95 0.01 230);
82
- }
83
- .animate-popover-open-top-center { animation: popover-drop-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; }
84
- .animate-popover-close-top-center { animation: popover-lift-out 0.3s ease-in forwards; }
85
- @keyframes popover-drop-in { from { opacity: 0; transform: translateY(-100%) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
86
- @keyframes popover-lift-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-100%) scale(0.9); } }
87
 
88
  /* استایل منوی شخصیت */
89
  .personality-popover-wrapper {
@@ -95,16 +74,17 @@
95
  background: theme('colors.custom-popover'); backdrop-filter: blur(10px);
96
  border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
97
  border: 1px solid theme('colors.custom-border');
 
98
  ul { list-style: none; padding: 0; margin: 0; width: 220px; }
99
  li {
100
  display: flex; align-items: center; justify-content: space-between;
101
  padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background-color 150ms ease;
 
102
  &:hover { background-color: rgba(0, 0, 0, 0.05); }
103
  .dark &:hover { background-color: #3a3a3c; }
104
  &.active { color: #0a84ff; font-weight: 500; }
105
  .dark &.active { color: #fff; }
106
- div { display: flex; align-items: center; gap: 12px; }
107
- .material-symbols-outlined { font-size: 22px; &.tick { color: #34c759; } }
108
  }
109
  }
110
  }
@@ -162,12 +142,12 @@
162
  z-index: 1000; backdrop-filter: blur(5px);
163
  }
164
  .modal-content {
165
- background: #fff; color: #111;
166
- padding: 24px; border-radius: 16px;
167
  width: 90%; max-width: 500px;
168
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
169
- border: 1px solid #e5e5e5;
170
  animation: modal-fade-in 0.3s ease-out;
 
 
171
  .dark & { background: #2c2c2e; color: #fff; border-color: rgba(255, 255, 255, 0.15); }
172
  .modal-header {
173
  display: flex; justify-content: space-between; align-items: center;
@@ -183,22 +163,19 @@
183
  }
184
  .modal-body .form-group {
185
  margin-bottom: 20px;
186
- label { display: block; margin-bottom: 8px; font-weight: 500; color: inherit; }
187
  input, textarea {
188
  width: 100%; padding: 12px; border-radius: 8px;
189
- border: 1px solid #ccc; background-color: #f8f8f8;
190
- color: #111; font-size: 15px;
191
  .dark & { border-color: #555; background-color: #3a3a3c; color: #fff; }
192
- &:focus {
193
- outline: none; border-color: #0a84ff;
194
- box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
195
- }
196
  }
197
  textarea { resize: vertical; min-height: 100px; }
198
- small { display: block; margin-top: 8px; color: #777; font-size: 12px; .dark & { color: #999; } }
199
  }
200
  .modal-footer {
201
- display: flex; justify-content: flex-end; margin-top: 24px;
202
  .save-button {
203
  background-color: #0a84ff; color: #fff; border: none;
204
  padding: 12px 24px; border-radius: 8px; font-size: 16px;
 
1
+ // src/App.scss (نسخه نهایی با اصلاحات کامل برای راست‌چین شدن)
2
 
3
  // 1. Import Tailwind's base, components, and utilities
4
  @import 'tailwindcss/base';
 
34
  height: 100vh; font-size: 1.2rem;
35
  color: theme('colors.custom-foreground');
36
  }
 
37
  .main-wrapper {
38
+ min-height: 100vh; display: flex;
39
+ flex-direction: column; position: relative;
 
 
40
  }
 
41
  .header-controls {
42
  display: flex; padding: 0.75rem 1rem; justify-content: space-between; align-items: center;
43
  width: 100%; position: absolute; top: 0; left: 0; z-index: 50;
44
  pointer-events: none;
45
  > div, > button { pointer-events: auto; }
46
  }
 
47
  .header-icon-button {
48
  display: flex; align-items: center; justify-content: center; padding: 0.5rem;
49
  width: 44px; height: 44px; border-radius: 9999px;
 
56
  }
57
 
58
  /* استایل نوتیفیکیشن زیبا و مرکزی */
59
+ #notification-popover.popover-content {
60
+ direction: rtl; // ✅ راست‌چین کردن متن نوتیفیکیشن
61
+ }
62
  .notification-popover-wrapper {
63
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100;
64
  width: calc(100% - 2rem); max-width: 28rem; display: flex; justify-content: center; pointer-events: none;
65
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  /* استایل منوی شخصیت */
68
  .personality-popover-wrapper {
 
74
  background: theme('colors.custom-popover'); backdrop-filter: blur(10px);
75
  border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
76
  border: 1px solid theme('colors.custom-border');
77
+ direction: rtl; // ✅ تغییر اصلی ۱: منو راست‌چین شد
78
  ul { list-style: none; padding: 0; margin: 0; width: 220px; }
79
  li {
80
  display: flex; align-items: center; justify-content: space-between;
81
  padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background-color 150ms ease;
82
+ div { display: flex; align-items: center; gap: 12px; }
83
  &:hover { background-color: rgba(0, 0, 0, 0.05); }
84
  .dark &:hover { background-color: #3a3a3c; }
85
  &.active { color: #0a84ff; font-weight: 500; }
86
  .dark &.active { color: #fff; }
87
+ .material-symbols-outlined.tick { color: #34c759; }
 
88
  }
89
  }
90
  }
 
142
  z-index: 1000; backdrop-filter: blur(5px);
143
  }
144
  .modal-content {
145
+ background: #fff; color: #111; padding: 24px; border-radius: 16px;
 
146
  width: 90%; max-width: 500px;
147
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); border: 1px solid #e5e5e5;
 
148
  animation: modal-fade-in 0.3s ease-out;
149
+ direction: rtl; // ✅ تغییر اصلی ۲: مودال راست‌چین شد
150
+
151
  .dark & { background: #2c2c2e; color: #fff; border-color: rgba(255, 255, 255, 0.15); }
152
  .modal-header {
153
  display: flex; justify-content: space-between; align-items: center;
 
163
  }
164
  .modal-body .form-group {
165
  margin-bottom: 20px;
166
+ label { text-align: right; display: block; margin-bottom: 8px; font-weight: 500; color: inherit; }
167
  input, textarea {
168
  width: 100%; padding: 12px; border-radius: 8px;
169
+ border: 1px solid #ccc; background-color: #f8f8f8; color: #111; font-size: 15px;
170
+ text-align: right; // ✅ تغییر اصلی ۳: متن داخل فیلدها راست‌چین شد
171
  .dark & { border-color: #555; background-color: #3a3a3c; color: #fff; }
172
+ &:focus { outline: none; border-color: #0a84ff; box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5); }
 
 
 
173
  }
174
  textarea { resize: vertical; min-height: 100px; }
175
+ small { display: block; margin-top: 8px; color: #777; font-size: 12px; text-align: right; .dark & { color: #999; } }
176
  }
177
  .modal-footer {
178
+ display: flex; justify-content: flex-end; margin-top: 24px; // دکمه در سمت چپ قرار می‌گیرد (استاندارد RTL)
179
  .save-button {
180
  background-color: #0a84ff; color: #fff; border: none;
181
  padding: 12px 24px; border-radius: 8px; font-size: 16px;