Skip to content

Commit 6d451c1

Browse files
committed
expand explanation on hover
1 parent 44bade4 commit 6d451c1

2 files changed

Lines changed: 26 additions & 4 deletions

File tree

css/stylesheet.css

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ body {
88
background: rgb(60, 63, 65);
99
font-family: 'Roboto', sans-serif;
1010
color: rgb(187, 187, 187);
11+
-webkit-font-smoothing: subpixel-antialiased;
1112
}
1213

1314
*::-webkit-scrollbar {
@@ -219,10 +220,31 @@ section {
219220
top: 30px;
220221
height: 30px;
221222
background: rgb(44, 44, 44);
222-
padding: 0 8px;
223-
line-height: 30px;
223+
padding: 7px;
224224
font-size: 12px;
225-
overflow-y: auto;
225+
}
226+
227+
#explanation:before {
228+
font-family: FontAwesome;
229+
content: '\f05a\00a0\00a0';
230+
}
231+
232+
#explanation {
233+
display: block;
234+
white-space: nowrap;
235+
overflow: hidden;
236+
text-overflow: ellipsis;
237+
}
238+
239+
.explanation_container:hover {
240+
z-index: 5;
241+
height: auto;
242+
bottom: auto;
243+
box-shadow: 0 8px 8px -8px rgba(0, 0, 0, .8);
244+
}
245+
246+
.explanation_container:hover #explanation {
247+
white-space: normal;
226248
}
227249

228250
.data_container {

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h3>Reference</h3>
9595
<section class="files_bar">
9696
</section>
9797
<section class="explanation_container">
98-
<i class="fa fa-info-circle" aria-hidden="true"></i> <span id="explanation"></span>
98+
<span id="explanation"></span>
9999
</section>
100100
<section class="data_container">
101101
<pre id="data"></pre>

0 commit comments

Comments
 (0)