fishnet 1.0.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.
- data/.gitignore +17 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +115 -0
- data/LICENSE +22 -0
- data/Procfile +2 -0
- data/README.md +2 -0
- data/Rakefile +2 -0
- data/app/assets/javascripts/fishnet_styleguide.js +30 -0
- data/app/assets/stylesheets/fishnet.sass +3 -0
- data/app/assets/stylesheets/fishnet/_functions.sass +42 -0
- data/app/assets/stylesheets/fishnet/_mesh.sass +72 -0
- data/app/assets/stylesheets/fishnet/_mixins.sass +105 -0
- data/app/assets/stylesheets/fishnet/_settings.sass +18 -0
- data/app/assets/stylesheets/fishnet_styleguide.sass +81 -0
- data/app/assets/stylesheets/general/_base.sass +227 -0
- data/app/assets/stylesheets/general/_example.sass +57 -0
- data/app/assets/stylesheets/general/_helpers.sass +42 -0
- data/app/assets/stylesheets/general/_layout.sass +74 -0
- data/app/assets/stylesheets/general/_mesh-guide.sass +139 -0
- data/app/assets/stylesheets/general/_notifications.sass +36 -0
- data/app/assets/stylesheets/general/_tables.sass +101 -0
- data/app/assets/stylesheets/general/_wells.sass +14 -0
- data/app/views/layouts/pages.html.haml +31 -0
- data/app/views/pages/index.html.haml +479 -0
- data/config.ru +40 -0
- data/fishnet.gemspec +24 -0
- data/lib/fishnet.rb +2 -0
- data/lib/fishnet/engine.rb +8 -0
- data/lib/fishnet/version.rb +3 -0
- data/lib/sprockets/config.rb +12 -0
- data/lib/sprockets/static_compiler.rb +51 -0
- data/vendor/assets/javascripts/prettify.js +28 -0
- metadata +101 -0
@@ -0,0 +1,81 @@
|
|
1
|
+
|
2
|
+
// ## Base Sizing
|
3
|
+
$context_px: 16
|
4
|
+
$base_font_size: 14
|
5
|
+
$base_width: 1200
|
6
|
+
$base_line_height: 1.2
|
7
|
+
$base_vertical: $base_font_size * $base_line_height
|
8
|
+
|
9
|
+
// Fishnet variables
|
10
|
+
$column-width: 74px
|
11
|
+
$gutter-width: 8px
|
12
|
+
$columns: 12
|
13
|
+
$total-width: 100%
|
14
|
+
|
15
|
+
// ## Fonts
|
16
|
+
$sans_norm: "HelveticaNeue", "Helvetica Neue", "Helvetica", "Arial", sans-serif
|
17
|
+
$code_norm: "Bitstream Vera Sans Mono", "Menslo LG M", "Menlo", "Monaco", monospace
|
18
|
+
|
19
|
+
// colors
|
20
|
+
$black: #000
|
21
|
+
$grey1: #111
|
22
|
+
$grey2: #222
|
23
|
+
$grey3: #333
|
24
|
+
$grey4: #444
|
25
|
+
$grey5: #555
|
26
|
+
$grey6: #666
|
27
|
+
$grey7: #777
|
28
|
+
$grey8: #888
|
29
|
+
$grey9: #999
|
30
|
+
$greyA: #aaa
|
31
|
+
$greyB: #bbb
|
32
|
+
$greyC: #ccc
|
33
|
+
$greyD: #ddd
|
34
|
+
$greyE: #eee
|
35
|
+
$white: #fff
|
36
|
+
$off_white: #fafafa
|
37
|
+
$off_grey: #eaeaea
|
38
|
+
|
39
|
+
$magenta: #ff00ff
|
40
|
+
$cyan: #00ffff
|
41
|
+
$red: #b22222
|
42
|
+
$orange: #f26522
|
43
|
+
$yellow: #ffc40d
|
44
|
+
$green: #46a546
|
45
|
+
$blue: #268bd2
|
46
|
+
$indigo: #4b0082
|
47
|
+
$violet: #ee82ee
|
48
|
+
$standard: #f5f5f5
|
49
|
+
|
50
|
+
$text_inset_dark: 0 -1px 0 rgba($black, 0.25)
|
51
|
+
$text_drop_lite: 0 1px 0 rgba($white, 0.75)
|
52
|
+
$drop_dark: 0 1px 4px rgba($black, 0.3)
|
53
|
+
$inset_dark: inset 0 1px 4px rgba($black, 0.3)
|
54
|
+
|
55
|
+
$radii: 0.4em
|
56
|
+
|
57
|
+
@import fishnet
|
58
|
+
@import general/helpers
|
59
|
+
@import general/base
|
60
|
+
@import general/tables
|
61
|
+
@import general/wells
|
62
|
+
@import general/notifications
|
63
|
+
@import general/layout
|
64
|
+
@import general/example
|
65
|
+
|
66
|
+
// Debugging with mesh styles
|
67
|
+
@import fishnet/mesh
|
68
|
+
@import general/mesh-guide
|
69
|
+
+add-guide-column-classes()
|
70
|
+
+add-guide-column-pull-classes()
|
71
|
+
+add-guide-column-push-classes()
|
72
|
+
+add-guide-column-full-classes()
|
73
|
+
+add-guide-column-offset-left-classes()
|
74
|
+
+add-guide-column-offset-left-pull-classes()
|
75
|
+
+add-guide-column-offset-left-push-classes()
|
76
|
+
+add-guide-column-offset-left-full-classes()
|
77
|
+
+add-guide-column-offset-right-classes()
|
78
|
+
+add-guide-column-offset-right-pull-classes()
|
79
|
+
+add-guide-column-offset-right-push-classes()
|
80
|
+
+add-guide-column-offset-right-full-classes()
|
81
|
+
|
@@ -0,0 +1,227 @@
|
|
1
|
+
|
2
|
+
// HTML 5 definitions and normalization
|
3
|
+
article, aside, details, figcaption, figure,
|
4
|
+
footer, header, hgroup, nav, section
|
5
|
+
display: block
|
6
|
+
margin: 0
|
7
|
+
padding: 0
|
8
|
+
|
9
|
+
// Reset margins, paddings and borders
|
10
|
+
html, body, div, span, hr, img,
|
11
|
+
h1, h2, h3, h4, h5, h6, p, a, small, strong, em,
|
12
|
+
address, abbr, dfn, sub, sup, del, ins,
|
13
|
+
blockquote, q, cite, pre, code, kbd, samp,
|
14
|
+
dl, dt, dd, ol, ul, li,
|
15
|
+
fieldset, form, label, legend, button, input, select, textarea,
|
16
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
17
|
+
summary, time, mark
|
18
|
+
margin: 0
|
19
|
+
padding: 0
|
20
|
+
|
21
|
+
img
|
22
|
+
border: 0
|
23
|
+
-ms-interpolation-mode: bicubic
|
24
|
+
max-width: 100%
|
25
|
+
|
26
|
+
button[disabled],
|
27
|
+
a.disabled,
|
28
|
+
li.disabled > a
|
29
|
+
cursor: default
|
30
|
+
|
31
|
+
table
|
32
|
+
border-collapse: collapse
|
33
|
+
border-spacing: 0
|
34
|
+
max-width: 100%
|
35
|
+
|
36
|
+
// Top level elements
|
37
|
+
html
|
38
|
+
font-size: 100%
|
39
|
+
overflow-y: scroll
|
40
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0)
|
41
|
+
-webkit-font-smoothing: antialiased
|
42
|
+
-webkit-text-size-adjust: 100%
|
43
|
+
-ms-text-size-adjust: 100%
|
44
|
+
|
45
|
+
html, button, input, select, textarea
|
46
|
+
color: $grey3
|
47
|
+
font-family: $sans_norm
|
48
|
+
|
49
|
+
body
|
50
|
+
background: $white
|
51
|
+
+font-sizes($base_font_size)
|
52
|
+
line-height: $base_line_height
|
53
|
+
|
54
|
+
\::-moz-selection
|
55
|
+
background: $blue
|
56
|
+
color: $white
|
57
|
+
text-shadow: none
|
58
|
+
|
59
|
+
\::selection
|
60
|
+
background: $blue
|
61
|
+
color: $white
|
62
|
+
text-shadow: none
|
63
|
+
|
64
|
+
// Links
|
65
|
+
a, a:visited
|
66
|
+
color: $blue
|
67
|
+
text-decoration: none
|
68
|
+
|
69
|
+
a:focus
|
70
|
+
outline: thin dotted
|
71
|
+
|
72
|
+
a:hover, a:active
|
73
|
+
outline: 0
|
74
|
+
text-decoration: none
|
75
|
+
|
76
|
+
a:hover,
|
77
|
+
a:active,
|
78
|
+
a.active,
|
79
|
+
.active > a
|
80
|
+
color: darken($blue, 20%)
|
81
|
+
|
82
|
+
|
83
|
+
a:link
|
84
|
+
-webkit-tap-highlight-color: $blue
|
85
|
+
|
86
|
+
// ## Typography
|
87
|
+
|
88
|
+
// Heading Styles
|
89
|
+
h1, h2, h3, h4, h5, h6
|
90
|
+
color: $grey3
|
91
|
+
line-height: 1
|
92
|
+
margin-bottom: 0.1em
|
93
|
+
|
94
|
+
h1
|
95
|
+
+font-sizes(36)
|
96
|
+
|
97
|
+
h2
|
98
|
+
+font-sizes(30)
|
99
|
+
|
100
|
+
h3
|
101
|
+
+font-sizes(24)
|
102
|
+
margin-top: 2em
|
103
|
+
|
104
|
+
h4
|
105
|
+
+font-sizes(20)
|
106
|
+
|
107
|
+
h5
|
108
|
+
+font-sizes(18)
|
109
|
+
|
110
|
+
h6
|
111
|
+
+font-sizes(18)
|
112
|
+
font-style: italic
|
113
|
+
|
114
|
+
// Paragraph Styles
|
115
|
+
p
|
116
|
+
font-style: normal
|
117
|
+
p a:hover
|
118
|
+
text-decoration: underline
|
119
|
+
|
120
|
+
small
|
121
|
+
font-size: 85%
|
122
|
+
|
123
|
+
// Code
|
124
|
+
pre, code
|
125
|
+
font-family: $code_norm
|
126
|
+
_font-family: "courier new", monospace
|
127
|
+
|
128
|
+
code
|
129
|
+
background: $off_white
|
130
|
+
border: 1px solid lighten($greyC, 10%)
|
131
|
+
color: $red
|
132
|
+
font-size: 85%
|
133
|
+
padding: 0 0.3em
|
134
|
+
|
135
|
+
pre
|
136
|
+
background: $off_white
|
137
|
+
border: 1px solid $greyC
|
138
|
+
margin: 1em 0
|
139
|
+
padding: 0.75em
|
140
|
+
font-size: 85%
|
141
|
+
text-shadow: 0 1px 0 $white
|
142
|
+
white-space: pre
|
143
|
+
white-space: pre-wrap
|
144
|
+
word-wrap: break-word
|
145
|
+
overflow: hidden
|
146
|
+
|
147
|
+
pre code
|
148
|
+
padding: 0
|
149
|
+
border: 0
|
150
|
+
background: transparent
|
151
|
+
|
152
|
+
// .pln, .pun, .opn, .clo => color: body_color
|
153
|
+
pre.prettyprint
|
154
|
+
.com
|
155
|
+
color: #93a1a1
|
156
|
+
.lit
|
157
|
+
color: #195f91
|
158
|
+
.fun
|
159
|
+
color: #cb4b15
|
160
|
+
.kwd, .tag
|
161
|
+
color: #258ad2
|
162
|
+
.str, .atv
|
163
|
+
color: #859900
|
164
|
+
.atn, .type, .dec, .var
|
165
|
+
color: #d33682
|
166
|
+
|
167
|
+
// Misc
|
168
|
+
hr
|
169
|
+
display: block
|
170
|
+
height: 1px
|
171
|
+
border: 0
|
172
|
+
border-top: 1px solid $grey6
|
173
|
+
margin: 1em 0
|
174
|
+
&.dotted
|
175
|
+
border-top-style: dotted
|
176
|
+
&.dashed
|
177
|
+
border-top-style: dashed
|
178
|
+
|
179
|
+
|
180
|
+
// LISTS
|
181
|
+
|
182
|
+
// Ordered and Unordered Lists
|
183
|
+
ul
|
184
|
+
list-style: square inside
|
185
|
+
|
186
|
+
ol
|
187
|
+
list-style: decimal inside
|
188
|
+
|
189
|
+
ul li, ol li
|
190
|
+
margin-left: 0.25em
|
191
|
+
|
192
|
+
ul ul li, ul ol li,
|
193
|
+
ol ul li, ol ol li
|
194
|
+
margin-left: 1.5em
|
195
|
+
|
196
|
+
// Navigation and unstyled Lists
|
197
|
+
nav ul, nav ol, ul.unstyled, ol.unstyled
|
198
|
+
list-style: none
|
199
|
+
list-style-image: none
|
200
|
+
margin: 0
|
201
|
+
padding: 0
|
202
|
+
ul li, ol li, li
|
203
|
+
margin-left: 0
|
204
|
+
padding: 0
|
205
|
+
|
206
|
+
// Base Navs, used by tabs, pills, breadcrumbs, pagination, and navigation lists
|
207
|
+
.nav
|
208
|
+
+clearfixer
|
209
|
+
list-style: none
|
210
|
+
|
211
|
+
.nav > li > a
|
212
|
+
display: block
|
213
|
+
|
214
|
+
.nav.inline > li
|
215
|
+
float: left
|
216
|
+
|
217
|
+
.nav.inline > li > a
|
218
|
+
padding-left: 0.5em
|
219
|
+
padding-right: 0.5em
|
220
|
+
|
221
|
+
// Active states for navs get a default cursor
|
222
|
+
.nav > .active > a,
|
223
|
+
.nav > .active > a:hover
|
224
|
+
cursor: default
|
225
|
+
.nav > .dropdown.active > a:hover
|
226
|
+
cursor: pointer
|
227
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
@mixin _box-setting($hv:100px)
|
3
|
+
background-color: $grey6
|
4
|
+
height: $hv
|
5
|
+
line-height: $hv
|
6
|
+
margin-bottom: 0.5em
|
7
|
+
text-align: center
|
8
|
+
overflow: hidden
|
9
|
+
|
10
|
+
.masthead
|
11
|
+
+column-full(12)
|
12
|
+
+_box-setting(100px)
|
13
|
+
margin-top: 3em
|
14
|
+
|
15
|
+
.gallery
|
16
|
+
+column(12)
|
17
|
+
+_box-setting(300px)
|
18
|
+
|
19
|
+
.promo
|
20
|
+
+_box-setting(75px)
|
21
|
+
|
22
|
+
.promo.recent
|
23
|
+
+column-pull(6)
|
24
|
+
.promo.ancient
|
25
|
+
+column-push(6)
|
26
|
+
|
27
|
+
.article
|
28
|
+
+column(6)
|
29
|
+
+_box-setting(100px)
|
30
|
+
|
31
|
+
.aside
|
32
|
+
+column-offset-left(4,2)
|
33
|
+
+_box-setting(100px)
|
34
|
+
|
35
|
+
.footer
|
36
|
+
+column-full(12)
|
37
|
+
+clearfixer
|
38
|
+
background-color: $grey9
|
39
|
+
margin-bottom: 3em
|
40
|
+
|
41
|
+
.footer-nav
|
42
|
+
+column-pull(8)
|
43
|
+
+_box-setting(100px)
|
44
|
+
|
45
|
+
.social-nav
|
46
|
+
+column-offset-left-full(3,1)
|
47
|
+
+_box-setting(100px)
|
48
|
+
|
49
|
+
.copy, .terms
|
50
|
+
+_box-setting(25px)
|
51
|
+
margin-bottom: 0
|
52
|
+
|
53
|
+
.copy
|
54
|
+
+column-offset-right-full(4,2)
|
55
|
+
.terms
|
56
|
+
+column-offset-left-full(4,2)
|
57
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
// Converts target `px` value to `em` in context constraints of the base font size
|
3
|
+
@function to_em($target_px, $context:$base_font_size)
|
4
|
+
@return ($target_px / $context) * 1em
|
5
|
+
|
6
|
+
// Converts target `px` value to `rem` in context constraints of the user's base font size
|
7
|
+
@function to_rem($target_px, $context:$context_px)
|
8
|
+
@return ($target_px / $context) * 1rem
|
9
|
+
|
10
|
+
// Converts target `px` value to `percentage` in context constraints of the container's width
|
11
|
+
@function to_percent($target_px, $context:$base_width)
|
12
|
+
@return percentage($target_px / $context)
|
13
|
+
|
14
|
+
// Returns the vertical rhythm in pixels calculated from the `$base_vertical` setting
|
15
|
+
@function vertical_pixel($target_px)
|
16
|
+
@return ($base_vertical / $target_px) * 1px
|
17
|
+
|
18
|
+
// Returns the vertical rhythm in em calculated from the `$base_vertical` setting
|
19
|
+
@function vertical_em($target_px)
|
20
|
+
@return to_em(($base_vertical / $target_px), $base_font_size)
|
21
|
+
|
22
|
+
// Returns the vertical rhythm in percent calculated from the `$base_vertical` setting
|
23
|
+
@function vertical_percent($target_px)
|
24
|
+
@return to_percent(($base_vertical / $target_px), $base_font_size)
|
25
|
+
|
26
|
+
// Use `rems` to insert a font size
|
27
|
+
@mixin font-sizes($target_px, $context:$context_px)
|
28
|
+
font-size: $target_px * 1px
|
29
|
+
font-size: to_rem($target_px, $context)
|
30
|
+
|
31
|
+
@mixin clearfixer
|
32
|
+
zoom: 1
|
33
|
+
&:before,
|
34
|
+
&:after
|
35
|
+
content: ""
|
36
|
+
display: table
|
37
|
+
&:after
|
38
|
+
clear: both
|
39
|
+
|
40
|
+
.clearfixer
|
41
|
+
+clearfixer
|
42
|
+
|
@@ -0,0 +1,74 @@
|
|
1
|
+
|
2
|
+
.container
|
3
|
+
+clearfixer
|
4
|
+
max-width: $base_width * 1px
|
5
|
+
margin: 0 auto
|
6
|
+
padding: 0 1%
|
7
|
+
&.fluid, &.fixed
|
8
|
+
max-width: none
|
9
|
+
&.fixed
|
10
|
+
width: $base_width * 1px
|
11
|
+
|
12
|
+
// Site Layout
|
13
|
+
.section
|
14
|
+
+clearfixer
|
15
|
+
margin-top: 2em
|
16
|
+
.sub-section
|
17
|
+
+clearfixer
|
18
|
+
margin-top: 1em
|
19
|
+
|
20
|
+
.section-heading
|
21
|
+
border-bottom: 1px solid $greyC
|
22
|
+
line-height: 1.4
|
23
|
+
margin-bottom: 1em
|
24
|
+
& span
|
25
|
+
float: right
|
26
|
+
font-size: 0.5em
|
27
|
+
margin-top: 1.5em
|
28
|
+
|
29
|
+
.section-subheading
|
30
|
+
margin-bottom: 0.5em
|
31
|
+
& span
|
32
|
+
font-size: 0.65em
|
33
|
+
margin-left: 0.5em
|
34
|
+
& + p
|
35
|
+
margin-bottom: 1em
|
36
|
+
|
37
|
+
.pre-column
|
38
|
+
+base-column
|
39
|
+
width: 48%
|
40
|
+
// float: left
|
41
|
+
&.sass
|
42
|
+
margin-right: 1%
|
43
|
+
&.markup
|
44
|
+
margin-left: 1%
|
45
|
+
|
46
|
+
// Accordians
|
47
|
+
.collapse
|
48
|
+
position: relative
|
49
|
+
overflow: hidden
|
50
|
+
height: 0
|
51
|
+
&.in
|
52
|
+
height: auto
|
53
|
+
|
54
|
+
.page-info.fixed
|
55
|
+
position: fixed
|
56
|
+
top: 0
|
57
|
+
right: 0
|
58
|
+
left: 0
|
59
|
+
z-index: 1010
|
60
|
+
|
61
|
+
.page-info span
|
62
|
+
display: block
|
63
|
+
color: $greyC
|
64
|
+
font-weight: bold
|
65
|
+
float: right
|
66
|
+
background: rgba(white,0.9)
|
67
|
+
padding: $radii
|
68
|
+
-webkit-border-radius: $radii
|
69
|
+
-moz-border-radius: $radii
|
70
|
+
border-radius: $radii
|
71
|
+
|
72
|
+
body > .container
|
73
|
+
margin-top: 3em
|
74
|
+
|