brevis 0.0.3 → 0.0.4

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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/brevis.rb +30 -0
  3. data/stylesheets/_brevis.sass +34 -0
  4. data/stylesheets/brevis/README.md +124 -0
  5. data/stylesheets/brevis/components/README.md +40 -0
  6. data/stylesheets/brevis/components/chrome/header/_branding.sass +32 -0
  7. data/stylesheets/brevis/components/chrome/header/_mobile_toggle.sass +24 -0
  8. data/stylesheets/brevis/components/chrome/header/_primary_menu.sass +66 -0
  9. data/stylesheets/brevis/components/chrome/header/_search.sass +46 -0
  10. data/stylesheets/brevis/components/chrome/header/_social.sass +30 -0
  11. data/stylesheets/brevis/components/content_lists/_content_carousel.sass +0 -0
  12. data/stylesheets/brevis/components/content_lists/_content_stream.sass +297 -0
  13. data/stylesheets/brevis/components/content_lists/_featured.sass +80 -0
  14. data/stylesheets/brevis/components/content_lists/_headlines.sass +5 -0
  15. data/stylesheets/brevis/components/content_lists/_topic_lists.sass +16 -0
  16. data/stylesheets/brevis/components/content_modules/_carousel.sass +23 -0
  17. data/stylesheets/brevis/components/content_modules/_chosen.sass +294 -0
  18. data/stylesheets/brevis/components/content_modules/_colorbox.sass +208 -0
  19. data/stylesheets/brevis/components/content_modules/_flexslider.sass +93 -0
  20. data/stylesheets/brevis/components/content_modules/_sticky_menu.sass +40 -0
  21. data/stylesheets/brevis/utilities/README.md +16 -0
  22. data/stylesheets/brevis/utilities/_admin.sass +9 -0
  23. data/stylesheets/brevis/utilities/_animations.sass +47 -0
  24. data/stylesheets/brevis/utilities/_breakpoints.sass +59 -0
  25. data/stylesheets/brevis/utilities/_colors.sass +23 -0
  26. data/stylesheets/brevis/utilities/_eq.sass +260 -0
  27. data/stylesheets/brevis/utilities/_font_awesome.scss +540 -0
  28. data/stylesheets/brevis/utilities/_forms.sass +27 -0
  29. data/stylesheets/brevis/utilities/_header.sass +19 -0
  30. data/stylesheets/brevis/utilities/_images.sass +79 -0
  31. data/stylesheets/brevis/utilities/_layout.sass +119 -0
  32. data/stylesheets/brevis/utilities/_page.sass +48 -0
  33. data/stylesheets/brevis/utilities/_tooltip.sass +48 -0
  34. data/stylesheets/brevis/utilities/_typography.sass +113 -0
  35. data/stylesheets/brevis/utilities/_z-index.scss +15 -0
  36. metadata +55 -22
@@ -0,0 +1,297 @@
1
+
2
+ %content-stream-node
3
+ border-bottom: 1px solid $border-tertiary
4
+ padding-bottom: 1em
5
+ margin-bottom: 1em
6
+ margin-right: 1em
7
+
8
+ %content-stream-image-max
9
+ +image-pane
10
+ @extend %img-left
11
+ width: 100%
12
+ .field--type-image,
13
+ .field--type-image a,
14
+ img
15
+ width: 100%
16
+ vertical-align: top //remove unnecessary spacing at the bottom of it's container
17
+ // target everyting except the taxonomy term tag
18
+
19
+ .panel-pane,
20
+ .embedded_photo
21
+ float: left
22
+ margin-bottom: 0
23
+ h2
24
+ margin-bottom: 1px
25
+
26
+ // these are in the variables partial:
27
+ // $content-stream-img-sm: 50%
28
+ // $content-stream-img-md: 58%
29
+ %content-stream-image-sm
30
+ @extend %content-stream-image-max
31
+ +teaser-items
32
+ width: 40%
33
+ width: calc(100% - #{$content-stream-img-sm} - 20px)
34
+ float: left
35
+ +image-pane
36
+ @extend %img-left
37
+ max-width: #{$content-stream-img-sm}
38
+
39
+
40
+ %content-stream-image-md
41
+ @extend %content-stream-image-max
42
+ +breakpoint($smartphone-landscape)
43
+ +teaser-items
44
+ width: 40%
45
+ width: calc(100% - #{$content-stream-img-md} - 20px)
46
+ float: left
47
+ +image-pane
48
+ max-width: #{$content-stream-img-md}
49
+
50
+
51
+ %content-stream-image-lg
52
+ +image-pane
53
+ width: 100%
54
+ max-width: 100%
55
+ .field--type-image,
56
+ .field--type-image a,
57
+ img
58
+ width: 100%
59
+ h2
60
+ margin-bottom: 1px
61
+
62
+
63
+ %float-thumb-left
64
+ +clearfix
65
+ @extend %content-stream-image-sm
66
+
67
+
68
+ %full-size-thumb
69
+ +image-pane
70
+ +img-no-float
71
+ max-width: 100%
72
+ width: 100%
73
+
74
+ %no-float-thumb
75
+ @extend %full-size-thumb
76
+ .pane-node-title,
77
+ .pane-node-body
78
+ width: 100%
79
+ max-width: 100%
80
+ float: none
81
+ margin-bottom: 0
82
+
83
+ %content-stream-basic
84
+ .views-row
85
+ float: left
86
+ width: 100%
87
+ max-width: 100%
88
+
89
+
90
+ @mixin content-stream-1
91
+ @extend %content-stream-basic
92
+ .views-row
93
+ margin-top: 10px
94
+ .views-row~.views-row
95
+ @extend %view_row
96
+
97
+
98
+ %layout-2
99
+ +grid-desktop
100
+ +fluid-grid(2, $padding: 1%)
101
+
102
+ %layout-3
103
+ +grid-desktop
104
+ +fluid-grid(3, $padding: 1.4%)
105
+
106
+ %layout-4
107
+ +grid-desktop
108
+ +fluid-grid(4, $padding: 1%)
109
+
110
+ %layout-5
111
+ +grid-desktop
112
+ +fluid-grid(5, $padding: 1%)
113
+
114
+
115
+ %layout-6
116
+ +grid-desktop
117
+ +fluid-grid(6, $padding: 1%)
118
+
119
+ %layout-7
120
+ +grid-desktop
121
+ +fluid-grid(7, $padding: 1%)
122
+
123
+ %layout-8
124
+ +grid-desktop
125
+ +fluid-grid(8, $padding: 1%)
126
+
127
+
128
+ %layout-1-3
129
+ .views-row
130
+ @extend %no-float-thumb
131
+
132
+ .views-row-1
133
+ float: left
134
+ width: 100% !important
135
+ max-width: 100%
136
+ margin-bottom: 0.5em
137
+ @extend %no-float-thumb
138
+ +fallback
139
+ img
140
+ @extend %lg-thumbnail
141
+
142
+ .views-row-2,
143
+ .views-row-3,
144
+ .views-row-4
145
+ width: 32%
146
+ float: left
147
+ clear: none
148
+ .pane-node-title,
149
+ .pane-node-created,
150
+ .pane-node-posted-on
151
+ display: none
152
+ .field--name-field-cover-photo:after
153
+ display: none
154
+ +image-pane
155
+ img
156
+ width: 100% !important
157
+ +fallback
158
+ @extend %xxs-thumbnail
159
+
160
+ .field--type-image
161
+ width: 100%
162
+ max-width: 100%
163
+ #page &
164
+ img
165
+ width: 100%
166
+
167
+
168
+ .views-row-2
169
+ margin-left: 0
170
+ clear: left
171
+ .views-row-3
172
+ margin-left: 2%
173
+ clear: none
174
+ .views-row-4
175
+ margin-left: 2%
176
+
177
+ @mixin content-stream-1-3
178
+ @extend %layout-1-3
179
+
180
+
181
+ @mixin content-stream-3
182
+ .views-row
183
+ //@extend %float-thumb-left
184
+ @extend %content-stream-basic
185
+
186
+ @include pane-eq-md-up
187
+ @extend %layout-3
188
+
189
+ +fallback
190
+ @extend %layout-3
191
+
192
+ @mixin content-stream-3-parent
193
+ .views-row
194
+ //@extend %float-thumb-left
195
+ @extend %content-stream-basic
196
+ @include pane-parent-eq-md-up
197
+ @extend %layout-3
198
+ +fallback
199
+ @extend %layout-3
200
+
201
+
202
+
203
+ @mixin content-stream-4
204
+ .views-row
205
+ //@extend %float-thumb-left
206
+ @extend %content-stream-basic
207
+
208
+ &[data-eq-state="pane-sm"]
209
+ @extend %layout-2
210
+
211
+ @include pane-eq-md-up
212
+ @extend %layout-4
213
+ +fallback
214
+ //@extend %layout-4
215
+
216
+
217
+ @mixin content-stream-4-parent
218
+ .views-row
219
+ //@extend %float-thumb-left
220
+ @extend %content-stream-basic
221
+
222
+ [data-eq-state="pane-sm"] &
223
+ @extend %layout-2
224
+
225
+ @include pane-parent-eq-md-up
226
+ @extend %layout-4
227
+
228
+ +fallback
229
+ @extend %layout-4
230
+
231
+ @mixin content-stream-6
232
+ +grid-desktop
233
+ +breakpoint($max-tab-p)
234
+ +fluid-grid(2, $padding: 1%)
235
+ +breakpoint($tab-p-desk)
236
+ +fluid-grid(3, $padding: 1%)
237
+ +breakpoint($desktop)
238
+ +fluid-grid(6, $padding: 1%)
239
+
240
+ @mixin content-stream-6-custom
241
+ +grid-desktop
242
+ +breakpoint($max-tab-p)
243
+ +fluid-grid(2, $padding: 1%)
244
+ +breakpoint($tab-p-desk)
245
+ +fluid-grid(2, $padding: 1%)
246
+ .views-row-5, .views-row-6 //Show only 4 items
247
+ display: none
248
+ .views-row-4
249
+ margin-left: 0
250
+ +breakpoint($desktop)
251
+ +fluid-grid(6, $padding: 1%)
252
+
253
+
254
+ @mixin content-stream-5
255
+ +grid-desktop
256
+ +breakpoint($max-tab-p)
257
+ +fluid-grid(2, $padding: 1%)
258
+ +breakpoint($tab-p-desk)
259
+ +fluid-grid(3, $padding: 1%)
260
+ +breakpoint($desktop)
261
+ +fluid-grid(5, $padding: 1%)
262
+
263
+ @mixin content-stream-7
264
+ [data-eq-state="pane-xl"]
265
+ @extend %layout-7
266
+ [data-eq-state="pane-lg"]
267
+ @extend %layout-6
268
+ [data-eq-state="pane-md"]
269
+ @extend %layout-4
270
+ +pane-container-eq-sm-down
271
+ @extend %layout-2
272
+
273
+
274
+ @mixin content-stream-8
275
+ [data-eq-state="pane-xl"]
276
+ @extend %layout-8
277
+ [data-eq-state="pane-lg"]
278
+ @extend %layout-6
279
+ [data-eq-state="pane-md"]
280
+ @extend %layout-4
281
+ +pane-container-eq-sm-down
282
+ @extend %layout-2
283
+
284
+
285
+ %latest-content-list-pane
286
+ .more-link
287
+ display: inline-block
288
+ .feed
289
+ position: absolute
290
+ left: 10px
291
+ bottom: 0px
292
+ a
293
+ font-size: 0
294
+
295
+
296
+
297
+
@@ -0,0 +1,80 @@
1
+ // MOBILE FIRST FEATURED LAYOUTS: http://note.io/1xyZPLu
2
+
3
+ %featured-4
4
+ .node-featured
5
+ float: left
6
+ width: 100%
7
+
8
+ +breakpoint($phone-l-tab-p)
9
+ .node-featured
10
+ float: left
11
+ width: 49%
12
+ .pane-node-field-image
13
+ +img-left
14
+ max-width: 50%
15
+ .views-row-2,
16
+ .views-row-4
17
+ .node-featured
18
+ margin-left: 1%
19
+ .views-row-3
20
+ .node-featured
21
+ clear: left
22
+
23
+ +breakpoint($tablet-portrait)
24
+ .node-featured
25
+ float: left
26
+ width: 24%
27
+ .views-row-2,
28
+ .views-row-3,
29
+ .views-row-4
30
+ .node-featured
31
+ clear: none
32
+ margin-left: 1%
33
+
34
+
35
+ %featured-3
36
+ .node-featured
37
+ float: left
38
+ width: 100%
39
+
40
+ +breakpoint($phone-l-tab-p)
41
+ .node-featured
42
+ width: 32%
43
+ .pane-node-field-image
44
+ +img-left
45
+ max-width: 50%
46
+ .views-row-2,
47
+ .views-row-3
48
+ .node-featured
49
+ margin-left: 1%
50
+
51
+
52
+ %featured-1-3
53
+ .node-featured .pane-node-field-image
54
+ max-width: 100%
55
+ width: 100%
56
+ +img-no-float
57
+ .field--name-field-image
58
+ text-align: center
59
+ .views-row-1
60
+ .node-featured
61
+ width: 100%
62
+ margin-bottom: 0.5em
63
+
64
+ .views-row-2,
65
+ .views-row-3,
66
+ .views-row-4
67
+ .node-featured
68
+ width: 32%
69
+ float: left
70
+ .pane-node-title,
71
+ .pane-node-created
72
+ display: none
73
+
74
+ .views-row-2 .node-featured
75
+ margin-left: 0
76
+ .views-row-3 .node-featured
77
+ margin-left: 2%
78
+ clear: none
79
+ .views-row-4 .node-featured
80
+ margin-left: 2%
@@ -0,0 +1,5 @@
1
+ %headline-list
2
+ #page &
3
+ border-bottom: 1px solid $border-tertiary
4
+ padding-bottom: 0.5em
5
+ margin-bottom: 0.5em
@@ -0,0 +1,16 @@
1
+ // TOPIC LISTS http://note.io/TFMja0
2
+
3
+ %topic-list-row
4
+ border-bottom: 1px solid $border-primary
5
+ padding-bottom: 1em
6
+ margin-bottom: 1em
7
+
8
+ %topic-list-image
9
+ +img-left
10
+
11
+ %topic-list-title
12
+ @extend %list-title
13
+
14
+ %topic-list-byline
15
+ @extend %small-text
16
+ color: $text-tertiary
@@ -0,0 +1,23 @@
1
+
2
+
3
+ %carousel-layout
4
+ @extend %flex-control-nav
5
+ .flexslider
6
+ *
7
+ +box-sizing(content-box)
8
+ .flex-viewport
9
+ width: 100%
10
+ ul.slides
11
+ border-bottom: $border-tertiary solid 1px
12
+ border-left: $border-tertiary solid 1px
13
+ li
14
+ border: $border-tertiary solid 1px
15
+ border-bottom: 0
16
+ padding: 8px 8px 4px 8px
17
+ display: block
18
+ margin-left: -1px
19
+ img
20
+ width: 66px
21
+ float: left
22
+ margin: 0 5px 4px 0
23
+
@@ -0,0 +1,294 @@
1
+ %chosen-container
2
+ position: relative
3
+ display: inline-block
4
+ vertical-align: middle
5
+ font-size: 13px
6
+ zoom: 1
7
+ *display: inline
8
+ -webkit-user-select: none
9
+ -moz-user-select: none
10
+ user-select: none
11
+
12
+ .chosen-drop
13
+ position: absolute
14
+ top: 100%
15
+ left: -9999px
16
+ z-index: 1010
17
+ width: 100%
18
+ border-top: 0
19
+
20
+ &.chosen-with-drop .chosen-drop
21
+ left: 0
22
+
23
+ a
24
+ cursor: pointer
25
+
26
+ +breakpoint($hidpi)
27
+ .chosen-rtl .chosen-search input[type="text"],
28
+ .chosen-container-single .chosen-single abbr,
29
+ .chosen-container-single .chosen-single div b,
30
+ .chosen-container-single .chosen-search input[type="text"],
31
+ .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
32
+ .chosen-container .chosen-results-scroll-down span,
33
+ .chosen-container .chosen-results-scroll-up span
34
+ background-image: url('chosen-sprite@2x.png') !important
35
+ background-size: 52px 37px !important
36
+ background-repeat: no-repeat !important
37
+
38
+
39
+ %chosen-single-chosen
40
+ .chosen-single
41
+ position: relative
42
+ display: block
43
+ overflow: hidden
44
+ padding: 8px 25px 0 8px
45
+ height: $form-element-height
46
+ //border-radius: 5px
47
+ background: no-repeat 95% 50%
48
+ +svg-bg-simple("arrow-down")
49
+ background-clip: padding-box
50
+ text-decoration: none
51
+ white-space: nowrap
52
+ font-size: 14px
53
+ line-height: 24px
54
+ span
55
+ display: block
56
+ overflow: hidden
57
+ margin-right: 26px
58
+ text-overflow: ellipsis
59
+ white-space: nowrap
60
+ abbr
61
+ position: absolute
62
+ top: 6px
63
+ right: 26px
64
+ display: block
65
+ width: 12px
66
+ height: 12px
67
+ background: url('chosen-sprite.png') -42px 1px no-repeat
68
+ font-size: 1px
69
+ abbr:hover
70
+ background-position: -42px -10px
71
+ div
72
+ position: absolute
73
+ top: 0
74
+ right: 0
75
+ display: block
76
+ width: 18px
77
+ height: 100%
78
+ div b
79
+ display: block
80
+ width: 100%
81
+ height: 100%
82
+ background: url('chosen-sprite.png') no-repeat 0px 2px
83
+
84
+ &.chosen-disabled .chosen-single abbr:hover
85
+ background-position: -42px -10px
86
+ .chosen-single-with-deselect span
87
+ margin-right: 38px
88
+
89
+ .chosen-search
90
+ position: relative
91
+ z-index: 1010
92
+ margin: 0
93
+ padding: 3px 4px
94
+ white-space: nowrap
95
+ input[type="text"]
96
+ margin: 1px 0
97
+ padding: 4px 20px 4px 5px
98
+ width: 100%
99
+ height: auto
100
+ outline: 0
101
+ background: white url('chosen-sprite.png') no-repeat 100% -20px
102
+ background: url('chosen-sprite.png') no-repeat 100% -20px
103
+ font-size: 1em
104
+ font-family: sans-serif
105
+ line-height: normal
106
+ border-radius: 0
107
+
108
+ .chosen-drop
109
+ margin-top: -1px
110
+ border-radius: 0 0 4px 4px
111
+ background-clip: padding-box
112
+
113
+ &.chosen-container-single-nosearch .chosen-search
114
+ position: absolute
115
+ left: -9999px
116
+
117
+
118
+ %chosen-results
119
+ position: relative
120
+ overflow-x: hidden
121
+ overflow-y: auto
122
+ margin: 0 4px 4px 0
123
+ padding: 0 0 0 4px
124
+ max-height: 240px
125
+ -webkit-overflow-scrolling: touch
126
+ li
127
+ display: none
128
+ margin: 0
129
+ padding: 5px 6px
130
+ list-style: none
131
+ line-height: 15px
132
+ -webkit-touch-callout: none
133
+ &.active-result
134
+ display: list-item
135
+ cursor: pointer
136
+ &.disabled-result
137
+ display: list-item
138
+ cursor: default
139
+ &.no-results
140
+ display: list-item
141
+ &.group-result
142
+ display: list-item
143
+ font-weight: bold
144
+ cursor: default
145
+ &.group-option
146
+ padding-left: 15px
147
+ em
148
+ font-style: normal
149
+ text-decoration: underline
150
+
151
+
152
+ %chosen-multi-chosen
153
+ .chosen-choices
154
+ position: relative
155
+ overflow: hidden
156
+ margin: 0
157
+ padding: 0
158
+ width: 100%
159
+ height: auto !important
160
+ height: 1%
161
+ border: 1px solid #aaa
162
+ cursor: text
163
+ li
164
+ float: left
165
+ list-style: none
166
+ li.search-field
167
+ margin: 0
168
+ padding: 0
169
+ white-space: nowrap
170
+ li.search-field input[type="text"]
171
+ margin: 1px 0
172
+ padding: 5px
173
+ height: 15px
174
+ outline: 0
175
+ font-size: 100%
176
+ font-family: sans-serif
177
+ line-height: normal
178
+ border-radius: 0
179
+ li.search-choice
180
+ position: relative
181
+ margin: 3px 0 3px 5px
182
+ padding: 3px 20px 3px 5px
183
+ background-clip: padding-box
184
+ line-height: 13px
185
+ cursor: default
186
+ li.search-choice .search-choice-close
187
+ position: absolute
188
+ top: 4px
189
+ right: 3px
190
+ display: block
191
+ width: 12px
192
+ height: 12px
193
+ background: url('chosen-sprite.png') -42px 1px no-repeat
194
+ font-size: 1px
195
+ li.search-choice .search-choice-close:hover
196
+ background-position: -42px -10px
197
+ li.search-choice-focus .search-choice-close
198
+ background-position: -42px -10px
199
+
200
+ .chosen-results
201
+ margin: 0
202
+ padding: 0
203
+ .chosen-drop .result-selected
204
+ display: list-item
205
+ cursor: default
206
+
207
+
208
+ %chosen-active
209
+ &.chosen-with-drop
210
+ .chosen-single
211
+ border: 1px solid #aaa
212
+ -moz-border-radius-bottomright: 0
213
+ border-bottom-right-radius: 0
214
+ -moz-border-radius-bottomleft: 0
215
+ border-bottom-left-radius: 0
216
+ div
217
+ border-left: none
218
+ background: transparent
219
+
220
+ div b
221
+ background-position: -18px 2px
222
+
223
+
224
+ %chosen-disabled-support
225
+ .chosen-disabled
226
+ opacity: 0.5 !important
227
+ cursor: default
228
+
229
+ .chosen-disabled .chosen-single
230
+ cursor: default
231
+
232
+ .chosen-disabled .chosen-choices .search-choice .search-choice-close
233
+ cursor: default
234
+
235
+
236
+ %chosen-rtl
237
+ .chosen-rtl
238
+ text-align: right
239
+
240
+ .chosen-single
241
+ overflow: visible
242
+ padding: 0 8px 0 0
243
+ span
244
+ margin-right: 0
245
+ margin-left: 26px
246
+ direction: rtl
247
+ div
248
+ right: auto
249
+ left: 3px
250
+ abbr
251
+ right: auto
252
+ left: 26px
253
+
254
+ .chosen-single-with-deselect span
255
+ margin-left: 38px
256
+
257
+ .chosen-choices
258
+ li
259
+ float: right
260
+ li.search-field input[type="text"]
261
+ direction: rtl
262
+ li.search-choice
263
+ margin: 3px 5px 3px 0
264
+ padding: 3px 5px 3px 19px
265
+ li.search-choice .search-choice-close
266
+ right: auto
267
+ left: 4px
268
+
269
+ &.chosen-container-single-nosearch .chosen-search,
270
+ .chosen-drop
271
+ left: 9999px
272
+
273
+ &.chosen-container-single .chosen-results
274
+ margin: 0 0 4px 4px
275
+ padding: 0 4px 0 0
276
+
277
+ .chosen-results li.group-option
278
+ padding-right: 15px
279
+ padding-left: 0
280
+
281
+ &.chosen-container-active.chosen-with-drop .chosen-single div
282
+ border-right: none
283
+
284
+ .chosen-search input[type="text"]
285
+ padding: 4px 5px 4px 20px
286
+ background: white url('chosen-sprite.png') no-repeat -30px -20px
287
+ background: url('chosen-sprite.png') no-repeat -30px -20px
288
+ direction: rtl
289
+
290
+ &.chosen-container-single .chosen-single div b
291
+ background-position: 6px 2px
292
+
293
+ &.chosen-container-single.chosen-with-drop .chosen-single div b
294
+ background-position: -12px 2px