Skip to content

New interface (live preview) #347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 48 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f9750f8
Add github icon
alx741 May 31, 2016
d5ae698
New navbar
alx741 May 31, 2016
bb2c2e9
Invert github logo color
alx741 May 31, 2016
cefb2e6
Position logo and search bar
alx741 May 31, 2016
5431ba9
Add cargo name in header
alx741 May 31, 2016
766b16f
Apply hover style
alx741 May 31, 2016
0a921ae
Remove dead hover style
alx741 May 31, 2016
7cafdd9
Remove dead logo position css
alx741 May 31, 2016
689b565
Position blurb
alx741 May 31, 2016
1694a88
Better yellow buttons
alx741 May 31, 2016
2e62f4d
Better crates and download badges
alx741 Jun 1, 2016
65c137b
Fix badges position
alx741 Jun 1, 2016
0b323d4
Round crates, downloads badges
alx741 Jun 1, 2016
6c75dff
Add navbar icons
alx741 Jun 1, 2016
6204ae5
Add rust box icon
alx741 Jun 1, 2016
fbc73dc
Improve crates list
alx741 Jun 1, 2016
e83ab67
Add borders to most downloaded list
alx741 Jun 1, 2016
cb820c3
Center search bar
alx741 Jun 1, 2016
70102af
Add semantic header tag
alx741 Jun 1, 2016
d893878
Add footer
alx741 Jun 1, 2016
d585698
Add icons
alx741 Jun 1, 2016
cdd5084
Add extra links in footer
alx741 Jun 1, 2016
512a624
Add hover for footer links
alx741 Jun 1, 2016
16a2075
Better hover for navbar
alx741 Jun 1, 2016
d3a03b0
Smaller text for blurb
alx741 Jun 2, 2016
673fa88
Smaller footer icons
alx741 Jun 2, 2016
eabf420
Use crate.png instead of package.png
alx741 Jun 2, 2016
4ce9f08
Add crate name, version and description bar
alx741 Jun 2, 2016
3759afa
Smaller crate version text
alx741 Jun 2, 2016
574c19b
Position crate information
alx741 Jun 2, 2016
3e57efc
Add cargo.toml bar
alx741 Jun 3, 2016
d3fcfbe
Position stats
alx741 Jun 3, 2016
8346a51
Style stats button
alx741 Jun 3, 2016
63e9233
Git ignore yarn.lock
alx741 Dec 22, 2016
32abeea
Fix status images
alx741 Dec 22, 2016
421a6aa
Port install page to new style
alx741 Dec 22, 2016
d612d46
Center "CARGO"
alx741 Dec 22, 2016
63b50ec
Fix crate download button
alx741 Dec 22, 2016
59a23f9
Make cargo title a link to root
alx741 Dec 22, 2016
accf378
Better "loading..." message
alx741 Dec 22, 2016
e162e7b
Better "Redirecting to github" message
alx741 Dec 22, 2016
eb71851
Better "logging out" message
alx741 Dec 22, 2016
1738a39
Smaller font for crates listing
alx741 Dec 22, 2016
b0bf925
Fix logo responsiveness
alx741 Dec 22, 2016
e5dab96
Remove mobile search
alx741 Dec 22, 2016
c5ed05d
Fix buttons responsiveness
alx741 Dec 22, 2016
153ca44
Fix stats responsiveness
alx741 Dec 22, 2016
cd2f2cf
Better error message
alx741 Dec 22, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
npm-debug.log
testem.log
.env
yarn.lock
4 changes: 2 additions & 2 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cargo</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, user-scalable=no,
initial-scalable=1.0, maximum-scale=1.0, minimum-scale=1.0">

{{content-for 'head'}}

Expand Down Expand Up @@ -39,7 +40,6 @@

<script src="assets/vendor.js"></script>
<script src="assets/cargo.js"></script>

{{content-for 'body-footer'}}
</body>
</html>
159 changes: 124 additions & 35 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ $main-color-light: lighten($main-color, 30%);
$main-bg: #f9f7ec;
$main-bg-dark: #edebdd;
$gray-border: #d5d3cb;
$header-bg: #E07212;
$blurb-fg: #693100;
$link-color: rgb(0, 172, 91);
$footer-bg: #693100;

@import "home";
@import "crate";
Expand All @@ -18,8 +21,7 @@ $link-color: rgb(0, 172, 91);
}

html {
background: url('/assets/noise.png');
background-color: $html-bg;
background-color: $main-bg;
}

html, body { margin: 0; }
Expand All @@ -32,7 +34,8 @@ body {
}

.ember-application > div {
width: 900px;
// width: 900px;
width: 100%;
@media only screen and (max-width: 900px) {
width: 100%;
}
Expand All @@ -42,26 +45,47 @@ body {
@include display-flex;
@include flex-direction(column);

margin-bottom: 10px;
margin: 0px;
width: 100%;
background-color: $main-bg;
padding: 15px;
@include border-radius(10px);
box-shadow: 0px 0px 5px 2px #3b6837;
border: 5px solid #62865f;
padding: 0px;
color: $main-color;
}

#logo {
max-width: 100%;
display: block;
margin: 0 auto;
position: relative;
top: -70px;

@media only screen and (max-width: 1100px) {
top: -10px;
}
}

#header {
background-color: $header-bg;
color: white;
font-family: helvetica;
font-size: 130%;
height: 60px;
padding-right: 20px;
position: relative;
height: 100px;
width: 100%;
@include display-flex;
@include align-items(center);
@include justify-content(space-between);

a {
color: white; text-decoration: none;
&:hover { color: darken(white, 15%); }
color: white;
display: inline-block;
text-decoration: none;
padding: 0px 10px;
}

.nav a {
&:hover { background-color: darken($header-bg, 2%); }
}

.sep { margin: 0 10px; color: darken($html-bg, 10%); }
Expand Down Expand Up @@ -110,37 +134,79 @@ body {
.nav { display: none; }
form.search { display: none; }
}

#cargo-name {
font-family: helvetica, Serif;
font-size: 230%;
font-weight: bold;
margin-left: 25px;
margin-top: 20px;
}
}

.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}

#header input.search, #mobile-search input.search {
font-size: 90%;
border: none;
#main-search input.search, #mobile-search input.search {
font-size: 150%;
display: inline-block;
border-color: $header-bg;
border-style: solid;
border-width: 2px;
margin-left: 15%;
margin-top: 90px;
color: black;
outline: 0;
margin-left: 30px;
padding: 5px 5px 5px 25px;
padding: 5px 5px 5px 40px;
width: 70%;
height: 100%;
background-image: url('/assets/search.png');
background-repeat: no-repeat;
background-position: 6px 6px;
background-position: 10px 15px;
background-size: 14px 15px;
@include border-radius(15px);
background-color: $main-bg;

@media only screen and (max-width: 991px) {
margin-top: 10px;
}
}

#mobile-search {
display: none;
margin-bottom: 10px;
input.search {
width: 100%;
margin: 0;
#blurb {
@media only screen and (max-width: 991px) {
margin-top: 70px;
}
@media only screen and (max-width: 820px) {
display: block;

.links a {
margin-right: 20px;
@media only screen and (max-width: 387px) {
margin-top: 20px;
padding-left: 25%;
width: 100%;
}
}

#stats {
.crates, .downloads {
@media only screen and (max-width: 500px) {
margin-left: 0px;
}
}
}
}

span.small {
textarea:focus, input:focus, .uneditable-input:focus {
border-color: rgba(229, 103, 23, 0.8) !important;
box-shadow: 0 5px 5px rgba(229, 103, 23, 0.075) inset, 0 0 3px rgba(229, 103, 23, 0.6) !important;
outline: 0 none !important;
}

span.small, div.small {
color: $main-color-light;
font-size: 80%;
font-size: 100%;
margin-left: 15px;
.num {
font-weight: bold;
color: $main-color;
Expand Down Expand Up @@ -267,9 +333,12 @@ ul.dropdown {
opacity: 1;
}
}

.dropdown-container {
display: inline-block;
position: relative;
padding: 0px 10px;
&:hover { background-color: darken($header-bg, 2%); }
}

.hidden { display: none; }
Expand Down Expand Up @@ -310,8 +379,9 @@ img {
}

&.package, &.crate {
width: 32px;
height: 33px;
width: 45px;
height: 45px;
margin-right: 10px;
}

&.my-packages {
Expand All @@ -334,9 +404,18 @@ img {
height: 33px;
}

&.lock {
width: 10px;
height: 13px;
&.icon {
width: 25px;
height: 25px;
padding-bottom: 1px;
padding-right: 3px;
filter: invert(1);

&.footer {
width: 30px;
height: 30px;
margin: 10px 10px;
}
}

&.download-clear-back {
Expand All @@ -350,8 +429,9 @@ img {
}

&.download {
width: 32px;
height: 33px;
width: 45px;
height: 45px;
margin-right: 10px;
}

&.following {
Expand All @@ -374,3 +454,12 @@ img {
height: 14px;
}
}

#loading {
color: $blurb-fg;
font-size: 3em;
margin-top: 50px;
text-align: center;
vertical-align: middle;
width: 100%;
}
Loading