Skip to content

Commit c5331ce

Browse files
author
Rastislav
committed
Version 1.1.1
1 parent ac0d51a commit c5331ce

File tree

163 files changed

+10326
-619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+10326
-619
lines changed

.github/workflows/style-docs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build Docs for style
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
branches: master
8+
9+
jobs:
10+
docs:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup Node
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '10.x'
19+
- name: Install Dependencies
20+
run: npm install
21+
- name: Build docs
22+
run: npm run build-docs

.github/workflows/style-test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test style
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
branches: master
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-ruby@v1
16+
with:
17+
ruby-version: 2.6
18+
- name: Install Dependencies
19+
run: gem install sass
20+
- name: Run test
21+
run: |
22+
sh ./test/sass-compile-tester.sh

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
# COCO css Changelog
1+
# COCO stylesheet Changelog
2+
3+
## 1.1.1
4+
5+
### New features
6+
7+
* Added version number into style - called with `.coco.version::after`
8+
* Added `.is-sticky` to tabs
9+
* Added `.is-sticky` to navbar
10+
* Tabs without javascript but with `radio` implemented
11+
* Integrate Github Actions
12+
13+
### Improvements
14+
15+
* Fixed non-self building style prefixed with `_`
16+
* Dropped the kaomojis to reduce size
17+
* Updated readme file
18+
19+
### Bug fixes
20+
21+
* Revert $input-color: $text-strong
222

323
## 1.1.0
424

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Patch fixes within a minor version
2525

2626
Using SRI with exact version
2727
```html
28-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/cryptohub-digital/coco@1.1.0/dist/css/coco.min.css" integrity="sha384-{hash}" crossorigin="anonymous" />
28+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/cryptohub-digital/coco@1.1.1/dist/css/coco.min.css" integrity="sha384-{hash}" crossorigin="anonymous" />
2929
```
3030

3131
> Please, replace {hash} with hash generated for chosen specific version. You can use for example this [SRI Hash Generator](https://www.srihash.org/).
@@ -55,9 +55,11 @@ bower install https://github.com/cryptohub-digital/coco#master --save
5555
```
5656

5757
### Import
58+
5859
After installation, you can import the CSS file into your project using this snippet:
5960

6061
#### Normal CSS version
62+
6163
```css
6264
@import 'coco/dist/css/coco.css'
6365
```
@@ -92,16 +94,20 @@ ln -sf ../node_modules/@cryptohub/coco/dist/scss imports/coco
9294
```
9395

9496
#### Jekyll aka Github pages :octocat:
97+
9598
```sh
9699
npm install cryptohub-digital/coco#master --save
97100
ln -sf ../node_modules/@cryptohub/coco/dist/sass _sass/coco
98101
```
102+
99103
> css/styles.sass
100104
101105
```css
102106
@import "coco/coco.sass"
103107
```
108+
104109
> \_config.yml
110+
105111
```yaml
106112
include:
107113
- node_modules/@cryptohub/coco/dist/sass
@@ -146,6 +152,7 @@ You can found default variables in [dist/default/vars.scss](https://github.com/c
146152
## Get started
147153

148154
### The simplest grid system
155+
149156
> Just add columns, they will resize themselves
150157

151158
```html
@@ -158,6 +165,7 @@ You can found default variables in [dist/default/vars.scss](https://github.com/c
158165
</div>
159166
```
160167
### Sticky footer
168+
161169
> Sticky footer with one class
162170

163171
```html
@@ -168,13 +176,41 @@ You can found default variables in [dist/default/vars.scss](https://github.com/c
168176
</body>
169177
```
170178

179+
### Tabs
180+
181+
> Tabs without the JavaScript
182+
183+
```html
184+
<div class="tabs">
185+
<ul>
186+
<li><a href="#tab-1">Tab 1</a></li>
187+
<li><a href="#tab-2">Tab 2</a></li>
188+
<li><a href="#tab-3">Tab 3</a></li>
189+
</ul>
190+
</div>
191+
<section class="tab-content">
192+
<article id="tab-2">Content of second tab</article>
193+
<article id="tab-3">Content of third tab</article>
194+
<!-- Default tab -->
195+
<article id="tab-1">Content of first tab</article>
196+
</section>
197+
```
198+
171199
### em.oji
200+
172201
> You can use Emoji as icons with effects on it
173202

174203
```html
175204
<em class="oji flat">📥</em>
176205
```
177206

207+
### Current version
208+
> You can call current version with following code:
209+
210+
```html
211+
<span class="coco version">version </span>
212+
```
213+
178214
## Browser Support
179215

180216
COCO uses [autoprefixer](https://github.com/postcss/autoprefixer) to make (most) Flexbox features compatible with earlier browser versions. According to [Can I use](https://caniuse.com/#feat=flexbox), COCO is compatible with **recent** versions of:
@@ -191,6 +227,10 @@ Internet Explorer (10+) is only partially supported.
191227

192228
Browse the online documentation in [WIKI page](https://github.com/cryptohub-digital/coco/wiki) or [Online manual](https://cryptohub-digital.github.io/coco/).
193229

230+
## Changelog
231+
232+
You can check the changes in our [changelog](https://github.com/cryptohub-digital/coco/blob/master/CHANGELOG.md).
233+
194234
## Copyright and license
195235

196236
Code copyright 2018 [Crypto ▪ Hub®](https://github.com/cryptohub-digital), [Raisty](https://github.com/raisty); [Jeremy Thomas](https://github.com/jgthms). Code released under the [MIT license](https://github.com/cryptohub-digital/coco/blob/master/LICENSE).

0 commit comments

Comments
 (0)