protozaur 0.1.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ac08c6a34b8d305c2af12c2bb62c4145f01d14e
4
- data.tar.gz: e9e2836c34b935f29b0094d4490ffcb0f0a408bc
3
+ metadata.gz: 1c8ca6fb32f0ef1ceee87d56d00005531940015b
4
+ data.tar.gz: e7fc584b585a0a6d763e68d22c5fdc6c56af8669
5
5
  SHA512:
6
- metadata.gz: 8454cc42a2ebc7460adbc4ea8ffc95bd619701661997b2425b098024346d63ef015854d55ff236fa62dfac82d5145fc2de439ea34c8961b95b8247cdff48a0c7
7
- data.tar.gz: edb24b28c0111df2ecec6c88276cb45bd5aac93135de4be4175122b273d1e9059358d68f5304abd47e80d199f68cc658ec106db146403b344218588fcef63654
6
+ metadata.gz: c7ae592762521a99f5f9acb9b14c3c8f860d0dd7caab3c0304f4c14c4b9e8d05db5849159bae9573da6d5ce831b1ba7e5dfe1eb1322c5724240e7c683d37d1b6
7
+ data.tar.gz: e53b6d60ab5847b93582e86ab285eded5cf4e2ab452228d3deb13dd69434e0196f66d09de724c5225616849336f9a63576b94fd583b7b35682008a174eba8e09
data/.gitignore CHANGED
@@ -10,4 +10,8 @@
10
10
 
11
11
  .DS_Store
12
12
  .AppleDouble
13
- .LSOverride
13
+ .LSOverride
14
+ *.gem
15
+
16
+ node_modules
17
+ gulp/css
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Ilya N. Zykin
3
+ Copyright (c) 2015-2016 Ilya N. Zykin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -121,7 +121,7 @@ Protozaur is semantic, mnemonic, declarative CSS framework, created to avoid was
121
121
 
122
122
  <tr>
123
123
  <td width="400px" valign="top" style='vertical-align:top'>
124
- pr0 ... pt100
124
+ pt0 ... pt100
125
125
  </td>
126
126
  <td width="400px" valign="top" style='vertical-align:top'>
127
127
  padding-top: <b>X</b>px !important;
@@ -224,6 +224,38 @@ Protozaur is semantic, mnemonic, declarative CSS framework, created to avoid was
224
224
  </td>
225
225
  </tr>
226
226
 
227
+ <tr>
228
+ <td width="400px" valign="top" style='vertical-align:top'>&nbsp;</td>
229
+ <td width="400px" valign="top" style='vertical-align:top'>&nbsp;</td>
230
+ </tr>
231
+
232
+ <tr>
233
+ <td width="400px" valign="top" style='vertical-align:top'>
234
+ vat
235
+ </td>
236
+ <td width="400px" valign="top" style='vertical-align:top'>
237
+ vertical-align: top !important
238
+ </td>
239
+ </tr>
240
+
241
+ <tr>
242
+ <td width="400px" valign="top" style='vertical-align:top'>
243
+ vam
244
+ </td>
245
+ <td width="400px" valign="top" style='vertical-align:top'>
246
+ vertical-align: middle !important
247
+ </td>
248
+ </tr>
249
+
250
+ <tr>
251
+ <td width="400px" valign="top" style='vertical-align:top'>
252
+ vab
253
+ </td>
254
+ <td width="400px" valign="top" style='vertical-align:top'>
255
+ vertical-align: bottom !important
256
+ </td>
257
+ </tr>
258
+
227
259
  <tr>
228
260
  <td width="400px" valign="top" style='vertical-align:top'><b>Position</b></td>
229
261
  <td width="400px" valign="top" style='vertical-align:top'>&nbsp;</td>
@@ -248,7 +280,7 @@ Protozaur is semantic, mnemonic, declarative CSS framework, created to avoid was
248
280
  </tr>
249
281
 
250
282
  <tr>
251
- <td width="400px" valign="top" style='vertical-align:top'><b>Font style</b></td>
283
+ <td width="400px" valign="top" style='vertical-align:top'><b>Common style</b></td>
252
284
  <td width="400px" valign="top" style='vertical-align:top'>&nbsp;</td>
253
285
  </tr>
254
286
 
@@ -316,38 +348,6 @@ Protozaur is semantic, mnemonic, declarative CSS framework, created to avoid was
316
348
  <td width="400px" valign="top" style='vertical-align:top'>&nbsp;</td>
317
349
  </tr>
318
350
 
319
- <tr>
320
- <td width="400px" valign="top" style='vertical-align:top'>
321
- vat
322
- </td>
323
- <td width="400px" valign="top" style='vertical-align:top'>
324
- vertical-align: top !important
325
- </td>
326
- </tr>
327
-
328
- <tr>
329
- <td width="400px" valign="top" style='vertical-align:top'>
330
- vam
331
- </td>
332
- <td width="400px" valign="top" style='vertical-align:top'>
333
- vertical-align: middle !important
334
- </td>
335
- </tr>
336
-
337
- <tr>
338
- <td width="400px" valign="top" style='vertical-align:top'>
339
- vab
340
- </td>
341
- <td width="400px" valign="top" style='vertical-align:top'>
342
- vertical-align: bottom !important
343
- </td>
344
- </tr>
345
-
346
- <tr>
347
- <td width="400px" valign="top" style='vertical-align:top'>&nbsp;</td>
348
- <td width="400px" valign="top" style='vertical-align:top'>&nbsp;</td>
349
- </tr>
350
-
351
351
  <tr>
352
352
  <td width="400px" valign="top" style='vertical-align:top'>
353
353
  b
@@ -567,11 +567,76 @@ Protozaur is semantic, mnemonic, declarative CSS framework, created to avoid was
567
567
  </td>
568
568
  </tr>
569
569
 
570
+ <tr>
571
+ <td width="400px" valign="top" style='vertical-align:top'><b>Floating</b></td>
572
+ <td width="400px" valign="top" style='vertical-align:top'>&nbsp;</td>
573
+ </tr>
574
+
575
+ <tr>
576
+ <td width="400px" valign="top" style='vertical-align:top'>
577
+ clearfix
578
+ </td>
579
+ <td width="400px" valign="top" style='vertical-align:top'>
580
+ no comments
581
+ </td>
582
+ </tr>
583
+
584
+ <tr>
585
+ <td width="400px" valign="top" style='vertical-align:top'>
586
+ pull-left
587
+ </td>
588
+ <td width="400px" valign="top" style='vertical-align:top'>
589
+ float: left
590
+ </td>
591
+ </tr>
592
+
593
+ <tr>
594
+ <td width="400px" valign="top" style='vertical-align:top'>
595
+ pull-right
596
+ </td>
597
+ <td width="400px" valign="top" style='vertical-align:top'>
598
+ float: right
599
+ </td>
600
+ </tr>
601
+
602
+ <tr>
603
+ <td width="400px" valign="top" style='vertical-align:top'>
604
+ ofh
605
+ </td>
606
+ <td width="400px" valign="top" style='vertical-align:top'>
607
+ overflow: hidden !important
608
+ </td>
609
+ </tr>
610
+
570
611
  </tbody>
571
612
  </table>
572
613
 
573
614
  ### How Protozaur works?
574
615
 
616
+ ```html
617
+ <html>
618
+ <head>...</head>
619
+ <body class='ptz--reset'>...</body>
620
+ </html>
621
+ ```
622
+
623
+ or
624
+
625
+ ```html
626
+ <html>
627
+ <head>...</head>
628
+ <body>
629
+
630
+ ...
631
+
632
+ <div class='ptz--reset'> ... </div>
633
+
634
+ ...
635
+
636
+ </body>
637
+ </html>
638
+ ```
639
+
575
640
  **Example 1**
576
641
 
577
642
  ```html
@@ -655,26 +720,72 @@ Protozaur:
655
720
 
656
721
  0. based on `box-sizing: border-box` property
657
722
  0. based on **px** and **%**
658
- 0. based on BEM principals
659
723
 
660
- ### The MIT License (MIT)
724
+ ### Protozaur [vs] or [with] Bootstrap / Foundation / Any CSS framework
725
+
726
+ Protozaur it's not a competitor to your CSS framework. Protozaur is assistant. It helps to reduce size of your CSS files and makes your HTML much easer to read and understand.
727
+
728
+ Fell free to use Protozaur (or it's idea) with any CSS framework.
729
+
730
+ ### Customization
731
+
732
+ As you see Protozaur based on very simple idea and implemented with really simple code.
733
+
734
+ If you need something special you can copy/paste a part of Protozaur's code and modify it.
735
+
736
+ ## Installation
737
+
738
+ ### Direct download
739
+
740
+ [Download Protozaur.css](https://raw.githubusercontent.com/the-teacher/protozaur/master/ptz/protozaur.min.css "Protozaur CSS framework")
741
+
742
+ ### Ruby on Rails
743
+
744
+ `Gemfile`
745
+
746
+ ```
747
+ gem 'protozaur'
748
+ ```
749
+
750
+ ```
751
+ bundle
752
+ ```
753
+
754
+ `app/assets/stylesheets/applicaition.css`
755
+
756
+ ```
757
+ /*
758
+ #= require ptz/reset
759
+ #= require ptz/base
760
+ #= require ptz/framework
761
+
762
+ #= require ptz/inputs-buttons/base
763
+ #= require ptz/inputs-buttons/sizes
764
+ */
765
+ ```
766
+
767
+ ### Bower
768
+
769
+ ```
770
+ bower install protozaur
771
+ ```
772
+
773
+ in HTML
774
+
775
+ ```html
776
+ <link rel="stylesheet" type="text/css" href="./bower_components/ptz/protozaur.min.css">
777
+ ```
778
+
779
+ ### NPM
780
+
781
+ ```
782
+ npm install protozaur
783
+ ```
661
784
 
662
- Copyright (c) 2015 Ilya N. Zykin
785
+ you can use following path
663
786
 
664
- Permission is hereby granted, free of charge, to any person obtaining a copy
665
- of this software and associated documentation files (the "Software"), to deal
666
- in the Software without restriction, including without limitation the rights
667
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
668
- copies of the Software, and to permit persons to whom the Software is
669
- furnished to do so, subject to the following conditions:
787
+ `node_modules/protozaur/ptz/protozaur.min.css`
670
788
 
671
- The above copyright notice and this permission notice shall be included in
672
- all copies or substantial portions of the Software.
789
+ ## The MIT License (MIT)
673
790
 
674
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
675
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
676
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
677
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
678
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
679
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
680
- THE SOFTWARE.
791
+ See <a href='./LICENSE.txt'>LICENSE.txt</a>
@@ -1,16 +1,17 @@
1
- // 29/10/15
2
- *
3
- margin: 0
4
- padding: 0
5
- border: 0
6
- outline: 0
7
- box-sizing: border-box
1
+ // 15/02/16
2
+ .ptz--reset
3
+ *
4
+ margin: 0
5
+ padding: 0
6
+ border: 0
7
+ outline: 0
8
+ box-sizing: border-box
8
9
 
9
- *:hover, *:active, *:focus
10
- outline: 0
10
+ *:hover, *:active, *:focus
11
+ outline: 0
11
12
 
12
- *::after, *::before
13
- box-sizing: border-box
13
+ *::after, *::before
14
+ box-sizing: border-box
14
15
 
15
16
  body
16
17
  color: black
data/bower.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "protozaur",
3
+ "homepage": "https://github.com/the-teacher/protozaur",
4
+ "authors": [
5
+ "Ilya N. Zykin <zykin-ilya@ya.ru>"
6
+ ],
7
+ "description": "Protozaur CSS framework. Protozaur is semantic, mnemonic, declarative CSS framework, created to avoid wasting time and increase productivity",
8
+ "main": "",
9
+ "moduleType": [],
10
+ "keywords": [
11
+ "Protozaur",
12
+ "CSS",
13
+ "Framework"
14
+ ],
15
+ "license": "MIT",
16
+ "ignore": [
17
+ "**/.*",
18
+ "node_modules",
19
+ "bower_components",
20
+ "test",
21
+ "tests"
22
+ ]
23
+ }
@@ -0,0 +1,12 @@
1
+ gulp = require 'gulp'
2
+
3
+ require './gulp_tasks/livereload.coffee'
4
+
5
+ require './gulp_tasks/sass.coffee'
6
+ require './gulp_tasks/css.coffee'
7
+
8
+ # Default task call every tasks created so far.
9
+ gulp.task 'default', [
10
+ 'watchSassScss'
11
+ 'watchCSS'
12
+ ]
data/gulp/Gulpfile.js ADDED
@@ -0,0 +1,2 @@
1
+ require('coffee-script/register');
2
+ require('./Gulpfile.coffee');
data/gulp/README.md ADDED
@@ -0,0 +1,7 @@
1
+ ### Gulp
2
+
3
+ ```
4
+ npm install
5
+
6
+ ./node_modules/gulp/bin/gulp.js
7
+ ```
@@ -0,0 +1,25 @@
1
+ path = require 'path'
2
+ __abs = (_path) -> path.resolve(_path) + '/'
3
+ __gulp_root = "#{ __dirname }/.."
4
+
5
+ config =
6
+ # Livereload
7
+ livereload:
8
+ port: 3030
9
+
10
+ # SASS
11
+ sass:
12
+ src: __abs "#{ __gulp_root }/../app/assets/stylesheets/"
13
+ dest: __abs "#{ __gulp_root }/css/"
14
+
15
+ mask_sass: "**/*.sass"
16
+ mask_scss: "**/*.scss"
17
+
18
+ # CSS
19
+ css:
20
+ src: __abs "#{ __gulp_root }/css/"
21
+ dest: __abs "#{ __gulp_root }/../"
22
+
23
+ mask: "**/*.css"
24
+
25
+ module.exports = config
@@ -0,0 +1,96 @@
1
+ tools = require './tools.coffee'
2
+
3
+ fs = tools.fs
4
+ log = tools.log
5
+
6
+ gulp = tools.gulp
7
+ gutil = tools.gutil
8
+
9
+ params = tools.params
10
+
11
+ batch = tools.batch
12
+ plumber = tools.plumber
13
+ chokidar = tools.chokidar
14
+
15
+ concat = tools.concat
16
+ minCSS = tools.minCSS
17
+
18
+ livereload = tools.livereload
19
+
20
+ # Main Task
21
+ gulp.task 'copyCSS', ['compressCss'], ->
22
+ css_files = params.css.src + params.css.mask
23
+
24
+ gulp.src([ params.css.src, css_files ])
25
+ .pipe plumber()
26
+ # .pipe minCSS( keepBreaks: false )
27
+ .pipe gulp.dest(params.css.dest)
28
+ .pipe livereload()
29
+ .on 'error', gutil.log
30
+
31
+ gulp.task 'compressCss', ->
32
+ reset = params.css.dest + 'ptz/reset.css.css'
33
+ base = params.css.dest + 'ptz/base.css.css'
34
+ fw = params.css.dest + 'ptz/framework.css.css'
35
+
36
+ ib_base = params.css.dest + 'ptz/inputs-buttons/base.css.css'
37
+ ib_sizes = params.css.dest + 'ptz/inputs-buttons/sizes.css.css'
38
+
39
+ dest_path = params.css.dest + 'ptz'
40
+ min_file = 'protozaur.min.css'
41
+
42
+ gulp.src([ reset, base, fw, ib_base, ib_sizes ])
43
+ .pipe plumber()
44
+ .pipe concat(min_file)
45
+ .pipe minCSS( keepBreaks: false )
46
+ .pipe gulp.dest(dest_path)
47
+ .on 'error', gutil.log
48
+
49
+ # Watcher
50
+ gulp.task 'watchCSS', ->
51
+ css_files = params.css.src + params.css.mask
52
+
53
+ chokidar.watch([ params.css.src, css_files ])
54
+ .on 'ready', ->
55
+ log 'copyCSS::ready'
56
+ gulp.start('copyCSS')
57
+
58
+ .on 'add', batch { timeout: 100 }, (events, cb) ->
59
+ log 'copyCSS::add'
60
+
61
+ gulp.start('copyCSS')
62
+ events.on('data', log).on('end', cb)
63
+
64
+ .on 'change', batch { timeout: 100 }, (events, cb) ->
65
+ log 'copyCSS::change'
66
+
67
+ gulp.start('copyCSS')
68
+
69
+ events.on('data', log).on('end', cb)
70
+
71
+ .on 'unlink', batch { timeout: 100 }, (events, cb) ->
72
+ log 'copyCSS::unlink'
73
+
74
+ events
75
+ .on('data', (filepath) ->
76
+ filename = filepath.split(params.css.src)[1]
77
+ filepath = params.css.dest + filename
78
+ fs.unlink filepath, (err) -> log "Deleted (File) => `#{ filepath }`"
79
+ )
80
+ .on('end', cb)
81
+
82
+ .on 'addDir', batch { timeout: 100 }, (events, cb) ->
83
+ log 'copyCSS::linkDirs'
84
+
85
+ gulp.start('copyCSS')
86
+ events.on('data', log).on('end', cb)
87
+
88
+ .on 'unlinkDir', batch { timeout: 100 }, (events, cb) ->
89
+ log 'copyCSS::unlinkDirs'
90
+
91
+ events.on('data', (dirpath) ->
92
+ dirpath = dirpath.split(params.css.src)[1]
93
+ dirpath = params.css.dest + dirpath
94
+
95
+ fs.rmdir dirpath, (err) -> log "Deleted (Directory) `#{ dirpath }`"
96
+ ).on('end', cb)