From 4989c4f68e3e77beb2a4db53240353d6a5bf6bb7 Mon Sep 17 00:00:00 2001
From: Lisa Passing
Date: Fri, 19 Jun 2015 16:05:21 +0200
Subject: [PATCH 1/4] fix code climate popup and iterate over popups over all
---
app/styles/app.scss | 2 +-
app/styles/app/_mixins/colors.sass | 13 +++++
app/styles/app/_mixins/mixins.sass | 9 ---
app/styles/app/popup.sass | 58 ++++++++++---------
.../components/code-climate-popup.hbs | 9 +--
app/templates/status-images.hbs | 2 +-
6 files changed, 48 insertions(+), 45 deletions(-)
diff --git a/app/styles/app.scss b/app/styles/app.scss
index b185b1af..894130a7 100644
--- a/app/styles/app.scss
+++ b/app/styles/app.scss
@@ -18,7 +18,7 @@
@import "app/main/sponsors";
@import "app/misc";
@import "app/popup";
-@import "app/pro";
+// @import "app/pro";
@import "app/settings";
@import "app/tabs";
diff --git a/app/styles/app/_mixins/colors.sass b/app/styles/app/_mixins/colors.sass
index a45a8886..615b4b3c 100644
--- a/app/styles/app/_mixins/colors.sass
+++ b/app/styles/app/_mixins/colors.sass
@@ -32,6 +32,19 @@ $gray-light-2: #efefef
$gray-light-3: #f2f2eb
$gray-light-4: #fdfdfd
+$cream-light: #FAFAF8
+$cream-dark: #EFF0EC
+$grey-light: #A1A0A0
+$grey-medium: #969496
+$grey-dark: #808080
+
+$green-light: #73c78d
+$green-dark: #3FA75F
+$red-light: #D7625F
+$red-dark: #DB423C
+$teal-light: #63A4A3
+$teal-dark: #5BA5A4
+
$slate-blue-1: #e1e2e6
$slate-blue-2: #e5e8ee
$slate-blue-3: #f2f4f9
diff --git a/app/styles/app/_mixins/mixins.sass b/app/styles/app/_mixins/mixins.sass
index e4609b31..7218d2c0 100644
--- a/app/styles/app/_mixins/mixins.sass
+++ b/app/styles/app/_mixins/mixins.sass
@@ -1,13 +1,4 @@
-@mixin popup
- display: none
- position: fixed
- z-index: 100
- background-color: #fff
- border: 10px solid rgba(114, 131, 139, 0.6)
- background-clip: padding-box
- border-radius 4px
-
@mixin fadeOut($position, $angle, $color, $width: 0%)
content: ""
display: block
diff --git a/app/styles/app/popup.sass b/app/styles/app/popup.sass
index a7658ce9..2cc37e4e 100644
--- a/app/styles/app/popup.sass
+++ b/app/styles/app/popup.sass
@@ -1,3 +1,15 @@
+%popup
+ width: 29em
+ height: auto
+ position: fixed
+ top: 50%
+ left: 50%
+ transform: translate(-50%, -50%)
+ padding: 2.5em 2em
+ color: #565656
+ z-index: 99
+ background-color: $white
+ @extend %border-radius-4px
.help
display: inline-block
@@ -14,13 +26,14 @@
cursor: pointer
.popup
- top: 50%
- left: 50%
+ @extend %popup
+ display: none
width: 400px
- margin: -200px 0 0 -200px
- padding: 20px
- @include popup
- box-sizing: border-box
+ background-color: #fff
+ border: solid 10px $cream-dark
+
+ &:before
+ content: ""
.close
position: absolute
@@ -29,11 +42,8 @@
top: 10px
width: 16px
height: 16px
- background:
- image: inline-image('ui/close.svg')
- repeat: no-repeat
- size: 100%
-
+ @extend .icon
+ @extend .icon--dismiss-grey
h4
margin-top: 0
font-size: 18px
@@ -41,20 +51,20 @@
color: $color-text
p
- font-size: $font-size-normal
+ font-size: $font-size-sm
word-wrap: normal
pre
background-color: $color-bg-pre
margin: 0
- padding: 10px 20px
+ padding: 5px 10px
border-radius: 4px
overflow-x: scroll
#status-images
- display: none
- width: 600px
- margin: -95px 0 0 -300px
+ width: 100%
+ @media #{$medium-up}
+ width: 600px
p
margin: 0
@@ -97,19 +107,11 @@
border-radius: 3px
#regenerate-key, #regeneration-success
- display: none
width: 400px
#code-climate
- width: 500px
- padding: 5px 20px
- margin-left: -250px
-
- pre
- padding: 5px 10px
-
+ width: 100%
ol
- padding-left: 15px
- img#code-climate-logo
- margin-right: 50px
-
+ padding-left: 1.2em
+ @media #{$medium-up}
+ width: 550px
diff --git a/app/templates/components/code-climate-popup.hbs b/app/templates/components/code-climate-popup.hbs
index a6a366d2..2daf1003 100644
--- a/app/templates/components/code-climate-popup.hbs
+++ b/app/templates/components/code-climate-popup.hbs
@@ -19,23 +19,20 @@
Add the `code-climate-reporter` gem to your Gemfile:
-
-gem "codeclimate-test-reporter", group: :test, require: nil
+gem "codeclimate-test-reporter", group: :test, require: nil
Load the reporter in your `test_helper` or `spec_helper`, putting it at the very top:
-
-require "codeclimate-test-reporter"
+require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
Add the Code Climate token to your .travis.yml:
-
-addons:
+addons:
code_climate:
repo_token: adf08323...
diff --git a/app/templates/status-images.hbs b/app/templates/status-images.hbs
index 4c30aacd..7efbe96d 100644
--- a/app/templates/status-images.hbs
+++ b/app/templates/status-images.hbs
@@ -4,7 +4,7 @@
{{#if view.branches.isLoaded}}
{{view Ember.Select contentBinding="view.branches" selectionBinding="view.statusImageBranch" optionLabelPath="content.commit.branch" optionValuePath="content.commit.branch"}}
{{else}}
-
+ {{loading-indicator}}
{{/if}}
From 609fb5ae9b467ce19d8583a3609ea60bf5960763 Mon Sep 17 00:00:00 2001
From: Lisa Passing
Date: Fri, 19 Jun 2015 16:13:24 +0200
Subject: [PATCH 2/4] delete app.sass because it is not used at all
---
app/styles/app/app.sass | 26 --------------------------
1 file changed, 26 deletions(-)
delete mode 100644 app/styles/app/app.sass
diff --git a/app/styles/app/app.sass b/app/styles/app/app.sass
deleted file mode 100644
index 794b3ea4..00000000
--- a/app/styles/app/app.sass
+++ /dev/null
@@ -1,26 +0,0 @@
-
-html, body
- height: 100%
-
-a
- color: $color-link
- text-decoration: none
-
-ul
- padding: 0
- margin: 0
- list-style-type: none
-
-li
- padding: 0
-
-.github-link
- background: transparent url(/images/icons/github.svg) center right no-repeat
- background-size: 12px
- opacity: 1
- padding-right: 16px
-
- &.only-on-hover
- background-image: none
- &.only-on-hover:hover
- background-image: url(/images/icons/github.svg)
From 774262175aa9497ba16422e0d6c179156dd9c779 Mon Sep 17 00:00:00 2001
From: Lisa Passing
Date: Fri, 19 Jun 2015 16:19:02 +0200
Subject: [PATCH 3/4] cleanup tabs.sass
---
app/styles/app.scss | 1 -
app/styles/app/modules/tabs.sass | 45 +++++++++++
app/styles/app/tabs.sass | 132 -------------------------------
3 files changed, 45 insertions(+), 133 deletions(-)
delete mode 100644 app/styles/app/tabs.sass
diff --git a/app/styles/app.scss b/app/styles/app.scss
index 894130a7..764e55ba 100644
--- a/app/styles/app.scss
+++ b/app/styles/app.scss
@@ -20,7 +20,6 @@
@import "app/popup";
// @import "app/pro";
@import "app/settings";
-@import "app/tabs";
@import "app/components/travis-switch";
@import "app/components/sync-button";
diff --git a/app/styles/app/modules/tabs.sass b/app/styles/app/modules/tabs.sass
index 2d90aa8d..0c2561f2 100644
--- a/app/styles/app/modules/tabs.sass
+++ b/app/styles/app/modules/tabs.sass
@@ -75,3 +75,48 @@
li
float: left
margin-right: 1em
+
+
+#main
+ .tabs
+ border-bottom: 3px solid #f5f5f6
+ li
+ height: 29px
+ background-color: #f5f5f6
+ margin-right: 0
+ overflow: hidden
+ &:hover
+ background-color: #e1e8eb
+ a
+ text-decoration: none
+
+ .active
+ display: block
+ background-color: $tab-active-bg
+ border-bottom-color: $tab-active-bg
+ &:hover
+ background-color: $tab-active-bg
+ a
+ color: #6c878e
+ @media #{$medium-up}
+ display: inline-block
+
+ #builds
+ a
+ display: inline
+
+.tabs--main
+ #tab_build,
+ #tab_job,
+ #tab_request,
+ #tab_requests,
+ #tab_caches,
+ #tab_settings
+ display: none
+ &.active
+ display: inline-block
+
+#profile
+ #main
+ .tab
+ margin: 30px 0 0 12px
diff --git a/app/styles/app/tabs.sass b/app/styles/app/tabs.sass
deleted file mode 100644
index 9990abe7..00000000
--- a/app/styles/app/tabs.sass
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * It's a nightmare to overwrite this
- * @todo refactor and get rid of all IDs
- */
-
-
-// .tabs
-// @include resetul
-// li
-// height: 28px
-// vertical-align: top
-// background-color: $tab-nav-inactive-bg
-// border-radius: 4px 4px 0px 0px
-// padding: 0 12px 0 12px
-// margin-right: 10px
-// white-space: nowrap
-// cursor: pointer
-// @media #{$medium-up}
-// height: 29px
-// li
-// display: inline-block
-// &:hover
-// background-color: $tab-nav-inactive-bg-hover
-
-// .active
-// background-color: $color-bg-tab-active
-// border-bottom-color: $color-bg-tab-active
-
-// a
-// color: $color-text
-// font-weight: 600
-
-// h5
-// margin: 0
-// font-size: $font-size-small
-// font-weight: normal
-// line-height: 30px
-// text-align: center
-
-// a
-// display: block
-// color: #a8a9ab
-
-
-// #left
-
-// .tabs
-// margin: -28px 20px 0 15px
-
-// #tab_search:not(.active)
-// display: none
-
-// #tab_recent.hidden
-// display: none
-
-// #tab_owned
-// display: none
-// #tab_owned.display
-// display: inline-block
-// #tab_new
-// display: none
-// height: 25px
-// width: 26px
-// margin-top: 3px
-// float: right
-// margin-right: 0
-// padding: 0 5px 0 5px
-
-// h5
-// line-height: 25px
-
-// #tab_new.display
-// display: inline-block
-
-#main
- .tabs
- border-bottom: 3px solid #f5f5f6
- li
- height: 29px
- background-color: #f5f5f6
- margin-right: 0
- overflow: hidden
- &:hover
- background-color: #e1e8eb
- a
- text-decoration: none
-
- .active
- display: block
- background-color: $tab-active-bg
- border-bottom-color: $tab-active-bg
- &:hover
- background-color: $tab-active-bg
- a
- color: #6c878e
- @media #{$medium-up}
- display: inline-block
-
- #builds
- a
- display: inline
-
-.tabs--main
- #tab_build,
- #tab_job,
- #tab_request,
- #tab_requests,
- #tab_caches,
- #tab_settings
- display: none
- &.active
- display: inline-block
-
-#profile
- #main
- .tab
- margin: 30px 0 0 12px
-
-// #right
-// .tabs
-// margin-left: -3px
-
-// .active
-// background-color: $color-bg-right
-// border-bottom-color: $color-bg-right
-// h5
-// font-weight: bold
-
-// @media handheld, only screen and (max-device-width: 980px)
-// #main
-// #tab_branches
-// display: none
From 5ae9c1603d1d124cf1cc02b342989e13bb909422 Mon Sep 17 00:00:00 2001
From: Lisa Passing
Date: Fri, 19 Jun 2015 16:23:02 +0200
Subject: [PATCH 4/4] change z-index of log buttons so the feedback button is
always on top
---
app/styles/app/main/log.sass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/styles/app/main/log.sass b/app/styles/app/main/log.sass
index d9d1eb35..383559df 100644
--- a/app/styles/app/main/log.sass
+++ b/app/styles/app/main/log.sass
@@ -4,7 +4,7 @@
margin-top: 35px
.log-tail
- z-index: 99
+ z-index: 80
position: absolute
display: block
top: 0
@@ -50,7 +50,7 @@
background-color: #6b0
.to-top
- z-index: 99
+ z-index: 80
position: absolute
display: block
bottom: 2px