From c7fdc0c854bf84c3a6de185547e749a9c4a1af06 Mon Sep 17 00:00:00 2001 From: Nikolas Wise Date: Fri, 29 Aug 2014 10:19:01 -0700 Subject: [PATCH 1/2] name space all files properly --- docs/source/assets/stylesheets/all.css.scss | 53 +++ docs/source/index.html.erb | 307 +++++++++++++++++- lib/stylesheets/calcite-web.scss | 18 +- .../{_modular-scale.scss => _type-scale.scss} | 0 .../calcite-web/type/type-cabinet.scss | 2 +- ..._appearance.scss => _util-appearance.scss} | 0 ..._box-sizing.scss => _util-box-sizing.scss} | 0 .../utils/{_calc.scss => _util-calc.scss} | 0 .../{_clearfix.scss => _util-clearfix.scss} | 0 .../{_prefixer.scss => _util-prefixer.scss} | 0 ..._responsive.scss => _util-responsive.scss} | 0 .../{_transform.scss => _util-transform.scss} | 0 ..._transition.scss => _util-transition.scss} | 0 ..._visibility.scss => _util-visibility.scss} | 0 14 files changed, 369 insertions(+), 11 deletions(-) rename lib/stylesheets/calcite-web/type/{_modular-scale.scss => _type-scale.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_appearance.scss => _util-appearance.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_box-sizing.scss => _util-box-sizing.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_calc.scss => _util-calc.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_clearfix.scss => _util-clearfix.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_prefixer.scss => _util-prefixer.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_responsive.scss => _util-responsive.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_transform.scss => _util-transform.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_transition.scss => _util-transition.scss} (100%) rename lib/stylesheets/calcite-web/utils/{_visibility.scss => _util-visibility.scss} (100%) diff --git a/docs/source/assets/stylesheets/all.css.scss b/docs/source/assets/stylesheets/all.css.scss index f9f600e09..5b227a4bb 100644 --- a/docs/source/assets/stylesheets/all.css.scss +++ b/docs/source/assets/stylesheets/all.css.scss @@ -1,2 +1,55 @@ @import "github"; @import "calcite-web"; + +// TEST +.grid-example [class*="column-"] { + span { + width: 100%; + display: block; + color: $white; + background-color: rgba(blue, 0.6); + font-family: monospace; + padding-top: 2em; + padding-bottom: 2em; + margin-top: 1em; + text-align: center; + } +} + +.nested-demo [class*="column-"] { + [class*="column-"] { + span { + background-color: rgba(blue, 0.4); + } + [class*="column-"] { + span { + background-color: rgba(blue, 0.2); + } + [class*="column-"] { + span { + background-color: rgba(blue, 0.1); + } + } + } + } +} + +.gridlines { + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: -10; + div { + height: 100vh; + } + span { + @include box-sizing(border-box); + height: 100vh; + width: 100%; + display: inline-block; + background-color: rgba($gray, 0.05); + border: 1px solid $lighter-gray; + } +} \ No newline at end of file diff --git a/docs/source/index.html.erb b/docs/source/index.html.erb index d5e7b16ea..18555851b 100644 --- a/docs/source/index.html.erb +++ b/docs/source/index.html.erb @@ -5,4 +5,309 @@ title: Homepage <%# a sample styleguide block with modifier classes %> <% styleguide "1.1" do %>
Sample Component
-<% end %> \ No newline at end of file +<% end %> + +
+

Avenir Next

+

+ Frutiger +

+

+ Charter +

+
+ + +
+
24
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
+ +
+
+
+ {{md 'site/source/copy/columns.md'}} +
+
+
+ +
+
1
+
.column-23
+
2
+
.column-22
+
3
+
.column-21
+
4
+
.column-20
+
.column-5
+
.column-19
+
.column-6
+
.column-18
+
.column-7
+
.column-17
+
.column-8
+
.column-16
+
.column-9
+
.column-15
+
.column-10
+
.column-14
+
.column-11
+
.column-13
+
.column-12
+
.column-12
+
+ +
+
+
+ {{md 'site/source/copy/responsive-columns.md'}} +
+
+
+ +
+
+
+ 1 + .tablet-column-4 + .phone-column-1 +
+
+ .column-23 + .tablet-column-8 + .phone-column-5 +
+
+ +
+
+ 2 + .tablet-column-8 + .phone-column-5 +
+
+ .column-22 + .tablet-column-4 + .phone-column-1 +
+
+ +
+
+ .column-3 + .tablet-5 + .phone-column-2 +
+
+ .column-21 + .tablet-7 + .phone-column-4 +
+
+ +
+
+ .column-4 + .tablet-7 + .phone-column-4 +
+
+ .column-20 + .tablet-5 + .phone-column-2 +
+
+ +
+
+ .column-5 + .tablet-6 + .phone-column-3 +
+
+ .column-19 + .tablet-6 + .phone-column-3 +
+
+ +
+
+ .column-6 + .tablet-6 + .phone-column-3 +
+
+ .column-18 + .tablet-6 + .phone-column-3 +
+
+
+ +
+
+
+ {{md 'site/source/copy/nested-columns.md'}} +
+
+
+ +
+
+ .column-18 + .tablet-column-8 + +
+ .column-4 + .tablet-column-4 + +
1 + .tablet-column-4
+
1 + .tablet-column-4
+
1 + .tablet-column-4
+
1 + .tablet-column-4
+
+ +
2 + .tablet-column-4
+ +
+ 10 + .tablet-column-8 +
+ .column-5 + .tablet-column-4 +
+
+ .column-5 + .tablet-column-4 +
+ 2 + .tablet-column-4 +
+
+ .column-3 + .tablet-column-4 +
+ +
+
+ +
1 + .tablet-column-4
+
1 + .tablet-column-5
+
+ +
+ .column-6 + .tablet-column-4 + +
+ .column-6 + .tablet-column-4 +
.column-4 + .tablet-column-2
+
2 + .tablet-column-2
+
+ +
.column-4 + .tablet-column-4
+
+
+ + +
+
+
+ {{md 'site/source/copy/columns-as-row.md'}} +
+
+
+ +
+
.column-2 With a lot of content, so it pushes down.
+
.column-22
+
.column-4
+
.column-4
+
.column-4
+ +
+
.column-2 With a lot of content, so it pushes down.
+
.column-22
+
+
.column-4
+
.column-4
+
.column-4
+
+ + + + + +
+
+
+ {{md 'site/source/copy/pre-post.md'}} +
+
+
+ +
+ +
+
4 pre-2
+
4 pre-3
+
4 pre-4
+
+ +
+
4 post-2
+
4 post-3
+
4 post-4
+
3
+
+ +
+
1
+
4 pre-1 post-2
+
4 pre-2 post-2
+
4 pre-1 post-2
+
1
+
+
\ No newline at end of file diff --git a/lib/stylesheets/calcite-web.scss b/lib/stylesheets/calcite-web.scss index 631ebcc00..413805421 100644 --- a/lib/stylesheets/calcite-web.scss +++ b/lib/stylesheets/calcite-web.scss @@ -31,15 +31,15 @@ $include-type: true !default; // Utils // Micro-Framework adpated from Compass and Bourbon // Provides basic prefixing and standard mixins -@import "calcite-web/utils/appearance"; -@import "calcite-web/utils/box-sizing"; -@import "calcite-web/utils/calc"; -@import "calcite-web/utils/clearfix"; -@import "calcite-web/utils/prefixer"; -@import "calcite-web/utils/responsive"; -@import "calcite-web/utils/transform"; -@import "calcite-web/utils/transition"; -@import "calcite-web/utils/visibility"; +@import "calcite-web/utils/util-appearance"; +@import "calcite-web/utils/util-box-sizing"; +@import "calcite-web/utils/util-calc"; +@import "calcite-web/utils/util-clearfix"; +@import "calcite-web/utils/util-prefixer"; +@import "calcite-web/utils/util-responsive"; +@import "calcite-web/utils/util-transform"; +@import "calcite-web/utils/util-transition"; +@import "calcite-web/utils/util-visibility"; // Layout // structural level styles: grid, helper classes... diff --git a/lib/stylesheets/calcite-web/type/_modular-scale.scss b/lib/stylesheets/calcite-web/type/_type-scale.scss similarity index 100% rename from lib/stylesheets/calcite-web/type/_modular-scale.scss rename to lib/stylesheets/calcite-web/type/_type-scale.scss diff --git a/lib/stylesheets/calcite-web/type/type-cabinet.scss b/lib/stylesheets/calcite-web/type/type-cabinet.scss index b85434078..340220272 100644 --- a/lib/stylesheets/calcite-web/type/type-cabinet.scss +++ b/lib/stylesheets/calcite-web/type/type-cabinet.scss @@ -10,5 +10,5 @@ @import 'type-unicode-variables'; @import 'typesetting-mixins'; @import 'type-faces'; -@import 'modular-scale'; +@import 'type-scale'; @import 'type-styles'; diff --git a/lib/stylesheets/calcite-web/utils/_appearance.scss b/lib/stylesheets/calcite-web/utils/_util-appearance.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_appearance.scss rename to lib/stylesheets/calcite-web/utils/_util-appearance.scss diff --git a/lib/stylesheets/calcite-web/utils/_box-sizing.scss b/lib/stylesheets/calcite-web/utils/_util-box-sizing.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_box-sizing.scss rename to lib/stylesheets/calcite-web/utils/_util-box-sizing.scss diff --git a/lib/stylesheets/calcite-web/utils/_calc.scss b/lib/stylesheets/calcite-web/utils/_util-calc.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_calc.scss rename to lib/stylesheets/calcite-web/utils/_util-calc.scss diff --git a/lib/stylesheets/calcite-web/utils/_clearfix.scss b/lib/stylesheets/calcite-web/utils/_util-clearfix.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_clearfix.scss rename to lib/stylesheets/calcite-web/utils/_util-clearfix.scss diff --git a/lib/stylesheets/calcite-web/utils/_prefixer.scss b/lib/stylesheets/calcite-web/utils/_util-prefixer.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_prefixer.scss rename to lib/stylesheets/calcite-web/utils/_util-prefixer.scss diff --git a/lib/stylesheets/calcite-web/utils/_responsive.scss b/lib/stylesheets/calcite-web/utils/_util-responsive.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_responsive.scss rename to lib/stylesheets/calcite-web/utils/_util-responsive.scss diff --git a/lib/stylesheets/calcite-web/utils/_transform.scss b/lib/stylesheets/calcite-web/utils/_util-transform.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_transform.scss rename to lib/stylesheets/calcite-web/utils/_util-transform.scss diff --git a/lib/stylesheets/calcite-web/utils/_transition.scss b/lib/stylesheets/calcite-web/utils/_util-transition.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_transition.scss rename to lib/stylesheets/calcite-web/utils/_util-transition.scss diff --git a/lib/stylesheets/calcite-web/utils/_visibility.scss b/lib/stylesheets/calcite-web/utils/_util-visibility.scss similarity index 100% rename from lib/stylesheets/calcite-web/utils/_visibility.scss rename to lib/stylesheets/calcite-web/utils/_util-visibility.scss From 152da91f3202a5dbd64fd0311cc6593da601747f Mon Sep 17 00:00:00 2001 From: Nikolas Wise Date: Fri, 29 Aug 2014 10:28:31 -0700 Subject: [PATCH 2/2] namespace properly --- lib/sass/calcite-web.scss | 18 +++++++++--------- .../{_modular-scale.scss => _type-scale.scss} | 0 ...{_appearance.scss => _util-appearance.scss} | 0 ...{_box-sizing.scss => _util-box-sizing.scss} | 0 .../utils/{_calc.scss => _util-calc.scss} | 0 .../{_clearfix.scss => _util-clearfix.scss} | 0 .../{_prefixer.scss => _util-prefixer.scss} | 0 ...{_responsive.scss => _util-responsive.scss} | 0 .../{_transform.scss => _util-transform.scss} | 0 ...{_transition.scss => _util-transition.scss} | 0 ...{_visibility.scss => _util-visibility.scss} | 0 11 files changed, 9 insertions(+), 9 deletions(-) rename lib/sass/calcite-web/type/{_modular-scale.scss => _type-scale.scss} (100%) rename lib/sass/calcite-web/utils/{_appearance.scss => _util-appearance.scss} (100%) rename lib/sass/calcite-web/utils/{_box-sizing.scss => _util-box-sizing.scss} (100%) rename lib/sass/calcite-web/utils/{_calc.scss => _util-calc.scss} (100%) rename lib/sass/calcite-web/utils/{_clearfix.scss => _util-clearfix.scss} (100%) rename lib/sass/calcite-web/utils/{_prefixer.scss => _util-prefixer.scss} (100%) rename lib/sass/calcite-web/utils/{_responsive.scss => _util-responsive.scss} (100%) rename lib/sass/calcite-web/utils/{_transform.scss => _util-transform.scss} (100%) rename lib/sass/calcite-web/utils/{_transition.scss => _util-transition.scss} (100%) rename lib/sass/calcite-web/utils/{_visibility.scss => _util-visibility.scss} (100%) diff --git a/lib/sass/calcite-web.scss b/lib/sass/calcite-web.scss index 631ebcc00..413805421 100644 --- a/lib/sass/calcite-web.scss +++ b/lib/sass/calcite-web.scss @@ -31,15 +31,15 @@ $include-type: true !default; // Utils // Micro-Framework adpated from Compass and Bourbon // Provides basic prefixing and standard mixins -@import "calcite-web/utils/appearance"; -@import "calcite-web/utils/box-sizing"; -@import "calcite-web/utils/calc"; -@import "calcite-web/utils/clearfix"; -@import "calcite-web/utils/prefixer"; -@import "calcite-web/utils/responsive"; -@import "calcite-web/utils/transform"; -@import "calcite-web/utils/transition"; -@import "calcite-web/utils/visibility"; +@import "calcite-web/utils/util-appearance"; +@import "calcite-web/utils/util-box-sizing"; +@import "calcite-web/utils/util-calc"; +@import "calcite-web/utils/util-clearfix"; +@import "calcite-web/utils/util-prefixer"; +@import "calcite-web/utils/util-responsive"; +@import "calcite-web/utils/util-transform"; +@import "calcite-web/utils/util-transition"; +@import "calcite-web/utils/util-visibility"; // Layout // structural level styles: grid, helper classes... diff --git a/lib/sass/calcite-web/type/_modular-scale.scss b/lib/sass/calcite-web/type/_type-scale.scss similarity index 100% rename from lib/sass/calcite-web/type/_modular-scale.scss rename to lib/sass/calcite-web/type/_type-scale.scss diff --git a/lib/sass/calcite-web/utils/_appearance.scss b/lib/sass/calcite-web/utils/_util-appearance.scss similarity index 100% rename from lib/sass/calcite-web/utils/_appearance.scss rename to lib/sass/calcite-web/utils/_util-appearance.scss diff --git a/lib/sass/calcite-web/utils/_box-sizing.scss b/lib/sass/calcite-web/utils/_util-box-sizing.scss similarity index 100% rename from lib/sass/calcite-web/utils/_box-sizing.scss rename to lib/sass/calcite-web/utils/_util-box-sizing.scss diff --git a/lib/sass/calcite-web/utils/_calc.scss b/lib/sass/calcite-web/utils/_util-calc.scss similarity index 100% rename from lib/sass/calcite-web/utils/_calc.scss rename to lib/sass/calcite-web/utils/_util-calc.scss diff --git a/lib/sass/calcite-web/utils/_clearfix.scss b/lib/sass/calcite-web/utils/_util-clearfix.scss similarity index 100% rename from lib/sass/calcite-web/utils/_clearfix.scss rename to lib/sass/calcite-web/utils/_util-clearfix.scss diff --git a/lib/sass/calcite-web/utils/_prefixer.scss b/lib/sass/calcite-web/utils/_util-prefixer.scss similarity index 100% rename from lib/sass/calcite-web/utils/_prefixer.scss rename to lib/sass/calcite-web/utils/_util-prefixer.scss diff --git a/lib/sass/calcite-web/utils/_responsive.scss b/lib/sass/calcite-web/utils/_util-responsive.scss similarity index 100% rename from lib/sass/calcite-web/utils/_responsive.scss rename to lib/sass/calcite-web/utils/_util-responsive.scss diff --git a/lib/sass/calcite-web/utils/_transform.scss b/lib/sass/calcite-web/utils/_util-transform.scss similarity index 100% rename from lib/sass/calcite-web/utils/_transform.scss rename to lib/sass/calcite-web/utils/_util-transform.scss diff --git a/lib/sass/calcite-web/utils/_transition.scss b/lib/sass/calcite-web/utils/_util-transition.scss similarity index 100% rename from lib/sass/calcite-web/utils/_transition.scss rename to lib/sass/calcite-web/utils/_util-transition.scss diff --git a/lib/sass/calcite-web/utils/_visibility.scss b/lib/sass/calcite-web/utils/_util-visibility.scss similarity index 100% rename from lib/sass/calcite-web/utils/_visibility.scss rename to lib/sass/calcite-web/utils/_util-visibility.scss