Skip to content

Commit 974be18

Browse files
thehydroimpulseadrientetar
authored andcommitted
---
yaml --- r: 150854 b: refs/heads/try2 c: 2d0962a h: refs/heads/master v: v3
1 parent b36809c commit 974be18

File tree

2 files changed

+36
-18
lines changed

2 files changed

+36
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: fbdde0e7ba4edecd3411e6e7ec22324aed027a4e
8+
refs/heads/try2: 2d0962ad62ccc7d8fc51bbb3b017e470b96df70c
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)