prez 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/bin/prez +3 -1
  3. data/lib/prez/assets.rb +10 -3
  4. data/lib/prez/build.rb +7 -18
  5. data/lib/prez/builder.rb +19 -0
  6. data/lib/prez/cli.rb +4 -11
  7. data/lib/prez/error.rb +16 -0
  8. data/lib/prez/files.rb +30 -10
  9. data/lib/prez/helpers.rb +37 -0
  10. data/lib/prez/new.rb +36 -0
  11. data/lib/prez/sass_extensions.rb +40 -0
  12. data/lib/prez/start.rb +69 -0
  13. data/lib/prez/version.rb +1 -1
  14. data/templates/build.html.tt +87 -0
  15. data/templates/new.prez.tt +11 -2
  16. data/vendor/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  17. data/vendor/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
  18. data/vendor/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  19. data/vendor/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  20. data/vendor/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  21. data/vendor/javascripts/bootstrap.js +2306 -0
  22. data/vendor/javascripts/prez-controller.js.coffee +131 -0
  23. data/vendor/stylesheets/_bootstrap.scss +50 -0
  24. data/vendor/stylesheets/bootstrap/_alerts.scss +73 -0
  25. data/vendor/stylesheets/bootstrap/_badges.scss +67 -0
  26. data/vendor/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
  27. data/vendor/stylesheets/bootstrap/_button-groups.scss +243 -0
  28. data/vendor/stylesheets/bootstrap/_buttons.scss +160 -0
  29. data/vendor/stylesheets/bootstrap/_carousel.scss +269 -0
  30. data/vendor/stylesheets/bootstrap/_close.scss +36 -0
  31. data/vendor/stylesheets/bootstrap/_code.scss +69 -0
  32. data/vendor/stylesheets/bootstrap/_component-animations.scss +38 -0
  33. data/vendor/stylesheets/bootstrap/_dropdowns.scss +214 -0
  34. data/vendor/stylesheets/bootstrap/_forms.scss +570 -0
  35. data/vendor/stylesheets/bootstrap/_glyphicons.scss +301 -0
  36. data/vendor/stylesheets/bootstrap/_grid.scss +84 -0
  37. data/vendor/stylesheets/bootstrap/_input-groups.scss +166 -0
  38. data/vendor/stylesheets/bootstrap/_jumbotron.scss +50 -0
  39. data/vendor/stylesheets/bootstrap/_labels.scss +66 -0
  40. data/vendor/stylesheets/bootstrap/_list-group.scss +124 -0
  41. data/vendor/stylesheets/bootstrap/_media.scss +61 -0
  42. data/vendor/stylesheets/bootstrap/_mixins.scss +39 -0
  43. data/vendor/stylesheets/bootstrap/_modals.scss +148 -0
  44. data/vendor/stylesheets/bootstrap/_navbar.scss +663 -0
  45. data/vendor/stylesheets/bootstrap/_navs.scss +244 -0
  46. data/vendor/stylesheets/bootstrap/_normalize.scss +427 -0
  47. data/vendor/stylesheets/bootstrap/_pager.scss +54 -0
  48. data/vendor/stylesheets/bootstrap/_pagination.scss +88 -0
  49. data/vendor/stylesheets/bootstrap/_panels.scss +265 -0
  50. data/vendor/stylesheets/bootstrap/_popovers.scss +135 -0
  51. data/vendor/stylesheets/bootstrap/_print.scss +107 -0
  52. data/vendor/stylesheets/bootstrap/_progress-bars.scss +87 -0
  53. data/vendor/stylesheets/bootstrap/_responsive-embed.scss +35 -0
  54. data/vendor/stylesheets/bootstrap/_responsive-utilities.scss +177 -0
  55. data/vendor/stylesheets/bootstrap/_scaffolding.scss +150 -0
  56. data/vendor/stylesheets/bootstrap/_tables.scss +234 -0
  57. data/vendor/stylesheets/bootstrap/_theme.scss +273 -0
  58. data/vendor/stylesheets/bootstrap/_thumbnails.scss +38 -0
  59. data/vendor/stylesheets/bootstrap/_tooltip.scss +103 -0
  60. data/vendor/stylesheets/bootstrap/_type.scss +298 -0
  61. data/vendor/stylesheets/bootstrap/_utilities.scss +56 -0
  62. data/vendor/stylesheets/bootstrap/_variables.scss +862 -0
  63. data/vendor/stylesheets/bootstrap/_wells.scss +29 -0
  64. data/vendor/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  65. data/vendor/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
  66. data/vendor/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  67. data/vendor/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
  68. data/vendor/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  69. data/vendor/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  70. data/vendor/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  71. data/vendor/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  72. data/vendor/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  73. data/vendor/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  74. data/vendor/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  75. data/vendor/stylesheets/bootstrap/mixins/_image.scss +33 -0
  76. data/vendor/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  77. data/vendor/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
  78. data/vendor/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  79. data/vendor/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  80. data/vendor/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  81. data/vendor/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
  82. data/vendor/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  83. data/vendor/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  84. data/vendor/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  85. data/vendor/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  86. data/vendor/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  87. data/vendor/stylesheets/bootstrap/mixins/_size.scss +10 -0
  88. data/vendor/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  89. data/vendor/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  90. data/vendor/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
  91. data/vendor/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  92. data/vendor/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  93. data/vendor/stylesheets/bootstrap.scss +2 -0
  94. data/vendor/stylesheets/prez/_variables.scss +3 -0
  95. data/vendor/stylesheets/prez-controller.scss +37 -0
  96. data/vendor/stylesheets/{prez.css → prez.scss} +12 -5
  97. metadata +118 -4
  98. data/vendor/javascripts/prez.js +0 -53
@@ -0,0 +1,214 @@
1
+ //
2
+ // Dropdown menus
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Dropdown arrow/caret
7
+ .caret {
8
+ display: inline-block;
9
+ width: 0;
10
+ height: 0;
11
+ margin-left: 2px;
12
+ vertical-align: middle;
13
+ border-top: $caret-width-base solid;
14
+ border-right: $caret-width-base solid transparent;
15
+ border-left: $caret-width-base solid transparent;
16
+ }
17
+
18
+ // The dropdown wrapper (div)
19
+ .dropup,
20
+ .dropdown {
21
+ position: relative;
22
+ }
23
+
24
+ // Prevent the focus on the dropdown toggle when closing dropdowns
25
+ .dropdown-toggle:focus {
26
+ outline: 0;
27
+ }
28
+
29
+ // The dropdown menu (ul)
30
+ .dropdown-menu {
31
+ position: absolute;
32
+ top: 100%;
33
+ left: 0;
34
+ z-index: $zindex-dropdown;
35
+ display: none; // none by default, but block on "open" of the menu
36
+ float: left;
37
+ min-width: 160px;
38
+ padding: 5px 0;
39
+ margin: 2px 0 0; // override default ul
40
+ list-style: none;
41
+ font-size: $font-size-base;
42
+ text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
43
+ background-color: $dropdown-bg;
44
+ border: 1px solid $dropdown-fallback-border; // IE8 fallback
45
+ border: 1px solid $dropdown-border;
46
+ border-radius: $border-radius-base;
47
+ @include box-shadow(0 6px 12px rgba(0,0,0,.175));
48
+ background-clip: padding-box;
49
+
50
+ // Aligns the dropdown menu to right
51
+ //
52
+ // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
53
+ &.pull-right {
54
+ right: 0;
55
+ left: auto;
56
+ }
57
+
58
+ // Dividers (basically an hr) within the dropdown
59
+ .divider {
60
+ @include nav-divider($dropdown-divider-bg);
61
+ }
62
+
63
+ // Links within the dropdown menu
64
+ > li > a {
65
+ display: block;
66
+ padding: 3px 20px;
67
+ clear: both;
68
+ font-weight: normal;
69
+ line-height: $line-height-base;
70
+ color: $dropdown-link-color;
71
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
72
+ }
73
+ }
74
+
75
+ // Hover/Focus state
76
+ .dropdown-menu > li > a {
77
+ &:hover,
78
+ &:focus {
79
+ text-decoration: none;
80
+ color: $dropdown-link-hover-color;
81
+ background-color: $dropdown-link-hover-bg;
82
+ }
83
+ }
84
+
85
+ // Active state
86
+ .dropdown-menu > .active > a {
87
+ &,
88
+ &:hover,
89
+ &:focus {
90
+ color: $dropdown-link-active-color;
91
+ text-decoration: none;
92
+ outline: 0;
93
+ background-color: $dropdown-link-active-bg;
94
+ }
95
+ }
96
+
97
+ // Disabled state
98
+ //
99
+ // Gray out text and ensure the hover/focus state remains gray
100
+
101
+ .dropdown-menu > .disabled > a {
102
+ &,
103
+ &:hover,
104
+ &:focus {
105
+ color: $dropdown-link-disabled-color;
106
+ }
107
+
108
+ // Nuke hover/focus effects
109
+ &:hover,
110
+ &:focus {
111
+ text-decoration: none;
112
+ background-color: transparent;
113
+ background-image: none; // Remove CSS gradient
114
+ @include reset-filter;
115
+ cursor: $cursor-disabled;
116
+ }
117
+ }
118
+
119
+ // Open state for the dropdown
120
+ .open {
121
+ // Show the menu
122
+ > .dropdown-menu {
123
+ display: block;
124
+ }
125
+
126
+ // Remove the outline when :focus is triggered
127
+ > a {
128
+ outline: 0;
129
+ }
130
+ }
131
+
132
+ // Menu positioning
133
+ //
134
+ // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
135
+ // menu with the parent.
136
+ .dropdown-menu-right {
137
+ left: auto; // Reset the default from `.dropdown-menu`
138
+ right: 0;
139
+ }
140
+ // With v3, we enabled auto-flipping if you have a dropdown within a right
141
+ // aligned nav component. To enable the undoing of that, we provide an override
142
+ // to restore the default dropdown menu alignment.
143
+ //
144
+ // This is only for left-aligning a dropdown menu within a `.navbar-right` or
145
+ // `.pull-right` nav component.
146
+ .dropdown-menu-left {
147
+ left: 0;
148
+ right: auto;
149
+ }
150
+
151
+ // Dropdown section headers
152
+ .dropdown-header {
153
+ display: block;
154
+ padding: 3px 20px;
155
+ font-size: $font-size-small;
156
+ line-height: $line-height-base;
157
+ color: $dropdown-header-color;
158
+ white-space: nowrap; // as with > li > a
159
+ }
160
+
161
+ // Backdrop to catch body clicks on mobile, etc.
162
+ .dropdown-backdrop {
163
+ position: fixed;
164
+ left: 0;
165
+ right: 0;
166
+ bottom: 0;
167
+ top: 0;
168
+ z-index: ($zindex-dropdown - 10);
169
+ }
170
+
171
+ // Right aligned dropdowns
172
+ .pull-right > .dropdown-menu {
173
+ right: 0;
174
+ left: auto;
175
+ }
176
+
177
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
178
+ //
179
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
180
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
181
+
182
+ .dropup,
183
+ .navbar-fixed-bottom .dropdown {
184
+ // Reverse the caret
185
+ .caret {
186
+ border-top: 0;
187
+ border-bottom: $caret-width-base solid;
188
+ content: "";
189
+ }
190
+ // Different positioning for bottom up menu
191
+ .dropdown-menu {
192
+ top: auto;
193
+ bottom: 100%;
194
+ margin-bottom: 2px;
195
+ }
196
+ }
197
+
198
+
199
+ // Component alignment
200
+ //
201
+ // Reiterate per navbar.less and the modified component alignment there.
202
+
203
+ @media (min-width: $grid-float-breakpoint) {
204
+ .navbar-right {
205
+ .dropdown-menu {
206
+ right: 0; left: auto;
207
+ }
208
+ // Necessary for overrides of the default right aligned menu.
209
+ // Will remove come v4 in all likelihood.
210
+ .dropdown-menu-left {
211
+ left: 0; right: auto;
212
+ }
213
+ }
214
+ }