brevis 0.1.3 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/brevis.rb +1 -1
- data/stylesheets/brevis_utilities/_layout.scss +128 -0
- data/stylesheets/brevis_utilities/_typography.scss +104 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3035b34bd2e24757a1ee4860764c49b0bf45827
|
4
|
+
data.tar.gz: 46def9e8d4b47b96bdec215d165380c77c5cea0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68f19e66c6d455b56a3d938ea2a00d7e0b2b6c2a6ddeaca87460d8f3aa4758bba7ccedca0e39fa70c3164718cea4c46b6555532c09625939dcec3c89b5b2ee96
|
7
|
+
data.tar.gz: c5144ad3234dc418fac3a1ce6b91b30bba41ec3992e243435542b88ab674f15ee757c75a9a976c73db4a7d7535b356a5c74dacee70c40058ad8bbdd78b1c8fdd
|
data/lib/brevis.rb
CHANGED
@@ -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
|
-
|
109
|
-
|
110
|
-
@
|
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
|
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
|
-
|
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
|
+
}
|