mirror of
https://github.com/gosticks/react-table.git
synced 2026-12-03 11:11:39 +00:00
Better example
This commit is contained in:
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
Vendored
+18
-9
@@ -100,12 +100,7 @@ html {
|
||||
min-height: 100vh;
|
||||
}
|
||||
body {
|
||||
background: #003952;
|
||||
background: -webkit-radial-gradient(ellipse at center, #005275 0%, #003952 100%);
|
||||
background: -moz-radial-gradient(ellipse at center, #005275 0%, #003952 100%);
|
||||
background: -o-radial-gradient(ellipse at center, #005275 0%, #003952 100%);
|
||||
background: -ms-radial-gradient(ellipse at center, #005275 0%, #003952 100%);
|
||||
background: radial-gradient(ellipse at center, #005275 0%, #003952 100%);
|
||||
background: #fff;
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-weight: 300;
|
||||
padding-bottom: 50px;
|
||||
@@ -115,12 +110,16 @@ h1 {
|
||||
color: #fff;
|
||||
}
|
||||
a {
|
||||
color: #fff;
|
||||
color: #02bfe6;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
.logo {
|
||||
width: 400px;
|
||||
}
|
||||
.container {
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
@@ -151,12 +150,22 @@ strong {
|
||||
}
|
||||
.container .github-addon {
|
||||
font-size: 20px;
|
||||
color: #fff;
|
||||
padding: 10px;
|
||||
}
|
||||
.container .table-wrap {
|
||||
background: #fff;
|
||||
width: 700px;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
|
||||
box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
.ReactTable thead th.-sort-asc,
|
||||
.ReactTable thead td.-sort-asc {
|
||||
-webkit-box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.6);
|
||||
box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.6);
|
||||
}
|
||||
.ReactTable thead th.-sort-desc,
|
||||
.ReactTable thead td.-sort-desc {
|
||||
-webkit-box-shadow: inset 0 -3px 0 0 rgba(0,0,0,0.6);
|
||||
box-shadow: inset 0 -3px 0 0 rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
Vendored
+15
-10
File diff suppressed because one or more lines are too long
+17
-8
@@ -18,9 +18,7 @@ global-reset()
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
$fnt-open-sans = 'Open Sans', sans-serif
|
||||
$clr-jumpsuit1 = #003952
|
||||
$clr-jumpsuit2 = #005275
|
||||
$clr-jumpsuit3 = #0082bb
|
||||
$react = #25d8fd
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// styles
|
||||
@@ -33,8 +31,7 @@ html
|
||||
min-height 100vh
|
||||
|
||||
body
|
||||
background: $clr-jumpsuit1
|
||||
background: radial-gradient(ellipse at center, $clr-jumpsuit2 0%, $clr-jumpsuit1 100%)
|
||||
background: white
|
||||
font-family: $fnt-open-sans
|
||||
font-weight: 300
|
||||
padding-bottom: 50px
|
||||
@@ -44,12 +41,16 @@ h1
|
||||
color: white
|
||||
|
||||
a
|
||||
color: white
|
||||
color: darken($react, 20%)
|
||||
font-weight: bold
|
||||
text-decoration: none
|
||||
|
||||
strong
|
||||
font-weight: bold
|
||||
|
||||
.logo
|
||||
width: 400px
|
||||
|
||||
.container
|
||||
display: flex
|
||||
flex-direction: column
|
||||
@@ -60,11 +61,19 @@ strong
|
||||
|
||||
.github-addon
|
||||
font-size: 20px
|
||||
color:white
|
||||
padding: 10px
|
||||
|
||||
.table-wrap
|
||||
background: white
|
||||
width: 700px
|
||||
padding: 10px
|
||||
border-radius: 5px
|
||||
box-shadow: 0 0 20px 0 alpha(black, .2)
|
||||
|
||||
.ReactTable
|
||||
thead
|
||||
th
|
||||
td
|
||||
&.-sort-asc
|
||||
box-shadow:inset 0 3px 0 0 alpha(black, .6)
|
||||
&.-sort-desc
|
||||
box-shadow:inset 0 -3px 0 0 alpha(black, .6)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
@@ -34,14 +34,18 @@ export default Component({
|
||||
return (
|
||||
<div className='container'>
|
||||
<div style={{textAlign: 'center'}}>
|
||||
<h1>react-table <strong>demo</strong></h1>
|
||||
<h1>
|
||||
<span style={{position: 'absolute', textIndent: '-9999em'}}>
|
||||
react-table <strong>demo</strong>
|
||||
</span>
|
||||
<img src='/Banner.png' className='logo' />
|
||||
</h1>
|
||||
<br />
|
||||
<div>
|
||||
<a
|
||||
className='github-button'
|
||||
href='https://github.com/tannerlinsley/react-table'
|
||||
target='_blank'
|
||||
data-icon='octicon-star'
|
||||
data-style='mega'
|
||||
data-count-href='/tannerlinsley/react-table/stargazers'
|
||||
data-count-api='/repos/tannerlinsley/react-table#stargazers_count'
|
||||
@@ -50,6 +54,7 @@ export default Component({
|
||||
Star
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
<div className='github-addon'>
|
||||
<a
|
||||
target='_blank'
|
||||
@@ -66,9 +71,9 @@ export default Component({
|
||||
columns={columns}
|
||||
/>
|
||||
</div>
|
||||
<div style={{textAlign: 'center', color: 'white'}}>
|
||||
<div style={{textAlign: 'center'}}>
|
||||
<br />
|
||||
<em>Tip: Hold shift when sorting for multi-sort!</em>
|
||||
<em>Tip: Hold shift when sorting to multi-sort!</em>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user