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/button.sass deleted file mode 100644 index 20416969..00000000 --- a/app/styles/app/button.sass +++ /dev/null @@ -1,46 +0,0 @@ - -.button - position: relative - overflow: visible - display: inline-block - padding: 5px 10px - border: 1px solid #d4d4d4 - margin: 0 - background-color: #E9E9E7 - background-clip: padding-box - cursor: pointer - outline: none - text-decoration: none - text-align: center - font: 11px/normal "Source Sans Pro", Helvetica, sans-serif - color: $gray-dark-3 - white-space: nowrap - -.button:hover, -.button:focus, -.button:active, -.button.active - border-color: #d4d4d4 - border-bottom-color: #2a65a0 - background-color: #40454f - text-decoration: none - color: #fff - -.button:active, -.button.active - border-color: #2a65a0 - border-bottom-color: #2356c4 - background-color: #40454f - -.show-more - background-color: #F2F2EB - display: inline-block - color: #666 - padding: 6px 15px - text-decoration: none - border: 1px solid #DDD -.show-more:hover - background-color: #40454F - color: #FFF - border: 1px solid #40454F - cursor: pointer diff --git a/app/styles/app/components/buttons.sass b/app/styles/app/components/buttons.sass new file mode 100644 index 00000000..cf9682d1 --- /dev/null +++ b/app/styles/app/components/buttons.sass @@ -0,0 +1,81 @@ +/* + * 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 $button-border-color + margin: 0 + background-color: #E9E9E7 + background-clip: padding-box + cursor: pointer + outline: none + text-decoration: none + text-align: center + color: $gray-dark-3 + white-space: nowrap + +.button:hover, +.button:focus, +.button:active, +.button.active + border-color: $button-border-color + border-bottom-color: #2a65a0 + background-color: #40454f + text-decoration: none + color: #fff + +.button:active, +.button.active + border-color: #2a65a0 + border-bottom-color: #2356c4 + background-color: #40454f + +.show-more + background-color: #F2F2EB + display: inline-block + color: #666 + padding: 6px 15px + text-decoration: none + border: 1px solid #DDD +.show-more:hover + background-color: #40454F + 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.7em 2em 0.65em 0.6em + color: $white + font-size: $font-size-small + line-height: 1 + text-decoration: none + border-radius: 4px + border: none + vertical-align: middle + cursor: pointer + background: + color: #39a85b + image: inline-image('ui/github-signin.svg') + repeat: no-repeat + position: 95.5% 45% + &:hover + background-color: #73c78d + text-decoration: none + &.signing-in + background-image: inline-image('ui/spinner.svg') + background-position: 92% 47% + &:hover + background-color: #39a85b + diff --git a/app/styles/app/top.sass b/app/styles/app/top.sass index 3904a624..d320186d 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,8 +126,11 @@ text-align: right .menu.profile - .signing-in - background: inline-image('ui/spinner.svg') no-repeat 110px 22px + padding: 0.2em 0px 0.5em + @media #{$medium-up} + padding: 0 + &.signed-in + top: 2px img width: 30px @@ -190,7 +193,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..46848fbf 100644 --- a/app/templates/top.hbs +++ b/app/templates/top.hbs @@ -68,13 +68,13 @@
  • {{#if auth.signedOut}} - Sign in with GitHub + {{/if}} {{#if auth.signedIn}} {{#link-to "profile" class="signed-in"}}{{userName}}{{/link-to}} {{/if}} {{#if auth.signingIn}} - Signing In + {{/if}}