Skip to content

Commit fc85078

Browse files
committed
update
1 parent 807034d commit fc85078

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

styles.css

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Default theme (light) colors */
1+
/* Default Font and Sizes */
22
:root {
33
--bg: #ffffff;
44
--fg: #1a1a1a;
@@ -7,9 +7,10 @@
77
--accent: #0066cc;
88
--link-hover: #005bb5;
99
--shadow: rgba(0, 0, 0, 0.1);
10+
--font-size: 16px;
11+
--heading-font-size: 24px;
1012
}
1113

12-
/* Dark theme colors */
1314
[data-theme="dark"] {
1415
--bg: #1e1e1e;
1516
--fg: #f5f5f5;
@@ -18,24 +19,25 @@
1819
--accent: #4da8ff;
1920
--link-hover: #87c4ff;
2021
--shadow: rgba(255, 255, 255, 0.05);
22+
--font-size: 16px;
23+
--heading-font-size: 24px;
2124
}
2225

23-
/* Reset CSS */
2426
* {
2527
margin: 0;
2628
padding: 0;
2729
box-sizing: border-box;
2830
}
2931

30-
/* General Body Styles */
3132
body {
3233
font-family: 'Segoe UI', sans-serif;
3334
background-color: var(--bg);
3435
color: var(--fg);
3536
display: flex;
3637
min-height: 100vh;
3738
overflow: hidden;
38-
transition: background 0.3s, color 0.3s;
39+
transition: background 0.3s, color 0.3s, font-size 0.3s;
40+
font-size: var(--font-size); /* Use variable for body font size */
3941
}
4042

4143
/* Theme Toggle Button */
@@ -54,7 +56,7 @@ body {
5456
transition: background 0.3s;
5557
}
5658

57-
/* Sidebar toggle for mobile */
59+
/* Sidebar Toggle for Mobile */
5860
#menu-toggle {
5961
display: none;
6062
position: fixed;
@@ -69,7 +71,7 @@ body {
6971
border-radius: 4px;
7072
}
7173

72-
/* Sidebar Styles */
74+
/* Sidebar */
7375
#sidebar {
7476
width: 270px;
7577
background-color: var(--sidebar-bg);
@@ -81,12 +83,17 @@ body {
8183
transition: transform 0.3s ease;
8284
}
8385

84-
/* Show sidebar on mobile */
8586
#sidebar.active {
8687
transform: translateX(0);
8788
}
8889

89-
/* Dropdown Styles */
90+
.logo h2 {
91+
text-align: center;
92+
margin-bottom: 30px;
93+
font-size: 22px; /* Ensure logo size remains consistent */
94+
}
95+
96+
/* Dropdown Section */
9097
.nav-sections section {
9198
margin-bottom: 20px;
9299
}
@@ -123,14 +130,15 @@ body {
123130
text-decoration: underline;
124131
}
125132

126-
/* Main Content Styles */
133+
/* Main Content */
127134
#main-content {
128135
margin-left: 270px;
129136
padding: 40px 20px;
130137
flex: 1;
131138
transition: margin 0.3s;
132139
}
133140

141+
/* Content */
134142
#dynamic-content {
135143
margin-top: 20px;
136144
background: var(--bg);
@@ -140,23 +148,28 @@ body {
140148
transition: background 0.3s, color 0.3s;
141149
}
142150

143-
/* Responsive Styles */
151+
h1 {
152+
font-size: var(--heading-font-size);
153+
line-height: 1.3;
154+
}
155+
156+
/* Responsive */
144157
@media (max-width: 768px) {
145158
#sidebar {
146-
transform: translateX(-100%);
147-
z-index: 999;
159+
transform: translateX(-100%);
160+
z-index: 999;
148161
}
149162

150163
#sidebar.active {
151-
transform: translateX(0);
164+
transform: translateX(0);
152165
}
153166

154167
#menu-toggle {
155-
display: block;
168+
display: block;
156169
}
157170

158171
#main-content {
159-
margin-left: 0;
160-
padding-top: 70px;
172+
margin-left: 0;
173+
padding-top: 70px;
161174
}
162175
}

0 commit comments

Comments
 (0)