Skip to content

Commit 56480a9

Browse files
author
Bradley
committed
added onclick close of net neutrality
1 parent 7ce99df commit 56480a9

File tree

3 files changed

+24
-55
lines changed

3 files changed

+24
-55
lines changed

css/netneutrality.css

Lines changed: 12 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
left: 0;
44
top: 0;
55
width: 100%;
6+
padding: 0;
67
}
78

89
.f5 {
@@ -26,14 +27,8 @@
2627
.rounded-0 {
2728
border-radius: 0 !important;
2829
}
29-
* {
30-
box-sizing: border-box;
31-
}
3230

3331

34-
/*element.style {
35-
max-width: 980px;
36-
}*/
3732
.d-flex {
3833
display: -webkit-box !important;
3934
display: flex !important;
@@ -50,28 +45,12 @@
5045
-webkit-box-pack: justify !important;
5146
justify-content: space-between !important;
5247
}
53-
* {
54-
box-sizing: border-box;
55-
}
5648

5749

5850
b, strong {
5951
font-weight: 600;
6052
}
6153

62-
b, strong {
63-
font-weight: bolder;
64-
}
65-
b, strong {
66-
font-weight: inherit;
67-
}
68-
* {
69-
box-sizing: border-box;
70-
}
71-
strong, b {
72-
font-weight: bold;
73-
}
74-
7554
@media (max-width:850px)
7655
.d-sm-inline-block {
7756
display: none !important;
@@ -84,39 +63,23 @@ form {
8463
display: block;
8564
margin-top: 0em;
8665
}
87-
88-
89-
90-
.border-0 {
91-
border: 0 !important;
92-
}
93-
.btn {
94-
color: #24292e;
95-
background-color: #eff3f6;
96-
background-image: linear-gradient(-180deg, #fafbfc 0%, #eff3f6 90%);
97-
}
9866
.btn {
99-
position: relative;
67+
background-image: none;
68+
border: 1px solid white;
69+
border-radius: 0.25em;
70+
line-height: 1.5em;
10071
display: inline-block;
101-
padding: 6px 12px;
102-
font-size: 14px;
103-
font-weight: 600;
104-
line-height: 20px;
72+
padding: 0.5em 1em;
73+
font-size: inherit;
10574
white-space: nowrap;
10675
vertical-align: middle;
10776
cursor: pointer;
108-
-webkit-user-select: none;
109-
-moz-user-select: none;
110-
-ms-user-select: none;
11177
user-select: none;
112-
background-repeat: repeat-x;
113-
background-position: -1px -1px;
114-
background-size: 110% 110%;
115-
border: 1px solid rgba(27,31,35,0.2);
116-
border-radius: 0.25em;
117-
-webkit-appearance: none;
118-
-moz-appearance: none;
119-
appearance: none;
78+
}
79+
.btn:hover {
80+
color: #d73b48;
81+
background-color: white;
82+
border-bottom: white;
12083
}
12184

12285

@@ -128,9 +91,6 @@ form {
12891
.ml-1 {
12992
margin-left: 4px !important;
13093
}
131-
.text-white {
132-
color: #fff !important;
133-
}
13494
.btn-link {
13595
display: inline-block;
13696
padding: 0;

index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@
4646
<span class="d-none d-sm-inline-block">Show your support for a free and open internet.</span>
4747
</div>
4848
<form accept-charset="UTF-8" action="/settings/dismiss-notice/netneutrality_banner" class="js-notice-dismiss" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value=""><input name="authenticity_token" type="hidden" value="D1DVgtgcvTPo7o9x9VpisDXgmtEqJCx+BlM9TZbRX0d7kCq7/6gaUeAMwuRYI+hge84FU9vj+PzgJMfeYYse0Q=="></div>
49-
<a class="btn border-0" href="/save-net-neutrality">Learn more</a>
50-
<button type="submit" class="btn-link text-white p-2 ml-1">
51-
<svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"></path></svg>
49+
<a class="btn border-0" href="https://github.com/save-net-neutrality">Learn more</a>
50+
<button type="button" class="btn-link text-white p-2 ml-1">
51+
<svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12">
52+
<path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z">
53+
</path>
54+
</svg>
5255
<span class="sr-only">Dismiss</span>
5356
</button>
5457
</form>

js/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$( document ).ready(function() {
2+
console.log( "ready!" );
3+
$(".btn-link").click(function() {
4+
$(".js-notice").hide();
5+
})
6+
});

0 commit comments

Comments
 (0)