partystreusel 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +5 -2
  5. data/CHANGELOG.md +4 -0
  6. data/Gruntfile.coffee +86 -0
  7. data/README.md +10 -1
  8. data/app/assets/images/icons/icon-sprite.svg +1 -0
  9. data/app/assets/images/icons/png/arrow-left.png +0 -0
  10. data/app/assets/images/icons/png/arrow-right.png +0 -0
  11. data/app/assets/images/icons/png/close.png +0 -0
  12. data/app/assets/images/icons/png/download.png +0 -0
  13. data/app/assets/images/icons/png/folder.png +0 -0
  14. data/app/assets/images/icons/png/menu.png +0 -0
  15. data/app/assets/images/icons/png/search.png +0 -0
  16. data/app/assets/images/icons/source/arrow-left.svg +1 -0
  17. data/app/assets/images/icons/source/arrow-right.svg +1 -0
  18. data/app/assets/images/icons/source/close.svg +1 -0
  19. data/app/assets/images/icons/source/download.svg +1 -0
  20. data/app/assets/images/icons/source/folder.svg +1 -0
  21. data/app/assets/images/icons/source/menu.svg +1 -0
  22. data/app/assets/images/icons/source/search.svg +1 -0
  23. data/app/assets/javascripts/partystreusel/tab.js.coffee +1 -0
  24. data/app/assets/stylesheets/partystreusel.css.sass +1 -0
  25. data/app/controllers/partystreusel/styleguide_controller.rb +14 -0
  26. data/config/routes.rb +6 -0
  27. data/{Gemfile → jasmine/Gemfile} +2 -2
  28. data/{Guardfile → jasmine/Guardfile} +0 -0
  29. data/{config.ru → jasmine/config.ru} +0 -0
  30. data/lib/generators/partystreusel/styleguide_generator.rb +30 -0
  31. data/lib/partystreusel/engine.rb +18 -0
  32. data/lib/partystreusel/helpers/icon_helper.rb +9 -0
  33. data/lib/partystreusel/helpers.rb +1 -0
  34. data/lib/partystreusel/version.rb +1 -1
  35. data/lib/partystreusel.rb +4 -16
  36. data/package.json +22 -0
  37. data/partystreusel.gemspec +0 -1
  38. data/spec/javascripts/partystreusel/readmore_spec.js.coffee +1 -1
  39. data/styleguide/Gemfile +24 -0
  40. data/styleguide/config.rb +110 -0
  41. data/styleguide/source/index.html.haml +8 -0
  42. data/styleguide/source/javascripts/application.js.coffee +30 -0
  43. data/styleguide/source/javascripts/modernizr.js +306 -0
  44. data/styleguide/source/javascripts/views/_initializer.js.coffee +15 -0
  45. data/styleguide/source/layouts/_favicons.html.haml +3 -0
  46. data/styleguide/source/layouts/_icons.html.erb +31 -0
  47. data/styleguide/source/layouts/_typekit.html.haml +4 -0
  48. data/styleguide/source/layouts/application.html.haml +58 -0
  49. data/styleguide/source/partials/_footer.html.haml +0 -0
  50. data/styleguide/source/partials/_google_analytics.html.erb +9 -0
  51. data/styleguide/source/partials/_header.html.haml +3 -0
  52. data/styleguide/source/partials/_offcanvas.html.haml +6 -0
  53. data/styleguide/source/partials/_offcanvas_nav.html.haml +22 -0
  54. data/styleguide/source/styleguide/_styleguide_nav.html.haml +80 -0
  55. data/styleguide/source/styleguide/accordion.html.haml +27 -0
  56. data/styleguide/source/styleguide/breadcrumb.html.haml +18 -0
  57. data/styleguide/source/styleguide/buttons.html.haml +70 -0
  58. data/styleguide/source/styleguide/content.html.haml +20 -0
  59. data/styleguide/source/styleguide/dropdowns.html.haml +30 -0
  60. data/styleguide/source/styleguide/embeds.html.haml +12 -0
  61. data/styleguide/source/styleguide/form.html.haml +71 -0
  62. data/styleguide/source/styleguide/iconbar.html.haml +34 -0
  63. data/styleguide/source/styleguide/icons.html.haml +67 -0
  64. data/styleguide/source/styleguide/image.html.haml +17 -0
  65. data/styleguide/source/styleguide/index.html.haml +6 -0
  66. data/styleguide/source/styleguide/linklist.html.haml +47 -0
  67. data/styleguide/source/styleguide/options.html.haml +28 -0
  68. data/styleguide/source/styleguide/readmore.html.haml +21 -0
  69. data/styleguide/source/styleguide/slider.html.haml +21 -0
  70. data/styleguide/source/styleguide/switches.html.haml +10 -0
  71. data/styleguide/source/styleguide/tab.html.haml +34 -0
  72. data/styleguide/source/styleguide/table.html.haml +51 -0
  73. data/styleguide/source/styleguide/teaser.html.haml +55 -0
  74. data/styleguide/source/styleguide/teaser_assets.html.haml +55 -0
  75. data/styleguide/source/styleguide/teaser_card.html.haml +79 -0
  76. data/styleguide/source/styleguide/teaser_list.html.haml +55 -0
  77. data/styleguide/source/styleguide/topbar.html.haml +72 -0
  78. data/styleguide/source/styleguide/two_column.html.haml +18 -0
  79. data/styleguide/source/styleguide/typo.html.haml +71 -0
  80. data/styleguide/source/stylesheets/fallbacks/grunticon.loader.js +3 -0
  81. data/styleguide/source/stylesheets/partystreusel/_helpers.sass +10 -0
  82. data/styleguide/source/stylesheets/partystreusel/_mixins.sass +14 -0
  83. data/styleguide/source/stylesheets/partystreusel/_settings.sass +129 -0
  84. data/styleguide/source/stylesheets/partystreusel/_styleguide.sass +32 -0
  85. data/styleguide/source/stylesheets/partystreusel/all.css +55 -0
  86. data/styleguide/source/stylesheets/partystreusel/application.css.sass +94 -0
  87. data/styleguide/source/stylesheets/partystreusel/fallbacks/_icons_preview_template.hbs +25 -0
  88. data/styleguide/source/stylesheets/partystreusel/fallbacks/_icons_stylesheet_template.hbs +1 -0
  89. data/styleguide/source/stylesheets/partystreusel/fallbacks/icons.data.png.css +21 -0
  90. data/styleguide/source/stylesheets/partystreusel/fallbacks/icons.data.svg.css +21 -0
  91. data/styleguide/source/stylesheets/partystreusel/fallbacks/icons.fallback.css.scss +21 -0
  92. data/styleguide/source/stylesheets/partystreusel/ie8.css.sass +18 -0
  93. data/styleguide/source/stylesheets/partystreusel/large/_layout.sass +3 -0
  94. data/styleguide/source/stylesheets/partystreusel/large/_states.sass +0 -0
  95. data/styleguide/source/stylesheets/partystreusel/large/_typo.sass +21 -0
  96. data/styleguide/source/stylesheets/partystreusel/large/modules/_accordion.sass +19 -0
  97. data/styleguide/source/stylesheets/partystreusel/large/modules/_breadcrumb.sass +2 -0
  98. data/styleguide/source/stylesheets/partystreusel/large/modules/_content.sass +5 -0
  99. data/styleguide/source/stylesheets/partystreusel/large/modules/_form.sass +2 -0
  100. data/styleguide/source/stylesheets/partystreusel/large/modules/_image.sass +3 -0
  101. data/styleguide/source/stylesheets/partystreusel/large/modules/_links.sass +6 -0
  102. data/styleguide/source/stylesheets/partystreusel/large/modules/_readmore.sass +2 -0
  103. data/styleguide/source/stylesheets/partystreusel/large/modules/_slider.sass +47 -0
  104. data/styleguide/source/stylesheets/partystreusel/large/modules/_tab.sass +8 -0
  105. data/styleguide/source/stylesheets/partystreusel/large/modules/_teaser--assets.sass +12 -0
  106. data/styleguide/source/stylesheets/partystreusel/large/modules/_teaser--card.sass +8 -0
  107. data/styleguide/source/stylesheets/partystreusel/large/modules/_teaser--list.sass +11 -0
  108. data/styleguide/source/stylesheets/partystreusel/large/modules/_teaser.sass +10 -0
  109. data/styleguide/source/stylesheets/partystreusel/large/modules/_topbar.sass +65 -0
  110. data/styleguide/source/stylesheets/partystreusel/large/modules/_two_column.sass +3 -0
  111. data/styleguide/source/stylesheets/partystreusel/medium/_typo.sass +24 -0
  112. data/styleguide/source/stylesheets/partystreusel/medium/modules/_content.sass +2 -0
  113. data/styleguide/source/stylesheets/partystreusel/medium/modules/_form.sass +16 -0
  114. data/styleguide/source/stylesheets/partystreusel/medium/modules/_iconbar.sass +7 -0
  115. data/styleguide/source/stylesheets/partystreusel/medium/modules/_links.sass +5 -0
  116. data/styleguide/source/stylesheets/partystreusel/medium/modules/_teaser--assets.sass +15 -0
  117. data/styleguide/source/stylesheets/partystreusel/medium/modules/_teaser--card.sass +7 -0
  118. data/styleguide/source/stylesheets/partystreusel/medium/modules/_teaser--list.sass +9 -0
  119. data/styleguide/source/stylesheets/partystreusel/medium/modules/_teaser.sass +13 -0
  120. data/styleguide/source/stylesheets/partystreusel/normalize.css +375 -0
  121. data/styleguide/source/stylesheets/partystreusel/partystreusel.css.sass +2 -0
  122. data/styleguide/source/stylesheets/partystreusel/small/_layout.sass +18 -0
  123. data/styleguide/source/stylesheets/partystreusel/small/_states.sass +0 -0
  124. data/styleguide/source/stylesheets/partystreusel/small/_typo.sass +81 -0
  125. data/styleguide/source/stylesheets/partystreusel/small/modules/_accordion.sass +68 -0
  126. data/styleguide/source/stylesheets/partystreusel/small/modules/_breadcrumb.sass +36 -0
  127. data/styleguide/source/stylesheets/partystreusel/small/modules/_button.sass +145 -0
  128. data/styleguide/source/stylesheets/partystreusel/small/modules/_content.sass +5 -0
  129. data/styleguide/source/stylesheets/partystreusel/small/modules/_dropdown.sass +33 -0
  130. data/styleguide/source/stylesheets/partystreusel/small/modules/_embeds.sass +24 -0
  131. data/styleguide/source/stylesheets/partystreusel/small/modules/_form.sass +115 -0
  132. data/styleguide/source/stylesheets/partystreusel/small/modules/_grid.sass +5 -0
  133. data/styleguide/source/stylesheets/partystreusel/small/modules/_iconbar.sass +41 -0
  134. data/styleguide/source/stylesheets/partystreusel/small/modules/_icons.sass +23 -0
  135. data/styleguide/source/stylesheets/partystreusel/small/modules/_image.sass +18 -0
  136. data/styleguide/source/stylesheets/partystreusel/small/modules/_links.sass +49 -0
  137. data/styleguide/source/stylesheets/partystreusel/small/modules/_offcanvas.sass +109 -0
  138. data/styleguide/source/stylesheets/partystreusel/small/modules/_offcanvas_nav.sass +35 -0
  139. data/styleguide/source/stylesheets/partystreusel/small/modules/_options.sass +117 -0
  140. data/styleguide/source/stylesheets/partystreusel/small/modules/_readmore.sass +36 -0
  141. data/styleguide/source/stylesheets/partystreusel/small/modules/_slider.sass +49 -0
  142. data/styleguide/source/stylesheets/partystreusel/small/modules/_switch.sass +70 -0
  143. data/styleguide/source/stylesheets/partystreusel/small/modules/_tab.sass +39 -0
  144. data/styleguide/source/stylesheets/partystreusel/small/modules/_table.sass +43 -0
  145. data/styleguide/source/stylesheets/partystreusel/small/modules/_teaser--assets.sass +57 -0
  146. data/styleguide/source/stylesheets/partystreusel/small/modules/_teaser--card.sass +18 -0
  147. data/styleguide/source/stylesheets/partystreusel/small/modules/_teaser--list.sass +20 -0
  148. data/styleguide/source/stylesheets/partystreusel/small/modules/_teaser.sass +50 -0
  149. data/styleguide/source/stylesheets/partystreusel/small/modules/_topbar.sass +80 -0
  150. data/styleguide/source/stylesheets/partystreusel/small/modules/_two_column.sass +2 -0
  151. data/styleguide/source/stylesheets/partystreusel/xlarge/modules/_teaser_assets.sass +9 -0
  152. data/styleguide/source/stylesheets/partystreusel/xlarge/modules/_teaser_card.sass +8 -0
  153. metadata +148 -38
@@ -0,0 +1,5 @@
1
+ .sc-lead
2
+ font-size: rem(19)
3
+
4
+ .sc-hr-alternate
5
+ border-color: $secondary-color
@@ -0,0 +1,33 @@
1
+ .dropdown
2
+ position: relative
3
+ margin: 0 0 rem(18) 0
4
+
5
+ .btn
6
+ margin-bottom: 0
7
+
8
+ .dropdown__menu
9
+ display: none
10
+ position: absolute
11
+ top: 100%
12
+ left: 0
13
+ z-index: 1000
14
+ float: left
15
+ min-width: rem(160)
16
+ padding: rem(6) 0
17
+ margin: rem(2) 0 0 0
18
+ list-style: none
19
+ background-color: $white
20
+ border: rem(1) solid $grey
21
+
22
+ a
23
+ display: block
24
+ padding: rem(5) rem(12)
25
+ white-space: nowrap
26
+
27
+ // ----------------------------------------------------------
28
+ // STATES
29
+ // ----------------------------------------------------------
30
+ .dropdown--open
31
+
32
+ .dropdown__menu
33
+ display: block
@@ -0,0 +1,24 @@
1
+ .embeds
2
+ position: relative
3
+ padding-bottom: 56.25% // 16:9
4
+ padding-top: rem(25)
5
+ height: 0
6
+ margin-bottom: space(2)
7
+
8
+ video
9
+ width: 100%
10
+ height: auto
11
+
12
+ iframe
13
+ position: absolute
14
+ top: 0
15
+ left: 0
16
+ width: 100%
17
+ height: 100%
18
+
19
+ // ----------------------------------------------------------
20
+ // STATES
21
+ // ----------------------------------------------------------
22
+ .embeds--widescreen
23
+ padding-bottom: 56.34%
24
+ padding-top: 0
@@ -0,0 +1,115 @@
1
+ fieldset
2
+ border: 0
3
+ padding: 0
4
+ margin: 0 0 rem(18)
5
+
6
+ legend
7
+ @extend %h4-styles-s
8
+ text-transform: uppercase
9
+ font-weight: $header-font-weight
10
+ margin-bottom: rem(6)
11
+
12
+ label
13
+ display: inline-block
14
+ max-width: 100%
15
+ margin-bottom: rem(6)
16
+ cursor: pointer
17
+ color: $grey-dark
18
+ font-size: rem(16)
19
+ line-height: 1.5
20
+
21
+ input
22
+ +placeholder
23
+ color: $grey-dark
24
+
25
+ #{$all-text-inputs},
26
+ textarea
27
+ display: block
28
+ width: 100%
29
+ background-color: $grey-light
30
+ border: rem(1) solid $grey-light
31
+ border-radius: 0
32
+ box-shadow: inset rem(1) rem(1) rem(3) 0 $secondary-color
33
+ padding: rem(9) rem(12)
34
+ font-size: rem(16)
35
+ line-height: 1.5
36
+
37
+ &:focus
38
+ outline: 0
39
+ background-color: $white
40
+ box-shadow: rem(0) rem(1) rem(2) 0 $secondary-color
41
+
42
+ input[type="search"]
43
+ box-sizing: border-box
44
+
45
+ select
46
+ width: 100%
47
+ height: rem(44)
48
+ padding: rem(9) rem(30) rem(9) rem(12)
49
+ background-color: $white
50
+ background-image: url(data:image/svg+xml;charset=US-UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2214%22%20viewBox%3D%22-281%20400%2024%2014%22%20enable-background%3D%22new%20-281%20400%2024%2014%22%3E%3Cpath%20d%3D%22M-275%20406l6-6%206%206zM-263%20408l-6%206-6-6z%22%2F%3E%3C%2Fsvg%3E)
51
+ background-position: right rem(5) center
52
+ background-repeat: no-repeat
53
+ border: rem(1) solid $grey
54
+ border-radius: 0
55
+ color: $grey-dark
56
+ font-size: rem(16)
57
+ line-height: 1.5
58
+ +appearance(none)
59
+
60
+ .lt-ie10 &
61
+ background-image: none
62
+ padding-right: rem(12)
63
+
64
+ &::-ms-expand
65
+ display: none
66
+
67
+ &:hover
68
+ color: $primary-color
69
+ cursor: pointer
70
+
71
+ // ----------------------------------------------------------
72
+ // INPUT WITH BUTTON ON THE SIDE
73
+ // ----------------------------------------------------------
74
+ .input-addon
75
+ +display(flex)
76
+
77
+ .input-addon__field
78
+ +flex(1)
79
+
80
+ .input-addon__item
81
+ margin-bottom: 0
82
+
83
+ // ----------------------------------------------------------
84
+ // INPUT WITH ICON BUTTON INSIDE
85
+ // ----------------------------------------------------------
86
+ .input-overlay
87
+ position: relative
88
+
89
+ .input-overlay__input
90
+ padding-right: rem(50)
91
+
92
+ .input-overlay__button
93
+ position: absolute
94
+ right: 0
95
+ bottom: 0
96
+ margin-bottom: 0
97
+ color: $body-font-color
98
+
99
+ &:hover
100
+ color: $grey-dark
101
+
102
+ &,
103
+ &:hover,
104
+ &:active
105
+ background-color: transparent
106
+
107
+ // ----------------------------------------------------------
108
+ // STATES
109
+ // ----------------------------------------------------------
110
+ .form--field-error
111
+ label
112
+ color: $alert-color
113
+
114
+ input
115
+ border-color: $alert-color
@@ -0,0 +1,5 @@
1
+ .grid__container
2
+ +outer-container
3
+
4
+ .grid__row
5
+ +row
@@ -0,0 +1,41 @@
1
+ // ----------------------------------------------------------
2
+ // ICONBAR
3
+ // ----------------------------------------------------------
4
+ .iconbar__list
5
+ +display(flex)
6
+ +flex-wrap(wrap)
7
+ margin: 0
8
+ padding: 0
9
+ list-style: none
10
+
11
+ .iconbar__item
12
+ display: block
13
+ min-width: 33%
14
+ +flex(1 0 33%)
15
+
16
+ a
17
+ display: block
18
+ padding: rem(12)
19
+ background-color: $grey-light
20
+ color: $grey-dark
21
+ text-align: center
22
+ border-bottom: rem(3) solid currentColor
23
+
24
+ .icon
25
+ display: block
26
+ margin: 0 auto rem(5)
27
+
28
+ // ----------------------------------------------------------
29
+ // STATES
30
+ // ----------------------------------------------------------
31
+ .iconbar__item
32
+
33
+ a:hover
34
+ background-color: $white
35
+ color: $body-font-color
36
+ +transition( all .1s linear )
37
+
38
+ .iconbar__item a:focus,
39
+ .iconbar__item--active a,
40
+ .iconbar__item--active a:hover
41
+ color: $primary-color
@@ -0,0 +1,23 @@
1
+ .icon
2
+ display: inline-block
3
+ width: rem(30)
4
+ height: rem(30)
5
+ background-repeat: no-repeat
6
+ background-size: 100% 100%
7
+ vertical-align: middle
8
+ fill: currentColor
9
+
10
+ .icon--m
11
+ width: rem(40)
12
+ height: rem(40)
13
+
14
+ .icon--l
15
+ width: rem(60)
16
+ height: rem(60)
17
+
18
+ // ----------------------------------------------------------
19
+ // inlinesvg support reset
20
+ // ----------------------------------------------------------
21
+ .inlinesvg .icon
22
+ background-repeat: repeat
23
+ background-size: auto auto
@@ -0,0 +1,18 @@
1
+ img
2
+ max-width: 100%
3
+ height: auto
4
+
5
+ figure
6
+ margin: 0
7
+
8
+ .image
9
+
10
+ img
11
+ margin-bottom: rem(12)
12
+
13
+ .image__caption
14
+ color: $body-font-color
15
+ padding: 0 space(1)
16
+ font-size: rem(15)
17
+ line-height: 1.6
18
+ margin-bottom: rem(12)
@@ -0,0 +1,49 @@
1
+ .links
2
+ +outer-container
3
+
4
+ .links__list
5
+ list-style-type: none
6
+ margin: 0
7
+ padding: 0
8
+
9
+ .links__item
10
+ margin-bottom: rem(12)
11
+
12
+ .btn
13
+ display: block
14
+ float: left
15
+
16
+ .btn--icon
17
+ background-color: $grey
18
+ border-radius: 100%
19
+ color: $body-font-color
20
+
21
+ .links__link
22
+ +clearfix
23
+ display: block
24
+ position: relative
25
+ width: 100%
26
+ padding: 0
27
+ margin: 0
28
+ text-decoration: none
29
+ color: $grey-dark
30
+
31
+ .links__text
32
+ display: block
33
+ min-height: rem(56)
34
+ margin-left: rem(54)
35
+ border-bottom: rem(2) solid $grey
36
+ line-height: 1.5
37
+
38
+ small
39
+ font-size: rem(14)
40
+ display: block
41
+ color: $body-font-color
42
+
43
+ // ----------------------------------------------------------
44
+ // STATES
45
+ // ----------------------------------------------------------
46
+ .links__link:hover
47
+ .btn--icon
48
+ background-color: $grey-light
49
+ color: $grey-dark
@@ -0,0 +1,109 @@
1
+ $offcanvas-width: rem(300)
2
+
3
+ .offcanvas__outer
4
+ position: relative
5
+ height: 100%
6
+
7
+ .offcanvas__inner
8
+ height: 100%
9
+ position: relative
10
+ left: 0
11
+ +backface-visibility(hidden)
12
+ +transition( transform .3s ease )
13
+ +transform( translate3d(0, 0, 0 ) )
14
+
15
+ .offcanvas__overlay
16
+ position: absolute
17
+ top: 0
18
+ right: 0
19
+ width: 0
20
+ height: 0
21
+ background: rgba($black,0.4)
22
+ opacity: 0
23
+ z-index: 100
24
+ +transition(opacity 0.2s, width 0.1s 0.2s, height 0.1s 0.2s)
25
+
26
+ .offcanvas__container
27
+ position: absolute
28
+ top: 0
29
+ left: 0
30
+ overflow-y: auto
31
+ width: $offcanvas-width
32
+ height: 100%
33
+ z-index: 101
34
+ background-color: $primary-color
35
+ color: $body-font-color
36
+ +backface-visibility(hidden)
37
+ +transform( translate3d(-100%, 0, 0) )
38
+
39
+ .offcanvas__container-inner
40
+ opacity: .7
41
+ +transition( opacity 300ms 100ms ease, transform 400ms ease)
42
+ +transform( translate3d(-$offcanvas-width, 0, 0) scale3d(0.8, 0.8, 0.8))
43
+ +transform-origin(50% 0%)
44
+
45
+ .offcanvas__opener,
46
+ .offcanvas__close
47
+ display: inline-block
48
+ background-color: transparent
49
+ border: 0
50
+ outline: 0
51
+ line-height: 1.9
52
+ padding: rem(5) 0
53
+
54
+ .icon
55
+ vertical-align: top
56
+
57
+ .offcanvas__opener
58
+ &:hover
59
+ color: $primary-color
60
+
61
+ .offcanvas__close
62
+ width: 100%
63
+ padding: rem(11) rem(12)
64
+ text-align: left
65
+
66
+ &:hover
67
+ color: $white
68
+
69
+ // ----------------------------------------------------------
70
+ // STATES
71
+ // ----------------------------------------------------------
72
+ .offcanvas--open
73
+
74
+ .offcanvas__outer
75
+ overflow: hidden
76
+
77
+ .offcanvas__inner
78
+ +transform(translate3d($offcanvas-width, 0, 0) scale3d(1, 1, 1))
79
+
80
+ .offcanvas__container
81
+ -webkit-overflow-scrolling: touch
82
+
83
+ .offcanvas__container-inner
84
+ opacity: 1
85
+ +transform(translate3d(0, 0, 0))
86
+
87
+ .offcanvas__overlay
88
+ width: 100%
89
+ height: 100%
90
+ opacity: 1
91
+ +transition(opacity 0.2s)
92
+
93
+ .offcanvas__opener
94
+ opacity: 0
95
+ pointer-events: none
96
+ +transition( opacity .3s ease )
97
+
98
+ // ----------------------------------------------------------
99
+ // NO CSS TRANSFORM Fallback
100
+ // ----------------------------------------------------------
101
+ .no-csstransforms3d
102
+
103
+ .offcanvas__container
104
+ display: none
105
+
106
+ .offcanvas--open
107
+ .offcanvas__container
108
+ display: block
109
+
@@ -0,0 +1,35 @@
1
+ .offcanvas-nav
2
+ margin: 0
3
+ padding: 0
4
+ list-style-type: none
5
+
6
+ > li
7
+ border-top: rem(1) solid darken($primary-color, 5%)
8
+
9
+ .offcanvas-nav__link
10
+ display: block
11
+ padding: rem(11) rem(18)
12
+ color: $body-font-color
13
+ font-size: rem(18)
14
+ line-height: 1.33
15
+
16
+ .offcanvas-nav__sub
17
+ margin: 0
18
+ padding: 0
19
+ list-style-type: none
20
+ display: none
21
+
22
+ a
23
+ padding-left: rem(36)
24
+
25
+ // ----------------------------------------------------------
26
+ // STATES
27
+ // ----------------------------------------------------------
28
+ .offcanvas-nav__link:hover,
29
+ .offcanvas-nav__link:focus,
30
+ .offcanvas-nav__link--active
31
+ color: $white
32
+ background-color: darken($primary-color, 5%)
33
+
34
+ .offcanvas-nav__sub--open
35
+ display: block
@@ -0,0 +1,117 @@
1
+ $radio-size: rem(24)
2
+ $checkbox-size: rem(20)
3
+ $option-border-size: rem(2)
4
+ $option-label-size: rem(42)
5
+
6
+ $radio-label-padding: ($option-label-size - $radio-size) / 2
7
+ $checkbox-label-padding: ($option-label-size - $checkbox-size) / 2
8
+ $radio-knuble-size: $radio-size/2
9
+ $checkbox-knuble-size: $checkbox-size/2
10
+ $radio-knuble-distance: $radio-knuble-size/2
11
+ $checkbox-knuble-distance: $checkbox-knuble-size/2
12
+
13
+ [type="radio"],
14
+ [type="checkbox"]
15
+ position: absolute
16
+ overflow: hidden
17
+ width: rem(1)
18
+ height: rem(1)
19
+ padding: 0
20
+ margin: rem(-1)
21
+ border: 0
22
+ clip: rect(0 0 0 0)
23
+
24
+ + label
25
+ position: relative
26
+ vertical-align: top
27
+ padding: $radio-label-padding $radio-label-padding $radio-label-padding $option-label-size
28
+ margin-bottom: 0
29
+
30
+ i
31
+ position: absolute
32
+
33
+ &:before
34
+ content: ''
35
+ display: block
36
+ border: $option-border-size solid $grey
37
+ background-color: $white
38
+
39
+ &:after
40
+ content: ''
41
+ display: none
42
+ position: absolute
43
+ background-color: $primary-color
44
+
45
+ &:checked,
46
+ &:checked:hover
47
+ + label
48
+ color: $primary-color
49
+
50
+ i
51
+ &:before
52
+ color: $primary-color
53
+ border-color: currentColor
54
+
55
+ &:after
56
+ display: inline-block
57
+
58
+ &:not(:checked) + label:hover
59
+ i:before
60
+ color: $grey-dark
61
+ border-color: currentColor
62
+
63
+ [type="radio"]
64
+ + label i
65
+ display: block
66
+ top: ($option-label-size - $radio-size) / 2
67
+ left: ($option-label-size - $radio-size) / 2
68
+
69
+ &:before
70
+ width: $radio-size
71
+ height: $radio-size
72
+
73
+ &:after
74
+ width: $radio-knuble-size
75
+ height: $radio-knuble-size
76
+ left: $radio-knuble-distance
77
+ top: $radio-knuble-distance
78
+
79
+ &:before,
80
+ &:after
81
+ border-radius: 100%
82
+
83
+ [type="checkbox"]
84
+ + label i
85
+ top: ($option-label-size - $checkbox-size) / 2
86
+ left: ($option-label-size - $checkbox-size) / 2
87
+
88
+ &:before
89
+ width: $checkbox-size
90
+ height: $checkbox-size
91
+
92
+ &:after
93
+ width: $checkbox-knuble-size
94
+ height: $checkbox-knuble-size
95
+ left: $checkbox-knuble-distance
96
+ top: $checkbox-knuble-distance
97
+
98
+ // ----------------------------------------------------------
99
+ // IE8 Fallback
100
+ // ----------------------------------------------------------
101
+ .lt-ie9
102
+ [type="radio"],
103
+ [type="checkbox"]
104
+ position: inherit
105
+ overflow: visible
106
+ width: 20px
107
+ height: 20px
108
+ padding: inherit
109
+ margin: inherit
110
+ border: inherit
111
+ clip: auto
112
+
113
+ + label
114
+ padding: 0
115
+
116
+ i
117
+ display: none
@@ -0,0 +1,36 @@
1
+ .readmore__button
2
+ display: inline-block
3
+ position: relative
4
+ margin-bottom: rem(12)
5
+ padding: rem(7) rem(30) rem(7) 0
6
+ font-size: $paragraph-font-size
7
+ color: $grey-dark
8
+
9
+ &:after
10
+ content: ''
11
+ display: inline-block
12
+ position: absolute
13
+ top: rem(15)
14
+ right: rem(10)
15
+ +triangle(rem(10), currentColor, down)
16
+
17
+ &:hover
18
+ color: $primary-color
19
+
20
+ // ----------------------------------------------------------
21
+ // STATES
22
+ // ----------------------------------------------------------
23
+ .readmore--closed
24
+ display: none
25
+
26
+ .readmore--opened
27
+
28
+ + .readmore__button
29
+ &:after
30
+ border-top: 0
31
+ border-left-color: transparent
32
+ border-right-color: transparent
33
+ border-bottom: rem(5) solid currentColor
34
+
35
+ &:hover:after
36
+ border-bottom-color: $primary-color
@@ -0,0 +1,49 @@
1
+ .slider
2
+ position: relative
3
+ overflow: hidden
4
+ width: 100%
5
+ text-align: center
6
+
7
+ .slider__list
8
+ height: 100%
9
+ padding: 0
10
+ margin: 0
11
+ overflow: hidden
12
+ list-style: none
13
+ *zoom: 1
14
+ +backface-visibility(hidden)
15
+ +transform-style(preserve-3d)
16
+
17
+ .slider__item
18
+ display: block
19
+ width: 100%
20
+
21
+ img
22
+ display: block
23
+ width: 100%
24
+ height: auto
25
+
26
+ .slider__controls
27
+ display: none
28
+
29
+ .slider__nav
30
+ position: relative
31
+ margin: rem(10) 0
32
+ text-align: center
33
+
34
+ .slider__nav-item
35
+ width: rem(24)
36
+ height: rem(24)
37
+ clear: none
38
+ display: inline-block
39
+ margin: 0 rem(6)
40
+ background-color: $secondary-color
41
+ border: rem(6) solid $white
42
+ border-radius: 100%
43
+
44
+ // ----------------------------------------------------------
45
+ // STATES
46
+ // ----------------------------------------------------------
47
+ .slider__nav-item:hover,
48
+ .slider__nav-item--active
49
+ background-color: $primary-color