Skip to content

Commit 51fed05

Browse files
committed
Merge branch 'release-0.1.4'
2 parents 27beab1 + 5f5e54a commit 51fed05

29 files changed

+12640
-3473
lines changed

readme.md renamed to README.md

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Sass Mixins to generate Flexbox grid.
44

55
**Flexbox Grid Mixins** is Sass Mixins library to help you write well-structured, readable, maintainable, component-based grid using Flexbox (CSS Flexible Box Layout Module).
66

7-
Flexbox Grid Mixins documentation: [http://thingsym.github.io/flexbox-grid-mixins/](http://thingsym.github.io/flexbox-grid-mixins/)
7+
Flexbox Grid Mixins documentation: [https://thingsym.github.io/flexbox-grid-mixins/](https://thingsym.github.io/flexbox-grid-mixins/)
88

99
## Example
1010

@@ -45,23 +45,20 @@ $default-grid-gutter: 2%;
4545
```
4646
.grid {
4747
box-sizing: border-box;
48-
display: -webkit-flex;
4948
display: -ms-flexbox;
5049
display: flex;
5150
margin: 0 -1%;
5251
}
5352
5453
.grid > .grid__col-3 {
5554
box-sizing: border-box;
56-
-webkit-flex: 0 0 23%;
5755
-ms-flex: 0 0 23%;
5856
flex: 0 0 23%;
5957
margin: 0 1% 2%;
6058
}
6159
6260
.grid > .grid__col-9 {
6361
box-sizing: border-box;
64-
-webkit-flex: 0 0 73%;
6562
-ms-flex: 0 0 73%;
6663
flex: 0 0 73%;
6764
margin: 0 1% 2%;
@@ -76,7 +73,13 @@ $default-grid-gutter: 2%;
7673
$ npm install flexbox-grid-mixins --save-dev
7774
```
7875

79-
### bower
76+
### Yarn
77+
78+
```
79+
$ yarn add flexbox-grid-mixins --dev
80+
```
81+
82+
### Bower (deprecated)
8083

8184
```
8285
$ bower install flexbox-grid-mixins --save
@@ -123,6 +126,10 @@ Example : import form node_modules
123126

124127
See Flexbox Grid Mixins documentation: [http://thingsym.github.io/flexbox-grid-mixins/](http://thingsym.github.io/flexbox-grid-mixins/)
125128

129+
## Package manager
130+
131+
[flexbox-grid-mixins - npm](https://www.npmjs.com/package/flexbox-grid-mixins)
132+
126133
### Mixins Reference and Example
127134

128135
* [Mixins Reference](http://thingsym.github.io/flexbox-grid-mixins/#Mixins-Reference)
@@ -134,25 +141,8 @@ See Flexbox Grid Mixins documentation: [http://thingsym.github.io/flexbox-grid-m
134141
* [Unit-Set Grid (Experimental stage)](http://thingsym.github.io/flexbox-grid-mixins/example/unit-set.html)
135142
* [Grid Type](http://thingsym.github.io/flexbox-grid-mixins/example/grid-type.html)
136143

137-
## Contribute
138-
139-
### Patches and Bug Fixes
140-
141-
Small patches and bug reports can be submitted a issue tracker in GitHub. Forking on GitHub is another good way. You can send a pull request.
142-
143-
GitHub: [https://github.com/thingsym/flexbox-grid-mixins](https://github.com/thingsym/flexbox-grid-mixins)
144-
145-
### Guidlines
146-
147-
If you would like to contribute, here are some notes and guidlines.
148-
149-
* All development happens on the **develop** branch, so it is always the most up-to-date
150-
* The **master** branch only contains tagged releases
151-
* If you are going to be submitting a pull request, please submit your pull request to the **develop** branch
152-
* See about [forking](https://help.github.com/articles/fork-a-repo/) and [pull requests](https://help.github.com/articles/using-pull-requests/)
153-
154-
155144
### Development
145+
156146
1. run ```$ sudo yum install nodejs npm```
157147
2. run ```$ sudo npm install --global gulp-cli```
158148
3. Forking on GitHub
@@ -162,8 +152,28 @@ If you would like to contribute, here are some notes and guidlines.
162152
7. run ```$ gulp serve```
163153
8. Access URL http://localhost:3000
164154

155+
## Contribution
156+
157+
### Patches and Bug Fixes
158+
159+
Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.
160+
161+
1. Fork [Flexbox Grid Mixins](https://github.com/thingsym/flexbox-grid-mixins) from GitHub repository
162+
2. Create a feature branch: git checkout -b my-new-feature
163+
3. Commit your changes: git commit -am 'Add some feature'
164+
4. Push to the branch: git push origin my-new-feature
165+
5. Create new Pull Request
166+
165167
## Changelog
166168

169+
* Version 0.1.4
170+
* update example
171+
* update document
172+
* fix conditional expression
173+
* add optional arguments $width, $max-width, $min-width, $height, $max-height and $min-height to @mixin grid-col
174+
* enable flex-grow with number column
175+
* add positive preset column
176+
* change readme.md file name to upper case
167177
* Version 0.1.3
168178
* rename folder to docs from doc, change gh-pages
169179
* update document
@@ -182,24 +192,10 @@ If you would like to contribute, here are some notes and guidlines.
182192

183193
## License
184194

185-
The MIT License (MIT)
186-
187-
Copyright (c) 2016 Thingsym
195+
Licensed under the MIT License.
188196

189-
Permission is hereby granted, free of charge, to any person obtaining a copy
190-
of this software and associated documentation files (the "Software"), to deal
191-
in the Software without restriction, including without limitation the rights
192-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
193-
copies of the Software, and to permit persons to whom the Software is
194-
furnished to do so, subject to the following conditions:
197+
## Author
195198

196-
The above copyright notice and this permission notice shall be included in all
197-
copies or substantial portions of the Software.
199+
[thingsym](https://github.com/thingsym)
198200

199-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
200-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
201-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
202-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
203-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
204-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
205-
SOFTWARE.
201+
Copyright (c) 2016 thingsym

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flexbox-grid-mixins",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"homepage": "https://github.com/thingsym/flexbox-grid-mixins",
55
"author": "Thingsym",
66
"description": "Sass Mixins to generate Flexbox grid",

docs/css/default.css

Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
body {
2+
font-family: "Hiragino Kaku Gothic ProN", Arial, sans-serif;
3+
margin: 0;
4+
}
5+
6+
.header {
7+
background-color: #0466e0;
8+
color: #fff;
9+
text-align: center;
10+
padding: 1em;
11+
min-height: 320px;
12+
box-sizing: border-box;
13+
display: -ms-flexbox;
14+
display: flex;
15+
-ms-flex-flow: column nowrap;
16+
flex-flow: column nowrap;
17+
-ms-flex-pack: center;
18+
justify-content: center;
19+
}
20+
21+
.header--hero {
22+
height: 100vh;
23+
}
24+
25+
.header .header-title {
26+
font-size: 320%;
27+
margin-bottom: 0;
28+
}
29+
30+
.header .version {
31+
font-size: 25%;
32+
font-weight: normal;
33+
}
34+
35+
.header .header-description {
36+
margin-top: 0;
37+
}
38+
39+
.header .header-nav {
40+
margin: 0;
41+
padding: 0;
42+
margin-top: 3em;
43+
}
44+
45+
.header .header-nav li {
46+
font-size: 90%;
47+
display: inline;
48+
list-style: none;
49+
margin-right: 1.2rem;
50+
}
51+
52+
.header a {
53+
color: #fff;
54+
}
55+
56+
.header .btn {
57+
padding: .8em;
58+
border: solid rgba(255, 255, 255, 0.4) 1px;
59+
border-radius: .4em;
60+
}
61+
62+
.container {
63+
margin: 0 2rem;
64+
}
65+
66+
h2 {
67+
border-bottom: solid 1px #ccc;
68+
}
69+
70+
pre {
71+
overflow: auto;
72+
line-height: 1.45;
73+
background-color: #f7f7f7;
74+
padding: 1em;
75+
border-radius: .4em;
76+
}
77+
78+
pre.scrollable {
79+
max-height: 240px;
80+
overflow-y: scroll;
81+
}
82+
83+
pre > code {
84+
background: transparent;
85+
}
86+
87+
code {
88+
padding: .2em;
89+
background-color: rgba(0, 0, 0, 0.04);
90+
border-radius: .2em;
91+
}
92+
93+
.reference {
94+
background-color: #0466e0;
95+
color: #fff;
96+
padding: 1em;
97+
border-radius: .4em;
98+
}
99+
100+
.reference .small {
101+
font-size: 80%;
102+
font-weight: normal;
103+
}
104+
105+
.reference .big {
106+
font-size: 160%;
107+
}
108+
109+
table {
110+
border-collapse: collapse;
111+
border-spacing: 0;
112+
border: 2px solid #ccc;
113+
margin: 0 0 1.625em;
114+
width: 100%;
115+
}
116+
117+
th {
118+
border-top: 1px solid #ccc;
119+
border-right: 1px solid #ccc;
120+
padding: .2em;
121+
font-weight: bold;
122+
background-color: #eee;
123+
}
124+
125+
td {
126+
border-top: 1px solid #ccc;
127+
border-right: 1px solid #ccc;
128+
padding: .2em;
129+
}
130+
131+
td.example {
132+
text-align: center;
133+
}
134+
135+
.grid,
136+
[class*="grid--"] {
137+
background: #a5c3e2;
138+
}
139+
140+
[class*="grid__col"] {
141+
background: #0e72da;
142+
border: 1px solid #130e7d;
143+
padding: .4em;
144+
color: #fff;
145+
text-align: center;
146+
}
147+
148+
.grid {
149+
box-sizing: border-box;
150+
display: -ms-flexbox;
151+
display: flex;
152+
margin: 0 -1%;
153+
}
154+
155+
.grid > .grid__col-1 {
156+
box-sizing: border-box;
157+
-ms-flex: 0 0 6.33333%;
158+
flex: 0 0 6.33333%;
159+
margin: 0 1% 2%;
160+
}
161+
162+
.grid > .grid__col-2 {
163+
box-sizing: border-box;
164+
-ms-flex: 0 0 14.66667%;
165+
flex: 0 0 14.66667%;
166+
margin: 0 1% 2%;
167+
}
168+
169+
.grid > .grid__col-3 {
170+
box-sizing: border-box;
171+
-ms-flex: 0 0 23%;
172+
flex: 0 0 23%;
173+
margin: 0 1% 2%;
174+
}
175+
176+
.grid > .grid__col-4 {
177+
box-sizing: border-box;
178+
-ms-flex: 0 0 31.33333%;
179+
flex: 0 0 31.33333%;
180+
margin: 0 1% 2%;
181+
}
182+
183+
.grid > .grid__col-5 {
184+
box-sizing: border-box;
185+
-ms-flex: 0 0 39.66667%;
186+
flex: 0 0 39.66667%;
187+
margin: 0 1% 2%;
188+
}
189+
190+
.grid > .grid__col-6 {
191+
box-sizing: border-box;
192+
-ms-flex: 0 0 48%;
193+
flex: 0 0 48%;
194+
margin: 0 1% 2%;
195+
}
196+
197+
.grid > .grid__col-7 {
198+
box-sizing: border-box;
199+
-ms-flex: 0 0 56.33333%;
200+
flex: 0 0 56.33333%;
201+
margin: 0 1% 2%;
202+
}
203+
204+
.grid > .grid__col-8 {
205+
box-sizing: border-box;
206+
-ms-flex: 0 0 64.66667%;
207+
flex: 0 0 64.66667%;
208+
margin: 0 1% 2%;
209+
}
210+
211+
.grid > .grid__col-9 {
212+
box-sizing: border-box;
213+
-ms-flex: 0 0 73%;
214+
flex: 0 0 73%;
215+
margin: 0 1% 2%;
216+
}
217+
218+
.grid > .grid__col-10 {
219+
box-sizing: border-box;
220+
-ms-flex: 0 0 81.33333%;
221+
flex: 0 0 81.33333%;
222+
margin: 0 1% 2%;
223+
}
224+
225+
.grid > .grid__col-11 {
226+
box-sizing: border-box;
227+
-ms-flex: 0 0 89.66667%;
228+
flex: 0 0 89.66667%;
229+
margin: 0 1% 2%;
230+
}
231+
232+
.grid > .grid__col-12 {
233+
box-sizing: border-box;
234+
-ms-flex: 0 0 98%;
235+
flex: 0 0 98%;
236+
margin: 0 1% 2%;
237+
}

0 commit comments

Comments
 (0)