smock 0.1.186 → 0.1.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smock (0.1.186)
4
+ smock (0.1.187)
5
5
  sass (= 3.2.19)
6
6
  thor (= 0.19.1)
7
7
 
@@ -10,6 +10,10 @@ hr
10
10
  +space(margin-bottom, 2)
11
11
  box-shadow: inset 0 -1px 0 0 $border-color
12
12
 
13
+ .hr--small
14
+ margin-top: 0
15
+ +space(margin-bottom, 1)
16
+
13
17
  .l-container
14
18
  +outer-container
15
19
  min-width: $max-width
@@ -142,3 +142,6 @@
142
142
  background-repeat: no-repeat
143
143
  background-size: contain
144
144
  background-position: center
145
+
146
+ .svg_search
147
+ background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNDgzcHgiIGhlaWdodD0iNDgycHgiIHZpZXdCb3g9Ijc4LjUgLTEgNDgzIDQ4MiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyA3OC41IC0xIDQ4MyA0ODIiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik01NDYuMiw0MDkuNEw0MTguMiwyODAuMWMxOC0yNy41LDI3LjUtNjEsMjcuNS05N0M0NDUuNyw4Mi42LDM2NC4zLDAsMjYyLjUsMFM3OS40LDgyLjYsNzkuNCwxODMuMWMwLDEwMS43LDgyLjYsMTgzLjEsMTgzLjEsMTgzLjFjMzUuOSwwLDY5LjQtMTAuOCw5Ny0yNy41bDEyOS4zLDEyOC4xYzguNCw4LjQsMjAuMywxMy4yLDMyLjMsMTMuMmwwLDBjOS42LDAsMjAuMy0zLjYsMjcuNS0xMC44YzcuMi04LjQsMTItMTgsMTItMjguN0M1NjAuNiw0MjkuNyw1NTUuOCw0MTcuOCw1NDYuMiw0MDkuNHogTTI2Mi41LDI4NC45Yy01Ni4zLDAtMTAxLjctNDUuNS0xMDEuNy0xMDEuN1MyMDYuMyw4MS40LDI2Mi41LDgxLjRzMTAxLjcsNDUuNSwxMDEuNywxMDEuN1MzMTguOCwyODQuOSwyNjIuNSwyODQuOXoiLz48L3N2Zz4=)
@@ -1,8 +1,7 @@
1
1
  .categories__list
2
2
  +border-bottom
3
3
  +space(margin-top)
4
- +space(margin-bottom)
5
- +space(padding-bottom)
4
+ +space(padding-bottom, 2)
6
5
  margin-left: 0
7
6
 
8
7
  .categories__category__link,
@@ -1,15 +1,16 @@
1
- .search-filters
2
- +space(margin-top)
1
+ .flexed
2
+ +display(flex)
3
3
 
4
4
  .search-filters__price__label
5
5
  display: block
6
6
 
7
7
  .search-filters__price--min
8
- float: left
9
- +space(margin-right, 0.5)
8
+ +flex(1)
10
9
 
11
10
  .search-filters__price--max
12
- float: right
11
+ +space(padding-left, 0.75)
12
+ +space(padding-right, 0.75)
13
+ +flex(1)
13
14
 
14
15
  .search-filters__price__input[type='text'],
15
16
  .search-filters__price__input--left[type='text']
@@ -24,11 +25,14 @@
24
25
  width: auto
25
26
 
26
27
  .search-filters__price__submit
27
- width: 20%
28
- display: block
28
+ +flex(1)
29
29
 
30
- .search-filters__price__submit__button
31
- +space(width)
32
- +typecsset-font-size($second-font-size)
33
- +space(line-height, 2)
34
- float: right
30
+ .search-filters__price__submit__icon
31
+ display: inline-block
32
+ vertical-align: middle
33
+ +space(height, 1.95)
34
+ +space(width, 0.8)
35
+ margin: 0 auto
36
+ background-size: contain
37
+ background-repeat: no-repeat
38
+ background-position: center
@@ -177,6 +177,12 @@ html.vr
177
177
  .button--muted
178
178
  +secondary-button($orange)
179
179
 
180
+ .button--green
181
+ +button($green)
182
+
183
+ .button--green--muted
184
+ +secondary-button($green)
185
+
180
186
  .button[disabled]
181
187
  +button($gray-light)
182
188
 
@@ -6,6 +6,12 @@
6
6
  <div class="example">
7
7
  <button class="button button--muted">Muted Button</button>
8
8
  </div>
9
+ <div class="example">
10
+ <button class="button button--green">Green Button</button>
11
+ </div>
12
+ <div class="example">
13
+ <button class="button button--green--muted">Green Button</button>
14
+ </div>
9
15
  <div class="example">
10
16
  <button class="button" disabled>Disabled Button</button>
11
17
  </div>
@@ -0,0 +1,44 @@
1
+ <h2>Search Filters</h2>
2
+
3
+ <div class="example">
4
+ <section class="search-filters" am-grid-col="l:3:9">
5
+ <form class="search-filters__form has-validation">
6
+ <section class="search-filters__price">
7
+ <label class="search-filters__price__label">Price</label>
8
+ <div class="flexed">
9
+ <div class="search-filters__price--min">
10
+ Min<br/>
11
+ <input name="search[min_price]" class="search-filters__price__input--left" type="text" size="7" placeholder="$5">
12
+ </div>
13
+ <div class="search-filters__price--max">
14
+ Max<br/>
15
+ <input name="search[max_price]" class="search-filters__price__input" type="text" size="7" placeholder="$2000">
16
+ </div>
17
+ <a href="#" class="search-filters__price__submit s-small-above"><span type="submit" class="button button--green search-filters__price__submit__button">›</span></a>
18
+ </div>
19
+ </section>
20
+
21
+ <hr class="hr--small s-no-below"/>
22
+
23
+ <section class="search-filters__turnaround">
24
+ <label class="search-filters__turnaround__label">Turnaround</label>
25
+ <select id="filter_turnaround" name="filter[turnaround]"><option value="">- Any -</option>
26
+ <option value="1">1 day or less</option>
27
+ <option value="2">2 days or less</option>
28
+ <option value="3">3 days or less</option>
29
+ </select>
30
+ </section>
31
+
32
+ <section class="search-filters__country">
33
+ <label class="search-filters__country__label">Location</label>
34
+
35
+ <select class="search-filters__country__select" style="display: yup;">
36
+ <option value="">- Anywhere -</option>
37
+ <option value="al">Albania</option>
38
+ <option value="ar">Argentina</option>
39
+ <option value="am">Armenia</option>
40
+ </select>
41
+ </section>
42
+ </form>
43
+ </section>
44
+ </div>
@@ -461,7 +461,7 @@
461
461
 
462
462
 
463
463
  <section class="l-sidebar--left">
464
- <ul class="categories__list">
464
+ <ul class="categories__list s-no-below">
465
465
  <li class="categories__category">
466
466
  <a class="categories__category__link" href="https://studio-app.envato.com/smock/examples/explore/business-online-marketing">
467
467
  Business &amp; Online Marketing
@@ -530,19 +530,23 @@
530
530
  <form class="search-filters__form has-validation">
531
531
  <section class="search-filters__price">
532
532
  <label class="search-filters__price__label">Price</label>
533
- <div class="lh-pull-left">
534
- <span class="search-filters__price--min">
535
- <input class="search-filters__price__input--left" type="text" size="5" placeholder="$50"> to
536
- </span>
537
- <span class="search-filters__price--max">
538
- <input class="search-filters__price__input" type="text" size="5" placeholder="$2000">
539
- </span>
533
+ <div class="flexed">
534
+ <div class="search-filters__price--min">
535
+ Min<br/>
536
+ <input name="search[min_price]" class="search-filters__price__input--left" type="text" size="7" placeholder="$5">
537
+ </div>
538
+ <div class="search-filters__price--max">
539
+ Max<br/>
540
+ <input name="search[max_price]" class="search-filters__price__input" type="text" size="7" placeholder="$2000">
541
+ </div>
542
+ <a href="#" class="search-filters__price__submit s-small-above button button--green">
543
+ <span class="svg_search search-filters__price__submit__icon"></span>
544
+ </a>
540
545
  </div>
541
- <a href="https://studio-app.envato.com/smock/examples/explore/wordpress#" class="search-filters__price__submit lh-pull-right">
542
- <span type="submit" class="button button--muted search-filters__price__submit__button">›</span>
543
- </a>
544
546
  </section>
545
547
 
548
+ <hr class="hr--small s-no-below" />
549
+
546
550
  <section class="search-filters__turnaround">
547
551
  <label class="search-filters__turnaround__label">Turnaround</label>
548
552
  <select id="filter_turnaround" name="filter[turnaround]">
@@ -532,14 +532,21 @@
532
532
  <form class="search-filters__form has-validation">
533
533
  <section class="search-filters__price">
534
534
  <label class="search-filters__price__label">Price</label>
535
- <span class="search-filters__price--min"><input class="search-filters__price__input--left" type="text" size="5"
536
- placeholder="$50">to</span>
537
- <span class="search-filters__price--max"><input class="search-filters__price__input" type="text" size="5"
538
- placeholder="$2000"></span>
539
- <a href="https://studio-app.envato.com/smock/examples/explore/wordpress#" class="search-filters__price__submit"><span type="submit"
540
- class="search-filters__price__submit__button">›</span></a>
535
+ <div class="flexed">
536
+ <div class="search-filters__price--min">
537
+ Min<br/>
538
+ <input name="search[min_price]" class="search-filters__price__input--left" type="text" size="7" placeholder="$5">
539
+ </div>
540
+ <div class="search-filters__price--max">
541
+ Max<br/>
542
+ <input name="search[max_price]" class="search-filters__price__input" type="text" size="7" placeholder="$2000">
543
+ </div>
544
+ <a href="#" class="search-filters__price__submit s-small-above button button--green">
545
+ <span class="svg_search search-filters__price__submit__icon"></span>
546
+ </a>
547
+ </div>
541
548
  </section>
542
-
549
+ <hr class="hr--small s-no-below" />
543
550
  <section class="search-filters__turnaround">
544
551
  <label class="search-filters__turnaround__label">Turnaround</label>
545
552
  <select id="filter_turnaround" name="filter[turnaround]">
@@ -560,7 +567,6 @@
560
567
  <option value="14">14 days or less</option>
561
568
  </select>
562
569
  </section>
563
-
564
570
  <section class="search-filters__country">
565
571
  <label class="search-filters__country__label">Location</label>
566
572
 
data/index.html CHANGED
@@ -39,6 +39,7 @@
39
39
  <li><a href="#service" rel="service">Service</a></li>
40
40
  <li><a href="#testimonials" rel="testimonials">Testimonials</a></li>
41
41
  <li><a href="#addons" rel="addons">Addons</a></li>
42
+ <li><a href="#filters" rel="filters">Search Filters</a></li>
42
43
  </ul>
43
44
  </div>
44
45
 
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Icons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="483px" height="482px" viewBox="78.5 -1 483 482" enable-background="new 78.5 -1 483 482" xml:space="preserve">
6
+ <path fill="#FFFFFF" d="M546.2,409.4L418.2,280.1c18-27.5,27.5-61,27.5-97C445.7,82.6,364.3,0,262.5,0S79.4,82.6,79.4,183.1
7
+ c0,101.7,82.6,183.1,183.1,183.1c35.9,0,69.4-10.8,97-27.5l129.3,128.1c8.4,8.4,20.3,13.2,32.3,13.2l0,0c9.6,0,20.3-3.6,27.5-10.8
8
+ c7.2-8.4,12-18,12-28.7C560.6,429.7,555.8,417.8,546.2,409.4z M262.5,284.9c-56.3,0-101.7-45.5-101.7-101.7S206.3,81.4,262.5,81.4
9
+ s101.7,45.5,101.7,101.7S318.8,284.9,262.5,284.9z"/>
10
+ </svg>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.186
4
+ version: 0.1.187
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-12 00:00:00.000000000 Z
12
+ date: 2014-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -273,6 +273,7 @@ files:
273
273
  - examples/banners.html
274
274
  - examples/buttons.html
275
275
  - examples/colors.html
276
+ - examples/filters.html
276
277
  - examples/forms.html
277
278
  - examples/helpers.html
278
279
  - examples/icons.html
@@ -424,6 +425,7 @@ files:
424
425
  - original_svg_images/icon-heart.svg
425
426
  - original_svg_images/icon-linkedin.svg
426
427
  - original_svg_images/icon-pintrest.svg
428
+ - original_svg_images/icon-search.svg
427
429
  - original_svg_images/icon-website.svg
428
430
  - original_svg_images/svg__briefing.svg
429
431
  - original_svg_images/svg__delivery.svg
@@ -446,7 +448,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
446
448
  version: '0'
447
449
  segments:
448
450
  - 0
449
- hash: -1980657527573036908
451
+ hash: -2449435371064340072
450
452
  required_rubygems_version: !ruby/object:Gem::Requirement
451
453
  none: false
452
454
  requirements:
@@ -455,7 +457,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
455
457
  version: '0'
456
458
  segments:
457
459
  - 0
458
- hash: -1980657527573036908
460
+ hash: -2449435371064340072
459
461
  requirements: []
460
462
  rubyforge_project: smock
461
463
  rubygems_version: 1.8.21