Skip to content

Commit 345dea8

Browse files
committed
Fix tooltip style
1 parent 70533fa commit 345dea8

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

css/styles.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,11 @@ button:focus {
150150
color: var(--red);
151151
}
152152

153-
#footer {
154-
position: fixed;
155-
bottom: 0;
156-
padding: 0 0 30px 0;
157-
}
158153
/* TOOLTIP STYLE */
159-
.hover-icon .tooltip-text {
154+
.project-info {
155+
cursor: pointer;
156+
}
157+
.project-info .tooltip-text {
160158
visibility: hidden;
161159
padding: 10px;
162160
position: absolute;
@@ -167,17 +165,24 @@ button:focus {
167165
z-index: 1;
168166
bottom: 100%;
169167
}
170-
.hover-icon:hover .tooltip-text {
168+
.project-info:hover .tooltip-text {
171169
visibility: visible;
172170
}
173-
#crafted-by {
174-
margin-bottom: 0;
171+
172+
/* FOOTER */
173+
#footer {
174+
position: fixed;
175+
bottom: 0;
176+
padding: 0 0 30px 0;
175177
}
176178
#footer a {
177179
text-decoration: none;
178180
color: #1F3E59;
179181
font-weight: 900;
180182
}
183+
#crafted-by {
184+
margin-bottom: 0;
185+
}
181186

182187
/* LIBRARY INFO STYLE */
183188
#library-content {

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h1 id="logo"><i class="fad fa-books theme-books"></i> Library</i></h1>
6161

6262
<footer id="footer">
6363
<p class="project-info">
64-
<i class="fas fa-info-circle"></i>
64+
<i class="fas fa-info-circle hover-icon"></i>
6565
<span class="tooltip-text">
6666
This is a small Library App, where you can add new books,
6767
delete old ones, change status of your books to read/unread and see your library statistics.

0 commit comments

Comments
 (0)