sassblueprint 0.0.3

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 (55) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +21 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +31 -0
  5. data/Rakefile +2 -0
  6. data/lib/sassblueprint.rb +11 -0
  7. data/lib/stylesheets/README.md +124 -0
  8. data/lib/stylesheets/Understanding_the_theme_structure.png +0 -0
  9. data/lib/stylesheets/_Sassblueprint.sass +2 -0
  10. data/lib/stylesheets/_base_components.sass +17 -0
  11. data/lib/stylesheets/_base_utilities.sass +14 -0
  12. data/lib/stylesheets/base_components/README.md +40 -0
  13. data/lib/stylesheets/base_components/chrome/header/_branding.sass +32 -0
  14. data/lib/stylesheets/base_components/chrome/header/_mobile_toggle.sass +24 -0
  15. data/lib/stylesheets/base_components/chrome/header/_primary_menu.sass +66 -0
  16. data/lib/stylesheets/base_components/chrome/header/_search.sass +46 -0
  17. data/lib/stylesheets/base_components/chrome/header/_social.sass +30 -0
  18. data/lib/stylesheets/base_components/content_lists/_content_carousel.sass +0 -0
  19. data/lib/stylesheets/base_components/content_lists/_content_stream.sass +297 -0
  20. data/lib/stylesheets/base_components/content_lists/_featured.sass +80 -0
  21. data/lib/stylesheets/base_components/content_lists/_headlines.sass +5 -0
  22. data/lib/stylesheets/base_components/content_lists/_topic_lists.sass +16 -0
  23. data/lib/stylesheets/base_components/content_modules/_carousel.sass +23 -0
  24. data/lib/stylesheets/base_components/content_modules/_chosen.sass +294 -0
  25. data/lib/stylesheets/base_components/content_modules/_colorbox.sass +208 -0
  26. data/lib/stylesheets/base_components/content_modules/_flexslider.sass +93 -0
  27. data/lib/stylesheets/base_components/content_modules/_sticky_menu.sass +40 -0
  28. data/lib/stylesheets/base_utilities/README.md +16 -0
  29. data/lib/stylesheets/base_utilities/_admin.sass +9 -0
  30. data/lib/stylesheets/base_utilities/_animations.sass +47 -0
  31. data/lib/stylesheets/base_utilities/_breakpoints.sass +59 -0
  32. data/lib/stylesheets/base_utilities/_colors.sass +23 -0
  33. data/lib/stylesheets/base_utilities/_eq.sass +260 -0
  34. data/lib/stylesheets/base_utilities/_font_awesome.scss +540 -0
  35. data/lib/stylesheets/base_utilities/_forms.sass +27 -0
  36. data/lib/stylesheets/base_utilities/_header.sass +19 -0
  37. data/lib/stylesheets/base_utilities/_images.sass +79 -0
  38. data/lib/stylesheets/base_utilities/_layout.sass +119 -0
  39. data/lib/stylesheets/base_utilities/_page.sass +48 -0
  40. data/lib/stylesheets/base_utilities/_tooltip.sass +48 -0
  41. data/lib/stylesheets/base_utilities/_typography.sass +113 -0
  42. data/lib/stylesheets/base_utilities/_z-index.scss +15 -0
  43. data/lib/stylesheets/plugins/layouts/_panels_admin.sass +172 -0
  44. data/lib/stylesheets/plugins/layouts/_panels_global.sass +42 -0
  45. data/lib/stylesheets/plugins/layouts/armstrong/armstrong.sass +69 -0
  46. data/lib/stylesheets/plugins/layouts/cooper/cooper.sass +11 -0
  47. data/lib/stylesheets/plugins/layouts/footer/footer.sass +164 -0
  48. data/lib/stylesheets/plugins/layouts/landing_video/landing_video.sass +20 -0
  49. data/lib/stylesheets/plugins/layouts/mustang/mustang.sass +134 -0
  50. data/lib/stylesheets/plugins/layouts/rebel/rebel.sass +17 -0
  51. data/lib/stylesheets/plugins/layouts/sapphire/sapphire.sass +126 -0
  52. data/lib/stylesheets/plugins/layouts/shelby/shelby.sass +101 -0
  53. data/lib/stylesheets/plugins/layouts/viper/viper.sass +72 -0
  54. data/sassblueprint.gemspec +21 -0
  55. metadata +125 -0
@@ -0,0 +1,208 @@
1
+ // Colorbox Core Styles:
2
+
3
+ %color-box-core
4
+ #colorbox, #cboxOverlay, #cboxWrapper
5
+ position: absolute
6
+ top: 0
7
+ left: 0
8
+ z-index: 9999
9
+ overflow: hidden
10
+
11
+ #cboxOverlay
12
+ position: fixed
13
+ width: 100%
14
+ height: 100%
15
+ +opacity(0.9)
16
+
17
+ #cboxMiddleLeft, #cboxBottomLeft
18
+ clear: left
19
+
20
+ #cboxContent
21
+ position: relative
22
+
23
+ #cboxLoadedContent
24
+ overflow: auto
25
+ -webkit-overflow-scrolling: touch
26
+
27
+ #cboxTitle
28
+ margin: 0
29
+
30
+ #cboxLoadingOverlay, #cboxLoadingGraphic
31
+ position: absolute
32
+ top: 0
33
+ left: 0
34
+ width: 100%
35
+ height: 100%
36
+
37
+
38
+ // These elements are buttons, and may need to have additional
39
+ // styles reset to avoid unwanted base styles.
40
+
41
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow
42
+ border: 0
43
+ padding: 0
44
+ margin: 0
45
+ overflow: visible
46
+ width: auto
47
+ background: none
48
+ cursor: pointer
49
+
50
+
51
+ // Avoid outlines on :active (mouseclick),
52
+ // but preserve outlines on :focus (tabbed navigating)
53
+
54
+ #cboxPrevious:active, #cboxNext:active, #cboxClose:active, #cboxSlideshow:active
55
+ outline: 0
56
+
57
+ .cboxPhoto
58
+ float: left
59
+ margin: auto
60
+ border: 0
61
+ display: block
62
+ max-width: none
63
+
64
+ .cboxIframe
65
+ width: 100%
66
+ height: 100%
67
+ display: block
68
+ border: 0
69
+
70
+ // Reset box sizing to content-box if theme is using border-box.
71
+
72
+ #colorbox, #cboxContent, #cboxLoadedContent
73
+ +box-sizing(content-box)
74
+
75
+
76
+
77
+ //// Colorbox module default style:
78
+ //// The styles are ordered & tabbed in a way that represents
79
+ //// the nesting of the generated HTML.
80
+ %colorbox-styles
81
+ #cboxOverlay
82
+ background: #000
83
+
84
+ #colorbox
85
+ outline: 0
86
+
87
+ #cboxWrapper
88
+
89
+ #cboxTopLeft
90
+ width: 15px
91
+ height: 15px
92
+
93
+ #cboxTopCenter
94
+ height: 15px
95
+
96
+ #cboxTopRight
97
+ width: 15px
98
+ height: 15px
99
+
100
+ #cboxBottomLeft
101
+ width: 15px
102
+ height: 10px
103
+
104
+ #cboxBottomCenter
105
+ height: 10px
106
+
107
+ #cboxBottomRight
108
+ width: 15px
109
+ height: 10px
110
+
111
+ #cboxMiddleLeft
112
+ width: 15px
113
+
114
+ #cboxMiddleRight
115
+ width: 15px
116
+
117
+ #cboxContent
118
+ overflow: hidden
119
+
120
+ #cboxError
121
+ padding: 50px
122
+ border: 1px solid #ccc
123
+
124
+ #cboxLoadedContent
125
+ margin-bottom: 28px
126
+
127
+ #cboxTitle
128
+ position: absolute
129
+ +text-style($size: 14px, $color: white, $lh: 16px)
130
+ bottom: 28px
131
+ left: 0
132
+ color: white
133
+ width: 100%
134
+ padding: 25px 10px 15px
135
+
136
+
137
+ #cboxCurrent
138
+ display: none
139
+ //position: absolute
140
+ //bottom: 4px
141
+ //left: 60px
142
+ //color: #949494
143
+
144
+ .cboxSlideshow_on #cboxSlideshow
145
+ position: absolute
146
+ bottom: 0px
147
+ right: 30px
148
+ background: url('images/controls.png') no-repeat -75px -50px
149
+ width: 25px
150
+ height: 25px
151
+ text-indent: -9999px
152
+
153
+ .cboxSlideshow_on #cboxSlideshow:hover
154
+ background-position: -101px -50px
155
+
156
+ .cboxSlideshow_off #cboxSlideshow
157
+ position: absolute
158
+ bottom: 0px
159
+ right: 30px
160
+ background: url('images/controls.png') no-repeat -25px -50px
161
+ width: 25px
162
+ height: 25px
163
+ text-indent: -9999px
164
+
165
+ .cboxSlideshow_off #cboxSlideshow:hover
166
+ background-position: -49px -50px
167
+
168
+ #cboxPrevious
169
+ position: absolute
170
+ bottom: 0
171
+ left: 0
172
+ background: url('images/controls.png') no-repeat -75px 0px
173
+ width: 25px
174
+ height: 25px
175
+ text-indent: -9999px
176
+
177
+ #cboxPrevious:hover
178
+ background-position: -75px -25px
179
+
180
+ #cboxNext
181
+ position: absolute
182
+ bottom: 0
183
+ left: 27px
184
+ background: url('images/controls.png') no-repeat -50px 0px
185
+ width: 25px
186
+ height: 25px
187
+ text-indent: -9999px
188
+
189
+ #cboxNext:hover
190
+ background-position: -50px -25px
191
+
192
+ #cboxLoadingOverlay
193
+
194
+ #cboxLoadingGraphic
195
+ background: url('images/loading_animation.gif') no-repeat center center
196
+
197
+ #cboxClose
198
+ position: absolute
199
+ bottom: 0
200
+ right: 0
201
+ background: url('images/controls.png') no-repeat -25px 0px
202
+ width: 25px
203
+ height: 25px
204
+ text-indent: -9999px
205
+
206
+ #cboxClose:hover
207
+ background-position: -25px -25px
208
+
@@ -0,0 +1,93 @@
1
+ %flexslider-reset
2
+ +box-shadow(transparent 0 0 0)
3
+ +border-radius(0)
4
+ background: transparent
5
+ margin: 0
6
+ border: 0
7
+
8
+
9
+ %flexslider
10
+ margin: 0
11
+ background: #fff
12
+ border: 0px solid #fff
13
+ +border-radius(0)
14
+ +box-shadow(0)
15
+ width: 100%
16
+ .slides
17
+ padding-left: 0em
18
+ li
19
+ float: left
20
+ display: block
21
+ width: 100%
22
+ .flex-caption
23
+ position: absolute
24
+ left: 0
25
+ right: 0
26
+ bottom: 0px
27
+ padding: 10px 16px 0 16px
28
+
29
+ div[class*="additional-links"]
30
+ display: inline-block
31
+ float: left
32
+ margin-right: 1em
33
+ &:after
34
+ content: "|"
35
+ margin-left: 1em
36
+ color: $link
37
+ &:last-child
38
+ &:after
39
+ content: " "
40
+
41
+ %flex-control-nav
42
+ position: relative
43
+ bottom: 30px
44
+ right: 0px
45
+ text-align: right
46
+ z-index: 3
47
+ float: right
48
+
49
+
50
+ %flex-direction-nav
51
+ .flex-direction-nav
52
+ //position: relative
53
+ a, .flex-disabled a
54
+ margin-top: -20px
55
+ line-height: 1
56
+ font-size: 0
57
+ color: white
58
+ +border-radius(3px)
59
+ +breakpoint($desktop)
60
+ margin-top: -20px
61
+ &:before,
62
+ &:after
63
+ content: ""
64
+ width: 32px
65
+ height: 40px
66
+ background-repeat: no-repeat
67
+ background-size: 35%
68
+ background-color: $primary
69
+ background-position: 50%
70
+ a.flex-prev
71
+ left: 5px
72
+ &:before
73
+ +svg-bg-simple("arrow-left")
74
+
75
+ a.flex-next
76
+ right: 5px
77
+ &:before
78
+ +svg-bg-simple("arrow-right")
79
+
80
+
81
+
82
+ %flexslider-buttons
83
+ +hide-text
84
+ display: block
85
+ width: 20px
86
+ height: 20px
87
+ position: absolute
88
+ top: 10px
89
+ z-index: map-get($zindex, content)
90
+
91
+
92
+
93
+
@@ -0,0 +1,40 @@
1
+ %sticky-wrapper
2
+ z-index: map-get($zindex, header)
3
+ position: relative
4
+ clear: both
5
+ +breakpoint($mobile-device)
6
+ z-index: map-get($zindex, content) !important
7
+ .panel-region-sticky-menu
8
+ position: relative !important
9
+ top: inherit !important
10
+
11
+ %sticky-menu
12
+ float: left !important
13
+ clear: both !important
14
+ clear: both !important
15
+ height: 40px
16
+ z-index: map-get($zindex, header)
17
+ width: 100%
18
+ max-width: 1020px
19
+ margin: 0 0 0 -20px
20
+ +breakpoint($mobile-device)
21
+ margin: 20px 0 0 0
22
+ .menu .leaf
23
+ list-style: none
24
+ display: inline-block
25
+ .menu
26
+ padding-top: 9px
27
+ li
28
+ margin: 0 6px
29
+ a
30
+ padding: 0 5px 4px 7px
31
+
32
+
33
+
34
+ %sticky-menu-anchor
35
+ display: block
36
+ position: relative
37
+ top: -50px
38
+ visibility: hidden
39
+ +breakpoint($desktop)
40
+ top: -170px
@@ -0,0 +1,16 @@
1
+ # Variables
2
+ Sass allows you to define variables that can be used throughout your Sass files.
3
+ Using variables makes it much easier to ensure consistency throughout your
4
+ stylesheets for values such as colors and numeric values. Variables are also
5
+ used for configuration by many Sass extensions. Some examples of values that
6
+ should be defined as variables are:
7
+
8
+ * Colors scheme.
9
+ * Spacing units, for example vertical and horizontal spacing units.
10
+ * Font sizes and related metrics such as line height.
11
+ * Font stacks.
12
+ * Grid sizing
13
+ * Legacy browser support.
14
+
15
+
16
+ This folder can also contain abstractions such as contains Sass mixins, extends and functions for use throughout your stylesheets and help to promote code reuse.
@@ -0,0 +1,9 @@
1
+ @mixin mobile-admin-menu-positioning($admin-nav: 0)
2
+ position: fixed
3
+ top: (0 + $admin-nav)
4
+ .navbar-administration &
5
+ top: (40px + $admin-nav)
6
+ .navbar-tray-open.navbar-horizontal &
7
+ top: (80px + $admin-nav)
8
+ .responsive-preview-frame &
9
+ top: (0 + $admin-nav) !important
@@ -0,0 +1,47 @@
1
+ //**************************************
2
+ // Animations
3
+
4
+ @mixin transition
5
+ -webkit-transition: 1.0s
6
+ -moz-transition: 1.0s
7
+ -o-transition: 1.0s
8
+ transition: 1.0s
9
+
10
+ // check out https://github.com/at-import/animation-studio
11
+ // for more mixins
12
+
13
+ @mixin alerted()
14
+ &:before
15
+ content: ''
16
+ position: absolute
17
+ top: 6px
18
+ right: 6px
19
+ height: 8px
20
+ width: 8px
21
+ +border-radius(10px)
22
+ background-color: gold
23
+
24
+ &:after
25
+ content: ''
26
+ position: absolute
27
+ top: 0
28
+ right: 0
29
+ height: 20px
30
+ width: 20px
31
+ +border-radius(20px)
32
+ background-color: transparent
33
+ border: solid gold
34
+ border-width: 2px // animates
35
+ +box-sizing(border-box)
36
+ +animation($name: alertMe)
37
+
38
+ @keyframes alertMe
39
+ // -vendor prefixes omitted for brevity, but should be used in production
40
+ from
41
+ border-width: 3px
42
+ border-color: gold
43
+
44
+ to
45
+ border-width: 0
46
+ border-color: rgba(gold, .1)
47
+
@@ -0,0 +1,59 @@
1
+ // BREAKPOINTS
2
+ $breakpoint-to-ems: true
3
+
4
+ $print-media: 'print'
5
+ $hidpi: min-resolution 143dppx
6
+
7
+ // For use with max-width only:
8
+ // +breakpoint(max-width: $tab-l)
9
+ $phone-p: 319px
10
+ $phone-l: 479px
11
+ $tab-p: 639px
12
+ $tab-l: 769px
13
+ $desk: 1020px
14
+ $desk-full: 1079px
15
+
16
+ // For use with min-width (default breakpoint mixin)
17
+ // +breakpoint($desktop)
18
+ $smartphone-portrait: 'screen' ($phone-p + 1px)
19
+ $smartphone-landscape: 'screen' ($phone-l + 1px)
20
+ $tablet-portrait: 'screen' ($tab-p + 1px)
21
+ $tablet-landscape: 'screen' ($tab-l + 1px)
22
+ $desktop: ($desk + 1px), 'no-query' '.lt-ie9'
23
+
24
+ $desktop-print: ($desk + 1px), $print-media, 'no-query' '.lt-ie9'
25
+ // use
26
+ // $breakpoint-no-queries: true
27
+ // $breakpoint-no-query-fallbacks: '.lt-ie9' !global
28
+ // at the top of a panel layout sass file to
29
+ // re-render everything with .lt-ie9 for desktop media queries.
30
+
31
+
32
+ //////////////////////////////
33
+ // COMBINATIONS
34
+
35
+ // Phones
36
+ $max-phone-p: 'screen' (max-width $phone-p)
37
+ $max-phone-l: 'screen' (max-width $phone-l)
38
+ $phone-p-phone-l: 'screen' ($phone-p + 1px) $phone-l
39
+
40
+ // Tablets
41
+ $max-tab-p: 'screen' (max-width $tab-p)
42
+ $max-tab-l: 'screen' (max-width $tab-l)
43
+ $phone-l-tab-p: 'screen' ($phone-p + 1px) $tab-p
44
+ $phone-l-tab-l: 'screen' ($phone-l + 1px) $tab-l
45
+ $tab-p-tab-l: 'screen' ($tab-p + 1px) $tab-l
46
+ $tab-p-desk: 'screen' ($tab-p + 1px) $desk
47
+ $tab-l-desk: 'screen' ($tab-l + 1px) $desk
48
+
49
+ // All Mobile
50
+ $mobile-device: 'screen' max-width $desk
51
+
52
+ // High Resolution Devices
53
+ $mobile-hi-res: 'screen' (max-width $desk) ($hidpi)
54
+ $desk-hi-res: 'screen' (min-width $desk) ($hidpi)
55
+
56
+
57
+ @mixin fallback
58
+ .lt-ie9 &
59
+ @content
@@ -0,0 +1,23 @@
1
+ //**************************************//
2
+ // Basic Colors
3
+ $text-primary: #333
4
+ $text-secondary: #666
5
+ $text-tertiary: #999
6
+ $text-quaternary: #ccc
7
+
8
+ $alert: #cc0000
9
+ $page-bg: white
10
+
11
+
12
+ //**************************************//
13
+ $contrasted-dark-default: $text-primary
14
+ $contrasted-light-default: white
15
+
16
+ @mixin color-contrasted($background-color, $dark: $contrasted-dark-default, $light: $contrasted-light-default, $threshold: $contrasted-lightness-threshold)
17
+ background-color: $background-color
18
+ color: contrast-color($background-color, $dark, $light, $threshold)
19
+ background: $bg
20
+ border: 1px solid $brdr
21
+ &:hover,
22
+ &:focus
23
+ background: $bg-hover