Skip to content

Commit b731a96

Browse files
committed
docs: enhance coverpage and sidebar styles with new logo and theme colors
1 parent f249767 commit b731a96

File tree

4 files changed

+86
-9
lines changed

4 files changed

+86
-9
lines changed

docs/_coverpage.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# webrtc-java
1+
<img alt="webrtc-java" src="/assets/images/logo.png">
2+
3+
<h1>
4+
<span>webrtc-java</span>
5+
</h1>
26

37
> Connecting the Java world through WebRTC
48

docs/assets/images/logo.png

55.9 KB
Loading

docs/assets/styles.css

Lines changed: 79 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
:root {
2-
--theme-color: #4f46e5;
2+
--theme-color: #0284c7;
3+
--theme-secondary-color: #14b8a6;
4+
5+
--theme-hover-color: #0ea5e9;
6+
}
7+
8+
.cover img {
9+
width: 300px;
310
}
411

512
/* Custom button styles for coverpage */
@@ -26,15 +33,12 @@
2633
}
2734

2835
.cover .buttons a:hover {
29-
background-color: rgba(99, 102, 241, 0.1); /* Light background on hover */
30-
border-color: #5253d4;
31-
color: #5253d4;
36+
background-color: #e0f2fe; /* Light background on hover */
37+
border-color: var(--theme-hover-color);
3238
}
3339

3440
.cover .buttons a:active {
3541
background-color: rgba(99, 102, 241, 0.2); /* Slightly darker background when active */
36-
border-color: #4338ca;
37-
color: #4338ca;
3842
}
3943

4044
.cover .buttons a span {
@@ -43,6 +47,8 @@
4347

4448
/* Feature list styles */
4549
.cover .features-list {
50+
background: #f0f9ffaa;
51+
border-radius: 4px;
4652
list-style-type: none;
4753
padding: 0;
4854
margin: 30px auto;
@@ -62,7 +68,7 @@
6268
.cover .feature-icon {
6369
margin-right: 15px;
6470
font-size: 28px;
65-
color: var(--theme-color);
71+
color: var(--theme-secondary-color);
6672
flex-shrink: 0;
6773
}
6874

@@ -136,4 +142,70 @@
136142
.cover .feature-text {
137143
font-size: 14px;
138144
}
145+
}
146+
147+
/* Additional styles for the sidebar */
148+
.sidebar .app-name-link img {
149+
max-width: 50%;
150+
}
151+
.sidebar-nav > ul > li > p strong {
152+
font-size: 15px;
153+
}
154+
155+
/* Sidebar Toggle */
156+
.sidebar-toggle {
157+
cursor: pointer;
158+
}
159+
160+
body .sidebar-toggle {
161+
background: transparent;
162+
top: 1.5rem;
163+
left: calc(300px + 1.5rem);
164+
cursor: pointer;
165+
width: 1.5rem;
166+
height: 1.5rem;
167+
padding: 0;
168+
transition: left 0.25s ease-out;
169+
}
170+
171+
body .sidebar-toggle span {
172+
background-color: var(--theme-color);
173+
height: 0.2rem;
174+
width: 1.5rem;
175+
position: absolute;
176+
left: 0;
177+
margin: 0;
178+
transform-origin: 0;
179+
border-radius: 1px;
180+
}
181+
182+
body.close .sidebar-toggle {
183+
transition: left 0.25s ease-out;
184+
width: 1.5rem;
185+
height: 1.5rem;
186+
left: 1.5rem;
187+
}
188+
189+
body.close .sidebar-toggle span {
190+
transform-origin: center;
191+
}
192+
193+
body .sidebar-toggle span:nth-child(1) {
194+
top: 0;
195+
}
196+
body .sidebar-toggle span:nth-child(2) {
197+
top: 0.5rem;
198+
}
199+
body .sidebar-toggle span:nth-child(3) {
200+
top: 1rem;
201+
}
202+
203+
@media screen and (max-width: 768px) {
204+
body .sidebar-toggle {
205+
left: 1rem;
206+
}
207+
208+
body.close .sidebar-toggle {
209+
left: calc(300px + 1.5rem);
210+
}
139211
}

docs/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
window.$docsify = {
1818
name: 'webrtc-java',
1919
repo: 'https://github.com/devopvoid/webrtc-java',
20-
themeColor: "#4f46e5",
20+
logo: '/assets/images/logo.png',
21+
themeColor: "#0284c7",
2122
coverpage: true,
2223
onlyCover: true,
2324
loadSidebar: true,

0 commit comments

Comments
 (0)