diff --git a/index.html b/index.html index a4fa0d501..80ba9e465 100755 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ body, html{ height: 100%; margin: 0;} -
+
@@ -43,6 +43,27 @@
+
+
+
Blocks
+
Each element in HTML page could be seen as a block. On the left panel you could find different kind of blocks that you can create, move and style
+
+
+
+
Starter
+
Some random list
+
+ Small feature 1
+
+ Small feature 2
+
+ Small feature 3
+
+ Small feature 4
+
$ 9,90/mo
+
+
+
+
+
+
+
@@ -51,8 +72,8 @@ .clearfix{ clear:both} .header-banner{ background: url("./img/bg-gr-v.png") repeat scroll left top, rgba(0, 0, 0, 0) url("http://www.freewhd.com/wp-content/uploads/2014/01/work-desk-14949.jpg") no-repeat scroll center center; - min-height: 550px; padding-top: 35px; + padding-bottom: 100px; color: #ffffff; font-family: Helvetica, serif; font-weight: 100; @@ -149,6 +170,71 @@ font-size:17px; line-height:25px; } + .blk-sect{ + padding-top: 100px; + padding-bottom: 100px; + background-color: #222222; + } + .blk-title{ + color:#fff; + font-size:25px; + text-align:center; + margin-bottom: 15px; + } + .blk-desc{ + color:#b1b1b1; + font-size:15px; + text-align:center; + width:700px; + margin:0 auto; + font-weight:100; + } + .price-cards{ + margin-top: 70px; + } + .price-card-cont{ + width:33.333%; + padding: 7px; + float:left; + } + .price-card{ + margin:0 auto; + min-height:350px; + background-color:#d983a6; + border-radius:5px; + font-weight: 100; + color: #fff; + } + .pc-title{ + font-weight:100; + letter-spacing:3px; + text-align:center; + font-size:25px; + background-color:rgba(0, 0, 0, 0.1); + padding:20px; + } + .pc-desc{ + padding: 75px 0; + text-align: center; + } + .pc-feature{ + color:rgba(255,255,255,0.5); + letter-spacing:2px; + font-size:15px; + padding:10px 20px; + } + .pc-feature:nth-of-type(2n){ + background-color:transparent; + color: red; + } + .odd-feat{ + background-color:rgba(0, 0, 0, 0.1); + } + .pc-amount{ + font-size: 35px; + text-align: center; + padding: 20px 0; + }
diff --git a/src/parser/model/ParserCss.js b/src/parser/model/ParserCss.js index 4da3685bf..ae4711650 100644 --- a/src/parser/model/ParserCss.js +++ b/src/parser/model/ParserCss.js @@ -22,7 +22,7 @@ define(function(require) { var sel = sels[i].trim(); // Will accept only concatenated classes and last // class might be with state (eg. :hover), nothing else. - if (/^(\.{1}[\w\-]+)+(:{1}[\w\-]+)?$/ig.test(sel)) { + if (/^(\.{1}[\w\-]+)+(:{1}[\w\-()]+)?$/ig.test(sel)) { var cls = sel.split('.').filter(Boolean); result.push(cls); } diff --git a/test/specs/parser/model/ParserCss.js b/test/specs/parser/model/ParserCss.js index 52e2896c5..c150ee58d 100644 --- a/test/specs/parser/model/ParserCss.js +++ b/test/specs/parser/model/ParserCss.js @@ -101,6 +101,16 @@ define([path + 'model/ParserCss',], obj.parse(str).should.deep.equal(result); }); + it('Parse rule with nth-x state', function() { + var str = ' .test1.test2:nth-of-type(2n){ color:red }'; + var result = { + selectors: ['test1', 'test2'], + style: { color: 'red'}, + state: 'nth-of-type(2n)' + }; + obj.parse(str).should.deep.equal(result); + }); + }); }