diff --git a/app/styles/app.scss b/app/styles/app.scss index 0fe06a53..f425fc0f 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -8,12 +8,8 @@ @import "app/ansi"; @import "app/auth"; -@import "app/button"; @import "app/caches"; @import "app/charm"; -@import "app/components/loader"; -@import "app/components/tiles"; -@import "app/components/travis-switch"; @import "app/flash"; @import "app/forms"; @import "app/getting_started"; @@ -46,6 +42,11 @@ @import "app/tabs"; @import "app/tipsy"; +@import "app/components/loader"; +@import "app/components/tiles"; +@import "app/components/travis-switch"; +@import "app/components/buttons"; + @import "app/layout"; @import "app/layouts/dashboard"; @import "app/layouts/error"; diff --git a/app/styles/app/button.sass b/app/styles/app/components/buttons.sass similarity index 50% rename from app/styles/app/button.sass rename to app/styles/app/components/buttons.sass index 20416969..0418567b 100644 --- a/app/styles/app/button.sass +++ b/app/styles/app/components/buttons.sass @@ -1,10 +1,18 @@ +/* + * Buttons + */ + +$button-border-color: #d4d4d4 .button + font-family: $font-family-sans-serif + font-size: $font-size-tiny + font-weight: normal position: relative overflow: visible display: inline-block padding: 5px 10px - border: 1px solid #d4d4d4 + border: 1px solid $button-border-color margin: 0 background-color: #E9E9E7 background-clip: padding-box @@ -12,7 +20,6 @@ outline: none text-decoration: none text-align: center - font: 11px/normal "Source Sans Pro", Helvetica, sans-serif color: $gray-dark-3 white-space: nowrap @@ -20,7 +27,7 @@ .button:focus, .button:active, .button.active - border-color: #d4d4d4 + border-color: $button-border-color border-bottom-color: #2a65a0 background-color: #40454f text-decoration: none @@ -41,6 +48,28 @@ border: 1px solid #DDD .show-more:hover background-color: #40454F - color: #FFF + color: $white border: 1px solid #40454F cursor: pointer + + +#top #navigation // bad style, we really need to get rid of the ids in the styles + .button--signin + display: inline-block + padding: 0.5em 1.9em 0.45em 0.6em + background: #39a85b + color: $white + font-size: $font-size-small + line-height: 1 + text-decoration: none + border-radius: 4px + border: none + vertical-align: middle + cursor: pointer + background: + image: url(../images/ui/github-signin.svg) + repeat: no-repeat + position: 95.5% 44% + &:hover + background-color: #73c78d + text-decoration: none diff --git a/app/styles/app/top.sass b/app/styles/app/top.sass index 3904a624..4e9d9ef8 100644 --- a/app/styles/app/top.sass +++ b/app/styles/app/top.sass @@ -33,7 +33,7 @@ border-top: 1px solid $topbar-bg-darker a, span display: block - padding: 0 12px + padding: 2px 12px 0 &:hover color: $color-link-top-highlight @@ -59,7 +59,6 @@ ul line-height: 55px position: relative - top: 3px li display: inline-block border: none @@ -70,6 +69,7 @@ .nav-burger overflow: auto + height: 55px @media #{$medium-up} display: none @@ -126,6 +126,11 @@ text-align: right .menu.profile + padding: 0.2em 0px 0.5em + @media #{$medium-up} + padding: 0 + &:not(.signed-out) + top: 2px .signing-in background: inline-image('ui/spinner.svg') no-repeat 110px 22px @@ -190,7 +195,7 @@ border-radius: 100px @media #{$medium-up} float : right - margin : 10px 0 0 10px + margin : 12px 0 0 10px // #user ul // text-align : left diff --git a/app/templates/top.hbs b/app/templates/top.hbs index dcd73aa1..644b6061 100644 --- a/app/templates/top.hbs +++ b/app/templates/top.hbs @@ -68,7 +68,7 @@
  • {{#if auth.signedOut}} - Sign in with GitHub + {{/if}} {{#if auth.signedIn}} {{#link-to "profile" class="signed-in"}}{{userName}}{{/link-to}} diff --git a/public/images/ui/github-signin.svg b/public/images/ui/github-signin.svg new file mode 100644 index 00000000..7c2ccc05 --- /dev/null +++ b/public/images/ui/github-signin.svg @@ -0,0 +1,15 @@ + + + + + +