nofl commited on
Commit
9b0279d
·
verified ·
1 Parent(s): 7eb7701

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +124 -0
style.css CHANGED
@@ -1,4 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  padding: 2rem;
3
  font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
  }
@@ -26,3 +149,4 @@ p {
26
  .card p:last-child {
27
  margin-bottom: 0;
28
  }
 
 
1
+ /* Reset and base styles */
2
+ *,
3
+ *::before,
4
+ *::after {
5
+ box-sizing: border-box;
6
+ margin: 0;
7
+ padding: 0;
8
+ }
9
+
10
+ /* Variables for consistent theming */
11
+ :root {
12
+ --font-primary: -apple-system, BlinkMacSystemFont, 'Arial', system-ui, sans-serif;
13
+ --color-text-primary: #1a1a1a;
14
+ --color-text-secondary: rgb(107, 114, 128);
15
+ --color-border: #e5e7eb;
16
+ --spacing-base: 1rem;
17
+ --card-max-width: 38.75rem;
18
+ --card-radius: 1rem;
19
+ --transition-speed: 0.2s;
20
+ }
21
+
22
+ /* Body styles */
23
  body {
24
+ padding: clamp(1rem, 5vw, 2rem);
25
+ font-family: var(--font-primary);
26
+ line-height: 1.5;
27
+ color: var(--color-text-primary);
28
+ background-color: #f9fafb;
29
+ -webkit-font-smoothing: antialiased;
30
+ -moz-osx-font-smoothing: grayscale;
31
+ }
32
+
33
+ /* Typography */
34
+ h1 {
35
+ font-size: 1rem;
36
+ font-weight: 600;
37
+ margin-top: 0;
38
+ margin-bottom: var(--spacing-base);
39
+ line-height: 1.4;
40
+ }
41
+
42
+ p {
43
+ color: var(--color-text-secondary);
44
+ font-size: 0.9375rem;
45
+ margin-top: 0.3125rem;
46
+ margin-bottom: 0.625rem;
47
+ line-height: 1.6;
48
+ }
49
+
50
+ /* Card component */
51
+ .card {
52
+ max-width: var(--card-max-width);
53
+ margin: 0 auto;
54
+ padding: var(--spacing-base);
55
+ background-color: white;
56
+ border: 1px solid var(--color-border);
57
+ border-radius: var(--card-radius);
58
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
59
+ transition: transform var(--transition-speed) ease-in-out,
60
+ box-shadow var(--transition-speed) ease-in-out;
61
+ }
62
+
63
+ /* Card hover effects */
64
+ .card:hover {
65
+ transform: translateY(-2px);
66
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
67
+ }
68
+
69
+ /* Remove margin from last paragraph in card */
70
+ .card p:last-child {
71
+ margin-bottom: 0;
72
+ }
73
+
74
+ /* Dark mode support */
75
+ @media (prefers-color-scheme: dark) {
76
+ :root {
77
+ --color-text-primary: #e5e7eb;
78
+ --color-text-secondary: #9ca3af;
79
+ --color-border: #374151;
80
+ }
81
+
82
+ body {
83
+ background-color: #111827;
84
+ }
85
+
86
+ .card {
87
+ background-color: #1f2937;
88
+ }
89
+ }
90
+
91
+ /* Responsive adjustments */
92
+ @media (max-width: 640px) {
93
+ :root {
94
+ --card-radius: 0.75rem;
95
+ }
96
+
97
+ .card {
98
+ padding: 0.875rem;
99
+ }
100
+
101
+ h1 {
102
+ font-size: 0.9375rem;
103
+ }
104
+
105
+ p {
106
+ font-size: 0.875rem;
107
+ }
108
+ }
109
+
110
+ /* Print styles */
111
+ @media print {
112
+ body {
113
+ padding: 0;
114
+ background: none;
115
+ }
116
+
117
+ .card {
118
+ box-shadow: none;
119
+ border: 1px solid #000;
120
+ }
121
+ }
122
+
123
+
124
+ /* body {
125
  padding: 2rem;
126
  font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
127
  }
 
149
  .card p:last-child {
150
  margin-bottom: 0;
151
  }
152
+ */