brevis 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7650298fbc0cbd6f962ad2b354809d08f9bb74ee
4
- data.tar.gz: 90be009ba5e52a09187ca7c3a119486dd6a0efee
3
+ metadata.gz: f3035b34bd2e24757a1ee4860764c49b0bf45827
4
+ data.tar.gz: 46def9e8d4b47b96bdec215d165380c77c5cea0b
5
5
  SHA512:
6
- metadata.gz: 97bd26d732a7e23dac72c1f79a26869358f3523d56e0a20c66217ea9e6ecc9277ba94c7f279ad726f9776cee21b1a8dc0262a7c95983f6deeaab9d7e7a5cdcee
7
- data.tar.gz: 35c019f1f821eaacdfea84b1d0e804f4c8f33bc890e3ee0c996ab088af479ed34cec7a6ebc26e769e51fd591a18f15cc1dea55d6f0fdf4d8020a2c0f6d3ff382
6
+ metadata.gz: 68f19e66c6d455b56a3d938ea2a00d7e0b2b6c2a6ddeaca87460d8f3aa4758bba7ccedca0e39fa70c3164718cea4c46b6555532c09625939dcec3c89b5b2ee96
7
+ data.tar.gz: c5144ad3234dc418fac3a1ce6b91b30bba41ec3992e243435542b88ab674f15ee757c75a9a976c73db4a7d7535b356a5c74dacee70c40058ad8bbdd78b1c8fdd
data/lib/brevis.rb CHANGED
@@ -17,7 +17,7 @@ Compass::Frameworks.register('brevis', :path => extension_path)
17
17
  # a prerelease version
18
18
  # Date is in the form of YYYY-MM-DD
19
19
  module Brevis
20
- VERSION = "0.1.3"
20
+ VERSION = "0.1.4"
21
21
  DATE = "2015-01-28"
22
22
  end
23
23
 
@@ -188,3 +188,131 @@ $fluid-grid-class-name: views-row;
188
188
  width: 98%;
189
189
  }
190
190
  }
191
+
192
+ @mixin equal-height{
193
+ .region-inner{
194
+ display: flex;
195
+ flex-wrap: wrap;
196
+ }
197
+ }
198
+
199
+
200
+
201
+ //////////////////////////////////////////////////////////////////
202
+ //////////////////////////////////////////////////////////////////
203
+ //////////////////////////////////////////////////////////////////
204
+ // Panel region layouts, used best with Classy Panel Styles
205
+
206
+ $spacing: 15px;
207
+ $spacing-double: $spacing * 2;
208
+ $spacing-triple: $spacing * 3;
209
+
210
+
211
+
212
+ // To make hero styles work with IPE:
213
+ // Use in @include panel-pane-with-ipe place of .panel-pane
214
+ @mixin panel-pane-with-ipe {
215
+ .main-layout-pane {
216
+ @content;
217
+ }
218
+ .panels-ipe-portlet-wrapper {
219
+ @content;
220
+ .main-layout-pane {
221
+ width: 100% !important;
222
+ margin: 0;
223
+ padding: 0;
224
+ }
225
+ }
226
+ }
227
+ // To make hero styles work with IPE:
228
+ // Use in @include panel-pane-with-ipe place of .panel-pane
229
+ @mixin panel-pane-ipe-compound {
230
+ &.main-layout-pane {
231
+ @content;
232
+ }
233
+ &.panels-ipe-portlet-wrapper {
234
+ @content;
235
+ .main-layout-pane {
236
+ width: 100% !important;
237
+ margin: 0;
238
+ border: 0;
239
+ padding: 0;
240
+ //padding: 0 !important;
241
+ }
242
+ }
243
+ }
244
+
245
+ @mixin panel-pane($nth: null) {
246
+ @if ($nth) {
247
+ .main-layout-pane:nth-child(#{$nth}),
248
+ .panels-ipe-portlet-wrapper:nth-child(#{$nth}) .main-layout-pane {
249
+ @content;
250
+ }
251
+ }
252
+ @else {
253
+ .main-layout-pane,
254
+ .panels-ipe-portlet-wrapper .main-layout-pane {
255
+ @content;
256
+ }
257
+ }
258
+ }
259
+ //////////////////////////////////////////////////////////////////
260
+ // REGION COLUMN LAYOUT MIXINS
261
+ // These styles only account for left & right margins between panes
262
+ @mixin region-1col {
263
+ clear: both;
264
+ width: 100%;
265
+ margin-left: auto;
266
+ margin-right: auto;
267
+ @include breakpoint(max-width $tab-l) {
268
+ @include panel-pane-ipe-compound {
269
+ &[class*='cta-primary'],
270
+ &[class*='cta-secondary'] {
271
+ max-width: 450px;
272
+ }
273
+ }
274
+ }
275
+ }
276
+ @mixin region-col($cols: 3, $space: $spacing, $offset: null, $margin-direction: right, $rows: 3) {
277
+ margin-#{$margin-direction}: $spacing;
278
+ clear: none;
279
+ max-width: 100%;
280
+ $minus-margins: ceil($space * (($cols - 1) / $cols)) + 1px;
281
+
282
+ @if $margin-direction == "right" {
283
+ float: left;
284
+ }
285
+ @if $margin-direction == "left" {
286
+ float: right;
287
+ }
288
+
289
+ @if $offset {
290
+ &:nth-child(n+#{$offset + 1}) {
291
+ width: calc( (100% / #{$cols}) - #{$minus-margins});
292
+ }
293
+ &:nth-child(#{$cols + $offset}),
294
+ &:nth-child(#{$cols * 2 + $offset}),
295
+ &:nth-child(#{$cols * 3 + $offset}) {
296
+ margin-#{$margin-direction}: 0;
297
+ }
298
+ &:nth-child(#{$cols + 1 + $offset}),
299
+ &:nth-child(#{$cols * 2 + 1 + $offset}),
300
+ &:nth-child(#{$cols * 3 + 1 + $offset}) {
301
+ clear: left;
302
+ }
303
+ }
304
+ @else {
305
+ width: calc( (100% / #{$cols}) - #{$minus-margins});
306
+
307
+ &:nth-child(#{$cols}),
308
+ &:nth-child(#{$cols * 2}),
309
+ &:nth-child(#{$cols * 3}) {
310
+ margin-#{$margin-direction}: 0;
311
+ }
312
+ &:nth-child(#{$cols + 1}),
313
+ &:nth-child(#{$cols * 2 + 1}),
314
+ &:nth-child(#{$cols * 3 + 1}), {
315
+ clear: left;
316
+ }
317
+ }
318
+ }
@@ -48,9 +48,9 @@ $icon-font: "FontAwesome";
48
48
  @mixin thick {
49
49
  font-weight: bold;
50
50
  }
51
-
52
51
  @mixin thin {
53
52
  font-weight: normal;
53
+ font-weight: 100;
54
54
  }
55
55
 
56
56
  @mixin italic {
@@ -105,19 +105,23 @@ $icon-font: "FontAwesome";
105
105
  }
106
106
  }
107
107
 
108
- // Blueprint theme - variables are in order of how likely they are to be overridden
109
- @mixin font-size($size: 22px, $lh: 1.3) {
110
- @if unit($lh) == "px" {
111
- $lh: $lh / $base-line-height;
112
- }
113
- @include adjust-font-size-to($size, $lh);
108
+ @function calculateRem($size) {
109
+ $remSize: $size / 16px;
110
+ @return #{$remSize}rem;
114
111
  }
115
112
 
116
- @mixin text-style($size: 22px, $color: $text-primary, $link-color: inherit, $active-color: inherit, $type: null, $underline: no, $lh: 1.3) {
113
+ @mixin font-size($size: 16px, $lh: 1.4) {
114
+ font-size: $size;
115
+ font-size: calculateRem($size);
116
+
117
117
  @if unit($lh) == "px" {
118
118
  $lh: $lh / $base-line-height;
119
119
  }
120
- @include adjust-font-size-to($size, $lh);
120
+ line-height: $lh;
121
+ }
122
+
123
+ @mixin text-style($size: 1.6, $color: $text-primary, $link-color: inherit, $active-color: inherit, $type: null, $underline: no, $lh: 1.4) {
124
+ @include font-size($size, $lh);
121
125
  @if $type == link {
122
126
  a {
123
127
  @include link($link-color, $active-color, $underline);
@@ -128,6 +132,12 @@ $icon-font: "FontAwesome";
128
132
  }
129
133
  }
130
134
 
135
+ %hide-text {
136
+ text-indent: 100%;
137
+ white-space: nowrap;
138
+ overflow: hidden;
139
+ }
140
+
131
141
  %offscreen {
132
142
  position: absolute;
133
143
  left: -1000em;
@@ -147,3 +157,88 @@ $icon-font: "FontAwesome";
147
157
  %small-text {
148
158
  @include text-style($size: 12px, $lh: 16px);
149
159
  }
160
+
161
+
162
+ //css columns
163
+ //add colums using css-columns-count(3)
164
+ @mixin css-column-count($how-many:1){
165
+ -webkit-column-count: $how-many; /* Chrome, Safari, Opera */
166
+ -moz-column-count: $how-many; /* Firefox */
167
+ column-count: $how-many;
168
+ }
169
+
170
+ //adds break - inside, accepts values auto: auto, avoid: avoid page breaks, initial: sets to default (auto), inherit: from parent
171
+ @mixin css-column-break($break-on-this:avoid){
172
+ -webkit-column-break-inside:$break-on-this;
173
+ -moz-column-break-inside:$break-on-this;
174
+ -o-column-break-inside:$break-on-this;
175
+ -ms-column-break-inside:$break-on-this;
176
+ column-break-inside:$break-on-this;
177
+ }
178
+
179
+
180
+
181
+ @mixin reset {
182
+ // General
183
+ box-sizing: border-box;
184
+ height: auto;
185
+ width: auto;
186
+ position: static;
187
+ top: auto;
188
+ bottom: auto;
189
+ left: auto;
190
+ right: auto;
191
+ clear: none;
192
+ clip: auto;
193
+ cursor: auto;
194
+ max-height: none;
195
+ max-width: none;
196
+ min-height: 0;
197
+ min-width: 0;
198
+ margin: 0;
199
+ padding: 0;
200
+ border: 0;
201
+ outline: 0;
202
+ float: none;
203
+ opacity: 1;
204
+ pointer-events: auto;
205
+ resize: none;
206
+ speak: normal;
207
+ overflow-x: visible;
208
+ overflow-y: visible;
209
+ visibility: visible;
210
+ vertical-align: baseline;
211
+ z-index: auto;
212
+ zoom: 1;
213
+
214
+ // Typography
215
+
216
+ letter-spacing: normal;
217
+ color: #000;
218
+ text-decoration: none;
219
+ text-shadow: none;
220
+ text-transform: none;
221
+ text-align: left;
222
+ text-decoration: none;
223
+ text-indent: 0;
224
+ text-overflow: clip;
225
+ text-rendering: auto;
226
+ text-shadow: none;
227
+ word-break: normal;
228
+ word-spacing: 0;
229
+ word-wrap: normal;
230
+
231
+ // Tables
232
+ border-collapse: collapse;
233
+ border-spacing: 0;
234
+
235
+ // Lists
236
+ list-style: none;
237
+
238
+ backface-visibility: visible;
239
+ background: 0;
240
+ filter: none;
241
+ box-shadow: none;
242
+ transform: none;
243
+ transition: none;
244
+ }
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.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kendall Totten