Skip to content

Commit d90de60

Browse files
committed
update theme model styles
1 parent d51fe7f commit d90de60

File tree

3 files changed

+139
-81
lines changed

3 files changed

+139
-81
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-friday-plugin",
3-
"version": "0.10.18",
3+
"version": "0.10.19",
44
"description": "Friday is an Obsidian plugin that empowers users to focus on content creation by writing Markdown files, while we handle the distribution. From creating websites to content deployment, Friday serves as a creative output assistant, helping users turn their work into publishable sites with ease.",
55
"main": "main.js",
66
"scripts": {

src/i18n/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,10 @@ export interface TranslationNamespace {
172172
loading_error: string;
173173
no_themes_found: string;
174174
view_demo: string;
175+
live_demo: string;
175176
use_it: string;
176177
current: string;
178+
free: string;
177179
by_author: string;
178180
retry: string;
179181
};

styles.css

Lines changed: 136 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -243,144 +243,181 @@
243243
}
244244
.friday-theme-modal .theme-card {
245245
position: relative;
246-
height: 280px;
247246
width: 100%;
248247
max-width: 420px;
249248
margin: 0 auto;
250249
border-radius: 12px;
251250
overflow: hidden;
252251
cursor: pointer;
253252
transition: all 0.3s ease;
254-
background-size: cover;
255-
background-position: center;
256-
background-repeat: no-repeat;
257-
aspect-ratio: 3/2;
253+
background: var(--background-primary);
254+
border: 1px solid var(--background-modifier-border);
255+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
256+
display: flex;
257+
flex-direction: column;
258258
}
259259
.friday-theme-modal .theme-card:hover {
260-
transform: translateY(-4px);
261-
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
260+
transform: translateY(-8px);
261+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
262262
}
263263
.friday-theme-modal .theme-card.selected {
264-
box-shadow: 0 0 0 3px var(--interactive-accent);
264+
border-color: var(--interactive-accent);
265+
box-shadow: 0 0 0 2px var(--interactive-accent), 0 2px 8px rgba(0, 0, 0, 0.1);
265266
}
266267
.friday-theme-modal .theme-card.selected::after {
267268
content: "\2713";
268269
position: absolute;
269270
top: 12px;
270271
right: 12px;
271-
width: 24px;
272-
height: 24px;
272+
width: 28px;
273+
height: 28px;
273274
background: var(--interactive-accent);
274275
color: var(--text-on-accent);
275276
border-radius: 50%;
276277
display: flex;
277278
align-items: center;
278279
justify-content: center;
279-
font-size: 14px;
280+
font-size: 16px;
280281
font-weight: bold;
281-
z-index: 3;
282+
z-index: 10;
283+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
282284
}
283-
.friday-theme-modal .theme-overlay {
285+
.friday-theme-modal .theme-image-section {
286+
position: relative;
287+
width: 100%;
288+
aspect-ratio: 4 / 3;
289+
background-size: cover;
290+
background-position: center;
291+
background-repeat: no-repeat;
292+
flex-shrink: 0;
293+
}
294+
.friday-theme-modal .live-demo-btn {
284295
position: absolute;
285-
bottom: 0;
286-
left: 0;
287-
right: 0;
288-
background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
289-
padding: 24px 20px 20px;
290-
color: white;
296+
top: 50%;
297+
left: 50%;
298+
transform: translate(-50%, -50%);
299+
padding: 12px 32px;
300+
border: 2px solid white;
301+
border-radius: 8px;
302+
background: rgba(255, 255, 255, 0.95);
303+
color: #333;
304+
font-size: 16px;
305+
font-weight: 600;
306+
text-decoration: none;
307+
opacity: 0;
308+
transition: all 0.3s ease;
309+
z-index: 5;
310+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
311+
white-space: nowrap;
312+
}
313+
.friday-theme-modal .theme-card:hover .live-demo-btn {
314+
opacity: 1;
315+
}
316+
.friday-theme-modal .live-demo-btn:hover {
317+
background: white;
318+
transform: translate(-50%, -50%) scale(1.05);
319+
}
320+
.friday-theme-modal .theme-info-section {
321+
display: flex;
322+
padding: 16px;
323+
gap: 16px;
324+
border-bottom: 1px solid var(--background-modifier-border);
325+
min-height: 100px;
326+
}
327+
.friday-theme-modal .theme-info-left {
328+
flex: 1;
329+
display: flex;
330+
flex-direction: column;
331+
gap: 6px;
332+
}
333+
.friday-theme-modal .theme-info-right {
334+
display: flex;
335+
align-items: flex-start;
336+
padding-top: 4px;
291337
}
292338
.friday-theme-modal .theme-title {
293-
margin: 0 0 6px 0;
294-
font-size: 20px;
339+
margin: 0;
340+
font-size: 18px;
295341
font-weight: 600;
296-
color: white;
297-
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
298-
line-height: 1.2;
342+
color: var(--text-normal);
343+
line-height: 1.3;
299344
}
300-
.friday-theme-modal .theme-author-info {
301-
margin: 0 0 10px 0;
302-
font-size: 13px;
303-
color: rgba(255, 255, 255, 0.85);
304-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
345+
.friday-theme-modal .theme-meta-info {
346+
font-size: 12px;
347+
color: var(--text-muted);
348+
line-height: 1.4;
305349
}
306350
.friday-theme-modal .theme-author {
307-
color: rgba(255, 255, 255, 0.8);
351+
color: var(--text-muted);
308352
}
309353
.friday-theme-modal .theme-version {
310-
color: rgba(255, 255, 255, 0.9);
354+
color: var(--text-muted);
311355
font-weight: 500;
312356
}
313357
.friday-theme-modal .separator {
314-
color: rgba(255, 255, 255, 0.6);
358+
color: var(--text-faint);
315359
}
316360
.friday-theme-modal .theme-description {
317-
margin: 0 0 14px 0;
318-
font-size: 14px;
319-
color: rgba(255, 255, 255, 0.9);
320-
line-height: 1.4;
321-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
361+
margin: 0;
362+
font-size: 13px;
363+
color: var(--text-muted);
364+
line-height: 1.5;
322365
display: -webkit-box;
323366
-webkit-line-clamp: 2;
324367
-webkit-box-orient: vertical;
325368
overflow: hidden;
326369
}
370+
.friday-theme-modal .theme-price {
371+
font-size: 20px;
372+
font-weight: 700;
373+
color: var(--text-accent);
374+
white-space: nowrap;
375+
}
376+
.friday-theme-modal .theme-bottom-section {
377+
display: flex;
378+
justify-content: space-between;
379+
align-items: center;
380+
padding: 12px 16px;
381+
gap: 12px;
382+
}
327383
.friday-theme-modal .theme-tags {
328384
display: flex;
329385
flex-wrap: wrap;
330-
gap: 8px;
331-
margin-bottom: 14px;
386+
gap: 6px;
387+
flex: 1;
332388
}
333389
.friday-theme-modal .tag {
334-
background: rgba(255, 255, 255, 0.25);
335-
color: rgba(255, 255, 255, 0.95);
390+
background: var(--background-secondary);
391+
color: var(--text-muted);
336392
padding: 4px 10px;
337-
border-radius: 14px;
338-
font-size: 12px;
339-
backdrop-filter: blur(6px);
340-
font-weight: 500;
341-
}
342-
.friday-theme-modal .theme-actions {
343-
display: flex;
344-
align-items: center;
345-
justify-content: space-between;
346-
gap: 10px;
347-
}
348-
.friday-theme-modal .demo-link {
349-
color: rgba(255, 255, 255, 0.9);
350-
text-decoration: none;
351-
font-size: 14px;
352-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
393+
border-radius: 12px;
394+
font-size: 11px;
353395
font-weight: 500;
354-
}
355-
.friday-theme-modal .demo-link:hover {
356-
color: white;
357-
text-decoration: underline;
396+
border: 1px solid var(--background-modifier-border);
358397
}
359398
.friday-theme-modal .use-theme-btn {
360-
padding: 10px 18px;
361-
border: 1px solid rgba(255, 255, 255, 0.4);
399+
padding: 8px 20px;
400+
border: 1px solid var(--interactive-accent);
362401
border-radius: 6px;
363-
background: rgba(255, 255, 255, 0.15);
364-
color: white;
365-
font-size: 14px;
402+
background: var(--interactive-accent);
403+
color: var(--text-on-accent);
404+
font-size: 13px;
366405
font-weight: 500;
367406
cursor: pointer;
368407
transition: all 0.2s;
369408
white-space: nowrap;
370-
backdrop-filter: blur(8px);
371-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
409+
flex-shrink: 0;
372410
}
373411
.friday-theme-modal .use-theme-btn:hover {
374-
background: rgba(255, 255, 255, 0.25);
375-
border-color: rgba(255, 255, 255, 0.6);
412+
background: var(--interactive-accent-hover);
413+
border-color: var(--interactive-accent-hover);
376414
transform: translateY(-1px);
377415
}
378416
.friday-theme-modal .use-theme-btn.current {
379-
background: var(--interactive-accent);
380-
color: var(--text-on-accent);
381-
border-color: var(--interactive-accent);
417+
background: var(--background-secondary);
418+
color: var(--text-muted);
419+
border-color: var(--background-modifier-border);
382420
cursor: default;
383-
text-shadow: none;
384421
}
385422
.friday-theme-modal .use-theme-btn.current:hover {
386423
transform: none;
@@ -391,15 +428,14 @@
391428
max-width: 1200px;
392429
}
393430
.friday-theme-modal .theme-card {
394-
height: 240px;
395431
max-width: 360px;
396432
}
397433
.friday-theme-modal .skeleton-grid {
398434
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
399435
max-width: 1200px;
400436
}
401437
.friday-theme-modal .skeleton-card {
402-
height: 240px;
438+
height: 320px;
403439
max-width: 360px;
404440
}
405441
}
@@ -409,15 +445,20 @@
409445
gap: 20px;
410446
}
411447
.friday-theme-modal .theme-card {
412-
height: 200px;
413448
max-width: 300px;
414449
}
450+
.friday-theme-modal .theme-title {
451+
font-size: 16px;
452+
}
453+
.friday-theme-modal .theme-price {
454+
font-size: 18px;
455+
}
415456
.friday-theme-modal .skeleton-grid {
416457
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
417458
gap: 20px;
418459
}
419460
.friday-theme-modal .skeleton-card {
420-
height: 200px;
461+
height: 280px;
421462
max-width: 300px;
422463
}
423464
.friday-theme-modal .search-section {
@@ -433,15 +474,30 @@
433474
gap: 16px;
434475
}
435476
.friday-theme-modal .theme-card {
436-
height: 180px;
437477
max-width: 100%;
438478
}
479+
.friday-theme-modal .theme-info-section {
480+
flex-direction: column;
481+
gap: 8px;
482+
}
483+
.friday-theme-modal .theme-info-right {
484+
align-items: center;
485+
justify-content: flex-start;
486+
}
487+
.friday-theme-modal .theme-bottom-section {
488+
flex-direction: column;
489+
align-items: stretch;
490+
gap: 10px;
491+
}
492+
.friday-theme-modal .use-theme-btn {
493+
width: 100%;
494+
}
439495
.friday-theme-modal .skeleton-grid {
440496
grid-template-columns: 1fr;
441497
gap: 16px;
442498
}
443499
.friday-theme-modal .skeleton-card {
444-
height: 180px;
500+
height: 260px;
445501
max-width: 100%;
446502
}
447503
.friday-theme-modal .tags-grid {

0 commit comments

Comments
 (0)