survivalkit 0.2.1 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/survivalkit.rb +2 -2
- data/stylesheets/survivalkit/extend/_helpers.sass +13 -9
- data/stylesheets/survivalkit/extend/_sticky-footer.sass +4 -4
- data/stylesheets/survivalkit/mixins/_all.sass +1 -0
- data/stylesheets/survivalkit/mixins/_breakpoint.sass +68 -0
- data/stylesheets/survivalkit/mixins/_helpers.sass +13 -0
- data/stylesheets/survivalkit/mixins/_pseudo.sass +0 -1
- data/stylesheets/survivalkit/mixins/_typography.sass +2 -2
- data/stylesheets/survivalkit/reset/_normalize.scss +506 -0
- data/stylesheets/survivalkit/style-tile/_all.sass +1 -0
- data/stylesheets/survivalkit/style-tile/_tile-layout.sass +143 -0
- data/stylesheets/survivalkit/survival_kit/_survival-kit.sass +35 -28
- data/stylesheets/survivalkit/variables/_color_names.sass +148 -148
- data/templates/project/files/html/survivalkit/elements-common.html +453 -453
- data/templates/project/files/html/survivalkit/elements-html5.html +2791 -2791
- data/templates/project/files/html/survivalkit/elements-typography.html +102 -102
- data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal-css.html +1688 -1688
- data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal.html +1688 -1688
- data/templates/project/files/html/survivalkit/elements-ui-patterns.html +57 -57
- data/templates/project/files/html/survivalkit/styletile/styletile.html +13 -5
- data/templates/project/ie.sass +1 -1
- data/templates/project/manifest.rb +13 -21
- data/templates/project/partials/01-variables/_all.sass +1 -2
- data/templates/project/partials/01-variables/_base.sass +124 -10
- data/templates/project/partials/01-variables/_fonts.sass +1 -1
- data/templates/project/partials/02-reset/_reset.sass +4 -5
- data/templates/project/partials/03-extend/_typography.sass +9 -9
- data/templates/project/partials/04-defaults/_all.sass +8 -9
- data/templates/project/partials/04-defaults/_common.sass +56 -3
- data/templates/project/partials/04-defaults/{markup/_edits.sass → _edits.sass} +0 -0
- data/templates/project/partials/04-defaults/{markup/_headers.sass → _headers.sass} +14 -14
- data/templates/project/partials/04-defaults/{markup/_images.sass → _images.sass} +1 -1
- data/templates/project/partials/04-defaults/{markup/_semantics.sass → _semantics.sass} +9 -9
- data/templates/project/partials/04-defaults/{markup/_tables.sass → _tables.sass} +1 -1
- data/templates/project/partials/04-defaults/{markup/forms → forms}/_form-defaults.sass +5 -5
- data/templates/project/partials/04-defaults/{markup/forms → forms}/_formalize.sass +0 -0
- data/templates/project/partials/05-grids/_grids-susy.sass +3 -13
- data/templates/project/partials/06-ui-patterns/{drupal/_ui-patterns.sass → _drupal-patterns.sass} +0 -0
- data/templates/project/partials/{08-layout-design → 08-your-design-here}/_design.sass +0 -0
- data/templates/project/partials/09-styletile/_tile-design.sass +22 -7
- data/templates/project/partials/{11-media → 10-media}/_print.sass +1 -1
- data/templates/project/partials/{12-browser-adjustments → 11-browser-adjustments}/_ie.sass +0 -0
- data/templates/project/partials/{12-browser-adjustments → 11-browser-adjustments}/_modernizr.sass +0 -0
- data/templates/project/partials/{12-browser-adjustments → 11-browser-adjustments}/_selectivizr.sass +0 -0
- data/templates/project/selectivizr.sass +1 -1
- data/templates/project/style.sass +7 -13
- data/templates/project/templates/old/survivalkit/partials/common/abbr.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/acronym.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/characters.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/cite.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/code.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/dfn.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/em.haml +3 -3
- data/templates/project/templates/old/survivalkit/partials/common/forms.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/headers.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/inline-images.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/kbd.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/links.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/lists.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/others.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/paragraphs.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/pre.haml +9 -9
- data/templates/project/templates/old/survivalkit/partials/common/q.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/samp.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/strong.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/tables.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/common/var.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/a.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/abbr.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/address.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/all-headings.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/article.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/aside.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/b.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/bdi.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/blockquote.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/cite.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/code.haml +3 -3
- data/templates/project/templates/old/survivalkit/partials/html5/details.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/dfn.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/dl.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/em.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/fieldset.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/figure.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/footer.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/header.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/hgroup.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/hr.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/i.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/kbd.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/label.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/li.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/mark.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/menu.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/nav.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/ol.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/p.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/pre.haml +11 -11
- data/templates/project/templates/old/survivalkit/partials/html5/q.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/ruby.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/s.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/samp.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/sample-forms.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/sample-tables.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/section.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/small.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/strong.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/sub-sup.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/table.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/text-summary.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/thead.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/time.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/html5/ul.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/block.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/breadcrumbs.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/comments.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/field-image.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-comment.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-login.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-account.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-password.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/links.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/menu.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/messages.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/node.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/pager.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/rss-link.haml +1 -1
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/search.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/site-name.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/tabs.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/taxonomy.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/block.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/breadcrumbs.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/comments.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/field-image.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-comment.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-login.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-account.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-password.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/links.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/menu.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/messages.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/node.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/pager.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/rss-link.haml +1 -1
- data/templates/project/templates/old/survivalkit/partials/patterns-general/search.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/site-name.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/tabs.haml +2 -2
- data/templates/project/templates/old/survivalkit/partials/patterns-general/taxonomy.haml +2 -2
- metadata +25 -31
- data/stylesheets/survivalkit/reset/_normalize.sass +0 -342
- data/templates/project/partials/01-variables/_grids-all.sass +0 -11
- data/templates/project/partials/04-defaults/markup/_grouping.sass +0 -52
- data/templates/project/partials/05-grids/_grids-blueprint.sass +0 -20
- data/templates/project/partials/08-layout-design/_layout.sass +0 -8
- data/templates/project/partials/09-styletile/_tile-layout.sass +0 -80
- data/templates/project/partials/10-responsive/_mixins.sass +0 -27
- data/templates/project/partials/10-responsive/_responsive-blueprint.sass +0 -139
- data/templates/project/partials/10-responsive/_responsive-susy.sass +0 -112
@@ -4,10 +4,10 @@ small
|
|
4
4
|
s
|
5
5
|
|
6
6
|
cite
|
7
|
-
@extend
|
7
|
+
@extend %italic
|
8
8
|
|
9
9
|
q
|
10
|
-
@extend
|
10
|
+
@extend %italic
|
11
11
|
quotes: "“" "”"
|
12
12
|
&:before
|
13
13
|
content: open-quote
|
@@ -15,8 +15,8 @@ q
|
|
15
15
|
content: close-quote
|
16
16
|
|
17
17
|
dfn
|
18
|
-
@extend
|
19
|
-
@extend
|
18
|
+
@extend %bold
|
19
|
+
@extend %italic
|
20
20
|
|
21
21
|
abbr, acronym
|
22
22
|
border-bottom: 1px dotted
|
@@ -25,17 +25,17 @@ abbr, acronym
|
|
25
25
|
time
|
26
26
|
|
27
27
|
code
|
28
|
-
@extend
|
28
|
+
@extend %mono
|
29
29
|
|
30
30
|
var
|
31
31
|
|
32
32
|
samp
|
33
33
|
|
34
34
|
kbd
|
35
|
-
@extend
|
35
|
+
@extend %mono
|
36
36
|
|
37
37
|
tt
|
38
|
-
@extend
|
38
|
+
@extend %mono
|
39
39
|
|
40
40
|
sup, sub
|
41
41
|
font-size: 75%
|
@@ -50,10 +50,10 @@ sub
|
|
50
50
|
bottom: -0.25em
|
51
51
|
|
52
52
|
i
|
53
|
-
@extend
|
53
|
+
@extend %italic
|
54
54
|
|
55
55
|
b
|
56
|
-
@extend
|
56
|
+
@extend %bold
|
57
57
|
|
58
58
|
u
|
59
59
|
|
@@ -21,8 +21,8 @@ label
|
|
21
21
|
font-weight: bold
|
22
22
|
margin-right: 0.5em
|
23
23
|
|
24
|
-
|
25
|
-
@extend
|
24
|
+
%textinput
|
25
|
+
@extend %constrain-to-parent
|
26
26
|
+adjust-font-size-to($base-font-size, 1)
|
27
27
|
+rhythm-borders(1px, 0.25, $base-font-size)
|
28
28
|
border-width: 1px
|
@@ -33,14 +33,14 @@ label
|
|
33
33
|
height: $base-line-height / $base-font-size * 1.5em
|
34
34
|
|
35
35
|
textarea
|
36
|
-
@extend
|
36
|
+
@extend %textinput
|
37
37
|
height: $base-line-height / $base-font-size * 6.5
|
38
38
|
|
39
39
|
input
|
40
40
|
&[type=text], &[type=password], &[type=email], &[type=url], &[type=tel],
|
41
41
|
&[type=date], &[type=datetime], &[type=datetime-local], &[type=month], &[type=week], &[type=time],
|
42
42
|
&[type=number], &[type=range], &[type=search], &[type=color]
|
43
|
-
@extend
|
43
|
+
@extend %textinput
|
44
44
|
// reset webkit search styles
|
45
45
|
&[type=search]
|
46
46
|
-webkit-appearance: none
|
@@ -56,4 +56,4 @@ input
|
|
56
56
|
margin-right: 0.25em
|
57
57
|
|
58
58
|
textarea, input:not([type="radio"])
|
59
|
-
@extend
|
59
|
+
@extend %constrain-to-parent
|
File without changes
|
@@ -5,9 +5,6 @@
|
|
5
5
|
// Site: susy.oddbird.net
|
6
6
|
//**
|
7
7
|
|
8
|
-
// Font Sizes --------------------------------------------------------------
|
9
|
-
$base-font-size: 14px !default
|
10
|
-
$base-line-height: $kit-baseline
|
11
8
|
// Grid Variables --------------------------------------------------------------
|
12
9
|
$total-cols: $kit-total-cols
|
13
10
|
$col-width: $kit-col-width
|
@@ -21,19 +18,12 @@ $side-gutter-width: $kit-side-gutter-width
|
|
21
18
|
|
22
19
|
/* DEFINE THE GRID CONTAINER --------------------------------------------------------------
|
23
20
|
// BUILD THE GRID FOR YOUR SITE
|
24
|
-
// HELPER CLASSES INTENDED FOR USE IN @EXTEND
|
25
|
-
.container
|
26
|
-
+container
|
27
|
-
// uncomment to show grid background
|
28
|
-
// @if $show-grid == true
|
29
|
-
// +susy-grid-background
|
30
21
|
|
31
22
|
// BUILD THE GRID BY CALLING SUSY MIXINS ON DOM ELEMENTS
|
32
23
|
// example:
|
33
24
|
body
|
34
25
|
#container
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
+full
|
26
|
+
+container
|
27
|
+
@if $show-grid == true
|
28
|
+
+susy-grid-background
|
39
29
|
|
data/templates/project/partials/06-ui-patterns/{drupal/_ui-patterns.sass → _drupal-patterns.sass}
RENAMED
File without changes
|
File without changes
|
@@ -1,8 +1,6 @@
|
|
1
1
|
// Create the design for your site below
|
2
2
|
/* SITE-WIDE DESIGN --------------------------------------------------------------
|
3
3
|
|
4
|
-
|
5
|
-
|
6
4
|
header
|
7
5
|
+pie-clearfix
|
8
6
|
+trailer
|
@@ -16,10 +14,11 @@ header
|
|
16
14
|
+pie-clearfix
|
17
15
|
+trailer(2)
|
18
16
|
|
19
|
-
|
17
|
+
.label
|
20
18
|
color: $gray
|
21
19
|
+adjust-font-size-to(ms(0))
|
22
20
|
text-transform: uppercase
|
21
|
+
font-family: $font-sans
|
23
22
|
|
24
23
|
.colors
|
25
24
|
ul
|
@@ -33,7 +32,7 @@ h5.label
|
|
33
32
|
li
|
34
33
|
position: relative
|
35
34
|
overflow: visible
|
36
|
-
+scatter($child: img)
|
35
|
+
// +scatter($child: img)
|
37
36
|
&:after
|
38
37
|
position: relative
|
39
38
|
top: 102%
|
@@ -59,6 +58,21 @@ header
|
|
59
58
|
.styletile-1
|
60
59
|
// color: $color-tile1-6
|
61
60
|
.text-examples
|
61
|
+
.logos
|
62
|
+
counter-reset: logos
|
63
|
+
h1
|
64
|
+
counter-increment: logos
|
65
|
+
&:before
|
66
|
+
@extend .label
|
67
|
+
display: block
|
68
|
+
font-weight: normal
|
69
|
+
line-height: 1
|
70
|
+
&.opt-1
|
71
|
+
// font-family:
|
72
|
+
// font-weight:
|
73
|
+
// color:
|
74
|
+
&:before
|
75
|
+
content: counter(logos) " - #{$font-sans}"
|
62
76
|
.headers
|
63
77
|
h1
|
64
78
|
// font-family:
|
@@ -71,6 +85,8 @@ header
|
|
71
85
|
a
|
72
86
|
.serif
|
73
87
|
font-family: $font-serifs
|
88
|
+
.label:after
|
89
|
+
content: " - #{$font-serifs}"
|
74
90
|
p
|
75
91
|
//
|
76
92
|
.quotes
|
@@ -83,6 +99,8 @@ header
|
|
83
99
|
//
|
84
100
|
.sans
|
85
101
|
font-family: $font-sans
|
102
|
+
.label:after
|
103
|
+
content: " - #{$font-sans}"
|
86
104
|
p
|
87
105
|
//
|
88
106
|
|
@@ -133,6 +151,3 @@ header
|
|
133
151
|
//
|
134
152
|
&.image-6
|
135
153
|
//
|
136
|
-
|
137
|
-
|
138
|
-
|
File without changes
|
data/templates/project/partials/{12-browser-adjustments → 11-browser-adjustments}/_modernizr.sass
RENAMED
File without changes
|
data/templates/project/partials/{12-browser-adjustments → 11-browser-adjustments}/_selectivizr.sass
RENAMED
File without changes
|
@@ -84,7 +84,6 @@
|
|
84
84
|
|
85
85
|
|
86
86
|
// ✔ 4. CHOOSE A GRID SYSTEM
|
87
|
-
// @import partials/05-grids/grids-blueprint.sass
|
88
87
|
// Susy: Install the Susy Gem (https://rubygems.org/gems/compass-susy-plugin)
|
89
88
|
// and uncomment the Susy line in /config.rb (# require 'susy')
|
90
89
|
// @import partials/05-grids/grids-susy.sass
|
@@ -92,7 +91,7 @@
|
|
92
91
|
|
93
92
|
// ✔ 5. STYLE COMMON UI PATTERNS / DRUPAL UI PATTERNS
|
94
93
|
// @import partials/06-ui-patterns/common
|
95
|
-
// @import partials/06-ui-patterns/drupal
|
94
|
+
// @import partials/06-ui-patterns/drupal-patterns
|
96
95
|
|
97
96
|
|
98
97
|
// ✔ 6. PROCESS SPRITES WITH COMPASS
|
@@ -104,28 +103,23 @@
|
|
104
103
|
// ✔ 7. YOUR CUSTOM LAYOUT AND DESIGN SASS
|
105
104
|
// THIS IS WHERE MOST CUSTOM WORK WILL GO
|
106
105
|
// -- PRIMARY DESIGN --
|
107
|
-
@import partials/08-
|
108
|
-
@import partials/08-layout-design/design
|
106
|
+
@import partials/08-your-design-here/design
|
109
107
|
// ------ OR ------
|
110
108
|
// -- STYLE TILE DESIGN --
|
111
109
|
// enable these partials for styletile layout and design
|
112
110
|
// work with styletile.html
|
113
111
|
// see: http://badassideas.com/style-tiles-as-a-web-design-process-tool/
|
114
|
-
//
|
115
|
-
|
112
|
+
// (requires susy)
|
113
|
+
@import survivalkit/style-tile/all
|
114
|
+
@import partials/09-styletile/tile-design
|
116
115
|
// --------------------------------------------------------------------------------------
|
117
116
|
|
118
117
|
|
119
|
-
// ✔ 8. CHOOSE A RESPONSIVE STARTER
|
120
|
-
// @import partials/10-responsive/responsive-blueprint
|
121
|
-
// @import partials/10-responsive/responsive-susy
|
122
|
-
|
123
|
-
|
124
118
|
// ✔ 9. ENABLE PRINT STYLES
|
125
|
-
// @import partials/
|
119
|
+
// @import partials/10-media/print
|
126
120
|
|
127
121
|
|
128
122
|
// ✔ 10 ADJUST FOR LESSER/GREATER SYSTEMS
|
129
|
-
// @import partials/
|
123
|
+
// @import partials/11-browser_adjustments/modernizr
|
130
124
|
// IE STYLES - aren't needed by other browsers, so compile them as a separate file and load via conditionals
|
131
125
|
// SELECTIVIZR is nice, but the fallback css should really be compiled to a separate file
|
@@ -1,8 +1,8 @@
|
|
1
|
-
%
|
1
|
+
%div#acronym.element
|
2
2
|
%h2.element-title acronym
|
3
3
|
.markup
|
4
4
|
%p
|
5
5
|
Acronym / a word formed from the initial letters of other words.
|
6
6
|
%br
|
7
7
|
Sample acronyms:
|
8
|
-
%acronym{:title => "eXtensible HyperText Markup Language"} XHTML
|
8
|
+
%acronym{:title => "eXtensible HyperText Markup Language"} XHTML
|
@@ -1,8 +1,8 @@
|
|
1
|
-
%
|
1
|
+
%div#code.element
|
2
2
|
%h2.element-title code
|
3
3
|
.markup
|
4
4
|
%p
|
5
5
|
This element informs the browser that it contains a computer code, such as XHTML markup.
|
6
6
|
%br
|
7
7
|
Sample:
|
8
|
-
%code document.write("Hello world");
|
8
|
+
%code document.write("Hello world");
|
@@ -1,10 +1,10 @@
|
|
1
|
-
%
|
1
|
+
%div#em.element
|
2
2
|
%h2.element-title em
|
3
3
|
.markup
|
4
4
|
%p
|
5
|
-
Element used to
|
5
|
+
Element used to
|
6
6
|
%em put emphasis on certain information
|
7
7
|
Most browsers display emphases text in italics by default.
|
8
8
|
%br
|
9
9
|
Sample:
|
10
|
-
%em This is emphasized text
|
10
|
+
%em This is emphasized text
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#forms.element
|
2
2
|
%h2.element-title Forms
|
3
3
|
.markup
|
4
4
|
%form#form{"accept-charset" => "UTF-8", :action => "/action", :method => "post"}
|
@@ -24,4 +24,4 @@
|
|
24
24
|
%label label for Filefield
|
25
25
|
%input{:name => "files", :size => "50", :type => "file"}/
|
26
26
|
%div
|
27
|
-
%input{:name => "button", :type => "button", :value => "Button"}/
|
27
|
+
%input{:name => "button", :type => "button", :value => "Button"}/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#headers.element
|
2
2
|
%h2.element-title Headers
|
3
3
|
.markup
|
4
4
|
%h1 Header 1
|
@@ -20,4 +20,4 @@
|
|
20
20
|
%h5 Header 5
|
21
21
|
%p "The unforeseen does not exist," quietly replied Phileas Fogg.
|
22
22
|
%h6 Header 6
|
23
|
-
%p Another man now joined the group, and, after making his formal greetings to his ruler, said:
|
23
|
+
%p Another man now joined the group, and, after making his formal greetings to his ruler, said:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#inline-images.element
|
2
2
|
%h2.element-title Inline Images
|
3
3
|
.markup
|
4
4
|
%p
|
@@ -6,4 +6,4 @@
|
|
6
6
|
Who would think, then, that such fine ladies and gentlemen should regale themselves with an essence found in the inglorious bowels of a sick whale! Yet so it is. By some, ambergris is supposed to be the cause, and by others the effect, of the dyspepsia in the whale. How to cure such a dyspepsia it were hard to say, unless by administering three or four boat loads of Brandreth's pills, and then running out of harm's way, as laborers do in blasting rocks.
|
7
7
|
%p
|
8
8
|
%img.right{:alt => "image floated right", :src => "http://dummyimage.com/240x320/000/fff&text=Right+Image"}>/
|
9
|
-
I have forgotten to say that there were found in this ambergris, certain hard, round, bony plates, which at first Stubb thought might be sailors' trowsers buttons; but it afterwards turned out that they were nothing more than pieces of small squid bones embalmed in that manner.
|
9
|
+
I have forgotten to say that there were found in this ambergris, certain hard, round, bony plates, which at first Stubb thought might be sailors' trowsers buttons; but it afterwards turned out that they were nothing more than pieces of small squid bones embalmed in that manner.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#links.element
|
2
2
|
%h2.element-title Links
|
3
3
|
.markup
|
4
4
|
%a{:href => "#"} Local link
|
@@ -7,4 +7,4 @@
|
|
7
7
|
%br
|
8
8
|
%a{:href => "https://www.google.com"} External link with encrypted connection
|
9
9
|
%br
|
10
|
-
%a{:href => "mailto:test@kiwi-themes.com"} E-mail link
|
10
|
+
%a{:href => "mailto:test@kiwi-themes.com"} E-mail link
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#lists.element
|
2
2
|
%h2.element-title Lists
|
3
3
|
.markup
|
4
4
|
%h3 Unordered List
|
@@ -52,4 +52,4 @@
|
|
52
52
|
%li Thirteen, fourteen, maids a’courting
|
53
53
|
%li Fifteen, sixteen, maids in the kitchen
|
54
54
|
%li Seventeen, eighteen, maids a’waiting
|
55
|
-
%li Nineteen, twenty, my platter’s empty …
|
55
|
+
%li Nineteen, twenty, my platter’s empty …
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#paragraphs.element
|
2
2
|
%h2.element-title Paragraphs
|
3
3
|
.markup
|
4
4
|
%p
|
@@ -12,4 +12,4 @@
|
|
12
12
|
= succeed "." do
|
13
13
|
%a{:href => ""} dazzlingly confounds
|
14
14
|
'Tis iron—that I know—not gold. 'Tis split, too—that I feel; the jagged edge galls me so, my brain seems to beat against the solid metal; aye, steel skull, mine; the sort that needs no helmet in the most brain-battering fight!
|
15
|
-
%p Dry heat upon my brow? Oh! time was, when as the sunrise nobly spurred me, so the sunset soothed. No more. This lovely light, it lights not me; all loveliness is anguish to me, since I can ne'er enjoy. Gifted with the high perception, I lack the low, enjoying power; damned, most subtly and most malignantly! damned in the midst of Paradise! Good night—good night! (WAVING HIS HAND, HE MOVES FROM THE WINDOW.)
|
15
|
+
%p Dry heat upon my brow? Oh! time was, when as the sunrise nobly spurred me, so the sunset soothed. No more. This lovely light, it lights not me; all loveliness is anguish to me, since I can ne'er enjoy. Gifted with the high perception, I lack the low, enjoying power; damned, most subtly and most malignantly! damned in the midst of Paradise! Good night—good night! (WAVING HIS HAND, HE MOVES FROM THE WINDOW.)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#pre.element
|
2
2
|
%h2.element-title
|
3
3
|
%a{:href => "http://developers.whatwg.org/grouping-content.html#the-pre-element"} pre
|
4
4
|
.markup
|
@@ -16,12 +16,12 @@
|
|
16
16
|
} .markup
|
17
17
|
%pre
|
18
18
|
:preserve
|
19
|
-
,, ,, ,,
|
20
|
-
.M"""bgd db `7MM `7MMF' `YMM' db mm
|
21
|
-
,MI "Y MM MM .M' MM
|
22
|
-
`MMb. `7MM `7MM `7Mb,od8 `7M' `MF'`7MM `7M' `MF',6"Yb. MM MM .d" `7MM mmMMmm
|
23
|
-
`YMMNq. MM MM MM' "' VA ,V MM VA ,V 8) MM MM MMMMM. MM MM
|
24
|
-
. `MM MM MM MM VA ,V MM VA ,V ,pm9MM MM MM VMA MM MM
|
25
|
-
Mb dM MM MM MM VVV MM VVV 8M MM MM MM `MM. MM MM
|
19
|
+
,, ,, ,,
|
20
|
+
.M"""bgd db `7MM `7MMF' `YMM' db mm
|
21
|
+
,MI "Y MM MM .M' MM
|
22
|
+
`MMb. `7MM `7MM `7Mb,od8 `7M' `MF'`7MM `7M' `MF',6"Yb. MM MM .d" `7MM mmMMmm
|
23
|
+
`YMMNq. MM MM MM' "' VA ,V MM VA ,V 8) MM MM MMMMM. MM MM
|
24
|
+
. `MM MM MM MM VA ,V MM VA ,V ,pm9MM MM MM VMA MM MM
|
25
|
+
Mb dM MM MM MM VVV MM VVV 8M MM MM MM `MM. MM MM
|
26
26
|
P"Ybmmd" `Mbod"YML..JMML. W .JMML. W `Moo9^Yo..JMML. .JMML. MMb..JMML. `Mbmo
|
27
|
-
|
27
|
+
|
@@ -1,8 +1,8 @@
|
|
1
|
-
%
|
1
|
+
%div#samp.element
|
2
2
|
%h2.element-title samp
|
3
3
|
.markup
|
4
4
|
%p
|
5
5
|
Defines computer output data, for example we can use it to markup error messages.
|
6
6
|
%br
|
7
7
|
Sample:
|
8
|
-
%samp Error: no such file or directory
|
8
|
+
%samp Error: no such file or directory
|
@@ -1,8 +1,8 @@
|
|
1
|
-
%
|
1
|
+
%div#strong.element
|
2
2
|
%h2.element-title strong
|
3
3
|
.markup
|
4
4
|
%p
|
5
5
|
This element stands for "stronger emphasis" and is used for marking more important text.
|
6
6
|
%br
|
7
7
|
Sample:
|
8
|
-
%strong This is text with stronger emphasis
|
8
|
+
%strong This is text with stronger emphasis
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#a.element
|
2
2
|
%h2.element-title
|
3
3
|
%a{:href => "http://developers.whatwg.org/text-level-semantics.html#the-a-element"} a
|
4
4
|
.markup
|
@@ -33,4 +33,4 @@
|
|
33
33
|
%section
|
34
34
|
%h1 The Mellblom Browser
|
35
35
|
%p Web browsing at the speed of light.
|
36
|
-
%p No other browser goes faster!
|
36
|
+
%p No other browser goes faster!
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#abbr.element
|
2
2
|
%h2.element-title
|
3
3
|
%a{:href => "http://developers.whatwg.org/text-level-semantics.html#the-abbr-element"} abbr
|
4
4
|
%p
|
@@ -23,4 +23,4 @@
|
|
23
23
|
is a loose unofficial collaboration of Web browser manufacturers and
|
24
24
|
interested parties who wish to develop new technologies designed to
|
25
25
|
allow authors to write and deploy Applications over the World Wide
|
26
|
-
Web.
|
26
|
+
Web.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#address.element
|
2
2
|
%h2.element-title
|
3
3
|
%a{:href => "http://developers.whatwg.org/sections.html#the-address-element"} Address
|
4
4
|
%p
|
@@ -24,4 +24,4 @@
|
|
24
24
|
= succeed "," do
|
25
25
|
%a{:href => ""} Arnaud Le Hors
|
26
26
|
contact persons for the
|
27
|
-
%a{:href => ""} W3C HTML Activity
|
27
|
+
%a{:href => ""} W3C HTML Activity
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#all-headings.element
|
2
2
|
%h2.element-title
|
3
3
|
%a{:href => "http://developers.whatwg.org/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements"} The h1, h2, h3, h4, h5, and h6 elements
|
4
4
|
%p
|
@@ -28,4 +28,4 @@
|
|
28
28
|
%section
|
29
29
|
%h1 Canvas coordinates diagram
|
30
30
|
%section
|
31
|
-
%h1 Paths
|
31
|
+
%h1 Paths
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#article.element
|
2
2
|
%h2.element-title
|
3
3
|
%a{:href => "http://developers.whatwg.org/sections.html#the-article-element"} Article
|
4
4
|
%p
|
@@ -19,4 +19,4 @@
|
|
19
19
|
sending whatever you're saying to the world. Seriously.
|
20
20
|
%p …
|
21
21
|
%footer
|
22
|
-
%a{:href => "?comments=1"} Show comments...
|
22
|
+
%a{:href => "?comments=1"} Show comments...
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%
|
1
|
+
%div#aside.element
|
2
2
|
%h2.element-title
|
3
3
|
%a{:href => "http://developers.whatwg.org/sections.html#the-aside-element"} Aside
|
4
4
|
%p
|
@@ -17,4 +17,4 @@
|
|
17
17
|
%p
|
18
18
|
Switzerland, a land-locked country in the middle of geographic
|
19
19
|
Europe, has not joined the geopolitical European Union, though it is
|
20
|
-
a signatory to a number of European treaties.
|
20
|
+
a signatory to a number of European treaties.
|