Skip to content

Commit f18812e

Browse files
authored
Merge pull request tc39#43 from tc39/add-popup
fixes tc39#31, adds a popup letting people know about the github page
2 parents 7e7382a + 9a866bf commit f18812e

File tree

4 files changed

+67
-0
lines changed

4 files changed

+67
-0
lines changed

_layouts/default.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ <h1 class="page-title">Specifying JavaScript.</h1>
3131
</section>
3232
</main>
3333

34+
<div class="popup">
35+
<input type="checkbox" id="one" class="hidden" name="ossm">
36+
<label for="one" class="alert-message">
37+
<strong> Attention</strong> This site is in <strong>beta</strong>! We are
38+
looking for feedback. Please add issues to our <a
39+
href="https://github.com/tc39/tc39-web-draft/issues" target="_blank">github page</a>!!
40+
<span class="close">×</span>
41+
</label>
42+
</div>
3443
<img src="https://d3nrsflo8ae6b5.cloudfront.net/1x1.png" alt="pixel" />
3544
</body>
3645
</html>

_sass/_popup.scss

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.popup {
2+
position: fixed;
3+
bottom: 0;
4+
left: 0;
5+
width: 100%;
6+
}
7+
8+
input[type=checkbox] + label {
9+
position:relative;
10+
}
11+
12+
input[type=checkbox]:checked + label {
13+
animation: closing 0.3s forwards ease-in-out,
14+
moving 0.3s forwards ease-in-out;
15+
}
16+
17+
.close{
18+
float:right;
19+
color: #b94b45;
20+
cursor: hand;
21+
}
22+
23+
.alert-message{
24+
background-color: black;
25+
border: 1px solid rgba(#34495e, 0.25);
26+
color: #b94b45;
27+
border-radius: 3px;
28+
line-height:30px;
29+
position: absolute;
30+
top: 0; left: 0;
31+
display:block;
32+
width:100%;
33+
padding: 12px;
34+
box-sizing: border-box;
35+
color: rgba(255, 255, 255, .9);
36+
box-shadow: 0px 10px 50px rgba(0,0,0,.6);
37+
background: black;
38+
}
39+
40+
@keyframes closing {
41+
from {
42+
opacity: 1;
43+
}
44+
to {
45+
opacity: 0;
46+
}
47+
}
48+
49+
@keyframes moving {
50+
0%, 90% { top: 0; left: 0; }
51+
100% { top: -100px; left: 0; }
52+
}

_sass/_utils.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.hidden{
2+
display:none;
3+
}
4+

assets/css/style.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
@import "logo-box";
1010
@import "page-header";
1111
@import "page-menu";
12+
@import "popup";
13+
@import "utils";

0 commit comments

Comments
 (0)