Skip to content

Commit

Permalink
lab2023#30 Create tables page
Browse files Browse the repository at this point in the history
- Table th and td padding values was fixed
- Table header and table footer was added
- 'tables' css class was added to panels
  • Loading branch information
tayfunoziserikan committed Aug 11, 2013
1 parent 7a444bb commit 5a42f4b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 25 deletions.
32 changes: 22 additions & 10 deletions source/assets/stylesheets/application.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,28 @@ form
.text-center
text-align: center

table
.table-header
text-align: left
padding: 10px
background-color: lighten($panel-heading-bg, 3)
border-bottom: 1px solid $table-border-color
.input-group
margin-right: -15px
input
height: 33px
.tables
.panel-body
margin-left: -15px
margin-right: -15px
margin-top: -15px
.table-header
text-align: left
padding: 10px
background-color: lighten($panel-heading-bg, 3)
border-bottom: 1px solid $table-border-color
&.row
margin: 0
.input-group
margin-right: -15px
input
height: 33px
table
th:first-child, td:first-child
padding-left: 15px




#navbar
.navbar-brand
Expand Down
47 changes: 32 additions & 15 deletions source/tables.html.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
- page 'Tables', 'tables'

.panel
.panel.tables
.panel-heading
%i.icon-edit.icon-large
%i.icon-table.icon-large
Default Table
.panel-tools
.btn-group
Expand All @@ -15,17 +15,17 @@
%a.btn{href: '#', data: {toggle: 'toolbar-tooltip'}, title: 'Reload'}
%i.icon-refresh
.badge 3 record
.panel-body.no-padding
.panel-body
.table-header.row
.col-lg-9
Per page
.col-lg-3
.input-group
%input.form-control{placeholder: 'Quick search...', type: 'text'}/
%span.input-group-btn
%button.btn{type: 'button'}
%i.icon-search
%table.table
%caption.table-header
.col-lg-9
Per page
.col-lg-3
.input-group
%input.form-control{placeholder: 'Quick search...', type: 'text'}/
%span.input-group-btn
%button.btn{type: 'button'}
%i.icon-search
%thead
%tr
%th #
Expand All @@ -49,11 +49,28 @@
%td the Bird
%td @twitter

.table-footer
%ul.pagination
%li
%a{:href => "#"} «
%li
%a{:href => "#"} 1
%li
%a{:href => "#"} 2
%li
%a{:href => "#"} 3
%li
%a{:href => "#"} 4
%li
%a{:href => "#"} 5
%li
%a{:href => "#"} »

.row
.col-lg-6
.panel
.panel-heading
%i.icon-edit.icon-large
%i.icon-table.icon-large
Padding Table
.panel-body
%table.table
Expand Down Expand Up @@ -82,7 +99,7 @@
.col-lg-6
.panel
.panel-heading
%i.icon-edit.icon-large
%i.icon-table.icon-large
Bordered Table
.panel-body
%table.table.table-bordered
Expand Down Expand Up @@ -112,7 +129,7 @@

.panel
.panel-heading
%i.icon-edit.icon-large
%i.icon-table.icon-large
Condensed Table
.panel-body
%table.table.table-condensed
Expand Down

0 comments on commit 5a42f4b

Please sign in to comment.