Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6ac8285

Browse files
committedNov 3, 2014
Fix assets
1 parent cb9c18b commit 6ac8285

File tree

6 files changed

+32
-43
lines changed

6 files changed

+32
-43
lines changed
 

‎_layouts/default.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ <h1><a href="#">{{ page.title }}</a></h1>
7474
<meta http-equiv="Keywords" name="Keywords" content="rubygems, gems, programming, ruby, packages" />
7575
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" name="viewport">
7676
<link href="/stylesheets/application.css" rel="stylesheet" type="text/css" />
77-
<script src="/javascripts/application.js" type="text/javascript"></script>
77+
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
78+
<script src="/javascripts/mobile-nav.js" type="text/javascript"></script>
7879
<script src="//use.typekit.net/lkc4mmu.js" type="text/javascript"></script>
7980
<script>
8081
try{Typekit.load();}catch(e){}
8182
</script>
82-
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
8383
<script>
8484
$(function() {
8585
var path = window.location.pathname;
@@ -111,17 +111,18 @@ <h1><a href="#">{{ page.title }}</a></h1>
111111
</a>
112112

113113
<div class="header__nav-links-wrap">
114-
<form class="header__search-wrap">
115-
<input class="header__search" id="header__search" name="header__search" placeholder="Search Gems..." type="search">
116-
<label class="header__search__icon" data-icon="" for="header__search">
114+
<form accept-charset="UTF-8" action="https://rubygems.org/search" class="header__search-wrap" id="main-search" method="get"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /></div>
115+
<input class="header__search" id="query" name="query" placeholder="Search Gems&hellip;" type="search" />
116+
<label for="query">
117117
<span class="t-hidden">Search gems</span>
118118
</label>
119+
<input class="header__search__icon" id="search_submit" type="submit" value="" />
119120
</form>
120121

121122
<nav class="header__nav-links">
122123
<a class="header__nav-link" href="https://rubygems.org/gems">Gems</a>
123-
<a class="header__nav-link is-active" href="/">Guides</a>
124-
<a class="header__nav-link" href="http://guides.rubygems.org/contributing/">Contribute</a>
124+
<a class="header__nav-link" href="/">Guides</a>
125+
<a class="header__nav-link" href="/contributing">Contribute</a>
125126
</nav>
126127
</div>
127128
</div>

‎javascripts/application.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎javascripts/html5shiv.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎javascripts/jquery.min.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎stylesheets/application.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,18 +1142,17 @@ body.has-modal > *:not(.modal-wrap) {
11421142
@media (min-width: 1020px) {
11431143
.header__search-wrap, .header__search-wrap--home {
11441144
width: 350px; } }
1145-
.header__search-wrap:hover .header__search__icon, .header__search-wrap--home:hover .header__search__icon {
1146-
color: white; }
1147-
.header__search-wrap:hover .header__search, .header__search-wrap--home:hover .header__search {
1148-
border-bottom-color: white; }
11491145

11501146
@media (min-width: 900px) {
11511147
.header__search-wrap--home {
11521148
display: none; } }
11531149

11541150
.header__search__icon {
11551151
top: 6px;
1152+
border: none;
1153+
background-color: transparent;
11561154
font-size: 18px;
1155+
font-family: "icomoon";
11571156
color: white;
11581157
color: rgba(255, 255, 255, 0.5);
11591158
-webkit-transition-duration: 0.25s;
@@ -1168,10 +1167,13 @@ body.has-modal > *:not(.modal-wrap) {
11681167
transition-property: color; }
11691168
@media (max-width: 899px) {
11701169
.header__search__icon {
1171-
right: 30px; } }
1170+
right: 4px; } }
11721171
@media (min-width: 900px) {
11731172
.header__search__icon {
11741173
right: 0; } }
1174+
.header__search__icon:hover, .header__search__icon:focus {
1175+
color: white;
1176+
outline: none; }
11751177

11761178
.header__search {
11771179
border-bottom-color: white;
@@ -1193,7 +1195,7 @@ body.has-modal > *:not(.modal-wrap) {
11931195
width: 210px; } }
11941196
@media (min-width: 900px) {
11951197
.header__search {
1196-
padding-right: 6px; } }
1198+
padding-right: 10px; } }
11971199
@media (min-width: 900px) and (max-width: 1019px) {
11981200
.header__search {
11991201
width: 230px; } }
@@ -1208,9 +1210,9 @@ body.has-modal > *:not(.modal-wrap) {
12081210
color: rgba(255, 255, 255, 0.3); }
12091211
.header__search:-ms-input-placeholder {
12101212
color: rgba(255, 255, 255, 0.3); }
1211-
.header__search:focus {
1213+
.header__search:hover, .header__search:focus {
12121214
border-bottom-color: white; }
1213-
.header__search:focus + .header__search__icon {
1215+
.header__search:hover ~ .header__search__icon, .header__search:focus ~ .header__search__icon {
12141216
color: white; }
12151217

12161218
.help__search__toggle {

‎stylesheets/modules/_search.scss

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@
6565
@media (min-width: 1020px) {
6666
width: 350px;
6767
}
68-
&:hover {
69-
.header__search__icon {
70-
color: $white;
71-
}
72-
.header__search {
73-
border-bottom-color: $white;
74-
}
75-
}
7668
}
7769

7870
.header__search-wrap--home {
@@ -85,17 +77,26 @@
8577
.header__search__icon {
8678
@extend %search__icon;
8779
top: 6px;
88-
font-size: 18px;
80+
border: none;
81+
background-color: transparent;
82+
font: {
83+
size: 18px;
84+
family: "icomoon";
85+
}
8986
color: $white;
9087
color: rgba($white, .5);
9188
@include transition-duration(.25s);
9289
@include transition-property(color);
9390
@media (max-width: 899px) {
94-
right: 30px;
91+
right: 4px;
9592
}
9693
@media (min-width: 900px) {
9794
right: 0;
9895
}
96+
&:hover, &:focus {
97+
color: $white;
98+
outline: none;
99+
}
99100
}
100101

101102
.header__search {
@@ -111,7 +112,7 @@
111112
width: 210px;
112113
}
113114
@media (min-width: 900px) {
114-
padding-right: 6px;
115+
padding-right: 10px;
115116
}
116117
@media (min-width: 900px) and (max-width: 1019px) {
117118
width: 230px;
@@ -131,9 +132,9 @@
131132
&:-ms-input-placeholder {
132133
color: rgba($white, .3);
133134
}
134-
&:focus {
135+
&:hover, &:focus {
135136
border-bottom-color: $white;
136-
& + .header__search__icon {
137+
& ~ .header__search__icon {
137138
color: $white;
138139
}
139140
}

0 commit comments

Comments
 (0)
Please sign in to comment.