Skip to content

Commit e66653f

Browse files
committed
Committing dist/ui/popup.css
1 parent 08365c3 commit e66653f

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

dist/ui/popup.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* src/ui/popup.css */
12
#author,
23
#footer,
34
.courseraModelBtn {
@@ -43,6 +44,7 @@ body {
4344
background-color: var(--secondary-color);
4445
color: var(--primary-color);
4546
cursor: pointer;
47+
width: 100%;
4648
white-space: nowrap;
4749
}
4850

@@ -60,3 +62,45 @@ body {
6062
color: #fff;
6163
margin-top: 20px;
6264
}
65+
66+
67+
.courseraBtnWrapper {
68+
position: relative;
69+
display: inline-block;
70+
margin: 8px;
71+
}
72+
73+
.courseraTooltip {
74+
visibility: hidden;
75+
width: 260px;
76+
background-color: #333;
77+
color: #fff;
78+
text-align: left;
79+
border-radius: 8px;
80+
padding: 8px 10px;
81+
position: absolute;
82+
z-index: 10;
83+
bottom: 125%;
84+
transform: translateX(-50%);
85+
opacity: 0;
86+
transition: opacity 0.2s ease-in-out;
87+
font-size: 12px;
88+
line-height: 1.4;
89+
pointer-events: none;
90+
}
91+
92+
.courseraBtnWrapper:hover .courseraTooltip {
93+
visibility: visible;
94+
opacity: 1;
95+
}
96+
97+
.courseraTooltip::after {
98+
content: '';
99+
position: absolute;
100+
top: 100%;
101+
left: 50%;
102+
margin-left: -5px;
103+
border-width: 6px;
104+
border-style: solid;
105+
border-color: #333 transparent transparent transparent;
106+
}

0 commit comments

Comments
 (0)