brevis 0.2.1 → 0.2.2

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: c144603c4055c750bfd11c7175915307159e416b
4
- data.tar.gz: e52dd843f3024402bb6a6256b35176c423d1014d
3
+ metadata.gz: 49adddd0adfe5fe58e540feb905137e292d7caf7
4
+ data.tar.gz: fc30a6a56ec96d0614aef355d1bdf8cfed146b31
5
5
  SHA512:
6
- metadata.gz: 3e37d3d13ce023688477d33f1c75adf889ac0ac22ba7cc9935d7c4e98f7c5dcea0a3d92307dfe28e9c7efa7155b7f8e2a5282e3383551be3b0a9424f34512dc1
7
- data.tar.gz: b28312fe2dc72082212f99aea9e7b89a266e65a60ad8030af1c9f68829b3577df5f23ca3600b566aac5ff540e33b28d47bbf5446cda74303b9ec1d3ce41620f6
6
+ metadata.gz: c93aa0ff0c0b948a632342dcac1151342c1313049037a27adc1e7bfe6dc68065554da79fb60f116a05890a196884d63d0842b876cdcddf44705023eced1137b6
7
+ data.tar.gz: 41818c2582c03fbe1cc99fe587497a2fdb022e65751949720b72434b1625dc1eed15c9c155ad811fcb24c0b28375669934955d1737756f351a4b1818f70bdc1a
data/lib/brevis.rb CHANGED
@@ -19,8 +19,8 @@ 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.1"
23
- DATE = "2015-02-05"
22
+ VERSION = "0.2.2"
23
+ DATE = "2015-02-06"
24
24
  end
25
25
 
26
26
  # This is where any custom SassScript should be placed. The functions will be
@@ -13,6 +13,7 @@
13
13
  @import "brevis_utilities/images";
14
14
  @import "brevis_utilities/icons";
15
15
  @import "brevis_utilities/layout";
16
+ @import "brevis_utilities/mediablock";
16
17
  @import "brevis_utilities/page";
17
18
  @import "brevis_utilities/tooltip";
18
19
  @import "brevis_utilities/typography";
@@ -33,4 +34,5 @@
33
34
  @import "brevis_components/content_modules/chosen";
34
35
  @import "brevis_components/content_modules/colorbox";
35
36
  @import "brevis_components/content_modules/flexslider";
37
+ @import "brevis_components/content_modules/island";
36
38
  @import "brevis_components/content_modules/sticky_menu";
@@ -0,0 +1,13 @@
1
+ ///////////////////////////////////////////
2
+ // ISLAND - Harry Robert's "island"
3
+
4
+ $island-spacing: 20px;
5
+
6
+ @mixin island ($spacing: $island-spacing){
7
+ display: block;
8
+ margin-bottom: $spacing;
9
+ padding-top: $spacing;
10
+ padding-bottom: $spacing;
11
+ @include clearfix;
12
+ > :last-child { margin-bottom: 0; }
13
+ }
@@ -3,48 +3,69 @@
3
3
  @include clearfix;
4
4
  }
5
5
 
6
- @mixin media-separator {
6
+ @mixin media-separator($color: $cool-gray) {
7
7
  &::before {
8
8
  content: " ";
9
9
  display: block;
10
- height: 8px;
11
10
  width: 100%;
12
- border: $cool-gray solid 1px;
11
+ border: $color solid 1px;
13
12
  margin: 0 0 20px 0;
14
- background: image-url("bg-diagonal-green.jpg") repeat;
15
- opacity: 0.4;
16
- @include breakpoint($tablet-portrait) {
17
- height: 18px;
18
- }
19
13
  }
20
14
  }
21
15
 
22
16
  @mixin mediablock__title {
23
- h2, h3, h4 {
24
- @include tertiary-font;
25
- @include font-size(16px, 1.1);
26
- @include caps;
27
- margin-top: 0;
28
- a {
29
- color: $color-two;
30
- }
17
+ @include font-size(16px, 1.1);
18
+ @include caps;
19
+ margin-top: 0 !important;
20
+ padding-top: 0;
21
+ border-top: 0 !important;
22
+ color: $color-two;
23
+ h1, h2, h3, h4, h5, h6 {
24
+ font-family: inherit;
25
+ font-size: inherit;
26
+ text-transform: inherit;
27
+ margin-top: inherit;
28
+ padding-top: inherit;
29
+ border-top: inherit;
30
+ }
31
+ a {
32
+ color: $color-two;
31
33
  }
32
34
  }
33
35
 
36
+ $mediablock-img-max-sm: 150px;
37
+ $mediablock-img-max-lg: 230px;
38
+
34
39
  // Default image, floated to the left
35
- @mixin mediablock__img {
40
+ @mixin mediablock__img(
41
+ $default-img-bg: false,
42
+ $larger-thumb-desktop: false
43
+ ){
36
44
  margin-bottom: 10px;
37
45
  float: left;
38
- margin-right: 1rem;
46
+ margin-right: 20px;
39
47
  margin-bottom: 0px;
40
- @include breakpoint($tablet-portrait) {
41
- margin-right: 45px;
42
- margin-bottom: 22px;
48
+ width: $mediablock-img-max-sm;
49
+ height: $mediablock-img-max-sm;
50
+ @if $default-img-bg {
51
+ background: 50% rgba(239, 243, 241, 0.56) no-repeat url("../images/icons/bulldog_transparent.png");
52
+ background-size: $mediablock-img-max-sm;
53
+ }
54
+ @if $larger-thumb-desktop{
55
+ @include breakpoint($tablet-landscape) {
56
+ margin-right: 45px;
57
+ margin-bottom: 5px;
58
+ width: $mediablock-img-max-lg;
59
+ height: $mediablock-img-max-lg;
60
+ }
43
61
  }
44
62
  &.icon {
45
63
  float: left;
46
64
  margin-right: 1rem;
47
65
  }
66
+ a {
67
+ display: block;
68
+ }
48
69
  img {
49
70
  display: block;
50
71
  width: auto;
@@ -71,29 +92,31 @@
71
92
 
72
93
 
73
94
  @mixin mediablock-tight-view (
74
- $wrapper-name: ".view-content-list",
75
95
  $unit-name: ".views-row",
76
96
  $image-field: ".pane-node-field-shared-image",
77
97
  $title-field: ".pane-node-title, .pane-butler-core-node-title-pane",
78
- $body-field: ".pane-node-body") {
98
+ $body-field: ".pane-node-body",
99
+ $default-img-bg: false,
100
+ $larger-thumb-desktop: false,
101
+ $separator-color: false
102
+ ){
79
103
 
80
- #{$wrapper-name} {
81
- clear: both;
82
- }
83
104
  #{$unit-name} {
84
105
  @include mediablock;
106
+ #{$image-field} {
107
+ @include mediablock__img($default-img-bg);
108
+ }
109
+ #{$title-field} {
110
+ @include mediablock__title;
111
+ overflow: auto;
112
+ }
113
+ #{$body-field} {
114
+ overflow: auto;
115
+ }
85
116
  }
86
- #{$unit-name} ~ #{$unit-name} {
87
- @include media-separator
88
- }
89
- #{$image-field} {
90
- @include mediablock__img;
91
- }
92
- #{$wrapper-name} #{$title-field} {
93
- @include mediablock__title;
94
- overflow: auto;
95
- }
96
- #{$body-field} {
97
- overflow: auto;
117
+ @if $separator-color {
118
+ #{$unit-name} ~ #{$unit-name} {
119
+ @include media-separator($separator-color);
120
+ }
98
121
  }
99
122
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brevis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kendall Totten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -62,6 +62,7 @@ files:
62
62
  - stylesheets/brevis_components/content_modules/_chosen.scss
63
63
  - stylesheets/brevis_components/content_modules/_colorbox.scss
64
64
  - stylesheets/brevis_components/content_modules/_flexslider.scss
65
+ - stylesheets/brevis_components/content_modules/_island.scss
65
66
  - stylesheets/brevis_components/content_modules/_sticky_menu.scss
66
67
  - stylesheets/brevis_utilities/README.md
67
68
  - stylesheets/brevis_utilities/_admin.scss