Skip to content

Commit

Permalink
31 Add more content view helpers
Browse files Browse the repository at this point in the history
- Toolbar yield content was added
- Font-family was added to global variables
  • Loading branch information
tayfunoziserikan committed Sep 11, 2013
1 parent 4fc953c commit b6f0f0f
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: git://github.com/thomas-mcdonald/bootstrap-sass.git
revision: 79e7f27bcd70aa56682a8460c0bd6871bb6da172
revision: 0e88056ac5d58fb0bbd23d3fe929eac01712d964
branch: 3
specs:
bootstrap-sass (3.0.0.0)
Expand Down
2 changes: 2 additions & 0 deletions source/assets/stylesheets/_variables.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ $base-color: $turquoise
$base-dark-color: $midnight-blue
$base-dark-color-alternative: $wet-asphalt

$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif

$brand-font-size: 1.8em

$body-bg-primary: $silver
Expand Down
3 changes: 3 additions & 0 deletions source/assets/stylesheets/application.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
@import 'bootstrap'
@import 'bootstrap_overrides'

body
font-family: $base-font-family

body.login
color: $base-dark-color
background-color: $body-bg-primary
Expand Down
24 changes: 20 additions & 4 deletions source/dashboard.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
- page 'Dashboard', 'dashboard'

- content_for :toolbar do
.btn-group
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Building'}
%i.icon-building
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Laptop'}
%i.icon-laptop
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Calendar'}
%i.icon-calendar
%span.badge 3
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Lemon'}
%i.icon-lemon
.label.label-danger
Danger
.label.label-info
Info

.panel
.panel-heading
%i.icon-beer.icon-large
Expand All @@ -14,10 +30,10 @@
.panel-body
.page-header
%h4 System usage
.progress
.progress-bar.progress-bar-success{style: 'width: 35%'}
.progress-bar.progress-bar-warning{style: 'width: 20%'}
.progress-bar.progress-bar-danger{style: 'width: 10%'}
.progress
.progress-bar.progress-bar-success{style: 'width: 35%'}
.progress-bar.progress-bar-warning{style: 'width: 20%'}
.progress-bar.progress-bar-danger{style: 'width: 10%'}
.page-header
%h4 User statics
.row.text-center
Expand Down
15 changes: 1 addition & 14 deletions source/partials/_toolbar.haml
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
#toolbar
.btn-group
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Building'}
%i.icon-building
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Laptop'}
%i.icon-laptop
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Calendar'}
%i.icon-calendar
%span.badge 3
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Lemon'}
%i.icon-lemon
.label.label-danger
Danger
.label.label-info
Info
=yield_content :toolbar
12 changes: 12 additions & 0 deletions source/tables.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
- page 'Tables', 'tables'

- content_for :toolbar do
.btn-group
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Building'}
%i.icon-building
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Laptop'}
%i.icon-laptop
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Calendar'}
%i.icon-calendar
%span.badge 3
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Lemon'}
%i.icon-lemon

.panel.tables
.panel-heading
%i.icon-table.icon-large
Expand Down

0 comments on commit b6f0f0f

Please sign in to comment.