Skip to content

Commit a2bfe83

Browse files
Merge pull request #478 from GuillaumeGomez/check-scss
Check scss
2 parents e085ec8 + ae28535 commit a2bfe83

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

templates/style.scss

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
// FONTS
32
$font-family-sans: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
43
$font-family-serif: "Source Serif Pro",Georgia,Times,"Times New Roman",serif;
54
$font-family-mono: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
65

7-
86
// COLORS - Guess what?
97
$color-standard: #000; // pure black
108
$color-url: #4d76ae; // blue
@@ -22,7 +20,6 @@ $color-border: #ddd; // gray
2220
$color-red: #d93d3d; // red
2321
$top-navbar-height: 32px; // height of the floating top navbar
2422

25-
2623
// pure compatible media queries
2724
$media-sm: "screen and (min-width: 35.5em)";
2825
$media-md: "screen and (min-width: 48em)";
@@ -31,7 +28,6 @@ $media-xl: "screen and (min-width: 80em)";
3128
// usage:
3229
// @media #{$media-sm} { ... }
3330

34-
3531
html, button, input, select, textarea,
3632
.pure-g [class *= "pure-u"] {
3733
font-family: $font-family-sans;
@@ -104,7 +100,6 @@ body {
104100
padding-top: $top-navbar-height;
105101
}
106102

107-
108103
// this is a super nasty override for help dialog in rustdocs
109104
// see #52 for details
110105
body.blur > :not(#help) {
@@ -120,11 +115,9 @@ body.blur > div.rustdoc > :not(#help) {
120115
opacity: .7;
121116
}
122117

123-
124118
// rustdocs have 200px sidebar and
125119
// max-width 960px main pane
126120
// BUT I really want to make the website centered
127-
128121
body {
129122
text-align: center;
130123
font: 16px/1.4 $font-family-sans;
@@ -189,10 +182,12 @@ div.nav-container {
189182
background-color: #fff;
190183
height: 31px;
191184
display: none;
185+
192186
@media #{$media-sm} {
193187
display: block;
194188
}
195189
}
190+
196191
input.search-input-nav:focus {
197192
outline: unset;
198193
}
@@ -202,6 +197,7 @@ div.nav-container {
202197
border: 1px solid $color-border;
203198
border-radius: 0 0 2px 2px;
204199
margin-left: -1px;
200+
205201
li {
206202
border-left: none;
207203
}
@@ -228,6 +224,7 @@ div.nav-container {
228224
div.rustdoc-navigation {
229225
span.title {
230226
display: none;
227+
231228
@media #{$media-sm} {
232229
display: inline;
233230
}
@@ -300,11 +297,8 @@ div.landing {
300297
margin-top: 30px;
301298
}
302299
}
303-
304300
}
305301

306-
307-
308302
div.recent-releases-container {
309303
text-align: left;
310304
margin-bottom: 50px;
@@ -318,6 +312,7 @@ div.recent-releases-container {
318312
ol.queue-list li {
319313
list-style-type: decimal;
320314
margin-left: 20px;
315+
321316
a {
322317
color: $color-url;
323318
}
@@ -354,6 +349,7 @@ div.recent-releases-container {
354349
color: $color-url;
355350
font-weight: 500;
356351
white-space: nowrap;
352+
357353
@media #{$media-sm} {
358354
text-overflow: ellipsis;
359355
overflow: hidden;
@@ -367,18 +363,19 @@ div.recent-releases-container {
367363

368364
.build {
369365
font-weight: 500;
366+
370367
i.fa-check {
371368
color: $color-macro;
372369
}
373370
i.fa-close {
374371
color: $color-struct;
375-
376372
}
377373
}
378374

379375
.description {
380376
font-family: $font-family-serif;
381377
font-weight: normal;
378+
382379
@media #{$media-sm} {
383380
font-size: 1em;
384381
white-space: nowrap;
@@ -396,6 +393,7 @@ div.recent-releases-container {
396393

397394
.date {
398395
font-weight: normal;
396+
399397
@media #{$media-sm} {
400398
text-align: right;
401399
}
@@ -411,7 +409,6 @@ div.recent-releases-container {
411409
}
412410
}
413411

414-
415412
div.package-container {
416413
background-color: $color-url;
417414
color: $color-background-code;;
@@ -426,7 +423,6 @@ div.package-container {
426423
}
427424

428425
.pure-menu {
429-
430426
.pure-menu-link {
431427
background-color: #fff;
432428
border-top: 1px solid $color-border;
@@ -449,7 +445,6 @@ div.package-container {
449445
}
450446
}
451447

452-
453448
div.package-sheet-container {
454449
margin-top: 10px;
455450
margin-bottom: 20px;
@@ -529,7 +524,6 @@ div.package-page-container {
529524

530525
div.package-details {
531526
padding: 0 1em;
532-
533527
font-family: $font-family-serif;
534528

535529
a {
@@ -589,7 +583,6 @@ div.package-page-container {
589583
text-align: left;
590584
vertical-align: bottom;
591585
}
592-
593586
}
594587
}
595588

@@ -603,8 +596,6 @@ div.package-page-container {
603596
}
604597
}
605598

606-
607-
608599
div.cratesfyi-package-container {
609600
text-align: left;
610601
background-color: $color-background-code;
@@ -615,6 +606,7 @@ div.cratesfyi-package-container {
615606
margin: 0;
616607
padding: 15px 0 0 14px;
617608
}
609+
618610
div.description {
619611
font-family: $font-family-serif;
620612
margin: 0;
@@ -626,6 +618,7 @@ div.cratesfyi-package-container {
626618
text-overflow: ellipsis;
627619
}
628620
}
621+
629622
div.description-in-rustdoc {
630623
padding: 10px 0 10px 14px;
631624
}
@@ -641,6 +634,7 @@ div.cratesfyi-package-container {
641634

642635
.title {
643636
display: none;
637+
644638
@media #{$media-sm} {
645639
display: inline;
646640
}
@@ -649,7 +643,6 @@ div.cratesfyi-package-container {
649643

650644
.pure-menu-active {
651645
color: $color-standard;
652-
653646
background-color: #fff;
654647
border-top: 1px solid $color-border;
655648
border-left: 1px solid $color-border;
@@ -672,6 +665,7 @@ div.cratesfyi-package-container {
672665
ul.platforms-menu {
673666
float: right;
674667
display: none;
668+
675669
ul.pure-menu-children {
676670
left: auto;
677671
right: 0;
@@ -693,21 +687,20 @@ div.cratesfyi-package-container-rustdoc {
693687
margin-bottom: 10px;
694688
}
695689

696-
697690
div.warning {
698691
font-family: $font-family-sans;
699692
border-radius: 4px;
700693
background-color: lighten($color-type, 45%);
701694
padding: .4em 1em;
702695
text-align: center;
703696
margin-bottom: 10px;
697+
704698
a {
705699
color: $color-url;
706700
text-decoration: underline;
707701
}
708702
}
709703

710-
711704
div.search-page-search-form {
712705
padding: .4em 1em;
713706
text-align: center;
@@ -730,26 +723,30 @@ div.search-page-search-form {
730723
padding-left: 35px;
731724
}
732725

733-
734726
.about {
735727
font-family: $font-family-serif;
736728
padding: .4em 1em;
729+
737730
a {
738731
color: $color-url;
739732
}
740733
a:hover {
741734
text-decoration: underline;
742735
}
736+
743737
table {
744738
margin-bottom: 10px;
745739
}
740+
746741
thead tr th {
747742
font-family: $font-family-sans;
748743
font-weight: 500;
749744
}
745+
750746
strong {
751747
font-weight: bold;
752748
}
749+
753750
pre code {
754751
background-color: inherit;
755752
}

0 commit comments

Comments
 (0)