Skip to content

Commit

Permalink
style(table): fix #112, fix #290
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zhukov committed Apr 21, 2017
1 parent 68205eb commit 4504fcf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class BasicExampleComponent {
columns: {
id: {
title: 'ID',
width: '60px',
width: '100px',
},
name: {
title: 'Full Name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
textarea {
width: 100%;
line-height: normal;
padding: .375rem .75rem;
padding: .375em .75em;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
select {
width: 100%;
line-height: normal;
padding: .375rem .75rem;
padding: .375em .75em;
font-weight: normal;
}
input[type="search"] {
Expand Down
2 changes: 1 addition & 1 deletion src/ng2-smart-table/components/pager/pager.component.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.ng2-smart-pagination {
display: inline-block;
font-size: .875rem;
font-size: .875em;
padding: 0;

.sr-only {
Expand Down
17 changes: 6 additions & 11 deletions src/ng2-smart-table/ng2-smart-table.component.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
$table-font-color: #606c71;
$table-border-color: #e9ebec;

:host {
font-size: 1rem;

/deep/ {
* {
box-sizing: border-box;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button,
Expand All @@ -19,9 +17,7 @@ $table-border-color: #e9ebec;
}

table {
font-size: 16px;
line-height: 1.5;
color: $table-font-color;
line-height: 1.5em;
border-collapse: collapse;
border-spacing: 0;
display: table;
Expand All @@ -36,15 +32,14 @@ $table-border-color: #e9ebec;
font-weight: bold;
}
section {
font-size: .75rem;
font-size: .75em;
font-weight: bold;
}
td,
th {
font-size: .875rem;
font-size: .875em;
margin: 0;
padding: 0.5rem 1rem;
border: 1px solid $table-border-color;
padding: 0.5em 1em;
}
}
}
Expand Down

0 comments on commit 4504fcf

Please sign in to comment.