-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Minh Tran
committed
Jun 21, 2016
1 parent
47e0176
commit 1ed546c
Showing
38 changed files
with
716 additions
and
839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"directory": "example/app/assets/bower_components" | ||
"directory": "bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/* | ||
bower_components/* | ||
dist/* | ||
example/dist/* | ||
lib/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.idea | ||
node_modules | ||
bower_components | ||
example/dist | ||
.idea/* | ||
node_modules/* | ||
bower_components/* | ||
example/dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/* | ||
bower_components/* | ||
dist/* | ||
example/dist/* | ||
lib/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"rules": { | ||
"at-rule-empty-line-before": [ | ||
"always", { | ||
"except": ["blockless-group", "all-nested"], | ||
"ignore": ["after-comment"] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Pre Render | ||
========================================================================== */ | ||
@keyframes spinner { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.pre-render { | ||
background: rgba(255, 255, 255, 0.7); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
z-index: 99999; | ||
.spinner { | ||
width: 48px; | ||
height: 48px; | ||
border: 1px solid lighten($primary, 40%); | ||
border-left-color: darken($primary, 10%); | ||
border-radius: 50%; | ||
animation: spinner 700ms infinite linear; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
margin-left: -24px; | ||
margin-top: -24px; | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
example/app/assets/styles/_mixins.scss → example/app/assets/styles/_mixin.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
@mixin clearfix() { | ||
&:before, | ||
&:after { | ||
&::before, | ||
&::after { | ||
content: " "; | ||
display: table; | ||
} | ||
&:after { | ||
&::after { | ||
clear: both; | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* Header | ||
========================================================================== */ | ||
.navbar { | ||
border-radius: 0; | ||
} | ||
|
||
/* Footer | ||
========================================================================== */ | ||
html, | ||
body, | ||
#app { | ||
height: 100%; | ||
} | ||
|
||
.layout-page { | ||
position: relative; | ||
min-height: 100%; | ||
padding-bottom: 60px; | ||
} | ||
|
||
.layout-main { | ||
margin-bottom: 30px; | ||
} | ||
|
||
.layout-footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
height: 60px; | ||
background-color: #f8f8f8; | ||
padding: 20px 0; | ||
} | ||
|
||
/* Tooltip example | ||
========================================================================== */ | ||
.tooltips-example { | ||
text-align: center; | ||
.btn { | ||
margin: 15px; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,8 @@ | ||
/* ========================================================================== | ||
Imports | ||
React component starter | ||
========================================================================== */ | ||
@import "variables"; | ||
@import "mixins"; | ||
@import "animations"; | ||
|
||
/* ========================================================================== | ||
Components | ||
========================================================================== */ | ||
/* Pre Render | ||
========================================================================== */ | ||
.pre-render { | ||
background: rgba(255, 255, 255, .7); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
z-index: 99999; | ||
.spinner { | ||
width: 48px; | ||
height: 48px; | ||
border: 1px solid lighten($primary, 40%); | ||
border-left-color: darken($primary, 10%); | ||
border-radius: 50%; | ||
animation: spinner 700ms infinite linear; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
margin-left: -24px; | ||
margin-top: -24px; | ||
} | ||
} | ||
|
||
/* ========================================================================== | ||
Sections | ||
========================================================================== */ | ||
/* Header | ||
========================================================================== */ | ||
.navbar { | ||
border-radius: 0; | ||
} | ||
|
||
/* Footer | ||
========================================================================== */ | ||
html, | ||
body, | ||
#app { | ||
height: 100%; | ||
} | ||
|
||
.layout-page { | ||
position: relative; | ||
min-height: 100%; | ||
padding-bottom: 60px; | ||
} | ||
|
||
.layout-main { | ||
margin-bottom: 30px; | ||
} | ||
|
||
.layout-footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
height: 60px; | ||
background-color: #F8F8F8; | ||
padding: 20px 0; | ||
} | ||
|
||
/* Tooltip example | ||
========================================================================== */ | ||
.tooltips-example { | ||
text-align: center; | ||
.btn { | ||
margin: 15px; | ||
} | ||
} | ||
@import "variable"; | ||
@import "mixin"; | ||
@import "common"; | ||
@import "region"; | ||
@import "page"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
example/app/components/pages/PageExample1.js → ...le/app/components/pages/Example1/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import React from 'react'; | ||
import Document from 'components/common/Document'; | ||
|
||
class PageExample1 extends React.Component { | ||
class Example1Page extends React.Component { | ||
render() { | ||
return ( | ||
<Document title='Example1 | React component example' | ||
className='page-ex-1'> | ||
<Document title="Example1 | React component example" | ||
className="page-ex-1"> | ||
<h1>Example 1</h1> | ||
</Document> | ||
); | ||
} | ||
} | ||
|
||
export default PageExample1; | ||
export default Example1Page; | ||
|
Oops, something went wrong.