oldmonk69 commited on
Commit
5eb43af
·
verified ·
1 Parent(s): 5fa412d

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +33 -62
style.css CHANGED
@@ -1,81 +1,52 @@
1
  /* ==========================================
2
  # File: styles.css
3
- # Small layer of utilities on top of Tailwind
4
  # ========================================== */
5
 
6
- :root { --ring: 2px; }
7
- .nav-link {
8
- @apply text-sm font-medium text-slate-700 hover:text-primary dark:text-slate-200 dark:hover:text-primary;
9
- }
10
- .mobile-link {
11
- @apply px-3 py-2 rounded text-slate-700 dark:text-slate-200 hover:bg-slate-200/60 dark:hover:bg-slate-700/40;
12
- }
13
- .btn-primary {
14
- @apply inline-flex items-center justify-center rounded-lg bg-primary px-5 py-2.5 font-bold text-white shadow hover:opacity-90 focus:outline-none focus-visible:ring-[var(--ring)] focus-visible:ring-primary;
15
- }
16
- .btn-secondary {
17
- @apply inline-flex items-center justify-center rounded-lg bg-white/15 px-5 py-2.5 font-bold text-white ring-1 ring-white/30 hover:bg-white/25 focus:outline-none focus-visible:ring-[var(--ring)] focus-visible:ring-white;
18
- }
19
- .pill {
20
- @apply rounded-lg bg-primary/10 dark:bg-primary/20 px-4 py-3 font-semibold text-primary dark:text-white;
21
- }
22
  .h2 { @apply text-3xl sm:text-4xl font-bold tracking-tight; }
23
  .h3 { @apply text-2xl font-bold; }
24
  .h4 { @apply text-xl font-bold; }
25
- .input {
26
- @apply w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 placeholder:text-slate-500 focus:border-primary focus:ring-primary dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100;
27
- }
28
  .label { @apply block text-sm font-medium; }
29
  .link { @apply text-primary hover:underline; }
30
  .link.muted { @apply text-slate-500 hover:text-primary dark:text-slate-400; }
31
- .link-chip { @apply mt-3 inline-flex items-center gap-2 self-start rounded bg-primary/10 px-3 py-1.5 text-sm font-semibold text-primary hover:bg-primary/15; }
32
  .section { @apply py-16 sm:py-24; }
33
  .container { @apply mx-auto max-w-7xl px-4 sm:px-6 lg:px-8; }
 
 
 
34
 
35
- .card {
36
- @apply flex flex-col gap-2 overflow-hidden rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 p-6 shadow-soft;
37
- }
38
- .callout {
39
- @apply rounded-xl border border-primary/30 bg-primary/10 dark:bg-primary/20 p-8;
40
- }
41
 
42
- .filter-chip {
43
- @apply rounded-full px-4 py-2 text-sm font-semibold border border-slate-300 dark:border-slate-600 hover:bg-slate-100 dark:hover:bg-slate-800;
44
- }
45
- .filter-chip.active {
46
- @apply bg-primary text-white border-primary;
47
- }
48
-
49
- .portfolio-card {
50
- @apply text-left overflow-hidden rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 hover:shadow-lg transition;
51
- }
52
- .portfolio-card img {
53
- @apply w-full aspect-[4/3] object-cover;
54
- }
55
-
56
- .gallery-card { @apply relative overflow-hidden rounded-xl border border-slate-200 dark:border-slate-700 hover:shadow-lg transition; }
57
- .gallery-img { @apply w-full aspect-video object-cover; }
58
- .gallery-caption {
59
- @apply absolute bottom-0 left-0 right-0 bg-black/50 text-white text-sm px-3 py-2;
60
- }
61
 
62
  .th { @apply p-4 text-left font-bold; }
63
- .td-section { @apply p-3 font-bold bg-slate-100 dark:bg-slate-800; }
64
- .td { @apply p-3; }
65
-
66
- .quote {
67
- @apply rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 p-6 shadow-soft;
68
- }
69
- .about-card {
70
- @apply p-4 rounded-lg border border-slate-200 dark:border-slate-700 bg-white/70 dark:bg-slate-900/60;
71
- }
72
 
73
- .chip {
74
- @apply inline-flex items-center gap-2 rounded-full border border-slate-300 dark:border-slate-600 px-3 py-1.5 text-sm cursor-pointer select-none;
75
- }
76
- .chip input { @apply sr-only; }
77
- .chip span { @apply inline-block; }
78
- .chip:has(input:checked) { @apply bg-primary text-white border-primary; }
79
 
80
- /* Active nav state (scroll spy) */
81
  .nav-link.active { @apply text-primary font-bold; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /* ==========================================
2
  # File: styles.css
3
+ # Tailwind utility layer + small components
4
  # ========================================== */
5
 
6
+ .nav-link { @apply text-sm font-medium text-slate-700 hover:text-primary dark:text-slate-200 dark:hover:text-primary; }
7
+ .mobile-link { @apply px-3 py-2 rounded text-slate-700 dark:text-slate-200 hover:bg-slate-200/60 dark:hover:bg-slate-700/40; }
8
+ .btn-primary { @apply inline-flex items-center justify-center rounded-lg bg-primary px-5 py-2.5 font-bold text-white shadow hover:opacity-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary; }
9
+ .btn-secondary { @apply inline-flex items-center justify-center rounded-lg bg-white/15 px-5 py-2.5 font-bold text-white ring-1 ring-white/30 hover:bg-white/25 focus-visible:ring-2 focus-visible:ring-white; }
10
+ .pill { @apply rounded-lg bg-primary/10 dark:bg-primary/20 px-4 py-3 font-semibold text-primary dark:text-white; }
 
 
 
 
 
 
 
 
 
 
 
11
  .h2 { @apply text-3xl sm:text-4xl font-bold tracking-tight; }
12
  .h3 { @apply text-2xl font-bold; }
13
  .h4 { @apply text-xl font-bold; }
14
+ .input { @apply w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 placeholder:text-slate-500 focus:border-primary focus:ring-primary dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100; }
 
 
15
  .label { @apply block text-sm font-medium; }
16
  .link { @apply text-primary hover:underline; }
17
  .link.muted { @apply text-slate-500 hover:text-primary dark:text-slate-400; }
 
18
  .section { @apply py-16 sm:py-24; }
19
  .container { @apply mx-auto max-w-7xl px-4 sm:px-6 lg:px-8; }
20
+ .card { @apply flex flex-col gap-2 overflow-hidden rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 p-6 shadow-soft; }
21
+ .list { @apply list-disc pl-5 text-sm; }
22
+ .muted { @apply opacity-80; }
23
 
24
+ .filter-chip { @apply rounded-full px-4 py-2 text-sm font-semibold border border-slate-300 dark:border-slate-600 hover:bg-slate-100 dark:hover:bg-slate-800; }
25
+ .filter-chip.active { @apply bg-primary text-white border-primary; }
 
 
 
 
26
 
27
+ .portfolio-card { @apply text-left overflow-hidden rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 hover:shadow-lg transition; }
28
+ .portfolio-card img { @apply w-full aspect-[4/3] object-cover; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  .th { @apply p-4 text-left font-bold; }
31
+ .td { @apply p-3 align-top; }
 
 
 
 
 
 
 
 
32
 
33
+ .quote { @apply rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 p-6 shadow-soft; }
34
+ .about-card { @apply p-4 rounded-lg border border-slate-200 dark:border-slate-700 bg-white/70 dark:bg-slate-900/60; }
 
 
 
 
35
 
 
36
  .nav-link.active { @apply text-primary font-bold; }
37
+
38
+ /* Slider */
39
+ .slider { position: relative; }
40
+ .slide { display: none; }
41
+ .slide.is-active { display: block; }
42
+ .slider-btn {
43
+ position: absolute; top: 50%; transform: translateY(-50%);
44
+ background: rgba(0,0,0,.45); color: #fff; border-radius: 9999px;
45
+ padding: .4rem .7rem; font-size: 1.5rem; line-height: 1; z-index: 10;
46
+ }
47
+ .slider-btn.prev { left: .5rem; }
48
+ .slider-btn.next { right: .5rem; }
49
+ .demo-pill {
50
+ position: absolute; bottom: .75rem; right: .75rem; z-index: 10;
51
+ background: rgba(17,147,212,.9); color: #fff; padding: .45rem .7rem; border-radius: .5rem; font-weight: 700;
52
+ }