Skip to content

Commit

Permalink
lab2023#30 Create tables page
Browse files Browse the repository at this point in the history
- Table variations was adde
- No-padding panel was fixed for table usage
  • Loading branch information
tayfunoziserikan committed Aug 11, 2013
1 parent fa4375b commit 4cc2d8b
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 9 deletions.
9 changes: 9 additions & 0 deletions source/assets/stylesheets/_bootstrap_overrides.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,19 @@
margin-top: 4px
padding-bottom: 4px
font-weight: 200
.panel-body
&.no-padding
margin-left: -15px
margin-right: -15px
margin-top: -15px

// Buttons
.btn
padding: 6px 12px

.radio, .checkbox
margin-top: 0

.table
@extend .table-striped
@extend .table-hover
8 changes: 1 addition & 7 deletions source/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@
.panel-tools
.btn-group
%a.btn{href: '#'}
%i.icon-wrench
Settings
%a.btn{href: '#'}
%i.icon-filter
Filters
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Reload'}
%i.icon-refresh
Refresh statics
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Toggle'}
%i.icon-chevron-down
.badge 3 record
.panel-body
.page-header
%h4 System usage
Expand Down
4 changes: 2 additions & 2 deletions source/partials/_dock.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
%li.launcher{launcher_active('forms')}
%i.icon-file-text-alt
=link_to 'Forms', 'forms.html'
%li.launcher
%li.launcher{launcher_active('tables')}
%i.icon-table
%a{href: '#'} Tables
=link_to 'Tables', 'tables.html'
%li.launcher.dropdown.hover
%i.icon-flag
%a{href: '#'} Reports
Expand Down
131 changes: 131 additions & 0 deletions source/tables.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
- page 'Tables', 'tables'

.panel
.panel-heading
%i.icon-edit.icon-large
Default Table
.panel-tools
.btn-group
%a.btn{href: '#'}
%i.icon-wrench
Settings
%a.btn{href: '#'}
%i.icon-filter
Filters
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Reload'}
%i.icon-refresh
.badge 3 record
.panel-body.no-padding
%table.table
%thead
%tr
%th #
%th First Name
%th Last Name
%th Username
%tbody
%tr
%td 1
%td Mark
%td Otto
%td @mdo
%tr
%td 2
%td Jacob
%td Thornton
%td @fat
%tr
%td 3
%td Larry
%td the Bird
%td @twitter

.row
.col-lg-6
.panel
.panel-heading
%i.icon-edit.icon-large
Bordered Table
.panel-body
%table.table.table-bordered
%thead
%tr
%th #
%th First Name
%th Last Name
%th Username
%tbody
%tr
%td 1
%td Mark
%td Otto
%td @mdo
%tr
%td 2
%td Jacob
%td Thornton
%td @fat
%tr
%td 3
%td Larry
%td the Bird
%td @twitter

.col-lg-6
.panel
.panel-heading
%i.icon-edit.icon-large
Default Table
.panel-body
%table.table
%thead
%tr
%th #
%th First Name
%th Last Name
%th Username
%tbody
%tr
%td 1
%td Mark
%td Otto
%td @mdo
%tr
%td 2
%td Jacob
%td Thornton
%td @fat
%tr
%td 3
%td Larry
%td the Bird
%td @twitter

.panel
.panel-heading
%i.icon-edit.icon-large
Condensed Table
.panel-body
%table.table.table-condensed
%thead
%tr
%th #
%th First Name
%th Last Name
%th Username
%tbody
%tr
%td 1
%td Mark
%td Otto
%td @mdo
%tr
%td 2
%td Jacob
%td Thornton
%td @fat
%tr
%td 3
%td Larry
%td the Bird
%td @twitter

0 comments on commit 4cc2d8b

Please sign in to comment.