Skip to content

Commit

Permalink
fix gl-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsai-j committed Nov 4, 2016
1 parent 81af5d9 commit 298f708
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,23 @@ Example
</tbody>
</table>
```
### วิธีใช้งาน gl-table
import ไฟล์ gl-table ในหน้าที่่ต้องการ
```
<style is="custom-style" include="gl-panel"></style>
```
![alt text](http://i.imgur.com/JN7xA5R.png "gl-panel")

Example

```
<div class="gl-panel-default">
<div class="gl-panel-default-header">
Header
</div>
<div class="gl-panel-default-content">
content
</div>
</div>
```

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gl-styles",
"description": "gl-style for web components",
"version": "0.0.11",
"version": "0.0.14",
"main": "gl-color.html",
"dependencies": {
"polymer": "Polymer/polymer#^1.4.0"
Expand Down
6 changes: 3 additions & 3 deletions gl-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<dom-module id="gl-panel">
<template>
<style>
.gl-panel-default {
div.gl-panel-default {
border: 1px solid #ddd;
}
.gl-panel-default-header{
div.gl-panel-default > div.gl-panel-default-header{
background-color: orange;
padding: 8px 10px 8px 10px;
color: white;
font-size: 18px;
text-align: left;
}
.gl-panel-default-content{
div.gl-panel-default > div.gl-panel-default-content{
padding: 20px;
}
</style>
Expand Down

0 comments on commit 298f708

Please sign in to comment.