Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 5071c0d

Browse files
committed
feat(client): add embed feature
1 parent b1a6b16 commit 5071c0d

File tree

5 files changed

+15992
-74
lines changed

5 files changed

+15992
-74
lines changed

packages/client/assets/style/sidebar.css

+40-7
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
z-index: 100;
1717
}
1818

19-
.bm-burger-button {
20-
display: none;
21-
}
22-
2319
.bm-menu {
2420
background: var(--sidebar-color-black);
2521
padding: 16px;
22+
23+
& svg:hover {
24+
color: var(--sidebar-color-cyan);
25+
}
2626
}
2727

2828
.bm-item-list {
29-
color: var(--color-white);
29+
color: var(--sidebar-color-white);
3030
font-family: 'Roboto', 'San Francisco', helvetica, arial, sans-serif;
3131
font-size: 20px;
3232
height: auto !important;
@@ -47,8 +47,14 @@
4747
}
4848

4949
.sidebar-social {
50-
& > a {
51-
color: var(--sidebar-color-cyan);
50+
margin: 0 12px;
51+
52+
& svg {
53+
color: var(--sidebar-color-white);
54+
}
55+
56+
& > a:not(:first-child) {
57+
margin-left: 12px;
5258
}
5359
}
5460

@@ -98,3 +104,30 @@
98104
.sidebar-cursor {
99105
cursor: pointer;
100106
}
107+
108+
.tooltip-container {
109+
cursor: pointer;
110+
position: relative;
111+
width: 26px;
112+
height: 26px;
113+
}
114+
115+
.tooltip {
116+
position: absolute;
117+
left: 50%;
118+
transform: translateX(-50%);
119+
visibility: hidden;
120+
background: rgba(0, 0, 0, 0.3);
121+
color: var(--sidebar-color-white);
122+
text-align: center;
123+
padding: 4px 8px;
124+
border-radius: 6px;
125+
z-index: 2;
126+
top: -80%;
127+
transition: 0.2s ease-in;
128+
font-size: 14px;
129+
}
130+
131+
.tooltip-container:hover .tooltip {
132+
visibility: visible;
133+
}

0 commit comments

Comments
 (0)