From 07db658fac96f4c6e567b8811c42129916682bd6 Mon Sep 17 00:00:00 2001 From: Lisa Passing Date: Mon, 16 Mar 2015 18:05:23 +0100 Subject: [PATCH] add markup and classes for sidebar --- app/styles/app/layouts/sidebar.sass | 29 +++++++ app/styles/app/modules/search.sass | 24 ++++-- app/templates/repos.hbs | 114 ++++++++++++++++++++-------- app/templates/repos/list/tabs.hbs | 36 +++++---- app/views/repos-list-tabs.coffee | 2 +- 5 files changed, 150 insertions(+), 55 deletions(-) diff --git a/app/styles/app/layouts/sidebar.sass b/app/styles/app/layouts/sidebar.sass index e69de29b..80059cfa 100644 --- a/app/styles/app/layouts/sidebar.sass +++ b/app/styles/app/layouts/sidebar.sass @@ -0,0 +1,29 @@ +$sb-grey: #f2f2f2 +$sb-font-size: 14px + +.tile--sidebar + // border-left: 8px solid # + background-color: $white + border-bottom: 6px solid #FAF9F7 + + + +.tabnav--sidebar + font-size: $sb-font-size + border-bottom: solid 2px $sb-grey + width: 90% + margin: auto + ul + height: 1.7em + li.float-right + padding-right: 0 + .icon--plus:hover + &:after + color: $teal1 + +.sidebar-list + margin-top: 1rem + ul + @include resetul + + diff --git a/app/styles/app/modules/search.sass b/app/styles/app/modules/search.sass index 2b1bedd2..45caa1c5 100644 --- a/app/styles/app/modules/search.sass +++ b/app/styles/app/modules/search.sass @@ -30,8 +30,22 @@ .search--sidebar - background-color: $white; - border: solid 1px #f2f2f2 - color: #a6adad - font-size: 14px - height: 28px \ No newline at end of file + position: relative + height: 10em + .search-inner + @extend %absolute-center + width: 90% + height: 33px + input + @extend .icon--search + display: inline-block + width: 100% + padding: .5em + color: #a6adad + font-size: 14px + border: solid 1px #f2f2f2 + border-radius: 4px + background: + repeat: no-repeat + position: 98% 6px + size: 17px 17px diff --git a/app/templates/repos.hbs b/app/templates/repos.hbs index 950bf60b..d7d0f388 100644 --- a/app/templates/repos.hbs +++ b/app/templates/repos.hbs @@ -1,49 +1,97 @@ {{view 'repos-list-tabs'}} -
+ + \ No newline at end of file diff --git a/app/templates/repos/list/tabs.hbs b/app/templates/repos/list/tabs.hbs index 3b45ab47..8ee3f89b 100644 --- a/app/templates/repos/list/tabs.hbs +++ b/app/templates/repos/list/tabs.hbs @@ -1,19 +1,23 @@ - +
diff --git a/app/views/repos-list-tabs.coffee b/app/views/repos-list-tabs.coffee index 964f925a..6f70e6da 100644 --- a/app/views/repos-list-tabs.coffee +++ b/app/views/repos-list-tabs.coffee @@ -15,7 +15,7 @@ View = Ember.View.extend classOwned: (-> classes = [] classes.push('active') if @get('tab') == 'owned' - classes.push('display-inline') if @get('currentUser') + # classes.push('display-inline') if @get('currentUser') classes.join(' ') ).property('tab', 'currentUser')