susy 1.0.9 → 2.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.mkdn +0 -27
- data/README.md +4 -87
- data/docs/BUGS.md +2 -0
- data/docs/Gemfile.lock +142 -0
- data/docs/README.md +54 -0
- data/docs/config.rb +120 -0
- data/docs/lib/guide_helpers.rb +19 -0
- data/docs/source/apple-touch-icon-114x114-precomposed.png +0 -0
- data/docs/source/apple-touch-icon-144x144-precomposed.png +0 -0
- data/docs/source/apple-touch-icon-72x72-precomposed.png +0 -0
- data/docs/source/apple-touch-icon-precomposed.png +0 -0
- data/docs/source/demos/grid-types.html.md +263 -0
- data/docs/source/demos/index.html.md +23 -0
- data/docs/source/demos/magic.html.md +320 -0
- data/docs/source/favicon.ico +0 -0
- data/docs/source/fonts/@Font-Face License.txt +18 -0
- data/docs/source/fonts/Baskerville-amp-webfont.eot +0 -0
- data/docs/source/fonts/Baskerville-amp-webfont.svg +241 -0
- data/docs/source/fonts/Baskerville-amp-webfont.ttf +0 -0
- data/docs/source/fonts/Baskerville-amp-webfont.woff +0 -0
- data/docs/source/fonts/CenturyOldStyle-Bold-webfont.eot +0 -0
- data/docs/source/fonts/CenturyOldStyle-Bold-webfont.svg +240 -0
- data/docs/source/fonts/CenturyOldStyle-Bold-webfont.ttf +0 -0
- data/docs/source/fonts/CenturyOldStyle-Bold-webfont.woff +0 -0
- data/docs/source/fonts/CenturyOldStyle-Italic-webfont.eot +0 -0
- data/docs/source/fonts/CenturyOldStyle-Italic-webfont.svg +240 -0
- data/docs/source/fonts/CenturyOldStyle-Italic-webfont.ttf +0 -0
- data/docs/source/fonts/CenturyOldStyle-Italic-webfont.woff +0 -0
- data/docs/source/fonts/CenturyOldStyle-Regular-webfont.eot +0 -0
- data/docs/source/fonts/CenturyOldStyle-Regular-webfont.svg +240 -0
- data/docs/source/fonts/CenturyOldStyle-Regular-webfont.ttf +0 -0
- data/docs/source/fonts/CenturyOldStyle-Regular-webfont.woff +0 -0
- data/docs/source/fonts/CenturyOldStyleCaps-Regular-webfont.eot +0 -0
- data/docs/source/fonts/CenturyOldStyleCaps-Regular-webfont.svg +240 -0
- data/docs/source/fonts/CenturyOldStyleCaps-Regular-webfont.ttf +0 -0
- data/docs/source/fonts/CenturyOldStyleCaps-Regular-webfont.woff +0 -0
- data/docs/source/fonts/FranklinGothic-Book-webfont.eot +0 -0
- data/docs/source/fonts/FranklinGothic-Book-webfont.svg +240 -0
- data/docs/source/fonts/FranklinGothic-Book-webfont.ttf +0 -0
- data/docs/source/fonts/FranklinGothic-Book-webfont.woff +0 -0
- data/docs/source/fonts/FranklinGothic-BookIt-webfont.eot +0 -0
- data/docs/source/fonts/FranklinGothic-BookIt-webfont.svg +240 -0
- data/docs/source/fonts/FranklinGothic-BookIt-webfont.ttf +0 -0
- data/docs/source/fonts/FranklinGothic-BookIt-webfont.woff +0 -0
- data/docs/source/fonts/FranklinGothic-Cd-webfont.eot +0 -0
- data/docs/source/fonts/FranklinGothic-Cd-webfont.svg +240 -0
- data/docs/source/fonts/FranklinGothic-Cd-webfont.ttf +0 -0
- data/docs/source/fonts/FranklinGothic-Cd-webfont.woff +0 -0
- data/docs/source/fonts/FranklinGothic-CdIt-webfont.eot +0 -0
- data/docs/source/fonts/FranklinGothic-CdIt-webfont.svg +240 -0
- data/docs/source/fonts/FranklinGothic-CdIt-webfont.ttf +0 -0
- data/docs/source/fonts/FranklinGothic-CdIt-webfont.woff +0 -0
- data/docs/source/fonts/FranklinGothic-Med-webfont.eot +0 -0
- data/docs/source/fonts/FranklinGothic-Med-webfont.svg +240 -0
- data/docs/source/fonts/FranklinGothic-Med-webfont.ttf +0 -0
- data/docs/source/fonts/FranklinGothic-Med-webfont.woff +0 -0
- data/docs/source/fonts/FranklinGothic-MedCd-webfont.eot +0 -0
- data/docs/source/fonts/FranklinGothic-MedCd-webfont.svg +240 -0
- data/docs/source/fonts/FranklinGothic-MedCd-webfont.ttf +0 -0
- data/docs/source/fonts/FranklinGothic-MedCd-webfont.woff +0 -0
- data/docs/source/fonts/FranklinGothic-MedCdIt-webfont.eot +0 -0
- data/docs/source/fonts/FranklinGothic-MedCdIt-webfont.svg +240 -0
- data/docs/source/fonts/FranklinGothic-MedCdIt-webfont.ttf +0 -0
- data/docs/source/fonts/FranklinGothic-MedCdIt-webfont.woff +0 -0
- data/docs/source/fonts/FranklinGothic-MedIt-webfont.eot +0 -0
- data/docs/source/fonts/FranklinGothic-MedIt-webfont.svg +240 -0
- data/docs/source/fonts/FranklinGothic-MedIt-webfont.ttf +0 -0
- data/docs/source/fonts/FranklinGothic-MedIt-webfont.woff +0 -0
- data/docs/source/fonts/License.txt +77 -0
- data/docs/source/fonts/susy.eot +0 -0
- data/docs/source/fonts/susy.svg +69 -0
- data/docs/source/fonts/susy.ttf +0 -0
- data/docs/source/fonts/susy.woff +0 -0
- data/docs/source/guides/getting-started.html.md +277 -0
- data/docs/source/guides/reference.html.md +658 -0
- data/docs/source/guides/upgrade-1-0.html.md +286 -0
- data/docs/source/humans.txt +45 -0
- data/docs/source/images/splash-iphone.png +0 -0
- data/docs/source/images/splash-iphone4.png +0 -0
- data/docs/source/images/splash-landscape.png +0 -0
- data/docs/source/images/splash-portrait.png +0 -0
- data/docs/source/index.html.md +87 -0
- data/docs/source/javascripts/jquery-1.7.1.min.js +4 -0
- data/docs/source/javascripts/jqwidont.js +5 -0
- data/docs/source/javascripts/modernizr-2.5.3.min.js +4 -0
- data/docs/source/javascripts/modernizr.selectors.js +55 -0
- data/docs/source/javascripts/viewport.js +9 -0
- data/docs/source/layouts/grid-types.haml +22 -0
- data/docs/source/layouts/layout.haml +34 -0
- data/docs/source/layouts/magic.haml +28 -0
- data/docs/source/partials/_contentinfo.haml +47 -0
- data/docs/source/partials/_demonav.haml +2 -0
- data/docs/source/partials/_google_analytics.haml +5 -0
- data/docs/source/partials/_head.haml +22 -0
- data/docs/source/partials/_javascripts.haml +4 -0
- data/docs/source/partials/_navigation.haml +15 -0
- data/docs/source/sites-using-susy.html.md +29 -0
- data/docs/source/stylesheets/_base/_base.scss +23 -0
- data/docs/source/stylesheets/_base/_colors.scss +47 -0
- data/docs/source/stylesheets/_base/_size.scss +49 -0
- data/docs/source/stylesheets/_base/_type.scss +19 -0
- data/docs/source/stylesheets/_demos/_demo.scss +28 -0
- data/docs/source/stylesheets/_demos/magic/_layout.scss +39 -0
- data/docs/source/stylesheets/_demos/magic/_style.scss +104 -0
- data/docs/source/stylesheets/_demos/types/_layouts.scss +88 -0
- data/docs/source/stylesheets/_demos/types/_template.scss +57 -0
- data/docs/source/stylesheets/_general/_century-oldstyle.scss +70 -0
- data/docs/source/stylesheets/_general/_font-license.scss +23 -0
- data/docs/source/stylesheets/_general/_fonts.scss +26 -0
- data/docs/source/stylesheets/_general/_franklin-gothic.scss +112 -0
- data/docs/source/stylesheets/_general/_icons.scss +86 -0
- data/docs/source/stylesheets/_general/_root.scss +79 -0
- data/docs/source/stylesheets/_general/_type.scss +114 -0
- data/docs/source/stylesheets/_layout.scss +48 -0
- data/docs/source/stylesheets/_modules/_ag-test.scss +59 -0
- data/docs/source/stylesheets/_modules/_banner.scss +61 -0
- data/docs/source/stylesheets/_modules/_contentinfo.scss +41 -0
- data/docs/source/stylesheets/_modules/_intro.scss +53 -0
- data/docs/source/stylesheets/_modules/_nav.scss +44 -0
- data/docs/source/stylesheets/_modules/_pages.scss +5 -0
- data/docs/source/stylesheets/_modules/_secondary.scss +22 -0
- data/docs/source/stylesheets/_modules/_toggle.scss +40 -0
- data/docs/source/stylesheets/_vendor/pygments/solarized.scss +65 -0
- data/docs/source/stylesheets/grid-types.css.scss +6 -0
- data/docs/source/stylesheets/magic.css.scss +6 -0
- data/docs/source/stylesheets/site.css.scss +27 -0
- data/lib/susy.rb +12 -1
- data/sass/README.md +33 -0
- data/sass/_susy.scss +55 -16
- data/sass/susy/_api.scss +39 -0
- data/sass/susy/_grids.scss +2 -0
- data/sass/susy/_gutters.scss +2 -0
- data/sass/susy/_helpers.scss +14 -0
- data/sass/susy/_language.scss +3 -0
- data/sass/susy/_math.scss +3 -0
- data/sass/susy/api/_float.scss +72 -0
- data/sass/susy/api/_isolation.scss +16 -0
- data/sass/susy/grids/_add.scss +10 -0
- data/sass/susy/grids/_find.scss +10 -0
- data/sass/susy/gutters/_add.scss +10 -0
- data/sass/susy/gutters/_find.scss +10 -0
- data/sass/susy/helpers/_background-grid.scss +65 -0
- data/sass/susy/helpers/_box-sizing.scss +25 -0
- data/sass/susy/helpers/_clearfix.scss +51 -0
- data/sass/susy/helpers/_columns.scss +15 -0
- data/sass/susy/helpers/_find.scss +63 -0
- data/sass/susy/helpers/_sass-lists.scss +71 -0
- data/sass/susy/helpers/_span-shared.scss +9 -0
- data/sass/susy/language/_parse-add.scss +19 -0
- data/sass/susy/language/_parse-list.scss +53 -0
- data/sass/susy/language/_span.scss +20 -0
- data/sass/susy/math/_columns.scss +70 -0
- data/sass/susy/math/_context.scss +3 -0
- data/sass/susy/math/_gutters.scss +11 -0
- data/templates/box-sizing/behaviors/box-sizing/boxsizing.htc +399 -0
- data/templates/box-sizing/behaviors/box-sizing/boxsizing.php +23 -0
- data/templates/box-sizing/manifest.rb +4 -0
- data/templates/project/README.md +59 -0
- data/templates/project/_base.scss +0 -10
- data/templates/project/behaviors/box-sizing/boxsizing.htc +399 -0
- data/templates/project/behaviors/box-sizing/boxsizing.php +23 -0
- data/templates/project/manifest.rb +3 -0
- data/templates/project/screen.scss +0 -8
- metadata +200 -43
- data/Manifest +0 -39
- data/Rakefile +0 -19
- data/VERSION +0 -1
- data/sass/susy/_background.scss +0 -18
- data/sass/susy/_functions.scss +0 -376
- data/sass/susy/_grid.scss +0 -286
- data/sass/susy/_isolation.scss +0 -51
- data/sass/susy/_margin.scss +0 -93
- data/sass/susy/_media.scss +0 -112
- data/sass/susy/_padding.scss +0 -92
- data/sass/susy/_settings.scss +0 -56
- data/sass/susy/_support.scss +0 -198
- data/sass/susy/_units.scss +0 -159
- data/susy.gemspec +0 -35
- data/test/config.rb +0 -10
- data/test/css/background.css +0 -16
- data/test/css/bleed.css +0 -20
- data/test/css/functions.css +0 -7
- data/test/css/grid.css +0 -134
- data/test/css/isolation.css +0 -46
- data/test/css/margin.css +0 -20
- data/test/css/media.css +0 -101
- data/test/css/padding.css +0 -12
- data/test/scss/background.scss +0 -11
- data/test/scss/bleed.scss +0 -19
- data/test/scss/functions.scss +0 -15
- data/test/scss/grid.scss +0 -77
- data/test/scss/isolation.scss +0 -19
- data/test/scss/margin.scss +0 -27
- data/test/scss/media.scss +0 -50
- data/test/scss/padding.scss +0 -19
@@ -0,0 +1,41 @@
|
|
1
|
+
//-----------------------------------------------------------------------------
|
2
|
+
// Site Banner
|
3
|
+
|
4
|
+
[role="contentinfo"] {
|
5
|
+
@include clearfix;
|
6
|
+
@include text-shadow($susy-highlight-dark-10 0 1px 0);
|
7
|
+
background: $susy-highlight;
|
8
|
+
color: $susy-background-dark-5;
|
9
|
+
margin: 0 0 - $grid-padding;
|
10
|
+
padding: rhythm(1) $grid-padding;
|
11
|
+
a {
|
12
|
+
#{$link} {
|
13
|
+
font-family: $caps-stack;
|
14
|
+
color: $susy-background-dark-20;
|
15
|
+
}
|
16
|
+
#{$focus} {
|
17
|
+
color: $susy-background;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
@include at-breakpoint($break) {
|
21
|
+
.colophon { @include span-columns(7 omega,10); }
|
22
|
+
.license { @include span-columns(3,10); }
|
23
|
+
}
|
24
|
+
.caps {
|
25
|
+
font-family: $caps-stack;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.colophon {
|
30
|
+
p { @include trailer; }
|
31
|
+
}
|
32
|
+
|
33
|
+
.license {
|
34
|
+
font-family: $caps-stack;
|
35
|
+
text-transform: lowercase;
|
36
|
+
a {
|
37
|
+
#{$link} {
|
38
|
+
white-space: nowrap;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
//-----------------------------------------------------------------------------
|
2
|
+
// Intro
|
3
|
+
|
4
|
+
%serif-type {
|
5
|
+
@include adjust-font-size-to($medpx);
|
6
|
+
h2 { @include adjust-font-size-to($largepx,1.5,$medpx); }
|
7
|
+
p { @include trailer(1,$medpx); }
|
8
|
+
strong { font-weight: bold; }
|
9
|
+
em { font-style: italic; }
|
10
|
+
}
|
11
|
+
|
12
|
+
.download {
|
13
|
+
@include adjust-font-size-to($medpx);
|
14
|
+
@include rhythm-borders(1px,.5,$medpx);
|
15
|
+
@include leader(-.5,$medpx);
|
16
|
+
@include trailer(1,$medpx);
|
17
|
+
@include box-sizing(border-box);
|
18
|
+
border-color: $susy-background-dark-20;
|
19
|
+
background: $susy-background-dark-10;
|
20
|
+
font-weight: bold;
|
21
|
+
text-align: center;
|
22
|
+
text-transform: uppercase;
|
23
|
+
letter-spacing: .1em;
|
24
|
+
@include at-breakpoint($break) { @include span-columns(5 omega); }
|
25
|
+
}
|
26
|
+
|
27
|
+
.highlight {
|
28
|
+
color: $susy-bodycopy-dark-20;
|
29
|
+
font-weight: bold;
|
30
|
+
}
|
31
|
+
|
32
|
+
.intro {
|
33
|
+
@extend %serif-type;
|
34
|
+
@include trailer(1,$medpx);
|
35
|
+
p {
|
36
|
+
&:last-child { font-style: italic; }
|
37
|
+
}
|
38
|
+
@include at-breakpoint($break) { @include span-columns(5); }
|
39
|
+
}
|
40
|
+
|
41
|
+
.info {
|
42
|
+
p { margin: 0; }
|
43
|
+
strong { color: $susy-bodycopy-dark-10; }
|
44
|
+
@include at-breakpoint($break) { @include span-columns(5 omega); }
|
45
|
+
}
|
46
|
+
|
47
|
+
.andmore {
|
48
|
+
@extend %serif-type;
|
49
|
+
p:last-child { font-style: italic; }
|
50
|
+
@include at-breakpoint(50em 10) {
|
51
|
+
@include span-columns(5 omega,10);
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
//-----------------------------------------------------------------------------
|
2
|
+
// Site Nav
|
3
|
+
|
4
|
+
[role="navigation"] {
|
5
|
+
@include trailer(1);
|
6
|
+
background: $base2;
|
7
|
+
background: rgba($base2,.5);
|
8
|
+
font-style: italic;
|
9
|
+
|
10
|
+
ul { @include inline-block-list; }
|
11
|
+
|
12
|
+
a {
|
13
|
+
#{$link} {
|
14
|
+
@extend %icon;
|
15
|
+
display: block;
|
16
|
+
padding: rhythm(.25) rhythm(.5);
|
17
|
+
color: $susy-bodycopy;
|
18
|
+
&[href*='github'] { @extend %icon-github; }
|
19
|
+
&[href*='twitter'] { @extend %icon-twitter; }
|
20
|
+
&[href*='stackoverflow'] { @extend %icon-comment; }
|
21
|
+
&[href*='getting-started'] {
|
22
|
+
@extend %icon-switch;
|
23
|
+
.guides_getting-started &, .tutorial & { color: $susy-bodycopy-dark-10; }
|
24
|
+
}
|
25
|
+
&[href*='reference'] {
|
26
|
+
@extend %icon-list;
|
27
|
+
.guides_reference & { color: $susy-bodycopy-dark-10; }
|
28
|
+
}
|
29
|
+
&[href*='sites-using-susy'] {
|
30
|
+
@extend %icon-pictures;
|
31
|
+
.sites-using-susy & { color: $susy-bodycopy-dark-10; }
|
32
|
+
}
|
33
|
+
&[href*='demos'] {
|
34
|
+
@extend %icon-cog;
|
35
|
+
.demos & { color: $susy-bodycopy-dark-10; }
|
36
|
+
}
|
37
|
+
}
|
38
|
+
#{$focus} {color: $susy-highlight-dark-20; }
|
39
|
+
}
|
40
|
+
|
41
|
+
@include at-breakpoint($break) {
|
42
|
+
@include trailer(2);
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
//-----------------------------------------------------------------------------
|
2
|
+
// Secondary Content
|
3
|
+
|
4
|
+
.secondary {
|
5
|
+
@include sans;
|
6
|
+
|
7
|
+
h2 {
|
8
|
+
@extend .caps;
|
9
|
+
a { color: $susy-bodycopy-dark-5; }
|
10
|
+
~ h2, ~ h3 { @include leader(1); }
|
11
|
+
}
|
12
|
+
h2, h3 { font-weight: bold; }
|
13
|
+
}
|
14
|
+
|
15
|
+
.version {
|
16
|
+
@include leader(1.25);
|
17
|
+
@include trailer(1.25);
|
18
|
+
font-family: $caps-stack;
|
19
|
+
color: $susy-bodycopy-dark-10;
|
20
|
+
text-transform: lowercase;
|
21
|
+
span { color: $susy-bodycopy; }
|
22
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
//-----------------------------------------------------------------------------
|
2
|
+
// Grid Toggle
|
3
|
+
|
4
|
+
.grid-toggle {
|
5
|
+
display: none;
|
6
|
+
position: absolute;
|
7
|
+
top: .5em;
|
8
|
+
right: $grid-padding;
|
9
|
+
.target & { display: block; }
|
10
|
+
}
|
11
|
+
|
12
|
+
.on, .off {
|
13
|
+
a {
|
14
|
+
#{$link} {
|
15
|
+
@extend %icon-replace;
|
16
|
+
@extend %icon-list-2;
|
17
|
+
@include transition(all 300ms);
|
18
|
+
@include adjust-font-size-to($medpx);
|
19
|
+
position: relative;
|
20
|
+
width: rhythm(1.5,$medpx);
|
21
|
+
color: $susy-background-dark-20;
|
22
|
+
}
|
23
|
+
#{$focus} {
|
24
|
+
color: $susy-bodycopy;
|
25
|
+
}
|
26
|
+
&::before {
|
27
|
+
@include rotate(90deg);
|
28
|
+
@include stretch;
|
29
|
+
text-indent: 0;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
.off a {
|
34
|
+
#{$link} {
|
35
|
+
display: none;
|
36
|
+
color: $susy-highlight;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
.on a { display: block; }
|
40
|
+
|
@@ -0,0 +1,65 @@
|
|
1
|
+
.highlight { background-color: #f4f4f4; border: solid 1px #eee; }
|
2
|
+
.c { color: #93a1a1; font-style: italic } /* Comment */
|
3
|
+
.g { color: #d33682 } /* Generic */
|
4
|
+
.k { color: #859900 } /* Keyword */
|
5
|
+
.l { color: #2aa198 } /* Literal */
|
6
|
+
.n { color: #268bd2 } /* Name */
|
7
|
+
.cm { color: #93a1a1; font-style: italic } /* Comment.Multiline */
|
8
|
+
.cp { color: #93a1a1; font-style: italic } /* Comment.Preproc */
|
9
|
+
.c1 { color: #93a1a1; font-style: italic } /* Comment.Single */
|
10
|
+
.cs { color: #93a1a1; font-style: italic } /* Comment.Special */
|
11
|
+
.gd { color: #d33682 } /* Generic.Deleted */
|
12
|
+
.ge { color: #d33682 } /* Generic.Emph */
|
13
|
+
.gr { color: #d33682 } /* Generic.Error */
|
14
|
+
.gh { color: #d33682 } /* Generic.Heading */
|
15
|
+
.gi { color: #d33682 } /* Generic.Inserted */
|
16
|
+
.go { color: #d33682 } /* Generic.Output */
|
17
|
+
.gp { color: #d33682 } /* Generic.Prompt */
|
18
|
+
.gs { color: #d33682 } /* Generic.Strong */
|
19
|
+
.gu { color: #d33682 } /* Generic.Subheading */
|
20
|
+
.gt { color: #d33682 } /* Generic.Traceback */
|
21
|
+
.kc { color: #859900; font-weight: bold } /* Keyword.Constant */
|
22
|
+
.kd { color: #859900 } /* Keyword.Declaration */
|
23
|
+
.kn { color: #dc322f; font-weight: bold } /* Keyword.Namespace */
|
24
|
+
.kp { color: #859900 } /* Keyword.Pseudo */
|
25
|
+
.kr { color: #859900 } /* Keyword.Reserved */
|
26
|
+
.kt { color: #859900; font-weight: bold } /* Keyword.Type */
|
27
|
+
.ld { color: #2aa198 } /* Literal.Date */
|
28
|
+
.m { color: #2aa198; font-weight: bold } /* Literal.Number */
|
29
|
+
.s { color: #2aa198 } /* Literal.String */
|
30
|
+
.na { color: #268bd2 } /* Name.Attribute */
|
31
|
+
.nb { color: #cb4b16 } /* Name.Builtin */
|
32
|
+
.nc { color: #cb4b16 } /* Name.Class */
|
33
|
+
.no { color: #268bd2 } /* Name.Constant */
|
34
|
+
.nd { color: #268bd2 } /* Name.Decorator */
|
35
|
+
.ni { color: #268bd2 } /* Name.Entity */
|
36
|
+
.ne { color: #268bd2 } /* Name.Exception */
|
37
|
+
.nf { color: #268bd2 } /* Name.Function */
|
38
|
+
.nl { color: #268bd2 } /* Name.Label */
|
39
|
+
.nn { color: #268bd2 } /* Name.Namespace */
|
40
|
+
.nx { color: #268bd2 } /* Name.Other */
|
41
|
+
.py { color: #268bd2 } /* Name.Property */
|
42
|
+
.nt { color: #268bd2; font-weight: bold } /* Name.Tag */
|
43
|
+
.nv { color: #268bd2 } /* Name.Variable */
|
44
|
+
.ow { color: #859900 } /* Operator.Word */
|
45
|
+
.w { color: #586e75 } /* Text.Whitespace */
|
46
|
+
.mf { color: #2aa198; font-weight: bold } /* Literal.Number.Float */
|
47
|
+
.mh { color: #2aa198; font-weight: bold } /* Literal.Number.Hex */
|
48
|
+
.mi { color: #2aa198; font-weight: bold } /* Literal.Number.Integer */
|
49
|
+
.mo { color: #2aa198; font-weight: bold } /* Literal.Number.Oct */
|
50
|
+
.sb { color: #2aa198 } /* Literal.String.Backtick */
|
51
|
+
.sc { color: #2aa198 } /* Literal.String.Char */
|
52
|
+
.sd { color: #2aa198 } /* Literal.String.Doc */
|
53
|
+
.s2 { color: #2aa198 } /* Literal.String.Double */
|
54
|
+
.se { color: #2aa198 } /* Literal.String.Escape */
|
55
|
+
.sh { color: #2aa198 } /* Literal.String.Heredoc */
|
56
|
+
.si { color: #2aa198 } /* Literal.String.Interpol */
|
57
|
+
.sx { color: #2aa198 } /* Literal.String.Other */
|
58
|
+
.sr { color: #2aa198 } /* Literal.String.Regex */
|
59
|
+
.s1 { color: #2aa198 } /* Literal.String.Single */
|
60
|
+
.ss { color: #2aa198 } /* Literal.String.Symbol */
|
61
|
+
.bp { color: #cb4b16 } /* Name.Builtin.Pseudo */
|
62
|
+
.vc { color: #268bd2 } /* Name.Variable.Class */
|
63
|
+
.vg { color: #268bd2 } /* Name.Variable.Global */
|
64
|
+
.vi { color: #268bd2 } /* Name.Variable.Instance */
|
65
|
+
.il { color: #2aa198; font-weight: bold } /* Literal.Number.Integer.Long */
|
@@ -0,0 +1,27 @@
|
|
1
|
+
//-----------------------------------------------------------------------------
|
2
|
+
// Base
|
3
|
+
|
4
|
+
@import "_base/base";
|
5
|
+
|
6
|
+
//-----------------------------------------------------------------------------
|
7
|
+
// General
|
8
|
+
|
9
|
+
@import "_general/root";
|
10
|
+
@import "_general/type";
|
11
|
+
|
12
|
+
//-----------------------------------------------------------------------------
|
13
|
+
// Layout
|
14
|
+
|
15
|
+
@import "layout";
|
16
|
+
|
17
|
+
//-----------------------------------------------------------------------------
|
18
|
+
// Modules
|
19
|
+
|
20
|
+
@import "_modules/banner";
|
21
|
+
@import "_modules/nav";
|
22
|
+
@import "_modules/toggle";
|
23
|
+
@import "_modules/ag-test";
|
24
|
+
@import "_modules/secondary";
|
25
|
+
@import "_modules/contentinfo";
|
26
|
+
@import "_modules/intro";
|
27
|
+
@import "_modules/pages";
|
data/lib/susy.rb
CHANGED
@@ -1,4 +1,15 @@
|
|
1
1
|
require 'compass'
|
2
|
+
require 'breakpoint'
|
2
3
|
Compass::Frameworks.register('susy',
|
3
4
|
:stylesheets_directory => File.join(File.dirname(__FILE__), '..', 'sass'),
|
4
|
-
:templates_directory => File.join(File.dirname(__FILE__), '..', 'templates'))
|
5
|
+
:templates_directory => File.join(File.dirname(__FILE__), '..', 'templates'))
|
6
|
+
|
7
|
+
module Sass::Script::Functions
|
8
|
+
|
9
|
+
# Convert a grid piece from strings to numbers
|
10
|
+
def grid_to_numbers(piece)
|
11
|
+
items = piece.to_s.split(' ')
|
12
|
+
Sass::Script::List.new(items.map{|i| Sass::Script::Number.new(i.to_f)}, :comma)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
data/sass/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
SUSY NEXT
|
2
|
+
============================
|
3
|
+
|
4
|
+
## Guiding Principles
|
5
|
+
|
6
|
+
Susy Next is a next-generation css layout system,
|
7
|
+
allowing a single natural-language input API
|
8
|
+
to create any structural output you might want.
|
9
|
+
|
10
|
+
* The input API must be output-system agnostic.
|
11
|
+
* The input API must be easy to use.
|
12
|
+
* The output style must always be defined by the user.
|
13
|
+
* The system must be future friendly.
|
14
|
+
* The system must be cross-browser compatible.
|
15
|
+
* We will not assume anything about the source HTML.
|
16
|
+
|
17
|
+
## A Separation of Concerns
|
18
|
+
|
19
|
+
In order to accomplish that flexibility,
|
20
|
+
we need to split the Susy architecture into segments:
|
21
|
+
|
22
|
+
1. Input Layer
|
23
|
+
* User facing
|
24
|
+
* Natural language keywords/sentence structure
|
25
|
+
* User facing global variables
|
26
|
+
2. Translation Layer
|
27
|
+
* Translates Input into local variables to be used to calculate output
|
28
|
+
3. Plugin API
|
29
|
+
* Architecture to allow for plugins. Ideally utilizing [Mixin Interpolation](https://github.com/nex3/sass/issues/626) but, until that's available, I suggest a system [similar to this](https://github.com/Snugug/sass-api-test)
|
30
|
+
4. Output Layer
|
31
|
+
* Actual output of CSS
|
32
|
+
* Defined by individual output systems
|
33
|
+
* Shared components are allowed and encouraged (width calculations are going to be more or less the same, for instance)
|
data/sass/_susy.scss
CHANGED
@@ -1,16 +1,55 @@
|
|
1
|
-
|
2
|
-
//
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
//////////////////////////////
|
2
|
+
// Import Required Extensions
|
3
|
+
//////////////////////////////
|
4
|
+
@import "breakpoint";
|
5
|
+
|
6
|
+
//////////////////////////////
|
7
|
+
// Default Variables
|
8
|
+
//////////////////////////////
|
9
|
+
|
10
|
+
// The grids being used
|
11
|
+
$grids: () !default;
|
12
|
+
|
13
|
+
// The gutters of the inner columns of the grid
|
14
|
+
$gutters: () !default;
|
15
|
+
|
16
|
+
// Specifies whether or not you're building mobile-first grids. Defaults to true
|
17
|
+
// $mobile-first: true;
|
18
|
+
|
19
|
+
// Default output style.
|
20
|
+
$output: 'float' !default;
|
21
|
+
|
22
|
+
// Whether or not to include border-box or clearfix with all spans
|
23
|
+
$include-border-box: false !default;
|
24
|
+
$include-clearfix: false !default;
|
25
|
+
$include-clear: true !default;
|
26
|
+
|
27
|
+
//////////////////////////////
|
28
|
+
// Import General Helpers
|
29
|
+
//////////////////////////////
|
30
|
+
@import "susy/helpers";
|
31
|
+
|
32
|
+
//////////////////////////////
|
33
|
+
// Import Language Helpers
|
34
|
+
//////////////////////////////
|
35
|
+
@import "susy/language";
|
36
|
+
|
37
|
+
//////////////////////////////
|
38
|
+
// Import Math
|
39
|
+
//////////////////////////////
|
40
|
+
@import "susy/math";
|
41
|
+
|
42
|
+
//////////////////////////////
|
43
|
+
// Import Grid Helpers
|
44
|
+
//////////////////////////////
|
45
|
+
@import "susy/grids";
|
46
|
+
|
47
|
+
//////////////////////////////
|
48
|
+
// Import Gutters Helpers
|
49
|
+
//////////////////////////////
|
50
|
+
@import "susy/gutters";
|
51
|
+
|
52
|
+
//////////////////////////////
|
53
|
+
// Import APIs
|
54
|
+
//////////////////////////////
|
55
|
+
@import "susy/api";
|