brevis 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8fae676558177f585163e5cb2b93426213720be
4
- data.tar.gz: f1b1a2125cbf841191feac55dc5aa090886d3b62
3
+ metadata.gz: c144603c4055c750bfd11c7175915307159e416b
4
+ data.tar.gz: e52dd843f3024402bb6a6256b35176c423d1014d
5
5
  SHA512:
6
- metadata.gz: 8fcfbf78de9a0aec65930aa451377552c4b0fa9729625ac2c28b2d253ac491261de1b17a8139938590ca2a28cb35b0966620e5e27e47759bc56f9774bc351f7c
7
- data.tar.gz: 53efa65d2b0a7eb29cca301dc15c7796774b5409e1c494dd846f5e25433af51b094c52a4eb410f0be36efafc0a7ea04a9b5316f498f108aad85822cc0e4ad0b0
6
+ metadata.gz: 3e37d3d13ce023688477d33f1c75adf889ac0ac22ba7cc9935d7c4e98f7c5dcea0a3d92307dfe28e9c7efa7155b7f8e2a5282e3383551be3b0a9424f34512dc1
7
+ data.tar.gz: b28312fe2dc72082212f99aea9e7b89a266e65a60ad8030af1c9f68829b3577df5f23ca3600b566aac5ff540e33b28d47bbf5446cda74303b9ec1d3ce41620f6
data/lib/brevis.rb CHANGED
@@ -19,7 +19,7 @@ Compass::Frameworks.register('brevis', :path => extension_path)
19
19
  # a prerelease version
20
20
  # Date is in the form of YYYY-MM-DD
21
21
  module Brevis
22
- VERSION = "0.2.0"
22
+ VERSION = "0.2.1"
23
23
  DATE = "2015-02-05"
24
24
  end
25
25
 
@@ -52,3 +52,49 @@ $fluid-grid-class-name: views-row;
52
52
  $rc-rows
53
53
  );
54
54
  }
55
+
56
+
57
+ @mixin width-25($padding: 0) {
58
+ width: 25%;
59
+ float: left;
60
+ padding: $padding;
61
+ }
62
+
63
+ @mixin width-33($padding: 0) {
64
+ width: 33.33%;
65
+ float: left;
66
+ padding: $padding;
67
+ }
68
+
69
+ @mixin width-50($padding: 0) {
70
+ width: 50%;
71
+ float: left;
72
+ padding: $padding;
73
+ }
74
+
75
+ @mixin width-66($padding: 0) {
76
+ width: 66%;
77
+ float: left;
78
+ padding: $padding;
79
+ }
80
+
81
+ @mixin width-75($padding: 0) {
82
+ width: 75%;
83
+ float: left;
84
+ padding: $padding;
85
+ }
86
+
87
+ @mixin width-100($padding: 0) {
88
+ width: 100%;
89
+ }
90
+
91
+ @mixin width-50-100($padding: 0) {
92
+ width: 100%;
93
+ float: left;
94
+ padding: $padding;
95
+ @include breakpoint($tablet-portrait) {
96
+ width: 50%;
97
+ float: left;
98
+ padding: $padding;
99
+ }
100
+ }
@@ -1,25 +1,3 @@
1
- ///////////////////////////////////////////////////
2
- // SYMMETRIC (FLUID) GRID
3
- // http://sassmeister.com/gist/9226e7dc2a5f2dc0cef9
4
- ////////////////////////////////////////////////////
5
-
6
- $spacing: 15px;
7
- $spacing-double: $spacing * 2;
8
- $spacing-triple: $spacing * 3;
9
- $content-max-width: 1000px;
10
-
11
- $sg-cols: 3;
12
- $sg-spacing: 20px;
13
- $sg-offset: null;
14
- $sg-margin-direction: right;
15
- $sg-rows: 4;
16
-
17
- //////////////////////////////////////////////////////
18
- @mixin content-max-width ($max-content-width: $content-max-width) {
19
- max-width: $max-content-width;
20
- margin: 0 auto;
21
- }
22
-
23
1
  @mixin clearfix {
24
2
  &::after {
25
3
  content: "";
@@ -36,6 +14,24 @@ $sg-rows: 4;
36
14
  }
37
15
  }
38
16
 
17
+ /////////////////////////////////////////////////
18
+ $content-max-width: 1000px;
19
+
20
+ @mixin content-max-width ($max-content-width: $content-max-width) {
21
+ max-width: $max-content-width;
22
+ margin: 0 auto;
23
+ }
24
+
25
+ ///////////////////////////////////////////////////
26
+ // SYMMETRIC (FLUID) GRID
27
+ // http://sassmeister.com/gist/9226e7dc2a5f2dc0cef9
28
+ ////////////////////////////////////////////////////
29
+ $sg-cols: 3;
30
+ $sg-spacing: 20px;
31
+ $sg-offset: null;
32
+ $sg-margin-direction: right;
33
+ $sg-rows: 4;
34
+
39
35
  @mixin symmetric-grid(
40
36
  $cols: $sg-cols,
41
37
  $space: $sg-spacing,
@@ -102,53 +98,119 @@ $sg-rows: 4;
102
98
  //}
103
99
 
104
100
 
105
- //======================================
101
+ /////////////////////////////////////////////////////////////
102
+ // IPE WORKAROUND MIXINS
103
+ // Used best with Classy Panel Styles Module
104
+ // To make pane styles work with IPE:
105
+ // Use in @include panel-pane-with-ipe place of .panel-pane
106
106
 
107
- @mixin width-25($padding: 0) {
108
- width: 25%;
109
- float: left;
110
- padding: $padding;
107
+ // GENERAL USE
108
+ @mixin panel-pane-with-ipe ($pane-name: "main-layout-pane") {
109
+ .#{$pane-name} {
110
+ @content;
111
+ }
112
+ .panels-ipe-portlet-wrapper {
113
+ @content;
114
+ .#{$pane-name} {
115
+ width: 100% !important;
116
+ margin: 0;
117
+ padding: 0;
118
+ }
119
+ }
111
120
  }
112
-
113
- @mixin width-33($padding: 0) {
114
- width: 33.33%;
115
- float: left;
116
- padding: $padding;
121
+ // APPEND TO SAME CONTAINER
122
+ @mixin panel-pane-ipe-compound ($pane-name: "main-layout-pane") {
123
+ &.#{$pane-name} {
124
+ @content;
125
+ }
126
+ &.panels-ipe-portlet-wrapper {
127
+ @content;
128
+ .#{$pane-name} {
129
+ width: 100% !important;
130
+ margin: 0;
131
+ border: 0;
132
+ padding: 0;
133
+ }
134
+ }
117
135
  }
118
-
119
- @mixin width-50($padding: 0) {
120
- width: 50%;
121
- float: left;
122
- padding: $padding;
136
+ // NTH CHILD
137
+ @mixin panel-pane($nth: null, $pane-name: "main-layout-pane") {
138
+ @if ($nth) {
139
+ .#{$pane-name}:nth-child(#{$nth}),
140
+ .panels-ipe-portlet-wrapper:nth-child(#{$nth}) .#{$pane-name} {
141
+ @content;
142
+ }
143
+ }
144
+ @else {
145
+ .#{$pane-name},
146
+ .panels-ipe-portlet-wrapper .#{$pane-name} {
147
+ @content;
148
+ }
149
+ }
123
150
  }
124
151
 
125
- @mixin width-66($padding: 0) {
126
- width: 66%;
127
- float: left;
128
- padding: $padding;
152
+ //////////////////////////////////////////////////////////////////
153
+ // REGION COLUMN LAYOUT MIXINS
154
+ // These styles only account for left & right margins between panes
155
+ @mixin region-1col (
156
+ $tablet-max-name: false,
157
+ $tablet-max-breakpoint: 600px,
158
+ $tablet-max-width: 450px
159
+ ){
160
+ clear: both;
161
+ width: 100%;
162
+ margin-left: auto;
163
+ margin-right: auto;
164
+ @if $tablet-max-name {
165
+ @include breakpoint(max-width $tablet-max-breakpoint) {
166
+ @include panel-pane-ipe-compound {
167
+ &.#{$tablet-max-name} {
168
+ max-width: $tablet-max-width;
169
+ }
170
+ }
171
+ }
172
+ }
129
173
  }
130
-
131
- @mixin width-75($padding: 0) {
132
- width: 75%;
174
+ // SPECIALTY MIXINS
175
+ @mixin region-2col-1x3 {
176
+ margin-right: $spacing;
133
177
  float: left;
134
- padding: $padding;
135
- }
136
-
137
- @mixin width-100($padding: 0) {
138
- width: 100%;
178
+ clear: none;
179
+ max-width: 100%;
180
+ width: calc((100% / 2) - #{$spacing});
181
+ margin-left: 0;
182
+ &:nth-child(n + 2) {
183
+ margin-top: $spacing;
184
+ margin-bottom: 0;
185
+ margin-left: 0;
186
+ clear: right;
187
+ float: right;
188
+ }
189
+ &:nth-child(n + 3) {
190
+ margin-top: 0;
191
+ }
139
192
  }
140
193
 
141
- @mixin width-50-100($padding: 0) {
142
- width: 100%;
194
+ @mixin region-2col-60-40 {
143
195
  float: left;
144
- padding: $padding;
145
- @include breakpoint($tablet-portrait) {
146
- width: 50%;
147
- float: left;
148
- padding: $padding;
196
+ clear: none;
197
+ max-width: 100%;
198
+ width: 60%;
199
+ margin-left: 0%;
200
+ margin-right: 0%;
201
+ &:nth-child(even) {
202
+ width: 40%;
203
+ margin-left: 0%;
204
+ max-width: 300px;
205
+ }
206
+ &:nth-child(3) {
207
+ clear: left;
149
208
  }
150
209
  }
151
210
 
211
+
212
+ /////////////////////////////////////////////////
213
+
152
214
  @mixin vertical-center(
153
215
  $container-height: 300px,
154
216
  $inner-name: ".block-inner",
@@ -239,93 +301,3 @@ $sg-rows: 4;
239
301
  flex-wrap: wrap;
240
302
  }
241
303
  }
242
-
243
-
244
-
245
- //////////////////////////////////////////////////////////////////
246
- //////////////////////////////////////////////////////////////////
247
- //////////////////////////////////////////////////////////////////
248
- // Panel region layouts, used best with Classy Panel Styles
249
-
250
-
251
- // To make hero styles work with IPE:
252
- // Use in @include panel-pane-with-ipe place of .panel-pane
253
- @mixin panel-pane-with-ipe {
254
- .main-layout-pane {
255
- @content;
256
- }
257
- .panels-ipe-portlet-wrapper {
258
- @content;
259
- .main-layout-pane {
260
- width: 100% !important;
261
- margin: 0;
262
- padding: 0;
263
- }
264
- }
265
- }
266
- // To make hero styles work with IPE:
267
- // Use in @include panel-pane-with-ipe place of .panel-pane
268
- @mixin panel-pane-ipe-compound {
269
- &.main-layout-pane {
270
- @content;
271
- }
272
- &.panels-ipe-portlet-wrapper {
273
- @content;
274
- .main-layout-pane {
275
- width: 100% !important;
276
- margin: 0;
277
- border: 0;
278
- padding: 0;
279
- //padding: 0 !important;
280
- }
281
- }
282
- }
283
-
284
- @mixin panel-pane($nth: null) {
285
- @if ($nth) {
286
- .main-layout-pane:nth-child(#{$nth}),
287
- .panels-ipe-portlet-wrapper:nth-child(#{$nth}) .main-layout-pane {
288
- @content;
289
- }
290
- }
291
- @else {
292
- .main-layout-pane,
293
- .panels-ipe-portlet-wrapper .main-layout-pane {
294
- @content;
295
- }
296
- }
297
- }
298
- //////////////////////////////////////////////////////////////////
299
- // REGION COLUMN LAYOUT MIXINS
300
- // These styles only account for left & right margins between panes
301
- @mixin region-1col {
302
- clear: both;
303
- width: 100%;
304
- margin-left: auto;
305
- margin-right: auto;
306
- @include breakpoint(max-width $tab-l) {
307
- @include panel-pane-ipe-compound {
308
- &[class*='cta-primary'],
309
- &[class*='cta-secondary'] {
310
- max-width: 450px;
311
- }
312
- }
313
- }
314
- }
315
-
316
-
317
- //CSS Columns - add colums using css-columns-count(3)
318
- @mixin css-column-count($how-many:1){
319
- -webkit-column-count: $how-many; /* Chrome, Safari, Opera */
320
- -moz-column-count: $how-many; /* Firefox */
321
- column-count: $how-many;
322
- }
323
-
324
- //adds break - inside, accepts values auto: auto, avoid: avoid page breaks, initial: sets to default (auto), inherit: from parent
325
- @mixin css-column-break($break-on-this:avoid){
326
- -webkit-column-break-inside:$break-on-this;
327
- -moz-column-break-inside:$break-on-this;
328
- -o-column-break-inside:$break-on-this;
329
- -ms-column-break-inside:$break-on-this;
330
- column-break-inside:$break-on-this;
331
- }
@@ -241,4 +241,21 @@ $icon-font: "FontAwesome";
241
241
  box-shadow: none;
242
242
  transform: none;
243
243
  transition: none;
244
+ }
245
+
246
+
247
+ //CSS Columns - add colums using css-columns-count(3)
248
+ @mixin css-column-count($how-many:1){
249
+ -webkit-column-count: $how-many; /* Chrome, Safari, Opera */
250
+ -moz-column-count: $how-many; /* Firefox */
251
+ column-count: $how-many;
252
+ }
253
+
254
+ //adds break - inside, accepts values auto: auto, avoid: avoid page breaks, initial: sets to default (auto), inherit: from parent
255
+ @mixin css-column-break($break-on-this:avoid){
256
+ -webkit-column-break-inside:$break-on-this;
257
+ -moz-column-break-inside:$break-on-this;
258
+ -o-column-break-inside:$break-on-this;
259
+ -ms-column-break-inside:$break-on-this;
260
+ column-break-inside:$break-on-this;
244
261
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brevis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kendall Totten