Skip to content

Commit 2d0962a

Browse files
thehydroimpulseadrientetar
authored andcommitted
fixed issues
Signed-off-by: Daniel Fagnan <[email protected]>
1 parent fbdde0e commit 2d0962a

File tree

1 file changed

+35
-17
lines changed

1 file changed

+35
-17
lines changed

src/librustdoc/html/static/main.css

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ nav.sub {
130130
font-size: 14px;
131131

132132
transition: border 500ms ease-out;
133-
-webkit-transition: border 500ms ease-out;
134-
-moz-transition: border 500ms ease-out;
135-
-o-transition: border 500ms ease-out;
136133
}
137134

138135
body p {
@@ -285,16 +282,18 @@ a {
285282
.content .fnname { color: #8c6067; }
286283

287284
.search-container {
288-
padding-right: 10px;
285+
width: 60%;
286+
margin-left: 50px;
289287
}
288+
290289
.search-input {
291290
border: 2px solid #e9e9e9;
292291
border-radius: 2px;
293-
width: 85%;
292+
width: 95%;
294293
box-sizing: content-box;
295294
outline: none;
296295
border: none;
297-
background: none;
296+
background-color: white;
298297
font-family: "Helvetica Neue";
299298
color: #000;
300299
margin-top: 5px;
@@ -306,17 +305,10 @@ a {
306305
padding: 10px 16px;
307306
line-height: 1.4;
308307
font-size: 17px;
309-
background-color: white;
310-
-webkit-transition: background-color 50ms linear;
308+
311309
transition: background-color 50ms linear;
312310
transition: border 500ms ease-out;
313-
-webkit-transition: border 500ms ease-out;
314-
-moz-transition: border 500ms ease-out;
315-
-o-transition: border 500ms ease-out;
316311
transition: box-shadow 500ms ease-out;
317-
-webkit-transition: box-shadow 500ms ease-out;
318-
-moz-transition: box-shadow 500ms ease-out;
319-
-o-transition: box-shadow 500ms ease-out;
320312
}
321313

322314
.search-input:focus {
@@ -327,7 +319,7 @@ a {
327319
}
328320

329321
.do-search {
330-
float: right;
322+
display: none;
331323
outline: none;
332324
border: none;
333325
font-family: Helvetica Neue;
@@ -336,10 +328,11 @@ a {
336328
padding: 14px 25px;
337329
margin-top: 3px;
338330
font-size: 16px;
339-
margin-right: 15px;
340331
text-align: center;
341-
background: #6F5E59;
332+
background: #5B6672;
333+
margin-left: 10px;
342334
}
335+
343336
.search-results .desc {
344337
white-space: nowrap;
345338
text-overflow: ellipsis;
@@ -422,3 +415,28 @@ h5.section-link:hover a:after,
422415
h6.section-link:hover a:after {
423416
content: ' § ';
424417
}
418+
419+
/** Media Queries **/
420+
421+
@media (max-width: 620px) {
422+
.search-container {
423+
display: block;
424+
width: 100%;
425+
margin-left: 0px;
426+
}
427+
}
428+
429+
@media (max-width: 700px) {
430+
.sidebar {
431+
display: none;
432+
}
433+
434+
.content {
435+
margin-left: 0px;
436+
}
437+
438+
nav.sub {
439+
width: 80%;
440+
margin: 0 auto;
441+
}
442+
}

0 commit comments

Comments
 (0)