-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from yetu/feature/use-grid-layout
Feature/use grid layout
- Loading branch information
Showing
30 changed files
with
163 additions
and
126 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// Items should not be rearranged as the order has implications | ||
@import "foundation/components/global"; | ||
@import "foundation/components/type"; | ||
@import "foundation/components/grid"; | ||
@import "foundation/components/side-nav"; | ||
@import "foundation/components/buttons"; | ||
@import "foundation/components/panels"; | ||
@import "foundation/components/icon-bar"; | ||
@import "foundation/components/visibility"; |
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
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,5 +1,5 @@ | ||
@import "foundation/functions"; | ||
|
||
$row-width: rem-calc(1000); | ||
$row-width: 1000px; | ||
$total-columns: 20; | ||
$column-gutter: rem-calc(0); |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use strict'; | ||
|
||
var React = require('react'), | ||
Link = require('react-router').Link, | ||
StyleMixin = require('mixins/style-mixin'); | ||
|
||
var Navigation = React.createClass({ | ||
mixins: [StyleMixin(require("./style.scss"))], | ||
render: function () { | ||
// TODO: Use mixins instead of CSS classes | ||
// TODO: Pass number of elements to mixin instead of specifying class name | ||
var classes = "cc_navigation icon-bar two-up " + this.props.orientation; | ||
|
||
var items = this.props.items.map(function (item, i) { | ||
return ( | ||
<Link to={item.linkTo} key={i} className="cc_navigation__link item"> | ||
<label>{item.title}</label> | ||
</Link> | ||
); | ||
}); | ||
|
||
return ( | ||
<div className={classes}> | ||
{items} | ||
</div> | ||
); | ||
} | ||
}); | ||
|
||
module.exports = Navigation; |
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,12 @@ | ||
@import "theme"; | ||
|
||
.cc_navigation { | ||
@include icon-bar(); | ||
|
||
.cc_navigation__link { | ||
// .active is applied to selected link by foundation automatically | ||
&.active { | ||
font-weight: bold; | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
public/app/screens/main/sections/devices/device/device.jsx
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,19 @@ | ||
'use strict'; | ||
var React = require('react'); | ||
var StyleMixin = require('mixins/style-mixin'); | ||
|
||
var Device = React.createClass({ | ||
mixins: [StyleMixin(require('./style.scss'))], | ||
render: function () { | ||
return ( | ||
<div className="cc-devices__device row"> | ||
<div className="cc-devices__device--title small-6 column">{this.props.device.title}</div> | ||
<div className="cc-devices__device--type small-6 column">{this.props.device.type}</div> | ||
<div className="cc-devices__device--control small-4 column">Control</div> | ||
<div className="cc-devices__device--state small-4 column">{this.props.device.state}</div> | ||
</div> | ||
); | ||
} | ||
}); | ||
|
||
module.exports = Device; |
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
public/app/screens/main/sections/devices/device/style.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@import "theme"; | ||
|
||
.cc-devices { | ||
.cc-devices__device { | ||
.cc-devices__device--title { | ||
font-weight: bold; | ||
|
||
} | ||
} | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../main/devices/device/test/device.spec.jsx → ...tions/devices/device/test/device.spec.jsx
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
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
...ic/app/screens/main/devices/room/room.jsx → ...reens/main/sections/devices/room/room.jsx
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 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