kickoff 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/.gitignore +4 -0
  2. data/.rspec +1 -0
  3. data/CHANGELOG +3 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +20 -0
  6. data/README.md +41 -0
  7. data/Rakefile +5 -0
  8. data/features/nifty_authentication.feature +80 -0
  9. data/features/nifty_config.feature +17 -0
  10. data/features/nifty_layout.feature +20 -0
  11. data/features/nifty_scaffold.feature +80 -0
  12. data/features/step_definitions/common_steps.rb +62 -0
  13. data/features/step_definitions/rails_setup_steps.rb +6 -0
  14. data/features/support/env.rb +6 -0
  15. data/features/support/matchers.rb +7 -0
  16. data/kickoff.gemspec +24 -0
  17. data/lib/generators/kickoff/authentication/USAGE +50 -0
  18. data/lib/generators/kickoff/authentication/authentication_generator.rb +154 -0
  19. data/lib/generators/kickoff/authentication/templates/authlogic_session.rb +2 -0
  20. data/lib/generators/kickoff/authentication/templates/controller_authentication.rb +60 -0
  21. data/lib/generators/kickoff/authentication/templates/fixtures.yml +24 -0
  22. data/lib/generators/kickoff/authentication/templates/migration.rb +20 -0
  23. data/lib/generators/kickoff/authentication/templates/sessions_controller.rb +41 -0
  24. data/lib/generators/kickoff/authentication/templates/sessions_helper.rb +2 -0
  25. data/lib/generators/kickoff/authentication/templates/tests/rspec/sessions_controller.rb +39 -0
  26. data/lib/generators/kickoff/authentication/templates/tests/rspec/user.rb +83 -0
  27. data/lib/generators/kickoff/authentication/templates/tests/rspec/users_controller.rb +56 -0
  28. data/lib/generators/kickoff/authentication/templates/tests/shoulda/sessions_controller.rb +40 -0
  29. data/lib/generators/kickoff/authentication/templates/tests/shoulda/user.rb +85 -0
  30. data/lib/generators/kickoff/authentication/templates/tests/shoulda/users_controller.rb +61 -0
  31. data/lib/generators/kickoff/authentication/templates/tests/testunit/sessions_controller.rb +36 -0
  32. data/lib/generators/kickoff/authentication/templates/tests/testunit/user.rb +88 -0
  33. data/lib/generators/kickoff/authentication/templates/tests/testunit/users_controller.rb +53 -0
  34. data/lib/generators/kickoff/authentication/templates/user.rb +38 -0
  35. data/lib/generators/kickoff/authentication/templates/users_controller.rb +32 -0
  36. data/lib/generators/kickoff/authentication/templates/users_helper.rb +2 -0
  37. data/lib/generators/kickoff/authentication/templates/views/erb/_form.html.erb +20 -0
  38. data/lib/generators/kickoff/authentication/templates/views/erb/edit.html.erb +3 -0
  39. data/lib/generators/kickoff/authentication/templates/views/erb/login.html.erb +30 -0
  40. data/lib/generators/kickoff/authentication/templates/views/erb/signup.html.erb +5 -0
  41. data/lib/generators/kickoff/authentication/templates/views/haml/_form.html.haml +16 -0
  42. data/lib/generators/kickoff/authentication/templates/views/haml/edit.html.haml +3 -0
  43. data/lib/generators/kickoff/authentication/templates/views/haml/login.html.haml +26 -0
  44. data/lib/generators/kickoff/authentication/templates/views/haml/signup.html.haml +5 -0
  45. data/lib/generators/kickoff/layout/USAGE +25 -0
  46. data/lib/generators/kickoff/layout/layout_generator.rb +38 -0
  47. data/lib/generators/kickoff/layout/templates/_forms.scss +417 -0
  48. data/lib/generators/kickoff/layout/templates/_mixins.scss +211 -0
  49. data/lib/generators/kickoff/layout/templates/_patterns.scss +960 -0
  50. data/lib/generators/kickoff/layout/templates/_reset.scss +141 -0
  51. data/lib/generators/kickoff/layout/templates/_scaffolding.scss +137 -0
  52. data/lib/generators/kickoff/layout/templates/_tables.scss +172 -0
  53. data/lib/generators/kickoff/layout/templates/_type.scss +185 -0
  54. data/lib/generators/kickoff/layout/templates/_variables.scss +50 -0
  55. data/lib/generators/kickoff/layout/templates/application.scss +21 -0
  56. data/lib/generators/kickoff/layout/templates/error_messages_helper.rb +23 -0
  57. data/lib/generators/kickoff/layout/templates/layout.html.erb +34 -0
  58. data/lib/generators/kickoff/layout/templates/layout.html.haml +21 -0
  59. data/lib/generators/kickoff/layout/templates/layout_helper.rb +22 -0
  60. data/lib/generators/kickoff/layout/templates/stylesheet.sass +73 -0
  61. data/lib/generators/kickoff/scaffold/USAGE +51 -0
  62. data/lib/generators/kickoff/scaffold/scaffold_generator.rb +318 -0
  63. data/lib/generators/kickoff/scaffold/templates/actions/create.rb +8 -0
  64. data/lib/generators/kickoff/scaffold/templates/actions/destroy.rb +5 -0
  65. data/lib/generators/kickoff/scaffold/templates/actions/edit.rb +3 -0
  66. data/lib/generators/kickoff/scaffold/templates/actions/index.rb +3 -0
  67. data/lib/generators/kickoff/scaffold/templates/actions/new.rb +3 -0
  68. data/lib/generators/kickoff/scaffold/templates/actions/show.rb +3 -0
  69. data/lib/generators/kickoff/scaffold/templates/actions/update.rb +8 -0
  70. data/lib/generators/kickoff/scaffold/templates/controller.rb +3 -0
  71. data/lib/generators/kickoff/scaffold/templates/fixtures.yml +9 -0
  72. data/lib/generators/kickoff/scaffold/templates/helper.rb +2 -0
  73. data/lib/generators/kickoff/scaffold/templates/migration.rb +16 -0
  74. data/lib/generators/kickoff/scaffold/templates/model.rb +4 -0
  75. data/lib/generators/kickoff/scaffold/templates/tests/rspec/actions/create.rb +11 -0
  76. data/lib/generators/kickoff/scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
  77. data/lib/generators/kickoff/scaffold/templates/tests/rspec/actions/edit.rb +4 -0
  78. data/lib/generators/kickoff/scaffold/templates/tests/rspec/actions/index.rb +4 -0
  79. data/lib/generators/kickoff/scaffold/templates/tests/rspec/actions/new.rb +4 -0
  80. data/lib/generators/kickoff/scaffold/templates/tests/rspec/actions/show.rb +4 -0
  81. data/lib/generators/kickoff/scaffold/templates/tests/rspec/actions/update.rb +11 -0
  82. data/lib/generators/kickoff/scaffold/templates/tests/rspec/controller.rb +8 -0
  83. data/lib/generators/kickoff/scaffold/templates/tests/rspec/model.rb +7 -0
  84. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/actions/create.rb +13 -0
  85. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
  86. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
  87. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/actions/index.rb +6 -0
  88. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/actions/new.rb +6 -0
  89. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/actions/show.rb +6 -0
  90. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/actions/update.rb +13 -0
  91. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/controller.rb +5 -0
  92. data/lib/generators/kickoff/scaffold/templates/tests/shoulda/model.rb +7 -0
  93. data/lib/generators/kickoff/scaffold/templates/tests/testunit/actions/create.rb +11 -0
  94. data/lib/generators/kickoff/scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
  95. data/lib/generators/kickoff/scaffold/templates/tests/testunit/actions/edit.rb +4 -0
  96. data/lib/generators/kickoff/scaffold/templates/tests/testunit/actions/index.rb +4 -0
  97. data/lib/generators/kickoff/scaffold/templates/tests/testunit/actions/new.rb +4 -0
  98. data/lib/generators/kickoff/scaffold/templates/tests/testunit/actions/show.rb +4 -0
  99. data/lib/generators/kickoff/scaffold/templates/tests/testunit/actions/update.rb +11 -0
  100. data/lib/generators/kickoff/scaffold/templates/tests/testunit/controller.rb +5 -0
  101. data/lib/generators/kickoff/scaffold/templates/tests/testunit/model.rb +7 -0
  102. data/lib/generators/kickoff/scaffold/templates/views/erb/_form.html.erb +10 -0
  103. data/lib/generators/kickoff/scaffold/templates/views/erb/edit.html.erb +14 -0
  104. data/lib/generators/kickoff/scaffold/templates/views/erb/index.html.erb +29 -0
  105. data/lib/generators/kickoff/scaffold/templates/views/erb/new.html.erb +7 -0
  106. data/lib/generators/kickoff/scaffold/templates/views/erb/show.html.erb +20 -0
  107. data/lib/generators/kickoff/scaffold/templates/views/haml/_form.html.haml +9 -0
  108. data/lib/generators/kickoff/scaffold/templates/views/haml/edit.html.haml +14 -0
  109. data/lib/generators/kickoff/scaffold/templates/views/haml/index.html.haml +25 -0
  110. data/lib/generators/kickoff/scaffold/templates/views/haml/new.html.haml +7 -0
  111. data/lib/generators/kickoff/scaffold/templates/views/haml/show.html.haml +20 -0
  112. data/lib/generators/kickoff/version.rb +3 -0
  113. data/lib/generators/kickoff.rb +29 -0
  114. data/spec/spec_helper.rb +1 -0
  115. metadata +179 -0
@@ -0,0 +1,141 @@
1
+ /* reset.css.scss
2
+ * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
3
+ * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
4
+
5
+
6
+ // ERIC MEYER RESET
7
+ // --------------------------------------------------
8
+
9
+ html, body { margin: 0; padding: 0; }
10
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
11
+ table { border-collapse: collapse; border-spacing: 0; }
12
+ ol, ul { list-style: none; }
13
+ q:before, q:after, blockquote:before, blockquote:after { content: ""; }
14
+
15
+
16
+ // Normalize.css
17
+ // Pulling in select resets form the normalize.css project
18
+ // --------------------------------------------------
19
+
20
+ // Display in IE6-9 and FF3
21
+ // -------------------------
22
+ // Source: http://github.com/necolas/normalize.css
23
+ html {
24
+ overflow-y: scroll;
25
+ font-size: 100%;
26
+ -webkit-text-size-adjust: 100%;
27
+ -ms-text-size-adjust: 100%;
28
+ }
29
+ // Focus states
30
+ a:focus {
31
+ outline: thin dotted;
32
+ }
33
+ // Hover & Active
34
+ a:hover,
35
+ a:active {
36
+ outline: 0;
37
+ }
38
+
39
+ // Display in IE6-9 and FF3
40
+ // -------------------------
41
+ // Source: http://github.com/necolas/normalize.css
42
+ article,
43
+ aside,
44
+ details,
45
+ figcaption,
46
+ figure,
47
+ footer,
48
+ header,
49
+ hgroup,
50
+ nav,
51
+ section {
52
+ display: block;
53
+ }
54
+
55
+ // Display block in IE6-9 and FF3
56
+ // -------------------------
57
+ // Source: http://github.com/necolas/normalize.css
58
+ audio,
59
+ canvas,
60
+ video {
61
+ display: inline-block;
62
+ *display: inline;
63
+ *zoom: 1;
64
+ }
65
+
66
+ // Prevents modern browsers from displaying 'audio' without controls
67
+ // -------------------------
68
+ // Source: http://github.com/necolas/normalize.css
69
+ audio:not([controls]) {
70
+ display: none;
71
+ }
72
+
73
+ // Prevents sub and sup affecting line-height in all browsers
74
+ // -------------------------
75
+ // Source: http://github.com/necolas/normalize.css
76
+ sub,
77
+ sup {
78
+ font-size: 75%;
79
+ line-height: 0;
80
+ position: relative;
81
+ vertical-align: baseline;
82
+ }
83
+ sup {
84
+ top: -0.5em;
85
+ }
86
+ sub {
87
+ bottom: -0.25em;
88
+ }
89
+
90
+ // Img border in a's and image quality
91
+ // -------------------------
92
+ // Source: http://github.com/necolas/normalize.css
93
+ img {
94
+ border: 0;
95
+ -ms-interpolation-mode: bicubic;
96
+ }
97
+
98
+ // Forms
99
+ // -------------------------
100
+ // Source: http://github.com/necolas/normalize.css
101
+
102
+ // Font size in all browsers, margin changes, misc consistency
103
+ button,
104
+ input,
105
+ select,
106
+ textarea {
107
+ font-size: 100%;
108
+ margin: 0;
109
+ vertical-align: baseline;
110
+ *vertical-align: middle;
111
+ }
112
+ button,
113
+ input {
114
+ line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
115
+ *overflow: visible; // Inner spacing ie IE6/7
116
+ }
117
+ button::-moz-focus-inner,
118
+ input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
119
+ border: 0;
120
+ padding: 0;
121
+ }
122
+ button,
123
+ input[type="button"],
124
+ input[type="reset"],
125
+ input[type="submit"] {
126
+ cursor: pointer; // Cursors on all buttons applied consistently
127
+ -webkit-appearance: button; // Style clicable inputs in iOS
128
+ }
129
+ input[type="search"] { // Appearance in Safari/Chrome
130
+ -webkit-appearance: textfield;
131
+ -webkit-box-sizing: content-box;
132
+ -moz-box-sizing: content-box;
133
+ box-sizing: content-box;
134
+ }
135
+ input[type="search"]::-webkit-search-decoration {
136
+ -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
137
+ }
138
+ textarea {
139
+ overflow: auto; // Remove vertical scrollbar in IE6-9
140
+ vertical-align: top; // Readability and alignment cross-browser
141
+ }
@@ -0,0 +1,137 @@
1
+ /*
2
+ * scaffolding.css.scss
3
+ * Basic and global styles for generating a grid system, structural layout, and page templates
4
+ * ------------------------------------------------------------------------------------------- */
5
+
6
+
7
+ // STRUCTURAL LAYOUT
8
+ // -----------------
9
+
10
+ html, body {
11
+ background-color: $white;
12
+ }
13
+ body {
14
+ margin: 0;
15
+ @include sans-serif-font(normal,$basefont,$baseline);
16
+ color: $grayDark;
17
+ }
18
+
19
+ // Container (centered, fixed-width layouts)
20
+ .container {
21
+ @include fixed-container();
22
+ }
23
+
24
+ // Fluid layouts (left aligned, with sidebar, min- & max-width content)
25
+ .container-fluid {
26
+ position: relative;
27
+ padding-left: 20px;
28
+ padding-right: 20px;
29
+ @include clearfix();
30
+ > .sidebar {
31
+ float: left;
32
+ width: 220px;
33
+ }
34
+ // TODO in v2: rename this and .popover .content to be more specific
35
+ > .content {
36
+ float: left;
37
+ min-width: 700px;
38
+ max-width: 1180px;
39
+ margin-left: 20px;
40
+ }
41
+ }
42
+
43
+ // Toggling content
44
+ .hide {
45
+ display: none;
46
+ }
47
+ .show {
48
+ display: block;
49
+ }
50
+
51
+
52
+ // BASE STYLES
53
+ // -----------
54
+
55
+ // Links
56
+ a {
57
+ color: $linkColor;
58
+ text-decoration: none;
59
+ line-height: inherit;
60
+ font-weight: inherit;
61
+ &:hover {
62
+ color: $linkColorHover;
63
+ text-decoration: underline;
64
+ }
65
+ }
66
+
67
+ // Quick floats
68
+ .pull-right {
69
+ float: right;
70
+ }
71
+ .pull-left {
72
+ float: left;
73
+ }
74
+
75
+
76
+ // GRID SYSTEM
77
+ // -----------
78
+ // To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
79
+
80
+ .row {
81
+ @include clearfix();
82
+ margin-left: -1 * $gridGutterWidth;
83
+ }
84
+
85
+ // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
86
+ // Credit to @dhg for the idea
87
+ [class*="span"] {
88
+ @include gridColumn();
89
+ }
90
+
91
+ // Default columns
92
+ .span1 { @include columns(1); }
93
+ .span2 { @include columns(2); }
94
+ .span3 { @include columns(3); }
95
+ .span4 { @include columns(4); }
96
+ .span5 { @include columns(5); }
97
+ .span6 { @include columns(6); }
98
+ .span7 { @include columns(7); }
99
+ .span8 { @include columns(8); }
100
+ .span9 { @include columns(9); }
101
+ .span10 { @include columns(10); }
102
+ .span11 { @include columns(11); }
103
+ .span12 { @include columns(12); }
104
+ .span13 { @include columns(13); }
105
+ .span14 { @include columns(14); }
106
+ .span15 { @include columns(15); }
107
+ .span16 { @include columns(16); }
108
+
109
+ // For optional 24-column grid
110
+ .span17 { @include columns(17); }
111
+ .span18 { @include columns(18); }
112
+ .span19 { @include columns(19); }
113
+ .span20 { @include columns(20); }
114
+ .span21 { @include columns(21); }
115
+ .span22 { @include columns(22); }
116
+ .span23 { @include columns(23); }
117
+ .span24 { @include columns(24); }
118
+
119
+ // Offset column options
120
+ .offset1 { @include offset(1); }
121
+ .offset2 { @include offset(2); }
122
+ .offset3 { @include offset(3); }
123
+ .offset4 { @include offset(4); }
124
+ .offset5 { @include offset(5); }
125
+ .offset6 { @include offset(6); }
126
+ .offset7 { @include offset(7); }
127
+ .offset8 { @include offset(8); }
128
+ .offset9 { @include offset(9); }
129
+ .offset10 { @include offset(10); }
130
+ .offset11 { @include offset(11); }
131
+ .offset12 { @include offset(12); }
132
+
133
+ // Unique column sizes for 16-column grid
134
+ .span-one-third { width: 300px; }
135
+ .span-two-thirds { width: 620px; }
136
+ .offset-one-third { margin-left: 340px; }
137
+ .offset-two-thirds { margin-left: 660px; }
@@ -0,0 +1,172 @@
1
+ /*
2
+ * tables.css.scss
3
+ * Tables for, you guessed it, tabular data
4
+ * ---------------------------------------- */
5
+
6
+
7
+ // BASELINE STYLES
8
+ // ---------------
9
+
10
+ table {
11
+ width: 100%;
12
+ margin-bottom: $baseline;
13
+ padding: 0;
14
+ border-collapse: separate; // Done so we can round those corners!
15
+ *border-collapse: collapse; /* IE7, collapse table to remove spacing */
16
+ font-size: $basefont;
17
+ border: 1px solid #ddd;
18
+ @include border-radius(4px);
19
+ th, td {
20
+ padding: 10px 10px 9px;
21
+ line-height: $baseline;
22
+ text-align: left;
23
+ }
24
+ th {
25
+ padding-top: 9px;
26
+ font-weight: bold;
27
+ vertical-align: middle;
28
+ border-bottom: 1px solid #ddd;
29
+ }
30
+ td {
31
+ vertical-align: top;
32
+ }
33
+ th + th,
34
+ td + td {
35
+ border-left: 1px solid #ddd;
36
+ }
37
+ tr + tr td {
38
+ border-top: 1px solid #ddd;
39
+ }
40
+ tbody tr:first-child td:first-child {
41
+ @include border-radius(4px 0 0 0);
42
+ }
43
+ tbody tr:first-child td:last-child {
44
+ @include border-radius(0 4px 0 0);
45
+ }
46
+ tbody tr:last-child td:first-child {
47
+ @include border-radius(0 0 0 4px);
48
+ }
49
+ tbody tr:last-child td:last-child {
50
+ @include border-radius(0 0 4px 0);
51
+ }
52
+ }
53
+
54
+
55
+ // ZEBRA-STRIPING
56
+ // --------------
57
+
58
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
59
+ .zebra-striped {
60
+ tbody {
61
+ tr:nth-child(odd) td {
62
+ background-color: #f9f9f9;
63
+ }
64
+ tr:hover td {
65
+ background-color: #f5f5f5;
66
+ }
67
+ }
68
+
69
+ // Tablesorting styles w/ jQuery plugin
70
+ .header {
71
+ cursor: pointer;
72
+ &:after {
73
+ content: "";
74
+ float: right;
75
+ margin-top: 7px;
76
+ border-width: 0 4px 4px;
77
+ border-style: solid;
78
+ border-color: #000 transparent;
79
+ visibility: hidden;
80
+ }
81
+ }
82
+ // Style the sorted column headers (THs)
83
+ .headerSortUp,
84
+ .headerSortDown {
85
+ background-color: rgba(141,192,219,.25);
86
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
87
+ }
88
+ // Style the ascending (reverse alphabetical) column header
89
+ .header:hover {
90
+ &:after {
91
+ visibility:visible;
92
+ }
93
+ }
94
+ // Style the descending (alphabetical) column header
95
+ .headerSortDown,
96
+ .headerSortDown:hover {
97
+ &:after {
98
+ visibility:visible;
99
+ @include opacity(60);
100
+ }
101
+ }
102
+ // Style the ascending (reverse alphabetical) column header
103
+ .headerSortUp {
104
+ &:after {
105
+ border-bottom: none;
106
+ border-left: 4px solid transparent;
107
+ border-right: 4px solid transparent;
108
+ border-top: 4px solid #000;
109
+ visibility:visible;
110
+ @include box-shadow(none); //can't add boxshadow to downward facing arrow :(
111
+ @include opacity(60);
112
+ }
113
+ }
114
+ }
115
+
116
+ table {
117
+ // Blue Table Headings
118
+ .blue {
119
+ color: $blue;
120
+ border-bottom-color: $blue;
121
+ }
122
+ .headerSortUp.blue,
123
+ .headerSortDown.blue {
124
+ background-color: lighten($blue, 40%);
125
+ }
126
+ // Green Table Headings
127
+ .green {
128
+ color: $green;
129
+ border-bottom-color: $green;
130
+ }
131
+ .headerSortUp.green,
132
+ .headerSortDown.green {
133
+ background-color: lighten($green, 40%);
134
+ }
135
+ // Red Table Headings
136
+ .red {
137
+ color: $red;
138
+ border-bottom-color: $red;
139
+ }
140
+ .headerSortUp.red,
141
+ .headerSortDown.red {
142
+ background-color: lighten($red, 50%);
143
+ }
144
+ // Yellow Table Headings
145
+ .yellow {
146
+ color: $yellow;
147
+ border-bottom-color: $yellow;
148
+ }
149
+ .headerSortUp.yellow,
150
+ .headerSortDown.yellow {
151
+ background-color: lighten($yellow, 40%);
152
+ }
153
+ // Orange Table Headings
154
+ .orange {
155
+ color: $orange;
156
+ border-bottom-color: $orange;
157
+ }
158
+ .headerSortUp.orange,
159
+ .headerSortDown.orange {
160
+ background-color: lighten($orange, 40%);
161
+ }
162
+ // Purple Table Headings
163
+ .purple {
164
+ color: $purple;
165
+ border-bottom-color: $purple;
166
+ }
167
+ .headerSortUp.purple,
168
+ .headerSortDown.purple {
169
+ background-color: lighten($purple, 40%);
170
+ }
171
+ }
172
+
@@ -0,0 +1,185 @@
1
+ /* type.css.scss
2
+ * Headings, body text, lists, code, and more for a versatile and durable typography system
3
+ * ---------------------------------------------------------------------------------------- */
4
+
5
+
6
+ // BODY TEXT
7
+ // ---------
8
+ p {
9
+ @include shorthand-font(normal,$basefont,$baseline);
10
+ margin-bottom: $baseline / 2;
11
+ small {
12
+ font-size: $basefont - 2;
13
+ color: $grayLight;
14
+ }
15
+ }
16
+
17
+
18
+ // HEADINGS
19
+ // --------
20
+
21
+ h1, h2, h3, h4, h5, h6 {
22
+ font-weight: bold;
23
+ color: $grayDark;
24
+ small {
25
+ color: $grayLight;
26
+ }
27
+ }
28
+ h1 {
29
+ margin-bottom: $baseline;
30
+ font-size: 30px;
31
+ line-height: $baseline * 2;
32
+ small {
33
+ font-size: 18px;
34
+ }
35
+ }
36
+ h2 {
37
+ font-size: 24px;
38
+ line-height: $baseline * 2;
39
+ small {
40
+ font-size: 14px;
41
+ }
42
+ }
43
+ h3, h4, h5, h6 {
44
+ line-height: $baseline * 2;
45
+ }
46
+ h3 {
47
+ font-size: 18px;
48
+ small {
49
+ font-size: 14px;
50
+ }
51
+ }
52
+ h4 {
53
+ font-size: 16px;
54
+ small {
55
+ font-size: 12px;
56
+ }
57
+ }
58
+ h5 {
59
+ font-size: 14px;
60
+ }
61
+ h6 {
62
+ font-size: 13px;
63
+ color: $grayLight;
64
+ text-transform: uppercase;
65
+ }
66
+
67
+
68
+ // COLORS
69
+ // ------
70
+
71
+ // Unordered and Ordered lists
72
+ ul, ol {
73
+ margin: 0 0 $baseline 25px;
74
+ }
75
+ ul ul,
76
+ ul ol,
77
+ ol ol,
78
+ ol ul {
79
+ margin-bottom: 0;
80
+ }
81
+ ul {
82
+ list-style: disc;
83
+ }
84
+ ol {
85
+ list-style: decimal;
86
+ }
87
+ li {
88
+ line-height: $baseline;
89
+ color: $gray;
90
+ }
91
+ ul.unstyled {
92
+ list-style: none;
93
+ margin-left: 0;
94
+ }
95
+
96
+ // Description Lists
97
+ dl {
98
+ margin-bottom: $baseline;
99
+ dt, dd {
100
+ line-height: $baseline;
101
+ }
102
+ dt {
103
+ font-weight: bold;
104
+ }
105
+ dd {
106
+ margin-left: $baseline / 2;
107
+ }
108
+ }
109
+
110
+ // MISC
111
+ // ----
112
+
113
+ // Horizontal rules
114
+ hr {
115
+ margin: 20px 0 19px;
116
+ border: 0;
117
+ border-bottom: 1px solid #eee;
118
+ }
119
+
120
+ // Emphasis
121
+ strong {
122
+ font-style: inherit;
123
+ font-weight: bold;
124
+ }
125
+ em {
126
+ font-style: italic;
127
+ font-weight: inherit;
128
+ line-height: inherit;
129
+ }
130
+ .muted {
131
+ color: $grayLight;
132
+ }
133
+
134
+ // Blockquotes
135
+ blockquote {
136
+ margin-bottom: $baseline;
137
+ border-left: 5px solid #eee;
138
+ padding-left: 15px;
139
+ p {
140
+ @include shorthand-font(300,14px,$baseline);
141
+ margin-bottom: 0;
142
+ }
143
+ small {
144
+ display: block;
145
+ @include shorthand-font(300,12px,$baseline);
146
+ color: $grayLight;
147
+ &:before {
148
+ content: '\2014 \00A0';
149
+ }
150
+ }
151
+ }
152
+
153
+ // Addresses
154
+ address {
155
+ display: block;
156
+ line-height: $baseline;
157
+ margin-bottom: $baseline;
158
+ }
159
+
160
+ // Inline and block code styles
161
+ code, pre {
162
+ padding: 0 3px 2px;
163
+ font-family: Monaco, Andale Mono, Courier New, monospace;
164
+ font-size: 12px;
165
+ @include border-radius(3px);
166
+ }
167
+ code {
168
+ background-color: lighten($orange, 40%);
169
+ color: rgba(0,0,0,.75);
170
+ padding: 1px 3px;
171
+ }
172
+ pre {
173
+ background-color: #f5f5f5;
174
+ display: block;
175
+ padding: ($baseline - 1) / 2;
176
+ margin: 0 0 $baseline;
177
+ line-height: $baseline;
178
+ font-size: 12px;
179
+ border: 1px solid #ccc;
180
+ border: 1px solid rgba(0,0,0,.15);
181
+ @include border-radius(3px);
182
+ white-space: pre;
183
+ white-space: pre-wrap;
184
+ word-wrap: break-word;
185
+ }
@@ -0,0 +1,50 @@
1
+ /* Variables.less
2
+ * Variables to customize the look and feel of Bootstrap
3
+ * ----------------------------------------------------- */
4
+
5
+ // Links
6
+ $linkColor: #0069d6;
7
+ $linkColorHover: darken($linkColor, 15);
8
+
9
+ // Grays
10
+ $black: #000;
11
+ $grayDark: lighten($black, 25%);
12
+ $gray: lighten($black, 50%);
13
+ $grayLight: lighten($black, 75%);
14
+ $grayLighter: lighten($black, 90%);
15
+ $white: #fff;
16
+
17
+ // Accent Colors
18
+ $blue: #5DB7FE;
19
+ $blueDark: #025EE6;
20
+ $green: #46a546;
21
+ $red: #9d261d;
22
+ $yellow: #ffc40d;
23
+ $orange: #f89406;
24
+ $pink: #c3325f;
25
+ $purple: #7a43b6;
26
+
27
+ // Baseline grid
28
+ $basefont: 13px;
29
+ $baseline: 18px;
30
+
31
+ // Griditude
32
+ // Modify the grid styles in mixins.less
33
+ $gridColumns: 16;
34
+ $gridColumnWidth: 40px;
35
+ $gridGutterWidth: 20px;
36
+ $extraSpace: ($gridGutterWidth * 2); // For our grid calculations
37
+ $siteWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
38
+
39
+ // Color Scheme
40
+ // Use this to roll your own color schemes if you like (unused by Bootstrap by default)
41
+ $baseColor: $blue; // Set a base color
42
+ $complement: spin($baseColor, 180); // Determine a complementary color
43
+ $split1: spin($baseColor, 158); // Split complements
44
+ $split2: spin($baseColor, -158);
45
+ $triad1: spin($baseColor, 135); // Triads colors
46
+ $triad2: spin($baseColor, -135);
47
+ $tetra1: spin($baseColor, 90); // Tetra colors
48
+ $tetra2: spin($baseColor, -90);
49
+ $analog1: spin($baseColor, 22); // Analogs colors
50
+ $analog2: spin($baseColor, -22);
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Kickoff v0.1
3
+ *
4
+ * Another open source project by Aristo (aristolabs.com).
5
+ * Coded by yours truly, Loki Meyburg (@lokimeyburg).
6
+ * Date: @DATE
7
+ *
8
+ *= require_self
9
+ */
10
+ // CSS Reset
11
+ @import "reset.scss";
12
+ // Core
13
+ @import "variables.scss";
14
+ @import "mixins.scss";
15
+ @import "scaffolding.scss";
16
+ // Styled patterns and elements
17
+ @import "type.scss";
18
+ @import "forms.scss";
19
+ @import "tables.scss";
20
+ @import "patterns.scss";
21
+ // Project specific stylesheets go under this line