├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitignore ├── HISTORY.md ├── LICENSE ├── README.md ├── app ├── includesPolyfill.js ├── index.js └── templates │ ├── Procfile │ ├── _README.md │ ├── _env │ ├── _eslintignore │ ├── _eslintrc │ ├── _keystone.js │ ├── _package.json │ ├── editorconfig │ ├── gitignore │ ├── models │ ├── Enquiry.js │ ├── Gallery.js │ ├── Post.js │ ├── PostCategory.js │ └── _User.js │ ├── public │ ├── favicon.ico │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── images │ │ ├── logo-email.gif │ │ └── logo.svg │ ├── js │ │ ├── bootstrap │ │ │ ├── affix.js │ │ │ ├── alert.js │ │ │ ├── bootstrap-3.3.5.js │ │ │ ├── bootstrap-3.3.5.min.js │ │ │ ├── button.js │ │ │ ├── carousel.js │ │ │ ├── collapse.js │ │ │ ├── dropdown.js │ │ │ ├── modal.js │ │ │ ├── npm.js │ │ │ ├── popover.js │ │ │ ├── scrollspy.js │ │ │ ├── tab.js │ │ │ ├── tooltip.js │ │ │ └── transition.js │ │ └── jquery │ │ │ ├── jquery-1.11.3.js │ │ │ ├── jquery-1.11.3.min.js │ │ │ ├── jquery-2.1.4.js │ │ │ └── jquery-2.1.4.min.js │ ├── styles-less │ │ ├── bootstrap │ │ │ ├── alerts.less │ │ │ ├── badges.less │ │ │ ├── bootstrap.less │ │ │ ├── breadcrumbs.less │ │ │ ├── button-groups.less │ │ │ ├── buttons.less │ │ │ ├── carousel.less │ │ │ ├── close.less │ │ │ ├── code.less │ │ │ ├── component-animations.less │ │ │ ├── dropdowns.less │ │ │ ├── forms.less │ │ │ ├── glyphicons.less │ │ │ ├── grid.less │ │ │ ├── input-groups.less │ │ │ ├── jumbotron.less │ │ │ ├── labels.less │ │ │ ├── list-group.less │ │ │ ├── media.less │ │ │ ├── mixins.less │ │ │ ├── mixins │ │ │ │ ├── alerts.less │ │ │ │ ├── background-variant.less │ │ │ │ ├── border-radius.less │ │ │ │ ├── buttons.less │ │ │ │ ├── center-block.less │ │ │ │ ├── clearfix.less │ │ │ │ ├── forms.less │ │ │ │ ├── gradients.less │ │ │ │ ├── grid-framework.less │ │ │ │ ├── grid.less │ │ │ │ ├── hide-text.less │ │ │ │ ├── image.less │ │ │ │ ├── labels.less │ │ │ │ ├── list-group.less │ │ │ │ ├── nav-divider.less │ │ │ │ ├── nav-vertical-align.less │ │ │ │ ├── opacity.less │ │ │ │ ├── pagination.less │ │ │ │ ├── panels.less │ │ │ │ ├── progress-bar.less │ │ │ │ ├── reset-filter.less │ │ │ │ ├── reset-text.less │ │ │ │ ├── resize.less │ │ │ │ ├── responsive-visibility.less │ │ │ │ ├── size.less │ │ │ │ ├── tab-focus.less │ │ │ │ ├── table-row.less │ │ │ │ ├── text-emphasis.less │ │ │ │ ├── text-overflow.less │ │ │ │ └── vendor-prefixes.less │ │ │ ├── modals.less │ │ │ ├── navbar.less │ │ │ ├── navs.less │ │ │ ├── normalize.less │ │ │ ├── pager.less │ │ │ ├── pagination.less │ │ │ ├── panels.less │ │ │ ├── popovers.less │ │ │ ├── print.less │ │ │ ├── progress-bars.less │ │ │ ├── responsive-embed.less │ │ │ ├── responsive-utilities.less │ │ │ ├── scaffolding.less │ │ │ ├── tables.less │ │ │ ├── theme.less │ │ │ ├── thumbnails.less │ │ │ ├── tooltip.less │ │ │ ├── type.less │ │ │ ├── utilities.less │ │ │ ├── variables.less │ │ │ └── wells.less │ │ ├── site.less │ │ └── site │ │ │ ├── layout.less │ │ │ └── variables.less │ ├── styles-sass │ │ ├── bootstrap │ │ │ ├── _bootstrap-compass.scss │ │ │ ├── _bootstrap-mincer.scss │ │ │ ├── _bootstrap-sprockets.scss │ │ │ ├── _bootstrap.scss │ │ │ └── bootstrap │ │ │ │ ├── _alerts.scss │ │ │ │ ├── _badges.scss │ │ │ │ ├── _breadcrumbs.scss │ │ │ │ ├── _button-groups.scss │ │ │ │ ├── _buttons.scss │ │ │ │ ├── _carousel.scss │ │ │ │ ├── _close.scss │ │ │ │ ├── _code.scss │ │ │ │ ├── _component-animations.scss │ │ │ │ ├── _dropdowns.scss │ │ │ │ ├── _forms.scss │ │ │ │ ├── _glyphicons.scss │ │ │ │ ├── _grid.scss │ │ │ │ ├── _input-groups.scss │ │ │ │ ├── _jumbotron.scss │ │ │ │ ├── _labels.scss │ │ │ │ ├── _list-group.scss │ │ │ │ ├── _media.scss │ │ │ │ ├── _mixins.scss │ │ │ │ ├── _modals.scss │ │ │ │ ├── _navbar.scss │ │ │ │ ├── _navs.scss │ │ │ │ ├── _normalize.scss │ │ │ │ ├── _pager.scss │ │ │ │ ├── _pagination.scss │ │ │ │ ├── _panels.scss │ │ │ │ ├── _popovers.scss │ │ │ │ ├── _print.scss │ │ │ │ ├── _progress-bars.scss │ │ │ │ ├── _responsive-embed.scss │ │ │ │ ├── _responsive-utilities.scss │ │ │ │ ├── _scaffolding.scss │ │ │ │ ├── _tables.scss │ │ │ │ ├── _theme.scss │ │ │ │ ├── _thumbnails.scss │ │ │ │ ├── _tooltip.scss │ │ │ │ ├── _type.scss │ │ │ │ ├── _utilities.scss │ │ │ │ ├── _variables.scss │ │ │ │ ├── _wells.scss │ │ │ │ └── mixins │ │ │ │ ├── _alerts.scss │ │ │ │ ├── _background-variant.scss │ │ │ │ ├── _border-radius.scss │ │ │ │ ├── _buttons.scss │ │ │ │ ├── _center-block.scss │ │ │ │ ├── _clearfix.scss │ │ │ │ ├── _forms.scss │ │ │ │ ├── _gradients.scss │ │ │ │ ├── _grid-framework.scss │ │ │ │ ├── _grid.scss │ │ │ │ ├── _hide-text.scss │ │ │ │ ├── _image.scss │ │ │ │ ├── _labels.scss │ │ │ │ ├── _list-group.scss │ │ │ │ ├── _nav-divider.scss │ │ │ │ ├── _nav-vertical-align.scss │ │ │ │ ├── _opacity.scss │ │ │ │ ├── _pagination.scss │ │ │ │ ├── _panels.scss │ │ │ │ ├── _progress-bar.scss │ │ │ │ ├── _reset-filter.scss │ │ │ │ ├── _reset-text.scss │ │ │ │ ├── _resize.scss │ │ │ │ ├── _responsive-visibility.scss │ │ │ │ ├── _size.scss │ │ │ │ ├── _tab-focus.scss │ │ │ │ ├── _table-row.scss │ │ │ │ ├── _text-emphasis.scss │ │ │ │ ├── _text-overflow.scss │ │ │ │ └── _vendor-prefixes.scss │ │ ├── site.scss │ │ └── site │ │ │ ├── _layout.scss │ │ │ └── _variables.scss │ └── styles-stylus │ │ ├── bootstrap │ │ ├── alerts.styl │ │ ├── badges.styl │ │ ├── breadcrumbs.styl │ │ ├── button-groups.styl │ │ ├── buttons.styl │ │ ├── carousel.styl │ │ ├── close.styl │ │ ├── code.styl │ │ ├── component-animations.styl │ │ ├── dropdowns.styl │ │ ├── forms.styl │ │ ├── glyphicons.styl │ │ ├── grid.styl │ │ ├── index.styl │ │ ├── input-groups.styl │ │ ├── jumbotron.styl │ │ ├── labels.styl │ │ ├── list-group.styl │ │ ├── media.styl │ │ ├── mixins.styl │ │ ├── mixins │ │ │ ├── alerts.styl │ │ │ ├── background-variant.styl │ │ │ ├── border-radius.styl │ │ │ ├── buttons.styl │ │ │ ├── center-block.styl │ │ │ ├── clearfix.styl │ │ │ ├── forms.styl │ │ │ ├── gradients.styl │ │ │ ├── grid-framework.styl │ │ │ ├── grid.styl │ │ │ ├── hide-text.styl │ │ │ ├── image.styl │ │ │ ├── labels.styl │ │ │ ├── list-group.styl │ │ │ ├── nav-divider.styl │ │ │ ├── nav-vertical-align.styl │ │ │ ├── opacity.styl │ │ │ ├── pagination.styl │ │ │ ├── panels.styl │ │ │ ├── progress-bar.styl │ │ │ ├── reset-filter.styl │ │ │ ├── reset-text.styl │ │ │ ├── resize.styl │ │ │ ├── responsive-visibility.styl │ │ │ ├── size.styl │ │ │ ├── tab-focus.styl │ │ │ ├── table-row.styl │ │ │ ├── text-emphasis.styl │ │ │ ├── text-overflow.styl │ │ │ └── vendor-prefixes.styl │ │ ├── modals.styl │ │ ├── navbar.styl │ │ ├── navs.styl │ │ ├── normalize.styl │ │ ├── pager.styl │ │ ├── pagination.styl │ │ ├── panels.styl │ │ ├── popovers.styl │ │ ├── print.styl │ │ ├── progress-bars.styl │ │ ├── responsive-embed.styl │ │ ├── responsive-utilities.styl │ │ ├── scaffolding.styl │ │ ├── tables.styl │ │ ├── theme.styl │ │ ├── thumbnails.styl │ │ ├── tooltip.styl │ │ ├── type.styl │ │ ├── utilities.styl │ │ ├── variables.styl │ │ └── wells.styl │ │ ├── site.styl │ │ └── site │ │ ├── _layout.styl │ │ └── _variables.styl │ ├── routes │ ├── _emails.js │ ├── _index.js │ ├── _middleware.js │ └── views │ │ ├── blog.js │ │ ├── contact.js │ │ ├── gallery.js │ │ ├── index.js │ │ └── post.js │ ├── templates │ ├── default-hbs │ │ ├── emails │ │ │ └── enquiry-notification.hbs │ │ └── views │ │ │ ├── blog.hbs │ │ │ ├── contact.hbs │ │ │ ├── gallery.hbs │ │ │ ├── helpers │ │ │ └── index.js │ │ │ ├── index.hbs │ │ │ ├── layouts │ │ │ └── default.hbs │ │ │ ├── partials │ │ │ └── pagination.hbs │ │ │ └── post.hbs │ ├── default-nunjucks │ │ ├── emails │ │ │ └── enquiry-notification.html │ │ └── views │ │ │ ├── blog.html │ │ │ ├── contact.html │ │ │ ├── errors │ │ │ ├── 404.html │ │ │ └── 500.html │ │ │ ├── gallery.html │ │ │ ├── index.html │ │ │ ├── layouts │ │ │ └── default.html │ │ │ ├── mixins │ │ │ └── flash-messages.html │ │ │ └── post.html │ ├── default-pug │ │ ├── emails │ │ │ └── enquiry-notification.pug │ │ ├── layouts │ │ │ └── default.pug │ │ ├── mixins │ │ │ └── flash-messages.pug │ │ └── views │ │ │ ├── blog.pug │ │ │ ├── contact.pug │ │ │ ├── errors │ │ │ ├── 404.pug │ │ │ └── 500.pug │ │ │ ├── gallery.pug │ │ │ ├── index.pug │ │ │ └── post.pug │ └── default-twig │ │ ├── emails │ │ └── enquiry-notification.twig │ │ ├── layouts │ │ └── default.twig │ │ ├── mixins │ │ └── flash-messages.twig │ │ └── views │ │ ├── blog.twig │ │ ├── contact.twig │ │ ├── errors │ │ ├── 404.twig │ │ └── 500.twig │ │ ├── gallery.twig │ │ ├── index.twig │ │ └── post.twig │ └── updates │ └── 0.0.1-admins.js ├── package.json └── test ├── test-creation.js └── test-load.js /.editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # editorconfig.org 3 | root = true 4 | 5 | [*] 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = false 9 | insert_final_newline = true 10 | indent_style = tab 11 | 12 | [{*.yml,*.json}] 13 | indent_style = space 14 | indent_size = 2 15 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | app/templates 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "keystone" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Coverage directory used by tools like istanbul 17 | coverage 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | node_modules 24 | 25 | # Ignore .env configuration files 26 | .env 27 | 28 | # Ignore .DS_Store files on OS X 29 | .DS_Store 30 | 31 | # Ignore intellij/jetbrains project files 32 | .idea 33 | 34 | yarn.lock 35 | -------------------------------------------------------------------------------- /HISTORY.md: -------------------------------------------------------------------------------- 1 | # Generator-Keystone 2 | 3 | ## v0.5.1 / 2017-03-22 4 | 5 | * fixed; postcategory relationship to posts 6 | * fixed; add polyfill for for `includes` for older version of node 7 | 8 | ## v0.5.0 / 2017-03-09 9 | 10 | * improved; keystone generator now uses keystone 4. 11 | * improved; moved jade view engine to pug 12 | * fixed; nunjucks template rendering 13 | * fixed; changed underscore references to lodash references 14 | * fixed; lodash pluck switched to map, see: https://github.com/lodash/lodash/wiki/Changelog 15 | * changed; replaced mandrill with mailchimp as base email rendering 16 | * removed; grunt and gulp 17 | * added; `unique: true` to user model 18 | * fixed; keystone email now works correctly with all 4 templating engines 19 | * added; option of `auto` to run the generator with all default options 20 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Jed Watson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /app/includesPolyfill.js: -------------------------------------------------------------------------------- 1 | // https://tc39.github.io/ecma262/#sec-array.prototype.includes 2 | if (!Array.prototype.includes) { 3 | Object.defineProperty(Array.prototype, 'includes', { // eslint-disable-line 4 | value: function (searchElement, fromIndex) { 5 | if (this == null) { 6 | throw new TypeError('"this" is null or not defined'); 7 | } 8 | var o = Object(this); 9 | var len = o.length >>> 0; 10 | if (len === 0) { 11 | return false; 12 | } 13 | var n = fromIndex | 0; 14 | var k = Math.max(n >= 0 15 | ? n 16 | : len - Math.abs(n), 0); 17 | while (k < len) { 18 | if (o[k] === searchElement) { 19 | return true; 20 | } 21 | k++; 22 | } 23 | return false; 24 | }, 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /app/templates/Procfile: -------------------------------------------------------------------------------- 1 | web: node keystone.js 2 | -------------------------------------------------------------------------------- /app/templates/_README.md: -------------------------------------------------------------------------------- 1 | <%= projectName %> 2 | ===================== 3 | 4 | Powered by [KeystoneJS](https://keystonejs.com). 5 | -------------------------------------------------------------------------------- /app/templates/_env: -------------------------------------------------------------------------------- 1 | COOKIE_SECRET=<%= cookieSecret %> 2 | <% if (cloudinaryURL) { %>CLOUDINARY_URL=<%= cloudinaryURL %> 3 | <% } if (includeEmail) { if (mailgunAPI && mailgunDomain) { %>MAILGUN_API_KEY=<%= mailgunAPI %> 4 | MAILGUN_DOMAIN=<%= mailgunDomain %><% } else { %> 5 | # You will need to provide a MAILGUN_API_KEY and MAILGUN_DOMAIN to 6 | # get email sending working. 7 | <% } } %> 8 | -------------------------------------------------------------------------------- /app/templates/_eslintignore: -------------------------------------------------------------------------------- 1 | public/js/bootstrap 2 | public/js/jquery 3 | -------------------------------------------------------------------------------- /app/templates/_eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "keystone" 3 | } 4 | -------------------------------------------------------------------------------- /app/templates/_package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "<%= utils.slug(projectName) %>", 3 | "version": "0.0.0", 4 | "private": true, 5 | "dependencies": { 6 | "keystone": "^4.0.0", 7 | "lodash": "^4.13.1",<% if (viewEngine === 'hbs') { %> 8 | "moment": "2.17.1", 9 | "cloudinary": "1.7.0", 10 | "express-handlebars": "3.0.0", 11 | "handlebars": "4.0.6",<% } else if (viewEngine === 'nunjucks') { %> 12 | "consolidate": "0.14.5", 13 | "nunjucks": "3.0.0", <% } else if (viewEngine === 'pug') { %> 14 | "pug": "2.0.0-beta11", <% } else if (viewEngine === 'twig') { %> 15 | "twig":"0.10.3",<% } if (preprocessor === 'sass') { %> 16 | "node-sass": "4.5.0", 17 | "node-sass-middleware": "0.11.0", <% } else if (preprocessor === 'stylus') { %> 18 | "stylus": "0.54.5", <% } %> 19 | "dotenv": "4.0.0", <% if (includeEmail) { %> 20 | "keystone-email": "1.0.5", <% } %> 21 | "async": "2.1.4" 22 | }, 23 | "devDependencies": { 24 | "eslint": "3.15.0", 25 | "eslint-config-keystone": "3.0.0", 26 | "eslint-plugin-react": "^5.1.1" 27 | }, 28 | "scripts": { 29 | "lint": "eslint .", 30 | "start": "node keystone.js"<% if (preprocessor === 'stylus') { %>, 31 | "compile": "stylus -w public/styles/site.styl -o public/styles/site.css"<% } %> 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/templates/editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # editorconfig.org 3 | root = true 4 | 5 | [*] 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = false 9 | insert_final_newline = true 10 | indent_style = tab 11 | 12 | [{*.yml,*.json}] 13 | indent_style = space 14 | indent_size = 2 15 | -------------------------------------------------------------------------------- /app/templates/gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | # Deployed apps should consider commenting this line out: 24 | # see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git 25 | node_modules 26 | 27 | # Ignore .env configuration files 28 | .env 29 | 30 | # Ignore .DS_Store files on OS X 31 | .DS_Store 32 | -------------------------------------------------------------------------------- /app/templates/models/Enquiry.js: -------------------------------------------------------------------------------- 1 | var keystone = require('keystone'); 2 | var Types = keystone.Field.Types; 3 | 4 | /** 5 | * Enquiry Model 6 | * ============= 7 | */ 8 | 9 | var Enquiry = new keystone.List('Enquiry', { 10 | nocreate: true, 11 | noedit: true, 12 | }); 13 | 14 | Enquiry.add({ 15 | name: { type: Types.Name, required: true }, 16 | email: { type: Types.Email, required: true }, 17 | phone: { type: String }, 18 | enquiryType: { type: Types.Select, options: [ 19 | { value: 'message', label: 'Just leaving a message' }, 20 | { value: 'question', label: 'I\'ve got a question' }, 21 | { value: 'other', label: 'Something else...' }, 22 | ] }, 23 | message: { type: Types.Markdown, required: true }, 24 | createdAt: { type: Date, default: Date.now }, 25 | }); 26 | <% if (includeEmail) { %> 27 | Enquiry.schema.pre('save', function (next) { 28 | this.wasNew = this.isNew; 29 | next(); 30 | }); 31 | 32 | Enquiry.schema.post('save', function () { 33 | if (this.wasNew) { 34 | this.sendNotificationEmail(); 35 | } 36 | }); 37 | 38 | Enquiry.schema.methods.sendNotificationEmail = function (callback) { 39 | if (typeof callback !== 'function') { 40 | callback = function (err) { 41 | if (err) { 42 | console.error('There was an error sending the notification email:', err); 43 | } 44 | }; 45 | } 46 | 47 | if (!process.env.MAILGUN_API_KEY || !process.env.MAILGUN_DOMAIN) { 48 | console.log('Unable to send email - no mailgun credentials provided'); 49 | return callback(new Error('could not find mailgun credentials')); 50 | } 51 | 52 | var enquiry = this; 53 | var brand = keystone.get('brand'); 54 | 55 | keystone.list('<%= userModel %>').model.find().where('isAdmin', true).exec(function (err, admins) { 56 | if (err) return callback(err); 57 | new keystone.Email({ 58 | templateName: 'enquiry-notification', 59 | transport: 'mailgun', 60 | }).send({ 61 | to: admins, 62 | from: { 63 | name: '<%= projectName %>', 64 | email: 'contact@<%= utils.slug(projectName) %>.com', 65 | }, 66 | subject: 'New Enquiry for <%= projectName %>', 67 | enquiry: enquiry, 68 | brand: brand,<% if (viewEngine === 'hbs') { %> 69 | layout: false,<% } %> 70 | }, callback); 71 | }); 72 | }; 73 | <% } %> 74 | Enquiry.defaultSort = '-createdAt'; 75 | Enquiry.defaultColumns = 'name, email, enquiryType, createdAt'; 76 | Enquiry.register(); 77 | -------------------------------------------------------------------------------- /app/templates/models/Gallery.js: -------------------------------------------------------------------------------- 1 | var keystone = require('keystone'); 2 | var Types = keystone.Field.Types; 3 | 4 | /** 5 | * Gallery Model 6 | * ============= 7 | */ 8 | 9 | var Gallery = new keystone.List('Gallery', { 10 | autokey: { from: 'name', path: 'key', unique: true }, 11 | }); 12 | 13 | Gallery.add({ 14 | name: { type: String, required: true }, 15 | publishedDate: { type: Date, default: Date.now }, 16 | heroImage: { type: Types.CloudinaryImage }, 17 | images: { type: Types.CloudinaryImages }, 18 | }); 19 | 20 | Gallery.register(); 21 | -------------------------------------------------------------------------------- /app/templates/models/Post.js: -------------------------------------------------------------------------------- 1 | var keystone = require('keystone'); 2 | var Types = keystone.Field.Types; 3 | 4 | /** 5 | * Post Model 6 | * ========== 7 | */ 8 | 9 | var Post = new keystone.List('Post', { 10 | map: { name: 'title' }, 11 | autokey: { path: 'slug', from: 'title', unique: true }, 12 | }); 13 | 14 | Post.add({ 15 | title: { type: String, required: true }, 16 | state: { type: Types.Select, options: 'draft, published, archived', default: 'draft', index: true }, 17 | author: { type: Types.Relationship, ref: '<%= userModel %>', index: true }, 18 | publishedDate: { type: Types.Date, index: true, dependsOn: { state: 'published' } }, 19 | image: { type: Types.CloudinaryImage }, 20 | content: { 21 | brief: { type: Types.Html, wysiwyg: true, height: 150 }, 22 | extended: { type: Types.Html, wysiwyg: true, height: 400 }, 23 | }, 24 | categories: { type: Types.Relationship, ref: 'PostCategory', many: true }, 25 | }); 26 | 27 | Post.schema.virtual('content.full').get(function () { 28 | return this.content.extended || this.content.brief; 29 | }); 30 | 31 | Post.defaultColumns = 'title, state|20%, author|20%, publishedDate|20%'; 32 | Post.register(); 33 | -------------------------------------------------------------------------------- /app/templates/models/PostCategory.js: -------------------------------------------------------------------------------- 1 | var keystone = require('keystone'); 2 | 3 | /** 4 | * PostCategory Model 5 | * ================== 6 | */ 7 | 8 | var PostCategory = new keystone.List('PostCategory', { 9 | autokey: { from: 'name', path: 'key', unique: true }, 10 | }); 11 | 12 | PostCategory.add({ 13 | name: { type: String, required: true }, 14 | }); 15 | 16 | PostCategory.relationship({ ref: 'Post', path: 'posts', refPath: 'categories' }); 17 | 18 | PostCategory.register(); 19 | -------------------------------------------------------------------------------- /app/templates/models/_User.js: -------------------------------------------------------------------------------- 1 | var keystone = require('keystone'); 2 | var Types = keystone.Field.Types; 3 | 4 | /** 5 | * <%= userModel %> Model 6 | * ========== 7 | */ 8 | var <%= userModel %> = new keystone.List('<%= userModel %>'); 9 | 10 | <%= userModel %>.add({ 11 | name: { type: Types.Name, required: true, index: true }, 12 | email: { type: Types.Email, initial: true, required: true, unique: true, index: true }, 13 | password: { type: Types.Password, initial: true, required: true }, 14 | }, 'Permissions', { 15 | isAdmin: { type: Boolean, label: 'Can access Keystone', index: true }, 16 | }); 17 | 18 | // Provide access to Keystone 19 | <%= userModel %>.schema.virtual('canAccessKeystone').get(function () { 20 | return this.isAdmin; 21 | }); 22 | 23 | <% if (includeBlog) { %> 24 | /** 25 | * Relationships 26 | */ 27 | <%= userModel %>.relationship({ ref: 'Post', path: 'posts', refPath: 'author' }); 28 | 29 | <% } %> 30 | /** 31 | * Registration 32 | */ 33 | <%= userModel %>.defaultColumns = 'name, email, isAdmin'; 34 | <%= userModel %>.register(); 35 | -------------------------------------------------------------------------------- /app/templates/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keystonejs/generator-keystone/b1df16d2a2b682dac3939bbb3c08e711d507dee3/app/templates/public/favicon.ico -------------------------------------------------------------------------------- /app/templates/public/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keystonejs/generator-keystone/b1df16d2a2b682dac3939bbb3c08e711d507dee3/app/templates/public/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /app/templates/public/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keystonejs/generator-keystone/b1df16d2a2b682dac3939bbb3c08e711d507dee3/app/templates/public/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /app/templates/public/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keystonejs/generator-keystone/b1df16d2a2b682dac3939bbb3c08e711d507dee3/app/templates/public/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /app/templates/public/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keystonejs/generator-keystone/b1df16d2a2b682dac3939bbb3c08e711d507dee3/app/templates/public/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /app/templates/public/images/logo-email.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keystonejs/generator-keystone/b1df16d2a2b682dac3939bbb3c08e711d507dee3/app/templates/public/images/logo-email.gif -------------------------------------------------------------------------------- /app/templates/public/js/bootstrap/alert.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: alert.js v3.3.5 3 | * http://getbootstrap.com/javascript/#alerts 4 | * ======================================================================== 5 | * Copyright 2011-2015 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // ALERT CLASS DEFINITION 14 | // ====================== 15 | 16 | var dismiss = '[data-dismiss="alert"]' 17 | var Alert = function (el) { 18 | $(el).on('click', dismiss, this.close) 19 | } 20 | 21 | Alert.VERSION = '3.3.5' 22 | 23 | Alert.TRANSITION_DURATION = 150 24 | 25 | Alert.prototype.close = function (e) { 26 | var $this = $(this) 27 | var selector = $this.attr('data-target') 28 | 29 | if (!selector) { 30 | selector = $this.attr('href') 31 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 32 | } 33 | 34 | var $parent = $(selector) 35 | 36 | if (e) e.preventDefault() 37 | 38 | if (!$parent.length) { 39 | $parent = $this.closest('.alert') 40 | } 41 | 42 | $parent.trigger(e = $.Event('close.bs.alert')) 43 | 44 | if (e.isDefaultPrevented()) return 45 | 46 | $parent.removeClass('in') 47 | 48 | function removeElement() { 49 | // detach from parent, fire event then clean up data 50 | $parent.detach().trigger('closed.bs.alert').remove() 51 | } 52 | 53 | $.support.transition && $parent.hasClass('fade') ? 54 | $parent 55 | .one('bsTransitionEnd', removeElement) 56 | .emulateTransitionEnd(Alert.TRANSITION_DURATION) : 57 | removeElement() 58 | } 59 | 60 | 61 | // ALERT PLUGIN DEFINITION 62 | // ======================= 63 | 64 | function Plugin(option) { 65 | return this.each(function () { 66 | var $this = $(this) 67 | var data = $this.data('bs.alert') 68 | 69 | if (!data) $this.data('bs.alert', (data = new Alert(this))) 70 | if (typeof option == 'string') data[option].call($this) 71 | }) 72 | } 73 | 74 | var old = $.fn.alert 75 | 76 | $.fn.alert = Plugin 77 | $.fn.alert.Constructor = Alert 78 | 79 | 80 | // ALERT NO CONFLICT 81 | // ================= 82 | 83 | $.fn.alert.noConflict = function () { 84 | $.fn.alert = old 85 | return this 86 | } 87 | 88 | 89 | // ALERT DATA-API 90 | // ============== 91 | 92 | $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) 93 | 94 | }(jQuery); 95 | -------------------------------------------------------------------------------- /app/templates/public/js/bootstrap/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /app/templates/public/js/bootstrap/transition.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: transition.js v3.3.5 3 | * http://getbootstrap.com/javascript/#transitions 4 | * ======================================================================== 5 | * Copyright 2011-2015 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) 14 | // ============================================================ 15 | 16 | function transitionEnd() { 17 | var el = document.createElement('bootstrap') 18 | 19 | var transEndEventNames = { 20 | WebkitTransition : 'webkitTransitionEnd', 21 | MozTransition : 'transitionend', 22 | OTransition : 'oTransitionEnd otransitionend', 23 | transition : 'transitionend' 24 | } 25 | 26 | for (var name in transEndEventNames) { 27 | if (el.style[name] !== undefined) { 28 | return { end: transEndEventNames[name] } 29 | } 30 | } 31 | 32 | return false // explicit for ie8 ( ._.) 33 | } 34 | 35 | // http://blog.alexmaccaw.com/css-transitions 36 | $.fn.emulateTransitionEnd = function (duration) { 37 | var called = false 38 | var $el = this 39 | $(this).one('bsTransitionEnd', function () { called = true }) 40 | var callback = function () { if (!called) $($el).trigger($.support.transition.end) } 41 | setTimeout(callback, duration) 42 | return this 43 | } 44 | 45 | $(function () { 46 | $.support.transition = transitionEnd() 47 | 48 | if (!$.support.transition) return 49 | 50 | $.event.special.bsTransitionEnd = { 51 | bindType: $.support.transition.end, 52 | delegateType: $.support.transition.end, 53 | handle: function (e) { 54 | if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) 55 | } 56 | } 57 | }) 58 | 59 | }(jQuery); 60 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/alerts.less: -------------------------------------------------------------------------------- 1 | // 2 | // Alerts 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // ------------------------- 8 | 9 | .alert { 10 | padding: @alert-padding; 11 | margin-bottom: @line-height-computed; 12 | border: 1px solid transparent; 13 | border-radius: @alert-border-radius; 14 | 15 | // Headings for larger alerts 16 | h4 { 17 | margin-top: 0; 18 | // Specified for the h4 to prevent conflicts of changing @headings-color 19 | color: inherit; 20 | } 21 | 22 | // Provide class for links that match alerts 23 | .alert-link { 24 | font-weight: @alert-link-font-weight; 25 | } 26 | 27 | // Improve alignment and spacing of inner content 28 | > p, 29 | > ul { 30 | margin-bottom: 0; 31 | } 32 | 33 | > p + p { 34 | margin-top: 5px; 35 | } 36 | } 37 | 38 | // Dismissible alerts 39 | // 40 | // Expand the right padding and account for the close button's positioning. 41 | 42 | .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0. 43 | .alert-dismissible { 44 | padding-right: (@alert-padding + 20); 45 | 46 | // Adjust close link position 47 | .close { 48 | position: relative; 49 | top: -2px; 50 | right: -21px; 51 | color: inherit; 52 | } 53 | } 54 | 55 | // Alternate styles 56 | // 57 | // Generate contextual modifier classes for colorizing the alert. 58 | 59 | .alert-success { 60 | .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text); 61 | } 62 | 63 | .alert-info { 64 | .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text); 65 | } 66 | 67 | .alert-warning { 68 | .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text); 69 | } 70 | 71 | .alert-danger { 72 | .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text); 73 | } 74 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/badges.less: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .badge { 8 | display: inline-block; 9 | min-width: 10px; 10 | padding: 3px 7px; 11 | font-size: @font-size-small; 12 | font-weight: @badge-font-weight; 13 | color: @badge-color; 14 | line-height: @badge-line-height; 15 | vertical-align: middle; 16 | white-space: nowrap; 17 | text-align: center; 18 | background-color: @badge-bg; 19 | border-radius: @badge-border-radius; 20 | 21 | // Empty badges collapse automatically (not available in IE8) 22 | &:empty { 23 | display: none; 24 | } 25 | 26 | // Quick fix for badges in buttons 27 | .btn & { 28 | position: relative; 29 | top: -1px; 30 | } 31 | 32 | .btn-xs &, 33 | .btn-group-xs > .btn & { 34 | top: 0; 35 | padding: 1px 5px; 36 | } 37 | 38 | // Hover state, but only for links 39 | a& { 40 | &:hover, 41 | &:focus { 42 | color: @badge-link-hover-color; 43 | text-decoration: none; 44 | cursor: pointer; 45 | } 46 | } 47 | 48 | // Account for badges in navs 49 | .list-group-item.active > &, 50 | .nav-pills > .active > a > & { 51 | color: @badge-active-color; 52 | background-color: @badge-active-bg; 53 | } 54 | 55 | .list-group-item > & { 56 | float: right; 57 | } 58 | 59 | .list-group-item > & + & { 60 | margin-right: 5px; 61 | } 62 | 63 | .nav-pills > li > a > & { 64 | margin-left: 3px; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/bootstrap.less: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // Core variables and mixins 8 | @import "variables.less"; 9 | @import "mixins.less"; 10 | 11 | // Reset and dependencies 12 | @import "normalize.less"; 13 | @import "print.less"; 14 | @import "glyphicons.less"; 15 | 16 | // Core CSS 17 | @import "scaffolding.less"; 18 | @import "type.less"; 19 | @import "code.less"; 20 | @import "grid.less"; 21 | @import "tables.less"; 22 | @import "forms.less"; 23 | @import "buttons.less"; 24 | 25 | // Components 26 | @import "component-animations.less"; 27 | @import "dropdowns.less"; 28 | @import "button-groups.less"; 29 | @import "input-groups.less"; 30 | @import "navs.less"; 31 | @import "navbar.less"; 32 | @import "breadcrumbs.less"; 33 | @import "pagination.less"; 34 | @import "pager.less"; 35 | @import "labels.less"; 36 | @import "badges.less"; 37 | @import "jumbotron.less"; 38 | @import "thumbnails.less"; 39 | @import "alerts.less"; 40 | @import "progress-bars.less"; 41 | @import "media.less"; 42 | @import "list-group.less"; 43 | @import "panels.less"; 44 | @import "responsive-embed.less"; 45 | @import "wells.less"; 46 | @import "close.less"; 47 | 48 | // Components w/ JavaScript 49 | @import "modals.less"; 50 | @import "tooltip.less"; 51 | @import "popovers.less"; 52 | @import "carousel.less"; 53 | 54 | // Utility classes 55 | @import "utilities.less"; 56 | @import "responsive-utilities.less"; 57 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/breadcrumbs.less: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal; 8 | margin-bottom: @line-height-computed; 9 | list-style: none; 10 | background-color: @breadcrumb-bg; 11 | border-radius: @border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: @breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: @breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/close.less: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: (@font-size-base * 1.5); 9 | font-weight: @close-font-weight; 10 | line-height: 1; 11 | color: @close-color; 12 | text-shadow: @close-text-shadow; 13 | .opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: @close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | .opacity(.5); 21 | } 22 | 23 | // Additional properties for button version 24 | // iOS requires the button element instead of an anchor tag. 25 | // If you want the anchor version, it requires `href="#"`. 26 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 27 | button& { 28 | padding: 0; 29 | cursor: pointer; 30 | background: transparent; 31 | border: 0; 32 | -webkit-appearance: none; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/code.less: -------------------------------------------------------------------------------- 1 | // 2 | // Code (inline and block) 3 | // -------------------------------------------------- 4 | 5 | 6 | // Inline and block code styles 7 | code, 8 | kbd, 9 | pre, 10 | samp { 11 | font-family: @font-family-monospace; 12 | } 13 | 14 | // Inline code 15 | code { 16 | padding: 2px 4px; 17 | font-size: 90%; 18 | color: @code-color; 19 | background-color: @code-bg; 20 | border-radius: @border-radius-base; 21 | } 22 | 23 | // User input typically entered via keyboard 24 | kbd { 25 | padding: 2px 4px; 26 | font-size: 90%; 27 | color: @kbd-color; 28 | background-color: @kbd-bg; 29 | border-radius: @border-radius-small; 30 | box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); 31 | 32 | kbd { 33 | padding: 0; 34 | font-size: 100%; 35 | font-weight: bold; 36 | box-shadow: none; 37 | } 38 | } 39 | 40 | // Blocks of code 41 | pre { 42 | display: block; 43 | padding: ((@line-height-computed - 1) / 2); 44 | margin: 0 0 (@line-height-computed / 2); 45 | font-size: (@font-size-base - 1); // 14px to 13px 46 | line-height: @line-height-base; 47 | word-break: break-all; 48 | word-wrap: break-word; 49 | color: @pre-color; 50 | background-color: @pre-bg; 51 | border: 1px solid @pre-border-color; 52 | border-radius: @border-radius-base; 53 | 54 | // Account for some code outputs that place code tags in pre tags 55 | code { 56 | padding: 0; 57 | font-size: inherit; 58 | color: inherit; 59 | white-space: pre-wrap; 60 | background-color: transparent; 61 | border-radius: 0; 62 | } 63 | } 64 | 65 | // Enable scrollable blocks of code 66 | .pre-scrollable { 67 | max-height: @pre-scrollable-max-height; 68 | overflow-y: scroll; 69 | } 70 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/component-animations.less: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | .transition(opacity .15s linear); 13 | &.in { 14 | opacity: 1; 15 | } 16 | } 17 | 18 | .collapse { 19 | display: none; 20 | 21 | &.in { display: block; } 22 | tr&.in { display: table-row; } 23 | tbody&.in { display: table-row-group; } 24 | } 25 | 26 | .collapsing { 27 | position: relative; 28 | height: 0; 29 | overflow: hidden; 30 | .transition-property(~"height, visibility"); 31 | .transition-duration(.35s); 32 | .transition-timing-function(ease); 33 | } 34 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/grid.less: -------------------------------------------------------------------------------- 1 | // 2 | // Grid system 3 | // -------------------------------------------------- 4 | 5 | 6 | // Container widths 7 | // 8 | // Set the container width, and override it for fixed navbars in media queries. 9 | 10 | .container { 11 | .container-fixed(); 12 | 13 | @media (min-width: @screen-sm-min) { 14 | width: @container-sm; 15 | } 16 | @media (min-width: @screen-md-min) { 17 | width: @container-md; 18 | } 19 | @media (min-width: @screen-lg-min) { 20 | width: @container-lg; 21 | } 22 | } 23 | 24 | 25 | // Fluid container 26 | // 27 | // Utilizes the mixin meant for fixed width containers, but without any defined 28 | // width for fluid, full width layouts. 29 | 30 | .container-fluid { 31 | .container-fixed(); 32 | } 33 | 34 | 35 | // Row 36 | // 37 | // Rows contain and clear the floats of your columns. 38 | 39 | .row { 40 | .make-row(); 41 | } 42 | 43 | 44 | // Columns 45 | // 46 | // Common styles for small and large grid columns 47 | 48 | .make-grid-columns(); 49 | 50 | 51 | // Extra small grid 52 | // 53 | // Columns, offsets, pushes, and pulls for extra small devices like 54 | // smartphones. 55 | 56 | .make-grid(xs); 57 | 58 | 59 | // Small grid 60 | // 61 | // Columns, offsets, pushes, and pulls for the small device range, from phones 62 | // to tablets. 63 | 64 | @media (min-width: @screen-sm-min) { 65 | .make-grid(sm); 66 | } 67 | 68 | 69 | // Medium grid 70 | // 71 | // Columns, offsets, pushes, and pulls for the desktop device range. 72 | 73 | @media (min-width: @screen-md-min) { 74 | .make-grid(md); 75 | } 76 | 77 | 78 | // Large grid 79 | // 80 | // Columns, offsets, pushes, and pulls for the large desktop device range. 81 | 82 | @media (min-width: @screen-lg-min) { 83 | .make-grid(lg); 84 | } 85 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/jumbotron.less: -------------------------------------------------------------------------------- 1 | // 2 | // Jumbotron 3 | // -------------------------------------------------- 4 | 5 | 6 | .jumbotron { 7 | padding-top: @jumbotron-padding; 8 | padding-bottom: @jumbotron-padding; 9 | margin-bottom: @jumbotron-padding; 10 | color: @jumbotron-color; 11 | background-color: @jumbotron-bg; 12 | 13 | h1, 14 | .h1 { 15 | color: @jumbotron-heading-color; 16 | } 17 | 18 | p { 19 | margin-bottom: (@jumbotron-padding / 2); 20 | font-size: @jumbotron-font-size; 21 | font-weight: 200; 22 | } 23 | 24 | > hr { 25 | border-top-color: darken(@jumbotron-bg, 10%); 26 | } 27 | 28 | .container &, 29 | .container-fluid & { 30 | border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container 31 | } 32 | 33 | .container { 34 | max-width: 100%; 35 | } 36 | 37 | @media screen and (min-width: @screen-sm-min) { 38 | padding-top: (@jumbotron-padding * 1.6); 39 | padding-bottom: (@jumbotron-padding * 1.6); 40 | 41 | .container &, 42 | .container-fluid & { 43 | padding-left: (@jumbotron-padding * 2); 44 | padding-right: (@jumbotron-padding * 2); 45 | } 46 | 47 | h1, 48 | .h1 { 49 | font-size: @jumbotron-heading-font-size; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/labels.less: -------------------------------------------------------------------------------- 1 | // 2 | // Labels 3 | // -------------------------------------------------- 4 | 5 | .label { 6 | display: inline; 7 | padding: .2em .6em .3em; 8 | font-size: 75%; 9 | font-weight: bold; 10 | line-height: 1; 11 | color: @label-color; 12 | text-align: center; 13 | white-space: nowrap; 14 | vertical-align: baseline; 15 | border-radius: .25em; 16 | 17 | // Add hover effects, but only for links 18 | a& { 19 | &:hover, 20 | &:focus { 21 | color: @label-link-hover-color; 22 | text-decoration: none; 23 | cursor: pointer; 24 | } 25 | } 26 | 27 | // Empty labels collapse automatically (not available in IE8) 28 | &:empty { 29 | display: none; 30 | } 31 | 32 | // Quick fix for labels in buttons 33 | .btn & { 34 | position: relative; 35 | top: -1px; 36 | } 37 | } 38 | 39 | // Colors 40 | // Contextual variations (linked labels get darker on :hover) 41 | 42 | .label-default { 43 | .label-variant(@label-default-bg); 44 | } 45 | 46 | .label-primary { 47 | .label-variant(@label-primary-bg); 48 | } 49 | 50 | .label-success { 51 | .label-variant(@label-success-bg); 52 | } 53 | 54 | .label-info { 55 | .label-variant(@label-info-bg); 56 | } 57 | 58 | .label-warning { 59 | .label-variant(@label-warning-bg); 60 | } 61 | 62 | .label-danger { 63 | .label-variant(@label-danger-bg); 64 | } 65 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/media.less: -------------------------------------------------------------------------------- 1 | .media { 2 | // Proper spacing between instances of .media 3 | margin-top: 15px; 4 | 5 | &:first-child { 6 | margin-top: 0; 7 | } 8 | } 9 | 10 | .media, 11 | .media-body { 12 | zoom: 1; 13 | overflow: hidden; 14 | } 15 | 16 | .media-body { 17 | width: 10000px; 18 | } 19 | 20 | .media-object { 21 | display: block; 22 | 23 | // Fix collapse in webkit from max-width: 100% and display: table-cell. 24 | &.img-thumbnail { 25 | max-width: none; 26 | } 27 | } 28 | 29 | .media-right, 30 | .media > .pull-right { 31 | padding-left: 10px; 32 | } 33 | 34 | .media-left, 35 | .media > .pull-left { 36 | padding-right: 10px; 37 | } 38 | 39 | .media-left, 40 | .media-right, 41 | .media-body { 42 | display: table-cell; 43 | vertical-align: top; 44 | } 45 | 46 | .media-middle { 47 | vertical-align: middle; 48 | } 49 | 50 | .media-bottom { 51 | vertical-align: bottom; 52 | } 53 | 54 | // Reset margins on headings for tighter default spacing 55 | .media-heading { 56 | margin-top: 0; 57 | margin-bottom: 5px; 58 | } 59 | 60 | // Media list variation 61 | // 62 | // Undo default ul/ol styles 63 | .media-list { 64 | padding-left: 0; 65 | list-style: none; 66 | } 67 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | 4 | // Utilities 5 | @import "mixins/hide-text.less"; 6 | @import "mixins/opacity.less"; 7 | @import "mixins/image.less"; 8 | @import "mixins/labels.less"; 9 | @import "mixins/reset-filter.less"; 10 | @import "mixins/resize.less"; 11 | @import "mixins/responsive-visibility.less"; 12 | @import "mixins/size.less"; 13 | @import "mixins/tab-focus.less"; 14 | @import "mixins/reset-text.less"; 15 | @import "mixins/text-emphasis.less"; 16 | @import "mixins/text-overflow.less"; 17 | @import "mixins/vendor-prefixes.less"; 18 | 19 | // Components 20 | @import "mixins/alerts.less"; 21 | @import "mixins/buttons.less"; 22 | @import "mixins/panels.less"; 23 | @import "mixins/pagination.less"; 24 | @import "mixins/list-group.less"; 25 | @import "mixins/nav-divider.less"; 26 | @import "mixins/forms.less"; 27 | @import "mixins/progress-bar.less"; 28 | @import "mixins/table-row.less"; 29 | 30 | // Skins 31 | @import "mixins/background-variant.less"; 32 | @import "mixins/border-radius.less"; 33 | @import "mixins/gradients.less"; 34 | 35 | // Layout 36 | @import "mixins/clearfix.less"; 37 | @import "mixins/center-block.less"; 38 | @import "mixins/nav-vertical-align.less"; 39 | @import "mixins/grid-framework.less"; 40 | @import "mixins/grid.less"; 41 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/alerts.less: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | .alert-variant(@background; @border; @text-color) { 4 | background-color: @background; 5 | border-color: @border; 6 | color: @text-color; 7 | 8 | hr { 9 | border-top-color: darken(@border, 5%); 10 | } 11 | .alert-link { 12 | color: darken(@text-color, 10%); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/background-variant.less: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | 3 | .bg-variant(@color) { 4 | background-color: @color; 5 | a&:hover, 6 | a&:focus { 7 | background-color: darken(@color, 10%); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/border-radius.less: -------------------------------------------------------------------------------- 1 | // Single side border-radius 2 | 3 | .border-top-radius(@radius) { 4 | border-top-right-radius: @radius; 5 | border-top-left-radius: @radius; 6 | } 7 | .border-right-radius(@radius) { 8 | border-bottom-right-radius: @radius; 9 | border-top-right-radius: @radius; 10 | } 11 | .border-bottom-radius(@radius) { 12 | border-bottom-right-radius: @radius; 13 | border-bottom-left-radius: @radius; 14 | } 15 | .border-left-radius(@radius) { 16 | border-bottom-left-radius: @radius; 17 | border-top-left-radius: @radius; 18 | } 19 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/buttons.less: -------------------------------------------------------------------------------- 1 | // Button variants 2 | // 3 | // Easily pump out default styles, as well as :hover, :focus, :active, 4 | // and disabled options for all buttons 5 | 6 | .button-variant(@color; @background; @border) { 7 | color: @color; 8 | background-color: @background; 9 | border-color: @border; 10 | 11 | &:focus, 12 | &.focus { 13 | color: @color; 14 | background-color: darken(@background, 10%); 15 | border-color: darken(@border, 25%); 16 | } 17 | &:hover { 18 | color: @color; 19 | background-color: darken(@background, 10%); 20 | border-color: darken(@border, 12%); 21 | } 22 | &:active, 23 | &.active, 24 | .open > .dropdown-toggle& { 25 | color: @color; 26 | background-color: darken(@background, 10%); 27 | border-color: darken(@border, 12%); 28 | 29 | &:hover, 30 | &:focus, 31 | &.focus { 32 | color: @color; 33 | background-color: darken(@background, 17%); 34 | border-color: darken(@border, 25%); 35 | } 36 | } 37 | &:active, 38 | &.active, 39 | .open > .dropdown-toggle& { 40 | background-image: none; 41 | } 42 | &.disabled, 43 | &[disabled], 44 | fieldset[disabled] & { 45 | &, 46 | &:hover, 47 | &:focus, 48 | &.focus, 49 | &:active, 50 | &.active { 51 | background-color: @background; 52 | border-color: @border; 53 | } 54 | } 55 | 56 | .badge { 57 | color: @background; 58 | background-color: @color; 59 | } 60 | } 61 | 62 | // Button sizes 63 | .button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) { 64 | padding: @padding-vertical @padding-horizontal; 65 | font-size: @font-size; 66 | line-height: @line-height; 67 | border-radius: @border-radius; 68 | } 69 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/center-block.less: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | .center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/clearfix.less: -------------------------------------------------------------------------------- 1 | // Clearfix 2 | // 3 | // For modern browsers 4 | // 1. The space content is one way to avoid an Opera bug when the 5 | // contenteditable attribute is included anywhere else in the document. 6 | // Otherwise it causes space to appear at the top and bottom of elements 7 | // that are clearfixed. 8 | // 2. The use of `table` rather than `block` is only necessary if using 9 | // `:before` to contain the top-margins of child elements. 10 | // 11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/ 12 | 13 | .clearfix() { 14 | &:before, 15 | &:after { 16 | content: " "; // 1 17 | display: table; // 2 18 | } 19 | &:after { 20 | clear: both; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/hide-text.less: -------------------------------------------------------------------------------- 1 | // CSS image replacement 2 | // 3 | // Heads up! v3 launched with only `.hide-text()`, but per our pattern for 4 | // mixins being reused as classes with the same name, this doesn't hold up. As 5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. 6 | // 7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 8 | 9 | // Deprecated as of v3.0.1 (will be removed in v4) 10 | .hide-text() { 11 | font: ~"0/0" a; 12 | color: transparent; 13 | text-shadow: none; 14 | background-color: transparent; 15 | border: 0; 16 | } 17 | 18 | // New mixin to use as of v3.0.1 19 | .text-hide() { 20 | .hide-text(); 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/image.less: -------------------------------------------------------------------------------- 1 | // Image Mixins 2 | // - Responsive image 3 | // - Retina image 4 | 5 | 6 | // Responsive image 7 | // 8 | // Keep images from scaling beyond the width of their parents. 9 | .img-responsive(@display: block) { 10 | display: @display; 11 | max-width: 100%; // Part 1: Set a maximum relative to the parent 12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching 13 | } 14 | 15 | 16 | // Retina image 17 | // 18 | // Short retina mixin for setting background-image and -size. Note that the 19 | // spelling of `min--moz-device-pixel-ratio` is intentional. 20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) { 21 | background-image: url("@{file-1x}"); 22 | 23 | @media 24 | only screen and (-webkit-min-device-pixel-ratio: 2), 25 | only screen and ( min--moz-device-pixel-ratio: 2), 26 | only screen and ( -o-min-device-pixel-ratio: 2/1), 27 | only screen and ( min-device-pixel-ratio: 2), 28 | only screen and ( min-resolution: 192dpi), 29 | only screen and ( min-resolution: 2dppx) { 30 | background-image: url("@{file-2x}"); 31 | background-size: @width-1x @height-1x; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/labels.less: -------------------------------------------------------------------------------- 1 | // Labels 2 | 3 | .label-variant(@color) { 4 | background-color: @color; 5 | 6 | &[href] { 7 | &:hover, 8 | &:focus { 9 | background-color: darken(@color, 10%); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/list-group.less: -------------------------------------------------------------------------------- 1 | // List Groups 2 | 3 | .list-group-item-variant(@state; @background; @color) { 4 | .list-group-item-@{state} { 5 | color: @color; 6 | background-color: @background; 7 | 8 | a&, 9 | button& { 10 | color: @color; 11 | 12 | .list-group-item-heading { 13 | color: inherit; 14 | } 15 | 16 | &:hover, 17 | &:focus { 18 | color: @color; 19 | background-color: darken(@background, 5%); 20 | } 21 | &.active, 22 | &.active:hover, 23 | &.active:focus { 24 | color: #fff; 25 | background-color: @color; 26 | border-color: @color; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/nav-divider.less: -------------------------------------------------------------------------------- 1 | // Horizontal dividers 2 | // 3 | // Dividers (basically an hr) within dropdowns and nav lists 4 | 5 | .nav-divider(@color: #e5e5e5) { 6 | height: 1px; 7 | margin: ((@line-height-computed / 2) - 1) 0; 8 | overflow: hidden; 9 | background-color: @color; 10 | } 11 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/nav-vertical-align.less: -------------------------------------------------------------------------------- 1 | // Navbar vertical align 2 | // 3 | // Vertically center elements in the navbar. 4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin. 5 | 6 | .navbar-vertical-align(@element-height) { 7 | margin-top: ((@navbar-height - @element-height) / 2); 8 | margin-bottom: ((@navbar-height - @element-height) / 2); 9 | } 10 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/opacity.less: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | .opacity(@opacity) { 4 | opacity: @opacity; 5 | // IE8 filter 6 | @opacity-ie: (@opacity * 100); 7 | filter: ~"alpha(opacity=@{opacity-ie})"; 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/pagination.less: -------------------------------------------------------------------------------- 1 | // Pagination 2 | 3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) { 4 | > li { 5 | > a, 6 | > span { 7 | padding: @padding-vertical @padding-horizontal; 8 | font-size: @font-size; 9 | line-height: @line-height; 10 | } 11 | &:first-child { 12 | > a, 13 | > span { 14 | .border-left-radius(@border-radius); 15 | } 16 | } 17 | &:last-child { 18 | > a, 19 | > span { 20 | .border-right-radius(@border-radius); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/panels.less: -------------------------------------------------------------------------------- 1 | // Panels 2 | 3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) { 4 | border-color: @border; 5 | 6 | & > .panel-heading { 7 | color: @heading-text-color; 8 | background-color: @heading-bg-color; 9 | border-color: @heading-border; 10 | 11 | + .panel-collapse > .panel-body { 12 | border-top-color: @border; 13 | } 14 | .badge { 15 | color: @heading-bg-color; 16 | background-color: @heading-text-color; 17 | } 18 | } 19 | & > .panel-footer { 20 | + .panel-collapse > .panel-body { 21 | border-bottom-color: @border; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/progress-bar.less: -------------------------------------------------------------------------------- 1 | // Progress bars 2 | 3 | .progress-bar-variant(@color) { 4 | background-color: @color; 5 | 6 | // Deprecated parent class requirement as of v3.2.0 7 | .progress-striped & { 8 | #gradient > .striped(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/reset-filter.less: -------------------------------------------------------------------------------- 1 | // Reset filters for IE 2 | // 3 | // When you need to remove a gradient background, do not forget to use this to reset 4 | // the IE filter for IE9 and below. 5 | 6 | .reset-filter() { 7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/reset-text.less: -------------------------------------------------------------------------------- 1 | .reset-text() { 2 | font-family: @font-family-base; 3 | // We deliberately do NOT reset font-size. 4 | font-style: normal; 5 | font-weight: normal; 6 | letter-spacing: normal; 7 | line-break: auto; 8 | line-height: @line-height-base; 9 | text-align: left; // Fallback for where `start` is not supported 10 | text-align: start; 11 | text-decoration: none; 12 | text-shadow: none; 13 | text-transform: none; 14 | white-space: normal; 15 | word-break: normal; 16 | word-spacing: normal; 17 | word-wrap: normal; 18 | } 19 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/resize.less: -------------------------------------------------------------------------------- 1 | // Resize anything 2 | 3 | .resizable(@direction) { 4 | resize: @direction; // Options: horizontal, vertical, both 5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible` 6 | } 7 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/responsive-visibility.less: -------------------------------------------------------------------------------- 1 | // Responsive utilities 2 | 3 | // 4 | // More easily include all the states for responsive-utilities.less. 5 | .responsive-visibility() { 6 | display: block !important; 7 | table& { display: table !important; } 8 | tr& { display: table-row !important; } 9 | th&, 10 | td& { display: table-cell !important; } 11 | } 12 | 13 | .responsive-invisibility() { 14 | display: none !important; 15 | } 16 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/size.less: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | .size(@width; @height) { 4 | width: @width; 5 | height: @height; 6 | } 7 | 8 | .square(@size) { 9 | .size(@size; @size); 10 | } 11 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/tab-focus.less: -------------------------------------------------------------------------------- 1 | // WebKit-style focus 2 | 3 | .tab-focus() { 4 | // Default 5 | outline: thin dotted; 6 | // WebKit 7 | outline: 5px auto -webkit-focus-ring-color; 8 | outline-offset: -2px; 9 | } 10 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/table-row.less: -------------------------------------------------------------------------------- 1 | // Tables 2 | 3 | .table-row-variant(@state; @background) { 4 | // Exact selectors below required to override `.table-striped` and prevent 5 | // inheritance to nested tables. 6 | .table > thead > tr, 7 | .table > tbody > tr, 8 | .table > tfoot > tr { 9 | > td.@{state}, 10 | > th.@{state}, 11 | &.@{state} > td, 12 | &.@{state} > th { 13 | background-color: @background; 14 | } 15 | } 16 | 17 | // Hover states for `.table-hover` 18 | // Note: this is not available for cells or rows within `thead` or `tfoot`. 19 | .table-hover > tbody > tr { 20 | > td.@{state}:hover, 21 | > th.@{state}:hover, 22 | &.@{state}:hover > td, 23 | &:hover > .@{state}, 24 | &.@{state}:hover > th { 25 | background-color: darken(@background, 5%); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/text-emphasis.less: -------------------------------------------------------------------------------- 1 | // Typography 2 | 3 | .text-emphasis-variant(@color) { 4 | color: @color; 5 | a&:hover, 6 | a&:focus { 7 | color: darken(@color, 10%); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/mixins/text-overflow.less: -------------------------------------------------------------------------------- 1 | // Text overflow 2 | // Requires inline-block or block for proper styling 3 | 4 | .text-overflow() { 5 | overflow: hidden; 6 | text-overflow: ellipsis; 7 | white-space: nowrap; 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/pager.less: -------------------------------------------------------------------------------- 1 | // 2 | // Pager pagination 3 | // -------------------------------------------------- 4 | 5 | 6 | .pager { 7 | padding-left: 0; 8 | margin: @line-height-computed 0; 9 | list-style: none; 10 | text-align: center; 11 | &:extend(.clearfix all); 12 | li { 13 | display: inline; 14 | > a, 15 | > span { 16 | display: inline-block; 17 | padding: 5px 14px; 18 | background-color: @pager-bg; 19 | border: 1px solid @pager-border; 20 | border-radius: @pager-border-radius; 21 | } 22 | 23 | > a:hover, 24 | > a:focus { 25 | text-decoration: none; 26 | background-color: @pager-hover-bg; 27 | } 28 | } 29 | 30 | .next { 31 | > a, 32 | > span { 33 | float: right; 34 | } 35 | } 36 | 37 | .previous { 38 | > a, 39 | > span { 40 | float: left; 41 | } 42 | } 43 | 44 | .disabled { 45 | > a, 46 | > a:hover, 47 | > a:focus, 48 | > span { 49 | color: @pager-disabled-color; 50 | background-color: @pager-bg; 51 | cursor: @cursor-disabled; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/pagination.less: -------------------------------------------------------------------------------- 1 | // 2 | // Pagination (multiple pages) 3 | // -------------------------------------------------- 4 | .pagination { 5 | display: inline-block; 6 | padding-left: 0; 7 | margin: @line-height-computed 0; 8 | border-radius: @border-radius-base; 9 | 10 | > li { 11 | display: inline; // Remove list-style and block-level defaults 12 | > a, 13 | > span { 14 | position: relative; 15 | float: left; // Collapse white-space 16 | padding: @padding-base-vertical @padding-base-horizontal; 17 | line-height: @line-height-base; 18 | text-decoration: none; 19 | color: @pagination-color; 20 | background-color: @pagination-bg; 21 | border: 1px solid @pagination-border; 22 | margin-left: -1px; 23 | } 24 | &:first-child { 25 | > a, 26 | > span { 27 | margin-left: 0; 28 | .border-left-radius(@border-radius-base); 29 | } 30 | } 31 | &:last-child { 32 | > a, 33 | > span { 34 | .border-right-radius(@border-radius-base); 35 | } 36 | } 37 | } 38 | 39 | > li > a, 40 | > li > span { 41 | &:hover, 42 | &:focus { 43 | z-index: 3; 44 | color: @pagination-hover-color; 45 | background-color: @pagination-hover-bg; 46 | border-color: @pagination-hover-border; 47 | } 48 | } 49 | 50 | > .active > a, 51 | > .active > span { 52 | &, 53 | &:hover, 54 | &:focus { 55 | z-index: 2; 56 | color: @pagination-active-color; 57 | background-color: @pagination-active-bg; 58 | border-color: @pagination-active-border; 59 | cursor: default; 60 | } 61 | } 62 | 63 | > .disabled { 64 | > span, 65 | > span:hover, 66 | > span:focus, 67 | > a, 68 | > a:hover, 69 | > a:focus { 70 | color: @pagination-disabled-color; 71 | background-color: @pagination-disabled-bg; 72 | border-color: @pagination-disabled-border; 73 | cursor: @cursor-disabled; 74 | } 75 | } 76 | } 77 | 78 | // Sizing 79 | // -------------------------------------------------- 80 | 81 | // Large 82 | .pagination-lg { 83 | .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large); 84 | } 85 | 86 | // Small 87 | .pagination-sm { 88 | .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small); 89 | } 90 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/print.less: -------------------------------------------------------------------------------- 1 | /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ 2 | 3 | // ========================================================================== 4 | // Print styles. 5 | // Inlined to avoid the additional HTTP request: h5bp.com/r 6 | // ========================================================================== 7 | 8 | @media print { 9 | *, 10 | *:before, 11 | *:after { 12 | background: transparent !important; 13 | color: #000 !important; // Black prints faster: h5bp.com/s 14 | box-shadow: none !important; 15 | text-shadow: none !important; 16 | } 17 | 18 | a, 19 | a:visited { 20 | text-decoration: underline; 21 | } 22 | 23 | a[href]:after { 24 | content: " (" attr(href) ")"; 25 | } 26 | 27 | abbr[title]:after { 28 | content: " (" attr(title) ")"; 29 | } 30 | 31 | // Don't show links that are fragment identifiers, 32 | // or use the `javascript:` pseudo protocol 33 | a[href^="#"]:after, 34 | a[href^="javascript:"]:after { 35 | content: ""; 36 | } 37 | 38 | pre, 39 | blockquote { 40 | border: 1px solid #999; 41 | page-break-inside: avoid; 42 | } 43 | 44 | thead { 45 | display: table-header-group; // h5bp.com/t 46 | } 47 | 48 | tr, 49 | img { 50 | page-break-inside: avoid; 51 | } 52 | 53 | img { 54 | max-width: 100% !important; 55 | } 56 | 57 | p, 58 | h2, 59 | h3 { 60 | orphans: 3; 61 | widows: 3; 62 | } 63 | 64 | h2, 65 | h3 { 66 | page-break-after: avoid; 67 | } 68 | 69 | // Bootstrap specific changes start 70 | 71 | // Bootstrap components 72 | .navbar { 73 | display: none; 74 | } 75 | .btn, 76 | .dropup > .btn { 77 | > .caret { 78 | border-top-color: #000 !important; 79 | } 80 | } 81 | .label { 82 | border: 1px solid #000; 83 | } 84 | 85 | .table { 86 | border-collapse: collapse !important; 87 | 88 | td, 89 | th { 90 | background-color: #fff !important; 91 | } 92 | } 93 | .table-bordered { 94 | th, 95 | td { 96 | border: 1px solid #ddd !important; 97 | } 98 | } 99 | 100 | // Bootstrap specific changes end 101 | } 102 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/progress-bars.less: -------------------------------------------------------------------------------- 1 | // 2 | // Progress bars 3 | // -------------------------------------------------- 4 | 5 | 6 | // Bar animations 7 | // ------------------------- 8 | 9 | // WebKit 10 | @-webkit-keyframes progress-bar-stripes { 11 | from { background-position: 40px 0; } 12 | to { background-position: 0 0; } 13 | } 14 | 15 | // Spec and IE10+ 16 | @keyframes progress-bar-stripes { 17 | from { background-position: 40px 0; } 18 | to { background-position: 0 0; } 19 | } 20 | 21 | 22 | // Bar itself 23 | // ------------------------- 24 | 25 | // Outer container 26 | .progress { 27 | overflow: hidden; 28 | height: @line-height-computed; 29 | margin-bottom: @line-height-computed; 30 | background-color: @progress-bg; 31 | border-radius: @progress-border-radius; 32 | .box-shadow(inset 0 1px 2px rgba(0,0,0,.1)); 33 | } 34 | 35 | // Bar of progress 36 | .progress-bar { 37 | float: left; 38 | width: 0%; 39 | height: 100%; 40 | font-size: @font-size-small; 41 | line-height: @line-height-computed; 42 | color: @progress-bar-color; 43 | text-align: center; 44 | background-color: @progress-bar-bg; 45 | .box-shadow(inset 0 -1px 0 rgba(0,0,0,.15)); 46 | .transition(width .6s ease); 47 | } 48 | 49 | // Striped bars 50 | // 51 | // `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the 52 | // `.progress-bar-striped` class, which you just add to an existing 53 | // `.progress-bar`. 54 | .progress-striped .progress-bar, 55 | .progress-bar-striped { 56 | #gradient > .striped(); 57 | background-size: 40px 40px; 58 | } 59 | 60 | // Call animation for the active one 61 | // 62 | // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the 63 | // `.progress-bar.active` approach. 64 | .progress.active .progress-bar, 65 | .progress-bar.active { 66 | .animation(progress-bar-stripes 2s linear infinite); 67 | } 68 | 69 | 70 | // Variations 71 | // ------------------------- 72 | 73 | .progress-bar-success { 74 | .progress-bar-variant(@progress-bar-success-bg); 75 | } 76 | 77 | .progress-bar-info { 78 | .progress-bar-variant(@progress-bar-info-bg); 79 | } 80 | 81 | .progress-bar-warning { 82 | .progress-bar-variant(@progress-bar-warning-bg); 83 | } 84 | 85 | .progress-bar-danger { 86 | .progress-bar-variant(@progress-bar-danger-bg); 87 | } 88 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/responsive-embed.less: -------------------------------------------------------------------------------- 1 | // Embeds responsive 2 | // 3 | // Credit: Nicolas Gallagher and SUIT CSS. 4 | 5 | .embed-responsive { 6 | position: relative; 7 | display: block; 8 | height: 0; 9 | padding: 0; 10 | overflow: hidden; 11 | 12 | .embed-responsive-item, 13 | iframe, 14 | embed, 15 | object, 16 | video { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | height: 100%; 22 | width: 100%; 23 | border: 0; 24 | } 25 | } 26 | 27 | // Modifier class for 16:9 aspect ratio 28 | .embed-responsive-16by9 { 29 | padding-bottom: 56.25%; 30 | } 31 | 32 | // Modifier class for 4:3 aspect ratio 33 | .embed-responsive-4by3 { 34 | padding-bottom: 75%; 35 | } 36 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/thumbnails.less: -------------------------------------------------------------------------------- 1 | // 2 | // Thumbnails 3 | // -------------------------------------------------- 4 | 5 | 6 | // Mixin and adjust the regular image class 7 | .thumbnail { 8 | display: block; 9 | padding: @thumbnail-padding; 10 | margin-bottom: @line-height-computed; 11 | line-height: @line-height-base; 12 | background-color: @thumbnail-bg; 13 | border: 1px solid @thumbnail-border; 14 | border-radius: @thumbnail-border-radius; 15 | .transition(border .2s ease-in-out); 16 | 17 | > img, 18 | a > img { 19 | &:extend(.img-responsive); 20 | margin-left: auto; 21 | margin-right: auto; 22 | } 23 | 24 | // Add a hover state for linked versions only 25 | a&:hover, 26 | a&:focus, 27 | a&.active { 28 | border-color: @link-color; 29 | } 30 | 31 | // Image captions 32 | .caption { 33 | padding: @thumbnail-caption-padding; 34 | color: @thumbnail-caption-color; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/utilities.less: -------------------------------------------------------------------------------- 1 | // 2 | // Utility classes 3 | // -------------------------------------------------- 4 | 5 | 6 | // Floats 7 | // ------------------------- 8 | 9 | .clearfix { 10 | .clearfix(); 11 | } 12 | .center-block { 13 | .center-block(); 14 | } 15 | .pull-right { 16 | float: right !important; 17 | } 18 | .pull-left { 19 | float: left !important; 20 | } 21 | 22 | 23 | // Toggling content 24 | // ------------------------- 25 | 26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1 27 | .hide { 28 | display: none !important; 29 | } 30 | .show { 31 | display: block !important; 32 | } 33 | .invisible { 34 | visibility: hidden; 35 | } 36 | .text-hide { 37 | .text-hide(); 38 | } 39 | 40 | 41 | // Hide from screenreaders and browsers 42 | // 43 | // Credit: HTML5 Boilerplate 44 | 45 | .hidden { 46 | display: none !important; 47 | } 48 | 49 | 50 | // For Affix plugin 51 | // ------------------------- 52 | 53 | .affix { 54 | position: fixed; 55 | } 56 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/bootstrap/wells.less: -------------------------------------------------------------------------------- 1 | // 2 | // Wells 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .well { 8 | min-height: 20px; 9 | padding: 19px; 10 | margin-bottom: 20px; 11 | background-color: @well-bg; 12 | border: 1px solid @well-border; 13 | border-radius: @border-radius-base; 14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); 15 | blockquote { 16 | border-color: #ddd; 17 | border-color: rgba(0,0,0,.15); 18 | } 19 | } 20 | 21 | // Sizes 22 | .well-lg { 23 | padding: 24px; 24 | border-radius: @border-radius-large; 25 | } 26 | .well-sm { 27 | padding: 9px; 28 | border-radius: @border-radius-small; 29 | } 30 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/site.less: -------------------------------------------------------------------------------- 1 | // Bootstrap 2 | // ========= 3 | 4 | // You can include less bootstrap components if you like by 5 | // importing the .less files you want directly, instead of 6 | // the main bootstrap/bootstrap.less file. 7 | // 8 | // Bootstrap can be removed entirely by deleting this line. 9 | 10 | @import "bootstrap/bootstrap.less"; 11 | 12 | // The easiest way to customise Bootstrap variables while 13 | // being able to easily override the source files with new 14 | // versions is to override the ones you want in another file. 15 | // 16 | // You can also add your own custom variables to this file for 17 | // use in your site stylesheets. 18 | 19 | @import "site/variables.less"; 20 | 21 | 22 | // Site Styles 23 | // =========== 24 | 25 | // Add your own site style includes here 26 | @import "site/layout.less"; 27 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/site/layout.less: -------------------------------------------------------------------------------- 1 | #header { 2 | margin-top: 30px; 3 | } 4 | 5 | #footer { 6 | margin-top: 30px; 7 | border-top: 1px solid #eeeeee; 8 | padding-top: 30px; 9 | color: #777777; 10 | } 11 | 12 | .gallery-image img { 13 | display: block; 14 | max-width: 100%; 15 | height: auto; 16 | } 17 | -------------------------------------------------------------------------------- /app/templates/public/styles-less/site/variables.less: -------------------------------------------------------------------------------- 1 | // Override Bootstrap variables in this file, e.g. 2 | 3 | @font-size-base: 14px; 4 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/_bootstrap-compass.scss: -------------------------------------------------------------------------------- 1 | @function twbs-font-path($path) { 2 | @return font-url($path, true); 3 | } 4 | 5 | @function twbs-image-path($path) { 6 | @return image-url($path, true); 7 | } 8 | 9 | $bootstrap-sass-asset-helper: true; 10 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/_bootstrap-mincer.scss: -------------------------------------------------------------------------------- 1 | // Mincer asset helper functions 2 | // 3 | // This must be imported into a .css.ejs.scss file. 4 | // Then, <% %>-interpolations will be parsed as strings by Sass, and evaluated by EJS after Sass compilation. 5 | 6 | 7 | @function twbs-font-path($path) { 8 | // do something like following 9 | // from "path/to/font.ext#suffix" to "<%- asset_path(path/to/font.ext)) + #suffix %>" 10 | // from "path/to/font.ext?#suffix" to "<%- asset_path(path/to/font.ext)) + ?#suffix %>" 11 | // or from "path/to/font.ext" just "<%- asset_path(path/to/font.ext)) %>" 12 | @return "<%- asset_path('#{$path}'.replace(/[#?].*$/, '')) + '#{$path}'.replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>"; 13 | } 14 | 15 | @function twbs-image-path($file) { 16 | @return "<%- asset_path('#{$file}') %>"; 17 | } 18 | 19 | $bootstrap-sass-asset-helper: true; 20 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/_bootstrap-sprockets.scss: -------------------------------------------------------------------------------- 1 | @function twbs-font-path($path) { 2 | @return font-path($path); 3 | } 4 | 5 | @function twbs-image-path($path) { 6 | @return image-path($path); 7 | } 8 | 9 | $bootstrap-sass-asset-helper: true; 10 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/_bootstrap.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // Core variables and mixins 8 | @import "bootstrap/variables"; 9 | @import "bootstrap/mixins"; 10 | 11 | // Reset and dependencies 12 | @import "bootstrap/normalize"; 13 | @import "bootstrap/print"; 14 | @import "bootstrap/glyphicons"; 15 | 16 | // Core CSS 17 | @import "bootstrap/scaffolding"; 18 | @import "bootstrap/type"; 19 | @import "bootstrap/code"; 20 | @import "bootstrap/grid"; 21 | @import "bootstrap/tables"; 22 | @import "bootstrap/forms"; 23 | @import "bootstrap/buttons"; 24 | 25 | // Components 26 | @import "bootstrap/component-animations"; 27 | @import "bootstrap/dropdowns"; 28 | @import "bootstrap/button-groups"; 29 | @import "bootstrap/input-groups"; 30 | @import "bootstrap/navs"; 31 | @import "bootstrap/navbar"; 32 | @import "bootstrap/breadcrumbs"; 33 | @import "bootstrap/pagination"; 34 | @import "bootstrap/pager"; 35 | @import "bootstrap/labels"; 36 | @import "bootstrap/badges"; 37 | @import "bootstrap/jumbotron"; 38 | @import "bootstrap/thumbnails"; 39 | @import "bootstrap/alerts"; 40 | @import "bootstrap/progress-bars"; 41 | @import "bootstrap/media"; 42 | @import "bootstrap/list-group"; 43 | @import "bootstrap/panels"; 44 | @import "bootstrap/responsive-embed"; 45 | @import "bootstrap/wells"; 46 | @import "bootstrap/close"; 47 | 48 | // Components w/ JavaScript 49 | @import "bootstrap/modals"; 50 | @import "bootstrap/tooltip"; 51 | @import "bootstrap/popovers"; 52 | @import "bootstrap/carousel"; 53 | 54 | // Utility classes 55 | @import "bootstrap/utilities"; 56 | @import "bootstrap/responsive-utilities"; 57 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_alerts.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Alerts 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // ------------------------- 8 | 9 | .alert { 10 | padding: $alert-padding; 11 | margin-bottom: $line-height-computed; 12 | border: 1px solid transparent; 13 | border-radius: $alert-border-radius; 14 | 15 | // Headings for larger alerts 16 | h4 { 17 | margin-top: 0; 18 | // Specified for the h4 to prevent conflicts of changing $headings-color 19 | color: inherit; 20 | } 21 | 22 | // Provide class for links that match alerts 23 | .alert-link { 24 | font-weight: $alert-link-font-weight; 25 | } 26 | 27 | // Improve alignment and spacing of inner content 28 | > p, 29 | > ul { 30 | margin-bottom: 0; 31 | } 32 | 33 | > p + p { 34 | margin-top: 5px; 35 | } 36 | } 37 | 38 | // Dismissible alerts 39 | // 40 | // Expand the right padding and account for the close button's positioning. 41 | 42 | .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0. 43 | .alert-dismissible { 44 | padding-right: ($alert-padding + 20); 45 | 46 | // Adjust close link position 47 | .close { 48 | position: relative; 49 | top: -2px; 50 | right: -21px; 51 | color: inherit; 52 | } 53 | } 54 | 55 | // Alternate styles 56 | // 57 | // Generate contextual modifier classes for colorizing the alert. 58 | 59 | .alert-success { 60 | @include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text); 61 | } 62 | 63 | .alert-info { 64 | @include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text); 65 | } 66 | 67 | .alert-warning { 68 | @include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text); 69 | } 70 | 71 | .alert-danger { 72 | @include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text); 73 | } 74 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_badges.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .badge { 8 | display: inline-block; 9 | min-width: 10px; 10 | padding: 3px 7px; 11 | font-size: $font-size-small; 12 | font-weight: $badge-font-weight; 13 | color: $badge-color; 14 | line-height: $badge-line-height; 15 | vertical-align: middle; 16 | white-space: nowrap; 17 | text-align: center; 18 | background-color: $badge-bg; 19 | border-radius: $badge-border-radius; 20 | 21 | // Empty badges collapse automatically (not available in IE8) 22 | &:empty { 23 | display: none; 24 | } 25 | 26 | // Quick fix for badges in buttons 27 | .btn & { 28 | position: relative; 29 | top: -1px; 30 | } 31 | 32 | .btn-xs &, 33 | .btn-group-xs > .btn & { 34 | top: 0; 35 | padding: 1px 5px; 36 | } 37 | 38 | // [converter] extracted a& to a.badge 39 | 40 | // Account for badges in navs 41 | .list-group-item.active > &, 42 | .nav-pills > .active > a > & { 43 | color: $badge-active-color; 44 | background-color: $badge-active-bg; 45 | } 46 | 47 | .list-group-item > & { 48 | float: right; 49 | } 50 | 51 | .list-group-item > & + & { 52 | margin-right: 5px; 53 | } 54 | 55 | .nav-pills > li > a > & { 56 | margin-left: 3px; 57 | } 58 | } 59 | 60 | // Hover state, but only for links 61 | a.badge { 62 | &:hover, 63 | &:focus { 64 | color: $badge-link-hover-color; 65 | text-decoration: none; 66 | cursor: pointer; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_breadcrumbs.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: $breadcrumb-padding-vertical $breadcrumb-padding-horizontal; 8 | margin-bottom: $line-height-computed; 9 | list-style: none; 10 | background-color: $breadcrumb-bg; 11 | border-radius: $border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "#{$breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: $breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: $breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_close.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: ($font-size-base * 1.5); 9 | font-weight: $close-font-weight; 10 | line-height: 1; 11 | color: $close-color; 12 | text-shadow: $close-text-shadow; 13 | @include opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: $close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | @include opacity(.5); 21 | } 22 | 23 | // [converter] extracted button& to button.close 24 | } 25 | 26 | // Additional properties for button version 27 | // iOS requires the button element instead of an anchor tag. 28 | // If you want the anchor version, it requires `href="#"`. 29 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 30 | button.close { 31 | padding: 0; 32 | cursor: pointer; 33 | background: transparent; 34 | border: 0; 35 | -webkit-appearance: none; 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_code.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Code (inline and block) 3 | // -------------------------------------------------- 4 | 5 | 6 | // Inline and block code styles 7 | code, 8 | kbd, 9 | pre, 10 | samp { 11 | font-family: $font-family-monospace; 12 | } 13 | 14 | // Inline code 15 | code { 16 | padding: 2px 4px; 17 | font-size: 90%; 18 | color: $code-color; 19 | background-color: $code-bg; 20 | border-radius: $border-radius-base; 21 | } 22 | 23 | // User input typically entered via keyboard 24 | kbd { 25 | padding: 2px 4px; 26 | font-size: 90%; 27 | color: $kbd-color; 28 | background-color: $kbd-bg; 29 | border-radius: $border-radius-small; 30 | box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); 31 | 32 | kbd { 33 | padding: 0; 34 | font-size: 100%; 35 | font-weight: bold; 36 | box-shadow: none; 37 | } 38 | } 39 | 40 | // Blocks of code 41 | pre { 42 | display: block; 43 | padding: (($line-height-computed - 1) / 2); 44 | margin: 0 0 ($line-height-computed / 2); 45 | font-size: ($font-size-base - 1); // 14px to 13px 46 | line-height: $line-height-base; 47 | word-break: break-all; 48 | word-wrap: break-word; 49 | color: $pre-color; 50 | background-color: $pre-bg; 51 | border: 1px solid $pre-border-color; 52 | border-radius: $border-radius-base; 53 | 54 | // Account for some code outputs that place code tags in pre tags 55 | code { 56 | padding: 0; 57 | font-size: inherit; 58 | color: inherit; 59 | white-space: pre-wrap; 60 | background-color: transparent; 61 | border-radius: 0; 62 | } 63 | } 64 | 65 | // Enable scrollable blocks of code 66 | .pre-scrollable { 67 | max-height: $pre-scrollable-max-height; 68 | overflow-y: scroll; 69 | } 70 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_component-animations.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | @include transition(opacity .15s linear); 13 | &.in { 14 | opacity: 1; 15 | } 16 | } 17 | 18 | .collapse { 19 | display: none; 20 | 21 | &.in { display: block; } 22 | // [converter] extracted tr&.in to tr.collapse.in 23 | // [converter] extracted tbody&.in to tbody.collapse.in 24 | } 25 | 26 | tr.collapse.in { display: table-row; } 27 | 28 | tbody.collapse.in { display: table-row-group; } 29 | 30 | .collapsing { 31 | position: relative; 32 | height: 0; 33 | overflow: hidden; 34 | @include transition-property(height, visibility); 35 | @include transition-duration(.35s); 36 | @include transition-timing-function(ease); 37 | } 38 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_grid.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Grid system 3 | // -------------------------------------------------- 4 | 5 | 6 | // Container widths 7 | // 8 | // Set the container width, and override it for fixed navbars in media queries. 9 | 10 | .container { 11 | @include container-fixed; 12 | 13 | @media (min-width: $screen-sm-min) { 14 | width: $container-sm; 15 | } 16 | @media (min-width: $screen-md-min) { 17 | width: $container-md; 18 | } 19 | @media (min-width: $screen-lg-min) { 20 | width: $container-lg; 21 | } 22 | } 23 | 24 | 25 | // Fluid container 26 | // 27 | // Utilizes the mixin meant for fixed width containers, but without any defined 28 | // width for fluid, full width layouts. 29 | 30 | .container-fluid { 31 | @include container-fixed; 32 | } 33 | 34 | 35 | // Row 36 | // 37 | // Rows contain and clear the floats of your columns. 38 | 39 | .row { 40 | @include make-row; 41 | } 42 | 43 | 44 | // Columns 45 | // 46 | // Common styles for small and large grid columns 47 | 48 | @include make-grid-columns; 49 | 50 | 51 | // Extra small grid 52 | // 53 | // Columns, offsets, pushes, and pulls for extra small devices like 54 | // smartphones. 55 | 56 | @include make-grid(xs); 57 | 58 | 59 | // Small grid 60 | // 61 | // Columns, offsets, pushes, and pulls for the small device range, from phones 62 | // to tablets. 63 | 64 | @media (min-width: $screen-sm-min) { 65 | @include make-grid(sm); 66 | } 67 | 68 | 69 | // Medium grid 70 | // 71 | // Columns, offsets, pushes, and pulls for the desktop device range. 72 | 73 | @media (min-width: $screen-md-min) { 74 | @include make-grid(md); 75 | } 76 | 77 | 78 | // Large grid 79 | // 80 | // Columns, offsets, pushes, and pulls for the large desktop device range. 81 | 82 | @media (min-width: $screen-lg-min) { 83 | @include make-grid(lg); 84 | } 85 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_jumbotron.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Jumbotron 3 | // -------------------------------------------------- 4 | 5 | 6 | .jumbotron { 7 | padding-top: $jumbotron-padding; 8 | padding-bottom: $jumbotron-padding; 9 | margin-bottom: $jumbotron-padding; 10 | color: $jumbotron-color; 11 | background-color: $jumbotron-bg; 12 | 13 | h1, 14 | .h1 { 15 | color: $jumbotron-heading-color; 16 | } 17 | 18 | p { 19 | margin-bottom: ($jumbotron-padding / 2); 20 | font-size: $jumbotron-font-size; 21 | font-weight: 200; 22 | } 23 | 24 | > hr { 25 | border-top-color: darken($jumbotron-bg, 10%); 26 | } 27 | 28 | .container &, 29 | .container-fluid & { 30 | border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container 31 | } 32 | 33 | .container { 34 | max-width: 100%; 35 | } 36 | 37 | @media screen and (min-width: $screen-sm-min) { 38 | padding-top: ($jumbotron-padding * 1.6); 39 | padding-bottom: ($jumbotron-padding * 1.6); 40 | 41 | .container &, 42 | .container-fluid & { 43 | padding-left: ($jumbotron-padding * 2); 44 | padding-right: ($jumbotron-padding * 2); 45 | } 46 | 47 | h1, 48 | .h1 { 49 | font-size: $jumbotron-heading-font-size; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_labels.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Labels 3 | // -------------------------------------------------- 4 | 5 | .label { 6 | display: inline; 7 | padding: .2em .6em .3em; 8 | font-size: 75%; 9 | font-weight: bold; 10 | line-height: 1; 11 | color: $label-color; 12 | text-align: center; 13 | white-space: nowrap; 14 | vertical-align: baseline; 15 | border-radius: .25em; 16 | 17 | // [converter] extracted a& to a.label 18 | 19 | // Empty labels collapse automatically (not available in IE8) 20 | &:empty { 21 | display: none; 22 | } 23 | 24 | // Quick fix for labels in buttons 25 | .btn & { 26 | position: relative; 27 | top: -1px; 28 | } 29 | } 30 | 31 | // Add hover effects, but only for links 32 | a.label { 33 | &:hover, 34 | &:focus { 35 | color: $label-link-hover-color; 36 | text-decoration: none; 37 | cursor: pointer; 38 | } 39 | } 40 | 41 | // Colors 42 | // Contextual variations (linked labels get darker on :hover) 43 | 44 | .label-default { 45 | @include label-variant($label-default-bg); 46 | } 47 | 48 | .label-primary { 49 | @include label-variant($label-primary-bg); 50 | } 51 | 52 | .label-success { 53 | @include label-variant($label-success-bg); 54 | } 55 | 56 | .label-info { 57 | @include label-variant($label-info-bg); 58 | } 59 | 60 | .label-warning { 61 | @include label-variant($label-warning-bg); 62 | } 63 | 64 | .label-danger { 65 | @include label-variant($label-danger-bg); 66 | } 67 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_media.scss: -------------------------------------------------------------------------------- 1 | .media { 2 | // Proper spacing between instances of .media 3 | margin-top: 15px; 4 | 5 | &:first-child { 6 | margin-top: 0; 7 | } 8 | } 9 | 10 | .media, 11 | .media-body { 12 | zoom: 1; 13 | overflow: hidden; 14 | } 15 | 16 | .media-body { 17 | width: 10000px; 18 | } 19 | 20 | .media-object { 21 | display: block; 22 | 23 | // Fix collapse in webkit from max-width: 100% and display: table-cell. 24 | &.img-thumbnail { 25 | max-width: none; 26 | } 27 | } 28 | 29 | .media-right, 30 | .media > .pull-right { 31 | padding-left: 10px; 32 | } 33 | 34 | .media-left, 35 | .media > .pull-left { 36 | padding-right: 10px; 37 | } 38 | 39 | .media-left, 40 | .media-right, 41 | .media-body { 42 | display: table-cell; 43 | vertical-align: top; 44 | } 45 | 46 | .media-middle { 47 | vertical-align: middle; 48 | } 49 | 50 | .media-bottom { 51 | vertical-align: bottom; 52 | } 53 | 54 | // Reset margins on headings for tighter default spacing 55 | .media-heading { 56 | margin-top: 0; 57 | margin-bottom: 5px; 58 | } 59 | 60 | // Media list variation 61 | // 62 | // Undo default ul/ol styles 63 | .media-list { 64 | padding-left: 0; 65 | list-style: none; 66 | } 67 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | 4 | // Utilities 5 | @import "mixins/hide-text"; 6 | @import "mixins/opacity"; 7 | @import "mixins/image"; 8 | @import "mixins/labels"; 9 | @import "mixins/reset-filter"; 10 | @import "mixins/resize"; 11 | @import "mixins/responsive-visibility"; 12 | @import "mixins/size"; 13 | @import "mixins/tab-focus"; 14 | @import "mixins/reset-text"; 15 | @import "mixins/text-emphasis"; 16 | @import "mixins/text-overflow"; 17 | @import "mixins/vendor-prefixes"; 18 | 19 | // Components 20 | @import "mixins/alerts"; 21 | @import "mixins/buttons"; 22 | @import "mixins/panels"; 23 | @import "mixins/pagination"; 24 | @import "mixins/list-group"; 25 | @import "mixins/nav-divider"; 26 | @import "mixins/forms"; 27 | @import "mixins/progress-bar"; 28 | @import "mixins/table-row"; 29 | 30 | // Skins 31 | @import "mixins/background-variant"; 32 | @import "mixins/border-radius"; 33 | @import "mixins/gradients"; 34 | 35 | // Layout 36 | @import "mixins/clearfix"; 37 | @import "mixins/center-block"; 38 | @import "mixins/nav-vertical-align"; 39 | @import "mixins/grid-framework"; 40 | @import "mixins/grid"; 41 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_pager.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Pager pagination 3 | // -------------------------------------------------- 4 | 5 | 6 | .pager { 7 | padding-left: 0; 8 | margin: $line-height-computed 0; 9 | list-style: none; 10 | text-align: center; 11 | @include clearfix; 12 | li { 13 | display: inline; 14 | > a, 15 | > span { 16 | display: inline-block; 17 | padding: 5px 14px; 18 | background-color: $pager-bg; 19 | border: 1px solid $pager-border; 20 | border-radius: $pager-border-radius; 21 | } 22 | 23 | > a:hover, 24 | > a:focus { 25 | text-decoration: none; 26 | background-color: $pager-hover-bg; 27 | } 28 | } 29 | 30 | .next { 31 | > a, 32 | > span { 33 | float: right; 34 | } 35 | } 36 | 37 | .previous { 38 | > a, 39 | > span { 40 | float: left; 41 | } 42 | } 43 | 44 | .disabled { 45 | > a, 46 | > a:hover, 47 | > a:focus, 48 | > span { 49 | color: $pager-disabled-color; 50 | background-color: $pager-bg; 51 | cursor: $cursor-disabled; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_pagination.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Pagination (multiple pages) 3 | // -------------------------------------------------- 4 | .pagination { 5 | display: inline-block; 6 | padding-left: 0; 7 | margin: $line-height-computed 0; 8 | border-radius: $border-radius-base; 9 | 10 | > li { 11 | display: inline; // Remove list-style and block-level defaults 12 | > a, 13 | > span { 14 | position: relative; 15 | float: left; // Collapse white-space 16 | padding: $padding-base-vertical $padding-base-horizontal; 17 | line-height: $line-height-base; 18 | text-decoration: none; 19 | color: $pagination-color; 20 | background-color: $pagination-bg; 21 | border: 1px solid $pagination-border; 22 | margin-left: -1px; 23 | } 24 | &:first-child { 25 | > a, 26 | > span { 27 | margin-left: 0; 28 | @include border-left-radius($border-radius-base); 29 | } 30 | } 31 | &:last-child { 32 | > a, 33 | > span { 34 | @include border-right-radius($border-radius-base); 35 | } 36 | } 37 | } 38 | 39 | > li > a, 40 | > li > span { 41 | &:hover, 42 | &:focus { 43 | z-index: 3; 44 | color: $pagination-hover-color; 45 | background-color: $pagination-hover-bg; 46 | border-color: $pagination-hover-border; 47 | } 48 | } 49 | 50 | > .active > a, 51 | > .active > span { 52 | &, 53 | &:hover, 54 | &:focus { 55 | z-index: 2; 56 | color: $pagination-active-color; 57 | background-color: $pagination-active-bg; 58 | border-color: $pagination-active-border; 59 | cursor: default; 60 | } 61 | } 62 | 63 | > .disabled { 64 | > span, 65 | > span:hover, 66 | > span:focus, 67 | > a, 68 | > a:hover, 69 | > a:focus { 70 | color: $pagination-disabled-color; 71 | background-color: $pagination-disabled-bg; 72 | border-color: $pagination-disabled-border; 73 | cursor: $cursor-disabled; 74 | } 75 | } 76 | } 77 | 78 | // Sizing 79 | // -------------------------------------------------- 80 | 81 | // Large 82 | .pagination-lg { 83 | @include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large); 84 | } 85 | 86 | // Small 87 | .pagination-sm { 88 | @include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small); 89 | } 90 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_print.scss: -------------------------------------------------------------------------------- 1 | /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ 2 | 3 | // ========================================================================== 4 | // Print styles. 5 | // Inlined to avoid the additional HTTP request: h5bp.com/r 6 | // ========================================================================== 7 | 8 | @media print { 9 | *, 10 | *:before, 11 | *:after { 12 | background: transparent !important; 13 | color: #000 !important; // Black prints faster: h5bp.com/s 14 | box-shadow: none !important; 15 | text-shadow: none !important; 16 | } 17 | 18 | a, 19 | a:visited { 20 | text-decoration: underline; 21 | } 22 | 23 | a[href]:after { 24 | content: " (" attr(href) ")"; 25 | } 26 | 27 | abbr[title]:after { 28 | content: " (" attr(title) ")"; 29 | } 30 | 31 | // Don't show links that are fragment identifiers, 32 | // or use the `javascript:` pseudo protocol 33 | a[href^="#"]:after, 34 | a[href^="javascript:"]:after { 35 | content: ""; 36 | } 37 | 38 | pre, 39 | blockquote { 40 | border: 1px solid #999; 41 | page-break-inside: avoid; 42 | } 43 | 44 | thead { 45 | display: table-header-group; // h5bp.com/t 46 | } 47 | 48 | tr, 49 | img { 50 | page-break-inside: avoid; 51 | } 52 | 53 | img { 54 | max-width: 100% !important; 55 | } 56 | 57 | p, 58 | h2, 59 | h3 { 60 | orphans: 3; 61 | widows: 3; 62 | } 63 | 64 | h2, 65 | h3 { 66 | page-break-after: avoid; 67 | } 68 | 69 | // Bootstrap specific changes start 70 | 71 | // Bootstrap components 72 | .navbar { 73 | display: none; 74 | } 75 | .btn, 76 | .dropup > .btn { 77 | > .caret { 78 | border-top-color: #000 !important; 79 | } 80 | } 81 | .label { 82 | border: 1px solid #000; 83 | } 84 | 85 | .table { 86 | border-collapse: collapse !important; 87 | 88 | td, 89 | th { 90 | background-color: #fff !important; 91 | } 92 | } 93 | .table-bordered { 94 | th, 95 | td { 96 | border: 1px solid #ddd !important; 97 | } 98 | } 99 | 100 | // Bootstrap specific changes end 101 | } 102 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_progress-bars.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Progress bars 3 | // -------------------------------------------------- 4 | 5 | 6 | // Bar animations 7 | // ------------------------- 8 | 9 | // WebKit 10 | @-webkit-keyframes progress-bar-stripes { 11 | from { background-position: 40px 0; } 12 | to { background-position: 0 0; } 13 | } 14 | 15 | // Spec and IE10+ 16 | @keyframes progress-bar-stripes { 17 | from { background-position: 40px 0; } 18 | to { background-position: 0 0; } 19 | } 20 | 21 | 22 | // Bar itself 23 | // ------------------------- 24 | 25 | // Outer container 26 | .progress { 27 | overflow: hidden; 28 | height: $line-height-computed; 29 | margin-bottom: $line-height-computed; 30 | background-color: $progress-bg; 31 | border-radius: $progress-border-radius; 32 | @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1)); 33 | } 34 | 35 | // Bar of progress 36 | .progress-bar { 37 | float: left; 38 | width: 0%; 39 | height: 100%; 40 | font-size: $font-size-small; 41 | line-height: $line-height-computed; 42 | color: $progress-bar-color; 43 | text-align: center; 44 | background-color: $progress-bar-bg; 45 | @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15)); 46 | @include transition(width .6s ease); 47 | } 48 | 49 | // Striped bars 50 | // 51 | // `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the 52 | // `.progress-bar-striped` class, which you just add to an existing 53 | // `.progress-bar`. 54 | .progress-striped .progress-bar, 55 | .progress-bar-striped { 56 | @include gradient-striped; 57 | background-size: 40px 40px; 58 | } 59 | 60 | // Call animation for the active one 61 | // 62 | // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the 63 | // `.progress-bar.active` approach. 64 | .progress.active .progress-bar, 65 | .progress-bar.active { 66 | @include animation(progress-bar-stripes 2s linear infinite); 67 | } 68 | 69 | 70 | // Variations 71 | // ------------------------- 72 | 73 | .progress-bar-success { 74 | @include progress-bar-variant($progress-bar-success-bg); 75 | } 76 | 77 | .progress-bar-info { 78 | @include progress-bar-variant($progress-bar-info-bg); 79 | } 80 | 81 | .progress-bar-warning { 82 | @include progress-bar-variant($progress-bar-warning-bg); 83 | } 84 | 85 | .progress-bar-danger { 86 | @include progress-bar-variant($progress-bar-danger-bg); 87 | } 88 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_responsive-embed.scss: -------------------------------------------------------------------------------- 1 | // Embeds responsive 2 | // 3 | // Credit: Nicolas Gallagher and SUIT CSS. 4 | 5 | .embed-responsive { 6 | position: relative; 7 | display: block; 8 | height: 0; 9 | padding: 0; 10 | overflow: hidden; 11 | 12 | .embed-responsive-item, 13 | iframe, 14 | embed, 15 | object, 16 | video { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | height: 100%; 22 | width: 100%; 23 | border: 0; 24 | } 25 | } 26 | 27 | // Modifier class for 16:9 aspect ratio 28 | .embed-responsive-16by9 { 29 | padding-bottom: 56.25%; 30 | } 31 | 32 | // Modifier class for 4:3 aspect ratio 33 | .embed-responsive-4by3 { 34 | padding-bottom: 75%; 35 | } 36 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_thumbnails.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Thumbnails 3 | // -------------------------------------------------- 4 | 5 | 6 | // Mixin and adjust the regular image class 7 | .thumbnail { 8 | display: block; 9 | padding: $thumbnail-padding; 10 | margin-bottom: $line-height-computed; 11 | line-height: $line-height-base; 12 | background-color: $thumbnail-bg; 13 | border: 1px solid $thumbnail-border; 14 | border-radius: $thumbnail-border-radius; 15 | @include transition(border .2s ease-in-out); 16 | 17 | > img, 18 | a > img { 19 | @include img-responsive; 20 | margin-left: auto; 21 | margin-right: auto; 22 | } 23 | 24 | // [converter] extracted a&:hover, a&:focus, a&.active to a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active 25 | 26 | // Image captions 27 | .caption { 28 | padding: $thumbnail-caption-padding; 29 | color: $thumbnail-caption-color; 30 | } 31 | } 32 | 33 | // Add a hover state for linked versions only 34 | a.thumbnail:hover, 35 | a.thumbnail:focus, 36 | a.thumbnail.active { 37 | border-color: $link-color; 38 | } 39 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_utilities.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Utility classes 3 | // -------------------------------------------------- 4 | 5 | 6 | // Floats 7 | // ------------------------- 8 | 9 | .clearfix { 10 | @include clearfix; 11 | } 12 | .center-block { 13 | @include center-block; 14 | } 15 | .pull-right { 16 | float: right !important; 17 | } 18 | .pull-left { 19 | float: left !important; 20 | } 21 | 22 | 23 | // Toggling content 24 | // ------------------------- 25 | 26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1 27 | .hide { 28 | display: none !important; 29 | } 30 | .show { 31 | display: block !important; 32 | } 33 | .invisible { 34 | visibility: hidden; 35 | } 36 | .text-hide { 37 | @include text-hide; 38 | } 39 | 40 | 41 | // Hide from screenreaders and browsers 42 | // 43 | // Credit: HTML5 Boilerplate 44 | 45 | .hidden { 46 | display: none !important; 47 | } 48 | 49 | 50 | // For Affix plugin 51 | // ------------------------- 52 | 53 | .affix { 54 | position: fixed; 55 | } 56 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/_wells.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Wells 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .well { 8 | min-height: 20px; 9 | padding: 19px; 10 | margin-bottom: 20px; 11 | background-color: $well-bg; 12 | border: 1px solid $well-border; 13 | border-radius: $border-radius-base; 14 | @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); 15 | blockquote { 16 | border-color: #ddd; 17 | border-color: rgba(0,0,0,.15); 18 | } 19 | } 20 | 21 | // Sizes 22 | .well-lg { 23 | padding: 24px; 24 | border-radius: $border-radius-large; 25 | } 26 | .well-sm { 27 | padding: 9px; 28 | border-radius: $border-radius-small; 29 | } 30 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_alerts.scss: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | @mixin alert-variant($background, $border, $text-color) { 4 | background-color: $background; 5 | border-color: $border; 6 | color: $text-color; 7 | 8 | hr { 9 | border-top-color: darken($border, 5%); 10 | } 11 | .alert-link { 12 | color: darken($text-color, 10%); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_background-variant.scss: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | 3 | // [converter] $parent hack 4 | @mixin bg-variant($parent, $color) { 5 | #{$parent} { 6 | background-color: $color; 7 | } 8 | a#{$parent}:hover, 9 | a#{$parent}:focus { 10 | background-color: darken($color, 10%); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_border-radius.scss: -------------------------------------------------------------------------------- 1 | // Single side border-radius 2 | 3 | @mixin border-top-radius($radius) { 4 | border-top-right-radius: $radius; 5 | border-top-left-radius: $radius; 6 | } 7 | @mixin border-right-radius($radius) { 8 | border-bottom-right-radius: $radius; 9 | border-top-right-radius: $radius; 10 | } 11 | @mixin border-bottom-radius($radius) { 12 | border-bottom-right-radius: $radius; 13 | border-bottom-left-radius: $radius; 14 | } 15 | @mixin border-left-radius($radius) { 16 | border-bottom-left-radius: $radius; 17 | border-top-left-radius: $radius; 18 | } 19 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_buttons.scss: -------------------------------------------------------------------------------- 1 | // Button variants 2 | // 3 | // Easily pump out default styles, as well as :hover, :focus, :active, 4 | // and disabled options for all buttons 5 | 6 | @mixin button-variant($color, $background, $border) { 7 | color: $color; 8 | background-color: $background; 9 | border-color: $border; 10 | 11 | &:focus, 12 | &.focus { 13 | color: $color; 14 | background-color: darken($background, 10%); 15 | border-color: darken($border, 25%); 16 | } 17 | &:hover { 18 | color: $color; 19 | background-color: darken($background, 10%); 20 | border-color: darken($border, 12%); 21 | } 22 | &:active, 23 | &.active, 24 | .open > &.dropdown-toggle { 25 | color: $color; 26 | background-color: darken($background, 10%); 27 | border-color: darken($border, 12%); 28 | 29 | &:hover, 30 | &:focus, 31 | &.focus { 32 | color: $color; 33 | background-color: darken($background, 17%); 34 | border-color: darken($border, 25%); 35 | } 36 | } 37 | &:active, 38 | &.active, 39 | .open > &.dropdown-toggle { 40 | background-image: none; 41 | } 42 | &.disabled, 43 | &[disabled], 44 | fieldset[disabled] & { 45 | &, 46 | &:hover, 47 | &:focus, 48 | &.focus, 49 | &:active, 50 | &.active { 51 | background-color: $background; 52 | border-color: $border; 53 | } 54 | } 55 | 56 | .badge { 57 | color: $background; 58 | background-color: $color; 59 | } 60 | } 61 | 62 | // Button sizes 63 | @mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) { 64 | padding: $padding-vertical $padding-horizontal; 65 | font-size: $font-size; 66 | line-height: $line-height; 67 | border-radius: $border-radius; 68 | } 69 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_center-block.scss: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | @mixin center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_clearfix.scss: -------------------------------------------------------------------------------- 1 | // Clearfix 2 | // 3 | // For modern browsers 4 | // 1. The space content is one way to avoid an Opera bug when the 5 | // contenteditable attribute is included anywhere else in the document. 6 | // Otherwise it causes space to appear at the top and bottom of elements 7 | // that are clearfixed. 8 | // 2. The use of `table` rather than `block` is only necessary if using 9 | // `:before` to contain the top-margins of child elements. 10 | // 11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/ 12 | 13 | @mixin clearfix() { 14 | &:before, 15 | &:after { 16 | content: " "; // 1 17 | display: table; // 2 18 | } 19 | &:after { 20 | clear: both; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_grid-framework.scss: -------------------------------------------------------------------------------- 1 | // Framework grid generation 2 | // 3 | // Used only by Bootstrap to generate the correct number of grid classes given 4 | // any value of `$grid-columns`. 5 | 6 | // [converter] This is defined recursively in LESS, but Sass supports real loops 7 | @mixin make-grid-columns($i: 1, $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}") { 8 | @for $i from (1 + 1) through $grid-columns { 9 | $list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}"; 10 | } 11 | #{$list} { 12 | position: relative; 13 | // Prevent columns from collapsing when empty 14 | min-height: 1px; 15 | // Inner gutter via padding 16 | padding-left: ceil(($grid-gutter-width / 2)); 17 | padding-right: floor(($grid-gutter-width / 2)); 18 | } 19 | } 20 | 21 | 22 | // [converter] This is defined recursively in LESS, but Sass supports real loops 23 | @mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") { 24 | @for $i from (1 + 1) through $grid-columns { 25 | $list: "#{$list}, .col-#{$class}-#{$i}"; 26 | } 27 | #{$list} { 28 | float: left; 29 | } 30 | } 31 | 32 | 33 | @mixin calc-grid-column($index, $class, $type) { 34 | @if ($type == width) and ($index > 0) { 35 | .col-#{$class}-#{$index} { 36 | width: percentage(($index / $grid-columns)); 37 | } 38 | } 39 | @if ($type == push) and ($index > 0) { 40 | .col-#{$class}-push-#{$index} { 41 | left: percentage(($index / $grid-columns)); 42 | } 43 | } 44 | @if ($type == push) and ($index == 0) { 45 | .col-#{$class}-push-0 { 46 | left: auto; 47 | } 48 | } 49 | @if ($type == pull) and ($index > 0) { 50 | .col-#{$class}-pull-#{$index} { 51 | right: percentage(($index / $grid-columns)); 52 | } 53 | } 54 | @if ($type == pull) and ($index == 0) { 55 | .col-#{$class}-pull-0 { 56 | right: auto; 57 | } 58 | } 59 | @if ($type == offset) { 60 | .col-#{$class}-offset-#{$index} { 61 | margin-left: percentage(($index / $grid-columns)); 62 | } 63 | } 64 | } 65 | 66 | // [converter] This is defined recursively in LESS, but Sass supports real loops 67 | @mixin loop-grid-columns($columns, $class, $type) { 68 | @for $i from 0 through $columns { 69 | @include calc-grid-column($i, $class, $type); 70 | } 71 | } 72 | 73 | 74 | // Create grid for specific class 75 | @mixin make-grid($class) { 76 | @include float-grid-columns($class); 77 | @include loop-grid-columns($grid-columns, $class, width); 78 | @include loop-grid-columns($grid-columns, $class, pull); 79 | @include loop-grid-columns($grid-columns, $class, push); 80 | @include loop-grid-columns($grid-columns, $class, offset); 81 | } 82 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_hide-text.scss: -------------------------------------------------------------------------------- 1 | // CSS image replacement 2 | // 3 | // Heads up! v3 launched with only `.hide-text()`, but per our pattern for 4 | // mixins being reused as classes with the same name, this doesn't hold up. As 5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. 6 | // 7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 8 | 9 | // Deprecated as of v3.0.1 (will be removed in v4) 10 | @mixin hide-text() { 11 | font: 0/0 a; 12 | color: transparent; 13 | text-shadow: none; 14 | background-color: transparent; 15 | border: 0; 16 | } 17 | 18 | // New mixin to use as of v3.0.1 19 | @mixin text-hide() { 20 | @include hide-text; 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_image.scss: -------------------------------------------------------------------------------- 1 | // Image Mixins 2 | // - Responsive image 3 | // - Retina image 4 | 5 | 6 | // Responsive image 7 | // 8 | // Keep images from scaling beyond the width of their parents. 9 | @mixin img-responsive($display: block) { 10 | display: $display; 11 | max-width: 100%; // Part 1: Set a maximum relative to the parent 12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching 13 | } 14 | 15 | 16 | // Retina image 17 | // 18 | // Short retina mixin for setting background-image and -size. Note that the 19 | // spelling of `min--moz-device-pixel-ratio` is intentional. 20 | @mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) { 21 | background-image: url(if($bootstrap-sass-asset-helper, twbs-image-path("#{$file-1x}"), "#{$file-1x}")); 22 | 23 | @media 24 | only screen and (-webkit-min-device-pixel-ratio: 2), 25 | only screen and ( min--moz-device-pixel-ratio: 2), 26 | only screen and ( -o-min-device-pixel-ratio: 2/1), 27 | only screen and ( min-device-pixel-ratio: 2), 28 | only screen and ( min-resolution: 192dpi), 29 | only screen and ( min-resolution: 2dppx) { 30 | background-image: url(if($bootstrap-sass-asset-helper, twbs-image-path("#{$file-2x}"), "#{$file-2x}")); 31 | background-size: $width-1x $height-1x; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_labels.scss: -------------------------------------------------------------------------------- 1 | // Labels 2 | 3 | @mixin label-variant($color) { 4 | background-color: $color; 5 | 6 | &[href] { 7 | &:hover, 8 | &:focus { 9 | background-color: darken($color, 10%); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_list-group.scss: -------------------------------------------------------------------------------- 1 | // List Groups 2 | 3 | @mixin list-group-item-variant($state, $background, $color) { 4 | .list-group-item-#{$state} { 5 | color: $color; 6 | background-color: $background; 7 | 8 | // [converter] extracted a&, button& to a.list-group-item-#{$state}, button.list-group-item-#{$state} 9 | } 10 | 11 | a.list-group-item-#{$state}, 12 | button.list-group-item-#{$state} { 13 | color: $color; 14 | 15 | .list-group-item-heading { 16 | color: inherit; 17 | } 18 | 19 | &:hover, 20 | &:focus { 21 | color: $color; 22 | background-color: darken($background, 5%); 23 | } 24 | &.active, 25 | &.active:hover, 26 | &.active:focus { 27 | color: #fff; 28 | background-color: $color; 29 | border-color: $color; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_nav-divider.scss: -------------------------------------------------------------------------------- 1 | // Horizontal dividers 2 | // 3 | // Dividers (basically an hr) within dropdowns and nav lists 4 | 5 | @mixin nav-divider($color: #e5e5e5) { 6 | height: 1px; 7 | margin: (($line-height-computed / 2) - 1) 0; 8 | overflow: hidden; 9 | background-color: $color; 10 | } 11 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_nav-vertical-align.scss: -------------------------------------------------------------------------------- 1 | // Navbar vertical align 2 | // 3 | // Vertically center elements in the navbar. 4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin. 5 | 6 | @mixin navbar-vertical-align($element-height) { 7 | margin-top: (($navbar-height - $element-height) / 2); 8 | margin-bottom: (($navbar-height - $element-height) / 2); 9 | } 10 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_opacity.scss: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | @mixin opacity($opacity) { 4 | opacity: $opacity; 5 | // IE8 filter 6 | $opacity-ie: ($opacity * 100); 7 | filter: alpha(opacity=$opacity-ie); 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_pagination.scss: -------------------------------------------------------------------------------- 1 | // Pagination 2 | 3 | @mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) { 4 | > li { 5 | > a, 6 | > span { 7 | padding: $padding-vertical $padding-horizontal; 8 | font-size: $font-size; 9 | line-height: $line-height; 10 | } 11 | &:first-child { 12 | > a, 13 | > span { 14 | @include border-left-radius($border-radius); 15 | } 16 | } 17 | &:last-child { 18 | > a, 19 | > span { 20 | @include border-right-radius($border-radius); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_panels.scss: -------------------------------------------------------------------------------- 1 | // Panels 2 | 3 | @mixin panel-variant($border, $heading-text-color, $heading-bg-color, $heading-border) { 4 | border-color: $border; 5 | 6 | & > .panel-heading { 7 | color: $heading-text-color; 8 | background-color: $heading-bg-color; 9 | border-color: $heading-border; 10 | 11 | + .panel-collapse > .panel-body { 12 | border-top-color: $border; 13 | } 14 | .badge { 15 | color: $heading-bg-color; 16 | background-color: $heading-text-color; 17 | } 18 | } 19 | & > .panel-footer { 20 | + .panel-collapse > .panel-body { 21 | border-bottom-color: $border; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_progress-bar.scss: -------------------------------------------------------------------------------- 1 | // Progress bars 2 | 3 | @mixin progress-bar-variant($color) { 4 | background-color: $color; 5 | 6 | // Deprecated parent class requirement as of v3.2.0 7 | .progress-striped & { 8 | @include gradient-striped; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_reset-filter.scss: -------------------------------------------------------------------------------- 1 | // Reset filters for IE 2 | // 3 | // When you need to remove a gradient background, do not forget to use this to reset 4 | // the IE filter for IE9 and below. 5 | 6 | @mixin reset-filter() { 7 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_reset-text.scss: -------------------------------------------------------------------------------- 1 | @mixin reset-text() { 2 | font-family: $font-family-base; 3 | // We deliberately do NOT reset font-size. 4 | font-style: normal; 5 | font-weight: normal; 6 | letter-spacing: normal; 7 | line-break: auto; 8 | line-height: $line-height-base; 9 | text-align: left; // Fallback for where `start` is not supported 10 | text-align: start; 11 | text-decoration: none; 12 | text-shadow: none; 13 | text-transform: none; 14 | white-space: normal; 15 | word-break: normal; 16 | word-spacing: normal; 17 | word-wrap: normal; 18 | } 19 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_resize.scss: -------------------------------------------------------------------------------- 1 | // Resize anything 2 | 3 | @mixin resizable($direction) { 4 | resize: $direction; // Options: horizontal, vertical, both 5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible` 6 | } 7 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_responsive-visibility.scss: -------------------------------------------------------------------------------- 1 | // Responsive utilities 2 | 3 | // 4 | // More easily include all the states for responsive-utilities.less. 5 | // [converter] $parent hack 6 | @mixin responsive-visibility($parent) { 7 | #{$parent} { 8 | display: block !important; 9 | } 10 | table#{$parent} { display: table !important; } 11 | tr#{$parent} { display: table-row !important; } 12 | th#{$parent}, 13 | td#{$parent} { display: table-cell !important; } 14 | } 15 | 16 | // [converter] $parent hack 17 | @mixin responsive-invisibility($parent) { 18 | #{$parent} { 19 | display: none !important; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_size.scss: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | @mixin size($width, $height) { 4 | width: $width; 5 | height: $height; 6 | } 7 | 8 | @mixin square($size) { 9 | @include size($size, $size); 10 | } 11 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_tab-focus.scss: -------------------------------------------------------------------------------- 1 | // WebKit-style focus 2 | 3 | @mixin tab-focus() { 4 | // Default 5 | outline: thin dotted; 6 | // WebKit 7 | outline: 5px auto -webkit-focus-ring-color; 8 | outline-offset: -2px; 9 | } 10 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_table-row.scss: -------------------------------------------------------------------------------- 1 | // Tables 2 | 3 | @mixin table-row-variant($state, $background) { 4 | // Exact selectors below required to override `.table-striped` and prevent 5 | // inheritance to nested tables. 6 | .table > thead > tr, 7 | .table > tbody > tr, 8 | .table > tfoot > tr { 9 | > td.#{$state}, 10 | > th.#{$state}, 11 | &.#{$state} > td, 12 | &.#{$state} > th { 13 | background-color: $background; 14 | } 15 | } 16 | 17 | // Hover states for `.table-hover` 18 | // Note: this is not available for cells or rows within `thead` or `tfoot`. 19 | .table-hover > tbody > tr { 20 | > td.#{$state}:hover, 21 | > th.#{$state}:hover, 22 | &.#{$state}:hover > td, 23 | &:hover > .#{$state}, 24 | &.#{$state}:hover > th { 25 | background-color: darken($background, 5%); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_text-emphasis.scss: -------------------------------------------------------------------------------- 1 | // Typography 2 | 3 | // [converter] $parent hack 4 | @mixin text-emphasis-variant($parent, $color) { 5 | #{$parent} { 6 | color: $color; 7 | } 8 | a#{$parent}:hover, 9 | a#{$parent}:focus { 10 | color: darken($color, 10%); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/bootstrap/bootstrap/mixins/_text-overflow.scss: -------------------------------------------------------------------------------- 1 | // Text overflow 2 | // Requires inline-block or block for proper styling 3 | 4 | @mixin text-overflow() { 5 | overflow: hidden; 6 | text-overflow: ellipsis; 7 | white-space: nowrap; 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/site.scss: -------------------------------------------------------------------------------- 1 | // Bootstrap 2 | // ========= 3 | 4 | // Bootstrap can be removed entirely by deleting this line. 5 | 6 | @import "bootstrap/bootstrap"; 7 | 8 | // The easiest way to customise Bootstrap variables while 9 | // being able to easily override the source files with new 10 | // versions is to override the ones you want in another file. 11 | // 12 | // You can also add your own custom variables to this file for 13 | // use in your site stylesheets. 14 | 15 | @import "site/variables"; 16 | 17 | 18 | // Site Styles 19 | // =========== 20 | 21 | // Add your own site style includes here 22 | @import "site/layout"; 23 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/site/_layout.scss: -------------------------------------------------------------------------------- 1 | #header { 2 | margin-top: 30px; 3 | } 4 | 5 | #footer { 6 | margin-top: 30px; 7 | border-top: 1px solid #eeeeee; 8 | padding-top: 30px; 9 | color: #777777; 10 | } 11 | 12 | .gallery-image img{ 13 | display: block; 14 | max-width: 100%; 15 | height: auto; 16 | } 17 | -------------------------------------------------------------------------------- /app/templates/public/styles-sass/site/_variables.scss: -------------------------------------------------------------------------------- 1 | // Override Bootstrap variables in this file, e.g. 2 | 3 | $font-size-base: 14px; 4 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/alerts.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Alerts 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // ------------------------- 8 | 9 | .alert 10 | padding $alert-padding 11 | margin-bottom $line-height-computed 12 | border 1px solid transparent 13 | border-radius $alert-border-radius 14 | 15 | // Headings for larger alerts 16 | h4 17 | margin-top 0 18 | // Specified for the h4 to prevent conflicts of changing $headings-color 19 | color inherit 20 | 21 | // Provide class for links that match alerts 22 | .alert-link 23 | font-weight $alert-link-font-weight 24 | 25 | // Improve alignment and spacing of inner content 26 | > p, 27 | > ul 28 | margin-bottom 0 29 | 30 | > p + p 31 | margin-top 5px 32 | 33 | // Dismissible alerts 34 | // 35 | // Expand the right padding and account for the close button's positioning. 36 | 37 | .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0. 38 | .alert-dismissible 39 | padding-right ($alert-padding + 20) 40 | 41 | // Adjust close link position 42 | .close 43 | position relative 44 | top -2px 45 | right -21px 46 | color inherit 47 | 48 | // Alternate styles 49 | // 50 | // Generate contextual modifier classes for colorizing the alert. 51 | 52 | .alert-success 53 | alert-variant($alert-success-bg, $alert-success-border, $alert-success-text) 54 | 55 | .alert-info 56 | alert-variant($alert-info-bg, $alert-info-border, $alert-info-text) 57 | 58 | .alert-warning 59 | alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text) 60 | 61 | .alert-danger 62 | alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text) 63 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/badges.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .badge 8 | display inline-block 9 | min-width 10px 10 | padding 3px 7px 11 | font-size $font-size-small 12 | font-weight $badge-font-weight 13 | color $badge-color 14 | line-height $badge-line-height 15 | vertical-align middle 16 | white-space nowrap 17 | text-align center 18 | background-color $badge-bg 19 | border-radius $badge-border-radius 20 | 21 | // Empty badges collapse automatically (not available in IE8) 22 | &:empty 23 | display none 24 | 25 | // Quick fix for badges in buttons 26 | .btn & 27 | position relative 28 | top -1px 29 | 30 | .btn-xs &, 31 | .btn-group-xs > .btn & 32 | top 0 33 | padding 1px 5px 34 | 35 | // Hover state, but only for links 36 | a& 37 | &:hover, 38 | &:focus 39 | color $badge-link-hover-color 40 | text-decoration none 41 | cursor pointer 42 | 43 | // Account for badges in navs 44 | .list-group-item.active > &, 45 | .nav-pills > .active > a > & 46 | color $badge-active-color 47 | background-color $badge-active-bg 48 | 49 | .list-group-item > & 50 | float right 51 | 52 | .list-group-item > & + & 53 | margin-right 5px 54 | 55 | .nav-pills > li > a > & 56 | margin-left 3px 57 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/breadcrumbs.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | .breadcrumb 5 | padding $breadcrumb-padding-vertical $breadcrumb-padding-horizontal 6 | margin-bottom $line-height-computed 7 | list-style none 8 | background-color $breadcrumb-bg 9 | border-radius $border-radius-base 10 | 11 | > li 12 | display inline-block 13 | 14 | + li:before 15 | content "" + $breadcrumb-separator + "\00a0" // Unicode space added since inline-block means non-collapsing white-space 16 | padding 0 5px 17 | color $breadcrumb-color 18 | 19 | > .active 20 | color $breadcrumb-active-color 21 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/close.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close 7 | float right 8 | font-size ($font-size-base * 1.5) 9 | font-weight $close-font-weight 10 | line-height 1 11 | color $close-color 12 | text-shadow $close-text-shadow 13 | opacity-ie(.2) 14 | 15 | &:hover, 16 | &:focus 17 | color $close-color 18 | text-decoration none 19 | cursor pointer 20 | opacity-ie(.5) 21 | 22 | // Additional properties for button version 23 | // iOS requires the button element instead of an anchor tag. 24 | // If you want the anchor version, it requires `href="#"`. 25 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 26 | button& 27 | padding 0 28 | cursor pointer 29 | background transparent 30 | border 0 31 | -webkit-appearance none 32 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/code.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Code (inline and block) 3 | // -------------------------------------------------- 4 | 5 | 6 | // Inline and block code styles 7 | code, 8 | kbd, 9 | pre, 10 | samp 11 | font-family $font-family-monospace 12 | 13 | // Inline code 14 | code 15 | padding 2px 4px 16 | font-size 90% 17 | color $code-color 18 | background-color $code-bg 19 | border-radius $border-radius-base 20 | 21 | // User input typically entered via keyboard 22 | kbd 23 | padding 2px 4px 24 | font-size 90% 25 | color $kbd-color 26 | background-color $kbd-bg 27 | border-radius $border-radius-small 28 | box-shadow inset 0 -1px 0 rgba(0, 0, 0, .25) 29 | 30 | kbd 31 | padding 0 32 | font-size 100% 33 | font-weight bold 34 | box-shadow none 35 | 36 | // Blocks of code 37 | pre 38 | display block 39 | padding (($line-height-computed - 1) / 2) 40 | margin 0 0 ($line-height-computed / 2) 41 | font-size ($font-size-base - 1) // 14px to 13px 42 | line-height $line-height-base 43 | word-break break-all 44 | word-wrap break-word 45 | color $pre-color 46 | background-color $pre-bg 47 | border 1px solid $pre-border-color 48 | border-radius $border-radius-base 49 | 50 | // Account for some code outputs that place code tags in pre tags 51 | code 52 | padding 0 53 | font-size inherit 54 | color inherit 55 | white-space pre-wrap 56 | background-color transparent 57 | border-radius 0 58 | 59 | // Enable scrollable blocks of code 60 | .pre-scrollable 61 | max-height $pre-scrollable-max-height 62 | overflow-y scroll 63 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/component-animations.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `opacity-ie()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade 11 | opacity 0 12 | transition opacity .15s linear 13 | 14 | &.in 15 | opacity 1 16 | 17 | .collapse 18 | display none 19 | 20 | &.in 21 | display block 22 | 23 | tr&.in 24 | display table-row 25 | 26 | tbody&.in 27 | display table-row-group 28 | 29 | .collapsing 30 | position relative 31 | height 0 32 | overflow hidden 33 | transition-property height, visibility 34 | transition-duration .35s 35 | transition-timing-function ease 36 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/grid.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Grid system 3 | // -------------------------------------------------- 4 | 5 | 6 | // Container widths 7 | // 8 | // Set the container width, and override it for fixed navbars in media queries. 9 | 10 | .container 11 | container-fixed() 12 | 13 | @media (min-width $screen-sm-min) 14 | width $container-sm 15 | @media (min-width $screen-md-min) 16 | width $container-md 17 | @media (min-width $screen-lg-min) 18 | width $container-lg 19 | 20 | 21 | // Fluid container 22 | // 23 | // Utilizes the mixin meant for fixed width containers, but without any defined 24 | // width for fluid, full width layouts. 25 | 26 | .container-fluid 27 | container-fixed() 28 | 29 | 30 | // Row 31 | // 32 | // Rows contain and clear the floats of your columns. 33 | 34 | .row 35 | make-row() 36 | 37 | 38 | // Columns 39 | // 40 | // Common styles for small and large grid columns 41 | 42 | make-grid-columns() 43 | 44 | 45 | // Extra small grid 46 | // 47 | // Columns, offsets, pushes, and pulls for extra small devices like 48 | // smartphones. 49 | 50 | make-grid(xs) 51 | 52 | 53 | // Small grid 54 | // 55 | // Columns, offsets, pushes, and pulls for the small device range, from phones 56 | // to tablets. 57 | 58 | @media (min-width $screen-sm-min) 59 | make-grid(sm) 60 | 61 | 62 | // Medium grid 63 | // 64 | // Columns, offsets, pushes, and pulls for the desktop device range. 65 | 66 | @media (min-width $screen-md-min) 67 | make-grid(md) 68 | 69 | 70 | // Large grid 71 | // 72 | // Columns, offsets, pushes, and pulls for the large desktop device range. 73 | 74 | @media (min-width $screen-lg-min) 75 | make-grid(lg) 76 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/index.styl: -------------------------------------------------------------------------------- 1 | /*!! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // Core variables and mixins 8 | @import "variables" 9 | @import "mixins" 10 | 11 | // Reset and dependencies 12 | @import "normalize" 13 | @import "print" 14 | @import "glyphicons" 15 | 16 | // Core CSS 17 | @import "scaffolding" 18 | @import "utilities" 19 | @import "type" 20 | @import "code" 21 | @import "grid" 22 | @import "tables" 23 | @import "forms" 24 | @import "buttons" 25 | 26 | // Components 27 | @import "component-animations" 28 | @import "dropdowns" 29 | @import "button-groups" 30 | @import "input-groups" 31 | @import "navs" 32 | @import "navbar" 33 | @import "breadcrumbs" 34 | @import "pagination" 35 | @import "pager" 36 | @import "labels" 37 | @import "badges" 38 | @import "jumbotron" 39 | @import "thumbnails" 40 | @import "alerts" 41 | @import "progress-bars" 42 | @import "media" 43 | @import "list-group" 44 | @import "panels" 45 | @import "responsive-embed" 46 | @import "wells" 47 | @import "close" 48 | 49 | // Components w/ JavaScript 50 | @import "modals" 51 | @import "tooltip" 52 | @import "popovers" 53 | @import "carousel" 54 | 55 | // Utility classes 56 | @import "responsive-utilities" 57 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/jumbotron.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Jumbotron 3 | // -------------------------------------------------- 4 | 5 | 6 | .jumbotron 7 | padding-top $jumbotron-padding 8 | padding-bottom $jumbotron-padding 9 | margin-bottom $jumbotron-padding 10 | color $jumbotron-color 11 | background-color $jumbotron-bg 12 | 13 | h1, 14 | .h1 15 | color $jumbotron-heading-color 16 | 17 | p 18 | margin-bottom ($jumbotron-padding / 2) 19 | font-size $jumbotron-font-size 20 | font-weight 200 21 | 22 | > hr 23 | border-top-color darken($jumbotron-bg, 10) 24 | 25 | .container &, 26 | .container-fluid & 27 | border-radius $border-radius-large // Only round corners at higher resolutions if contained in a container 28 | 29 | .container 30 | max-width 100% 31 | 32 | @media screen and (min-width $screen-sm-min) 33 | padding-top ($jumbotron-padding * 1.6) 34 | padding-bottom ($jumbotron-padding * 1.6) 35 | 36 | .container &, 37 | .container-fluid & 38 | padding-left ($jumbotron-padding * 2) 39 | padding-right ($jumbotron-padding * 2) 40 | 41 | h1, 42 | .h1 43 | font-size $jumbotron-heading-font-size 44 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/labels.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Labels 3 | // -------------------------------------------------- 4 | 5 | .label 6 | display inline 7 | padding .2em .6em .3em 8 | font-size 75% 9 | font-weight bold 10 | line-height 1 11 | color $label-color 12 | text-align center 13 | white-space nowrap 14 | vertical-align baseline 15 | border-radius .25em 16 | 17 | // Add hover effects, but only for links 18 | a& 19 | &:hover, 20 | &:focus 21 | color $label-link-hover-color 22 | text-decoration none 23 | cursor pointer 24 | 25 | // Empty labels collapse automatically (not available in IE8) 26 | &:empty 27 | display none 28 | 29 | // Quick fix for labels in buttons 30 | .btn & 31 | position relative 32 | top -1px 33 | 34 | // Colors 35 | // Contextual variations (linked labels get darker on :hover) 36 | 37 | .label-default 38 | label-variant($label-default-bg) 39 | 40 | .label-primary 41 | label-variant($label-primary-bg) 42 | 43 | .label-success 44 | label-variant($label-success-bg) 45 | 46 | .label-info 47 | label-variant($label-info-bg) 48 | 49 | .label-warning 50 | label-variant($label-warning-bg) 51 | 52 | .label-danger 53 | label-variant($label-danger-bg) 54 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/media.styl: -------------------------------------------------------------------------------- 1 | .media 2 | // Proper spacing between instances of .media 3 | margin-top 15px 4 | 5 | &:first-child 6 | margin-top 0 7 | 8 | .media, 9 | .media-body 10 | zoom 1 11 | overflow hidden 12 | 13 | .media-body 14 | width 10000px 15 | 16 | .media-object 17 | display block 18 | 19 | // Fix collapse in webkit from max-width: 100% and display: table-cell 20 | &.img-thumbnail 21 | max-width none 22 | 23 | .media-right, 24 | .media > .pull-right 25 | padding-left 10px 26 | 27 | .media-left, 28 | .media > .pull-left 29 | padding-right 10px 30 | 31 | .media-left, 32 | .media-right, 33 | .media-body 34 | display table-cell 35 | vertical-align top 36 | 37 | .media-middle 38 | vertical-align middle 39 | 40 | .media-bottom 41 | vertical-align bottom 42 | 43 | // Reset margins on headings for tighter default spacing 44 | .media-heading 45 | margin-top 0 46 | margin-bottom 5px 47 | 48 | // Media list variation 49 | // 50 | // Undo default ul/ol styles 51 | .media-list 52 | padding-left 0 53 | list-style none 54 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/mixins.styl: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | vendors ?= official 4 | 5 | percentage($n) 6 | if $n == 0 7 | 0 8 | else 9 | unit($n * 100, "%") 10 | 11 | // Utilities 12 | 13 | @import "mixins/hide-text" 14 | @import "mixins/opacity" 15 | @import "mixins/image" 16 | @import "mixins/labels" 17 | @import "mixins/reset-filter" 18 | @import "mixins/resize" 19 | @import "mixins/responsive-visibility" 20 | @import "mixins/size" 21 | @import "mixins/tab-focus" 22 | @import "mixins/reset-text" 23 | @import "mixins/text-emphasis" 24 | @import "mixins/text-overflow" 25 | @import "mixins/vendor-prefixes" 26 | 27 | // Components 28 | @import "mixins/alerts" 29 | @import "mixins/buttons" 30 | @import "mixins/panels" 31 | @import "mixins/pagination" 32 | @import "mixins/list-group" 33 | @import "mixins/nav-divider" 34 | @import "mixins/forms" 35 | @import "mixins/progress-bar" 36 | @import "mixins/table-row" 37 | 38 | // Skins 39 | @import "mixins/background-variant" 40 | @import "mixins/border-radius" 41 | @import "mixins/gradients" 42 | 43 | // Layout 44 | @import "mixins/clearfix" 45 | @import "mixins/center-block" 46 | @import "mixins/nav-vertical-align" 47 | @import "mixins/grid-framework" 48 | @import "mixins/grid" 49 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/mixins/alerts.styl: -------------------------------------------------------------------------------- 1 | // Alerts 2 | alert-variant($background, $border, $text-color) 3 | background-color $background 4 | border-color $border 5 | color $text-color 6 | 7 | hr 8 | border-top-color darken($border, 5) 9 | 10 | .alert-link 11 | color darken($text-color, 10) 12 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/mixins/background-variant.styl: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | bg-variant($color) 3 | background-color $color 4 | 5 | a&:hover, 6 | a&:focus 7 | background-color darken($color, 10) 8 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/mixins/border-radius.styl: -------------------------------------------------------------------------------- 1 | // Single side border-radius 2 | border-top-radius($radius) 3 | border-top-right-radius $radius 4 | border-top-left-radius $radius 5 | 6 | border-right-radius($radius) 7 | border-bottom-right-radius $radius 8 | border-top-right-radius $radius 9 | 10 | border-bottom-radius($radius) 11 | border-bottom-right-radius $radius 12 | border-bottom-left-radius $radius 13 | 14 | border-left-radius($radius) 15 | border-bottom-left-radius $radius 16 | border-top-left-radius $radius 17 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/mixins/buttons.styl: -------------------------------------------------------------------------------- 1 | // Button variants 2 | // 3 | // Easily pump out default styles, as well as :hover, :focus, :active, 4 | // and disabled options for all buttons 5 | button-variant($color, $background, $border) 6 | color $color 7 | background-color $background 8 | border-color $border 9 | 10 | &:focus, 11 | &.focus 12 | color $color 13 | background-color darken($background, 10) 14 | border-color darken($border, 25) 15 | 16 | &:hover 17 | color $color 18 | background-color darken($background, 10) 19 | border-color darken($border, 12) 20 | 21 | &:active, 22 | &.active, 23 | .open > .dropdown-toggle& 24 | color $color 25 | background-color darken($background, 10) 26 | border-color darken($border, 12) 27 | 28 | &:hover, 29 | &:focus, 30 | &.focus 31 | color $color 32 | background-color darken($background, 17) 33 | border-color darken($border, 25) 34 | 35 | &:active, 36 | &.active, 37 | .open > .dropdown-toggle& 38 | background-image none 39 | 40 | &.disabled, 41 | &[disabled], 42 | fieldset[disabled] & 43 | &, 44 | &:hover, 45 | &:focus, 46 | &.focus, 47 | &:active, 48 | &.active 49 | background-color $background 50 | border-color $border 51 | 52 | .badge 53 | color $background 54 | background-color $color 55 | 56 | // Button sizes 57 | button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) 58 | padding $padding-vertical $padding-horizontal 59 | font-size $font-size 60 | line-height $line-height 61 | border-radius $border-radius 62 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/mixins/center-block.styl: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | center-block() 3 | display block 4 | margin-left auto 5 | margin-right auto 6 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/mixins/clearfix.styl: -------------------------------------------------------------------------------- 1 | // Clearfix 2 | // 3 | // For modern browsers 4 | // 1. The space content is one way to avoid an Opera bug when the 5 | // contenteditable attribute is included anywhere else in the document. 6 | // Otherwise it causes space to appear at the top and bottom of elements 7 | // that are clearfixed. 8 | // 2. The use of `table` rather than `block` is only necessary if using 9 | // `:before` to contain the top-margins of child elements. 10 | // 11 | // Source http://nicolasgallagher.com/micro-clearfix-hack/ 12 | clearfix() 13 | &:before, 14 | &:after 15 | content " " // 1 16 | display table // 2 17 | 18 | &:after 19 | clear both 20 | -------------------------------------------------------------------------------- /app/templates/public/styles-stylus/bootstrap/mixins/forms.styl: -------------------------------------------------------------------------------- 1 | // Form validation states 2 | // 3 | // Used in forms to generate the form validation CSS for warnings, errors, 4 | // and successes. 5 | 6 | form-control-validation($text-color = #555, $border-color = #ccc, $background-color = #f5f5f5) 7 | // Color the label and help text 8 | .help-block, 9 | .control-label, 10 | .radio, 11 | .checkbox, 12 | .radio-inline, 13 | .checkbox-inline, 14 | &.radio label, 15 | &.checkbox label, 16 | &.radio-inline label, 17 | &.checkbox-inline label 18 | color $text-color 19 | 20 | // Set the border and box shadow on specific inputs to match 21 | .form-control 22 | border-color $border-color 23 | box-shadow inset 0 1px 1px rgba(0, 0, 0, .075) // Redeclare so transitions work 24 | 25 | &:focus 26 | border-color darken($border-color, 10) 27 | box-shadow inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px lighten($border-color, 20) 28 | 29 | // Set validation states also for addons 30 | .input-group-addon 31 | color $text-color 32 | border-color $border-color 33 | background-color $background-color 34 | 35 | // Optional feedback icon 36 | .form-control-feedback 37 | color $text-color 38 | 39 | 40 | // Form control focus state 41 | // 42 | // Generate a customized focus state and for any input with the specified color, 43 | // which defaults to the `$input-border-focus` variable. 44 | // 45 | // We highly encourage you to not customize the default value, but instead use 46 | // this to tweak colors on an as-needed basis. This aesthetic change is based on 47 | // WebKit's default styles, but applicable to a wider range of browsers. Its 48 | // usability and accessibility should be taken into account with any change. 49 | // 50 | // Example usage change the default blue border and shadow to white for better 51 | // contrast against a dark gray background. 52 | form-control-focus($color = $input-border-focus) 53 | $color-rgba = rgba(red($color), green($color), blue($color), .6) 54 | 55 | &:focus 56 | border-color $color 57 | outline 0 58 | box-shadow inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px $color-rgba 59 | 60 | // Form control sizing 61 | // 62 | // Relative text size, padding, and border-radii changes for form controls. For 63 | // horizontal sizing, wrap controls in the predefined grid classes. ` 12 |
13 | 14 | 15 |
16 |
17 | 18 | 19 |
20 |
21 | 22 | 23 |
24 |
25 | 26 | 32 |
33 |
34 | 35 | 36 |
37 |
38 | 39 |
40 | 41 | {{/if}} 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /app/templates/templates/default-hbs/views/gallery.hbs: -------------------------------------------------------------------------------- 1 |
2 |

Gallery

3 |
4 |
5 | 6 | {{#if galleries}} 7 | {{#each galleries}} 8 |

{{name}} 9 |
19th May 2014
10 |

11 | 27 | {{/each}} 28 | {{else}} 29 | 30 |

There are no image galleries yet.

31 | {{/if}} 32 |
33 | -------------------------------------------------------------------------------- /app/templates/templates/default-hbs/views/index.hbs: -------------------------------------------------------------------------------- 1 | {{!< default}} 2 |
3 |
4 |

Welcome

5 |

This is your new KeystoneJS website.

6 |

7 | It includes the latest versions of 8 | Bootstrap 9 | and jQuery. 10 |

11 |

Visit the Getting Started guide to learn how to customise it.

12 |
13 |

We have created a default Admin user for you with the email <%= adminLogin %> and the password <%= adminPassword %>.

14 |

Sign in to use the Admin UI.

15 |
16 |

17 | Remember to Star KeystoneJS on GitHub and 18 | follow @keystonejs on twitter for updates. 19 |

20 |
21 |
22 | -------------------------------------------------------------------------------- /app/templates/templates/default-hbs/views/partials/pagination.hbs: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /app/templates/templates/default-hbs/views/post.hbs: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

← back to the blog

6 |
7 |
8 |

{{data.post.title}}

9 |
10 | {{{categoryList data.post.categories prefix="Posted in "}}} 11 | {{#if author.name.first}}by {{author.name.first}}{{/if}} 12 |
13 |
14 |
15 | {{#if data.post.image}}{{/if}} 16 | {{{data.post.content.extended}}} 17 |
18 |
19 |
20 |
21 |
22 | -------------------------------------------------------------------------------- /app/templates/templates/default-nunjucks/emails/enquiry-notification.html: -------------------------------------------------------------------------------- 1 |

Hi %recipient.firstName%

2 |

An enquiry was just submitted to {{ brand }}:

3 | {% if enquiry.email %} 4 |

From 5 | {% if enquiry.name.full %} 6 | {{ enquiry.name.full }} 7 | {% endif %} 8 | 9 | {% if enquiry.email %} 10 | ({{ enquiry.email }}) 11 | {% endif %} 12 |

13 | 14 | {% if enquiry.phone %} 15 |

Phone: {{ enquiry.phone }}

16 | {% endif %} 17 | 18 | {% if enquiry.enquiryType %} 19 |

{{ enquiry._.enquiryType.format() }}

20 | {% endif %} 21 | 22 | {% if enquiry.message %} 23 | {{ enquiry.message.html | safe }} 24 | {% endif %} 25 | 26 |

Sent {{ enquiry._.createdAt.format() }}

27 | {% endif %} 28 | -------------------------------------------------------------------------------- /app/templates/templates/default-nunjucks/views/contact.html: -------------------------------------------------------------------------------- 1 | {% extends "layouts/default.html" %} 2 | 3 | {% block intro %} 4 |
5 |

Contact Us

6 |
7 | {% endblock %} 8 | 9 | {% block content %} 10 |
11 | {% if enquirySubmitted %} 12 |

Thanks for getting in touch.

13 | {% else %} 14 |
15 |
16 |
17 | 18 | {% set class = ( "has-error" if validationErrors.name else "" ) %} 19 |
20 | 24 |
25 | {% set class = ( "has-error" if validationErrors.email else "" ) %} 26 |
27 | 31 |
32 |
33 | 37 |
38 | {% set class = ( "has-error" if validationErrors.enquiryType else "" ) %} 39 |
40 |
50 | {% set class = ( "has-error" if validationErrors.message else "" ) %} 51 |
52 | 56 |
57 |
58 | 59 |
60 |
61 |
62 |
63 | {% endif %} 64 |
65 | {% endblock %} 66 | -------------------------------------------------------------------------------- /app/templates/templates/default-nunjucks/views/errors/404.html: -------------------------------------------------------------------------------- 1 | {% extends "layouts/default.html" %} 2 | 3 | {% block content %} 4 |
5 |

404

6 |

Sorry, the page you requested can"t be found.

7 |
8 | {% endblock %} 9 | -------------------------------------------------------------------------------- /app/templates/templates/default-nunjucks/views/errors/500.html: -------------------------------------------------------------------------------- 1 | {% extends "layouts/default.html" %} 2 | 3 | {% block content %} 4 |
5 |

Error (500)

6 |

Sorry, the site has encountered an error.

7 |
8 | {% endblock %} 9 | -------------------------------------------------------------------------------- /app/templates/templates/default-nunjucks/views/gallery.html: -------------------------------------------------------------------------------- 1 | {% extends "layouts/default.html" %} 2 | 3 | {% block intro %} 4 |
5 |

Gallery

6 |
7 | {% endblock %} 8 | 9 | {% block content %} 10 |
11 | {% if galleries.length %} 12 | {% for gallery in galleries %} 13 |

{{ gallery.name }} 14 | {% if gallery.publishedDate %} 15 | {{ gallery._.publishedDate.format("Do MMM YYYY") }} 16 | {% endif %} 17 |

18 | 19 | 41 | {% endfor %} 42 | {% else %} 43 |

There are no image galleries yet.

44 | {% endif %} 45 |
46 | {% endblock %} 47 | -------------------------------------------------------------------------------- /app/templates/templates/default-nunjucks/views/index.html: -------------------------------------------------------------------------------- 1 | {% extends "layouts/default.html" %} 2 | 3 | {% block content %} 4 |
5 |
6 | 7 |

Welcome

8 |

This is your new KeystoneJS website.

9 |

10 | It includes the latest versions of 11 | Bootstrap 12 | and jQuery. 13 |

14 |

Visit the Getting Started guide to learn how to customise it.

15 |
16 | {% if user and user.canAccessKeystone %} 17 |

18 | Open the Admin UI 19 |

20 | {% else %} 21 |

We have created a default Admin user for you with the email <%= adminLogin %> and the password <%= adminPassword %>.

22 |

23 | Sign in 24 | to use the Admin UI. 25 |

26 | {% endif %} 27 |
28 |

29 | Remember to Star KeystoneJS on GitHub and 30 | follow @keystonejs on twitter for updates. 31 |

32 |
33 |
34 | {% endblock %} 35 | -------------------------------------------------------------------------------- /app/templates/templates/default-nunjucks/views/mixins/flash-messages.html: -------------------------------------------------------------------------------- 1 | {% macro flashMessages(messages) %} 2 | {% if messages %} 3 |
4 | {% for message in messages.info %} 5 | {{ flashMessage(message, "info") }} 6 | {% endfor %} 7 | {% for message in messages.success %} 8 | {{ flashMessage(message, "success") }} 9 | {% endfor %} 10 | {% for message in messages.warning %} 11 | {{ flashMessage(message, "warning") }} 12 | {% endfor %} 13 | {% for message in messages.error %} 14 | {{ flashMessage(message, "danger") }} 15 | {% endfor %} 16 |
17 | {% endif %} 18 | {% endmacro %} 19 | 20 | {% macro flashMessage(message, type) %} 21 |
22 | {% if message %} 23 | {% if message.title %} 24 |
{{ message.title }}
25 | {% endif %} 26 | {% if message.detail %} 27 |

{{ message.detail }}

28 | {% endif %} 29 | {% if message.list %} 30 | 35 | {% endif %} 36 | {% else %} 37 | {{ message }} 38 | {% endif %} 39 |
40 | {% endmacro %} 41 | -------------------------------------------------------------------------------- /app/templates/templates/default-nunjucks/views/post.html: -------------------------------------------------------------------------------- 1 | {% extends "layouts/default.html" %} 2 | 3 | {% block content %} 4 |
5 |
6 |
7 |
8 |

9 | ← back to the blog 10 |

11 |
12 | {% if not data.post %} 13 |

Invalid Post.

14 | {% else %} 15 |
16 |

{{ data.post.title }}

17 |
Posted
18 | {% if data.post.publishedDate %} 19 | on {{ data.post._.publishedDate.format("MMMM Do, YYYY") }} 20 | {% endif %} 21 | {% if data.post.categories and data.post.categories.length %} 22 | in 23 | {% for cat in data.post.categories %}{{ cat.name }}{% if loop.index < data.post.categories.length %}, {% endif %}{% endfor %} 24 | {% endif %} 25 | {% if data.post.author %} 26 | by {{ data.post.author.name.first }} 27 | {% endif %} 28 |
29 |
30 | {% if data.post.image.exists %} 31 |
32 | 33 |
34 | {% endif %} 35 | {{ data.post.content.full|safe }} 36 |
37 | {% endif %} 38 |
39 |
40 |
41 |
42 | {% endblock %} 43 | -------------------------------------------------------------------------------- /app/templates/templates/default-pug/emails/enquiry-notification.pug: -------------------------------------------------------------------------------- 1 | html 2 | head 3 | body 4 | h1 Hi %recipient.firstName%, 5 | p.text-larger An enquiry was just submitted to #{brand}: 6 | if enquiry.name.full || enquiry.email 7 | p.text-larger From 8 | if enquiry.name.full 9 | | #{enquiry.name.full} 10 | if enquiry.name.full && enquiry.email 11 | | ( 12 | if enquiry.email 13 | | #{enquiry.email} 14 | if enquiry.name.full && enquiry.email 15 | | ) 16 | if enquiry.phone 17 | p.text-larger Phone: #{enquiry.phone} 18 | if enquiry.enquiryType 19 | p.text-larger #{enquiry._.enquiryType.format()} 20 | if enquiry.message 21 | .text-larger !{enquiry.message.html} 22 | p.text-muted Sent #{enquiry._.createdAt.format()} 23 | p   24 | -------------------------------------------------------------------------------- /app/templates/templates/default-pug/mixins/flash-messages.pug: -------------------------------------------------------------------------------- 1 | mixin flash-messages(messages) 2 | if messages 3 | #flash-messages.container 4 | each message in messages.info 5 | +flash-message(message, 'info') 6 | each message in messages.success 7 | +flash-message(message, 'success') 8 | each message in messages.warning 9 | +flash-message(message, 'warning') 10 | each message in messages.error 11 | +flash-message(message, 'danger') 12 | 13 | mixin flash-message(message, type) 14 | div(class='alert alert-' + type) 15 | if utils.isObject(message) 16 | if message.title 17 | h4= message.title 18 | if message.detail 19 | p= message.detail 20 | if message.list 21 | ul 22 | each item in message.list 23 | li= item 24 | else 25 | = message -------------------------------------------------------------------------------- /app/templates/templates/default-pug/views/blog.pug: -------------------------------------------------------------------------------- 1 | extends ../layouts/default 2 | 3 | mixin post(post) 4 | .post(data-ks-editable=editable(user, { list: 'Post', id: post.id })) 5 | h2: a(href='/blog/post/' + post.slug)= post.title 6 | p.lead.text-muted Posted 7 | if post.publishedDate 8 | | on #{post._.publishedDate.format('MMMM Do, YYYY')} 9 | if post.categories && post.categories.length 10 | | in 11 | each cat, i in post.categories 12 | a(href='/blog/' + cat.key)= cat.name 13 | if i < post.categories.length - 1 14 | | , 15 | else 16 | | 17 | if post.author 18 | | by #{post.author.name.first} 19 | if post.image.exists 20 | img(src=post._.image.fit(160,160)).img.pull-right 21 | p!= post.content.brief 22 | if post.content.extended 23 | p.read-more: a(href='/blog/post/' + post.slug) Read more... 24 | 25 | block intro 26 | .container 27 | h1= data.category ? data.category.name : 'Blog' 28 | 29 | block content 30 | .container: .row 31 | .col-sm-8.col-md-9 32 | if filters.category && !data.category 33 | h3.text-muted Invalid Category. 34 | else 35 | if data.posts.results.length 36 | if data.posts.totalPages > 1 37 | h4.text-weight-normal Showing 38 | strong #{data.posts.first} 39 | | to 40 | strong #{data.posts.last} 41 | | of 42 | strong #{data.posts.total} 43 | | posts. 44 | else 45 | h4.text-weight-normal Showing #{utils.plural(data.posts.results.length, '* post')}. 46 | .blog 47 | each post in data.posts.results 48 | +post(post) 49 | 50 | if data.posts.totalPages > 1 51 | ul.pagination 52 | if data.posts.previous 53 | li: a(href='?page=' + data.posts.previous): span.glyphicon.glyphicon-chevron-left 54 | else 55 | li.disabled: a(href='?page=' + 1): span.glyphicon.glyphicon-chevron-left 56 | each p, i in data.posts.pages 57 | li(class=data.posts.currentPage == p ? 'active' : null) 58 | a(href='?page=' + (p == '...' ? (i ? data.posts.totalPages : 1) : p ))= p 59 | if data.posts.next 60 | li: a(href='?page=' + data.posts.next): span.glyphicon.glyphicon-chevron-right 61 | else 62 | li.disabled: a(href='?page=' + data.posts.totalPages): span.entypo.glyphicon.glyphicon-chevron-right 63 | else 64 | if data.category 65 | h3.text-muted There are no posts in the category #{data.category.name}. 66 | else 67 | h3.text-muted There are no posts yet. 68 | 69 | if data.categories.length 70 | .col-sm-4.col-md-3 71 | h2 Categories 72 | .list-group(style='margin-top: 70px;') 73 | a(href='/blog', class=!data.category ? 'active' : false).list-group-item All Categories 74 | each cat in data.categories 75 | a(href='/blog/' + cat.key, class=data.category && data.category.id == cat.id ? 'active' : false).list-group-item= cat.name 76 | -------------------------------------------------------------------------------- /app/templates/templates/default-pug/views/contact.pug: -------------------------------------------------------------------------------- 1 | extends ../layouts/default 2 | 3 | block intro 4 | .container 5 | h1 Contact Us 6 | 7 | block content 8 | .container 9 | if enquirySubmitted 10 | h3 Thanks for getting in touch. 11 | else 12 | .row: .col-sm-8.col-md-6 13 | form(method='post') 14 | input(type='hidden', name='action', value='contact') 15 | .form-group(class=validationErrors.name ? 'has-error' : null) 16 | label Name 17 | input(type='text', name='name.full', value=formData['name.full']).form-control 18 | .form-group(class=validationErrors.email ? 'has-error' : null) 19 | label Email 20 | input(type='email', name='email', value=formData.email).form-control 21 | .form-group 22 | label Phone 23 | input(type='text', name='phone', value=formData.phone, placeholder='(optional)').form-control 24 | .form-group(class=validationErrors.enquiryType ? 'has-error' : null) 25 | label What are you contacting us about? 26 | select(name='enquiryType').form-control 27 | option(value='') (select one) 28 | each type in enquiryTypes 29 | option(value=type.value, selected=formData.enquiryType == type.value)= type.label 30 | .form-group(class=validationErrors.message ? 'has-error' : null) 31 | label Message 32 | textarea(name='message', placeholder='Leave us a message...' rows=4).form-control= formData.message 33 | .form-actions 34 | button(type='submit').btn.btn-primary Send 35 | -------------------------------------------------------------------------------- /app/templates/templates/default-pug/views/errors/404.pug: -------------------------------------------------------------------------------- 1 | extends ../../layouts/default 2 | 3 | block content 4 | .container 5 | h1 404 6 | p.lead Sorry, the page you requested can't be found. -------------------------------------------------------------------------------- /app/templates/templates/default-pug/views/errors/500.pug: -------------------------------------------------------------------------------- 1 | extends ../../layouts/default 2 | 3 | block content 4 | .container 5 | h1 Error (500) 6 | p.lead Sorry, the site has encountered an error. -------------------------------------------------------------------------------- /app/templates/templates/default-pug/views/gallery.pug: -------------------------------------------------------------------------------- 1 | extends ../layouts/default 2 | 3 | block intro 4 | .container 5 | h1 Gallery 6 | 7 | block content 8 | .container 9 | if galleries.length 10 | each gallery in galleries 11 | h2= gallery.name 12 | if gallery.publishedDate 13 | .pull-right.text-muted= gallery._.publishedDate.format('Do MMM YYYY') 14 | 15 | .row.gallery-images 16 | if gallery.heroImage.exists 17 | .col-sm-4.col-md-4.gallery-image: img(src=gallery._.heroImage.limit(680,680)).img-rounded 18 | .col-sm-8.col-md-8: .row 19 | each image in gallery.images 20 | .col-xs-4.col-sm-4.col-md-3.gallery-image: img(src=image.limit(300,300)).img-rounded 21 | else 22 | each image in gallery.images 23 | .col-xs-6.col-sm-4.col-md-3.gallery-image: img(src=image.limit(300,300)).img-rounded 24 | else 25 | h3.text-muted There are no image galleries yet. 26 | -------------------------------------------------------------------------------- /app/templates/templates/default-pug/views/index.pug: -------------------------------------------------------------------------------- 1 | extends ../layouts/default 2 | 3 | block content 4 | .container: .jumbotron 5 | img(src='/images/logo.svg', width='160') 6 | h1 Welcome 7 | p This is your new KeystoneJS website. 8 | p It includes the latest versions of 9 | | Bootstrap 10 | | and jQuery. 11 | p Visit the Getting Started guide to learn how to customise it. 12 | hr 13 | if user && user.canAccessKeystone 14 | p 15 | a(href='/keystone').btn.btn-lg.btn-primary Open the Admin UI 16 | else 17 | p We have created a default Admin user for you with the email <%= adminLogin %> and the password <%= adminPassword %>. 18 | p 19 | a(href='/keystone/signin', style='margin-right: 10px').btn.btn-lg.btn-primary Sign in 20 | | to use the Admin UI. 21 | hr 22 | p Remember to Star KeystoneJS on GitHub and 23 | | follow @keystonejs on twitter for updates. 24 | -------------------------------------------------------------------------------- /app/templates/templates/default-pug/views/post.pug: -------------------------------------------------------------------------------- 1 | extends ../layouts/default 2 | 3 | block content 4 | .container: .row: .col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2 5 | article 6 | p: a(href='/blog') ← back to the blog 7 | hr 8 | if !data.post 9 | h2 Invalid Post. 10 | else 11 | header 12 | h1= data.post.title 13 | h5 Posted 14 | if data.post.publishedDate 15 | | on #{data.post._.publishedDate.format('MMMM Do, YYYY')} 16 | if data.post.categories && data.post.categories.length 17 | | in 18 | each cat, cat_i in data.post.categories 19 | a(href='/blog/' + cat.key)= cat.name 20 | if cat_i < data.post.categories.length - 1 21 | | , 22 | else 23 | | 24 | if data.post.author 25 | | by #{data.post.author.name.first} 26 | .post 27 | if data.post.image.exists 28 | .image-wrap: img(src=data.post._.image.fit(750,450)).img-responsive 29 | != data.post.content.full 30 | -------------------------------------------------------------------------------- /app/templates/templates/default-twig/emails/enquiry-notification.twig: -------------------------------------------------------------------------------- 1 | {% block contents %} 2 |

Hi %recipient.firstName%,

3 |

An enquiry was just submitted to {{ brand }}:

4 | {% if enquiry.name.full or enquiry.email %} 5 |

From 6 | {% if enquiry.name.full %} 7 | {{ enquiry.name.full }} 8 | {% endif %} 9 | {% if enquiry.name.full and enquiry.email %} 10 | {% if enquiry.email %}({{ enquiry.email }}){% endif %} 11 | {% endif %} 12 |

13 | {% endif %} 14 | {% if enquiry.phone %} 15 |

Phone: {{ enquiry.phone }}

16 | {% endif %} 17 | {% if enquiry.enquiryType %} 18 |

{{ enquiry._.enquiryType.format() }}

19 | {% endif %} 20 | {% if enquiry.message %} 21 | {{ enquiry.message.html | striptags }} 22 | {% endif %} 23 |

Sent {{ enquiry._.createdAt.format() }}

24 | {% endblock %} 25 | -------------------------------------------------------------------------------- /app/templates/templates/default-twig/mixins/flash-messages.twig: -------------------------------------------------------------------------------- 1 | {% macro renderMessages(messages) %} 2 | {% if messages %} 3 | {% import _self as Self %} 4 | {% if debug %} 5 |
{{ dump(messages) }}
6 | {% endif %} 7 |
8 | {% for message in messages.info %} 9 | {{ Self.renderMessage(message, "info") }} 10 | {% endfor %} 11 | {% for message in messages.success %} 12 | {{ Self.renderMessage(message, "success") }} 13 | {% endfor %} 14 | {% for message in messages.warning %} 15 | {{ Self.renderMessage(message, "warning") }} 16 | {% endfor %} 17 | {% for message in messages.error %} 18 | {{ Self.renderMessage(message, "danger") }} 19 | {% endfor %} 20 |
21 | {% endif %} 22 | {% endmacro %} 23 | 24 | {% macro renderMessage(message, type) %} 25 |
26 | {% if message is iterable %} 27 | {% if message.title %} 28 |

{{ message.title }}

29 | {% endif %} 30 | {% if message.detail %} 31 |

{{ message.detail }}

32 | {% endif %} 33 | {% if message.list %} 34 | 39 | {% endif %} 40 | {% else %} 41 | {{ message }} 42 | {% endif %} 43 |
44 | {% endmacro %} -------------------------------------------------------------------------------- /app/templates/templates/default-twig/views/errors/404.twig: -------------------------------------------------------------------------------- 1 | {% extends "../../layouts/default.twig" %} 2 | 3 | {% block content %} 4 |
5 |

404

6 |

Sorry, the page you requested can"t be found.

7 |
8 | {% endblock %} 9 | -------------------------------------------------------------------------------- /app/templates/templates/default-twig/views/errors/500.twig: -------------------------------------------------------------------------------- 1 | {% extends "../../layouts/default.twig" %} 2 | 3 | {% block content %} 4 |
5 |

Error (500)

6 |

Sorry, the site has encountered an error.

7 |
8 | {% endblock %} 9 | -------------------------------------------------------------------------------- /app/templates/templates/default-twig/views/gallery.twig: -------------------------------------------------------------------------------- 1 | {% extends "../layouts/default.twig" %} 2 | 3 | {% block intro %} 4 |
5 |

Gallery

6 |
7 | {% endblock %} 8 | 9 | {% block content %} 10 |
11 | {% if galleries.length %} 12 | {% for gallery in galleries %} 13 |

{{ gallery.name }} 14 | {% if gallery.publishedDate %} 15 | {{ gallery.publishedDate|date("d M Y") }} 16 | {% endif %} 17 |

18 | 19 | 41 | {% endfor %} 42 | {% else %} 43 |

There are no image galleries yet.

44 | {% endif %} 45 |
46 | {% endblock %} 47 | -------------------------------------------------------------------------------- /app/templates/templates/default-twig/views/index.twig: -------------------------------------------------------------------------------- 1 | {% extends "../layouts/default.twig" %} 2 | 3 | {% block content %} 4 |
5 |
6 | 7 |

Welcome

8 |

This is your new KeystoneJS website.

9 |

10 | It includes the latest versions of 11 | Bootstrap 12 | and jQuery. 13 |

14 |

Visit the Getting Started guide to learn how to customise it.

15 |
16 | {% if (user is defined) and (user.canAccessKeystone) %} 17 |

18 | Open the Admin UI 19 |

20 | {% else %} 21 |

We have created a default Admin user for you with the email <%= adminLogin %> and the password <%= adminPassword %>.

22 |

23 | Sign in 24 | to use the Admin UI. 25 |

26 | {% endif %} 27 |
28 |

29 | Remember to Star KeystoneJS on GitHub and 30 | follow @keystonejs on twitter for updates. 31 |

32 |
33 |
34 | {% endblock %} 35 | -------------------------------------------------------------------------------- /app/templates/templates/default-twig/views/post.twig: -------------------------------------------------------------------------------- 1 | {% extends "../layouts/default.twig" %} 2 | 3 | {% block content %} 4 |
5 |
6 |
7 |
8 |

9 | ← back to the blog 10 |

11 |
12 | {% if not data.post %} 13 |

Invalid Post.

14 | {% else %} 15 |
16 |

{{ data.post.title }}

17 |
Posted
18 | {% if data.post.publishedDate %} 19 | on {{ data.post.publishedDate|date("M d, Y") }} 20 | {% endif %} 21 | {% if data.post.categories and data.post.categories.length %} 22 | in 23 | {% for cat in data.post.categories %} 24 | {{ cat.name }} 25 | {% if not loop.last %}, {% endif %} 26 | {% endfor %} 27 | {% endif %} 28 | {% if data.post.author %} 29 | by {{ data.post.author.name.first }} 30 | {% endif %} 31 |
32 |
33 | {% if data.post.image.exists %} 34 |
35 | 36 |
37 | {% endif %} 38 | {{ data.post.content.full | raw }} 39 |
40 | {% endif %} 41 |
42 |
43 |
44 |
45 | {% endblock %} 46 | -------------------------------------------------------------------------------- /app/templates/updates/0.0.1-admins.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This script automatically creates a default Admin user when an 3 | * empty database is used for the first time. You can use this 4 | * technique to insert data into any List you have defined. 5 | * 6 | * Alternatively, you can export a custom function for the update: 7 | * module.exports = function(done) { ... } 8 | */ 9 | 10 | exports.create = { 11 | <%= userModel %>: [ 12 | { 'name.first': 'Admin', 'name.last': 'User', 'email': '<%= adminLogin %>', 'password': '<%= adminPassword %>', 'isAdmin': true }, 13 | ], 14 | }; 15 | 16 | /* 17 | 18 | // This is the long-hand version of the functionality above: 19 | 20 | var keystone = require('keystone'); 21 | var async = require('async'); 22 | var User = keystone.list('User'); 23 | 24 | var admins = [ 25 | { email: 'user@keystonejs.com', password: 'admin', name: { first: 'Admin', last: 'User' } } 26 | ]; 27 | 28 | function createAdmin (admin, done) { 29 | 30 | var newAdmin = new User.model(admin); 31 | 32 | newAdmin.isAdmin = true; 33 | newAdmin.save(function (err) { 34 | if (err) { 35 | console.error('Error adding admin ' + admin.email + ' to the database:'); 36 | console.error(err); 37 | } else { 38 | console.log('Added admin ' + admin.email + ' to the database.'); 39 | } 40 | done(err); 41 | }); 42 | 43 | } 44 | 45 | exports = module.exports = function (done) { 46 | async.forEach(admins, createAdmin, done); 47 | }; 48 | 49 | */ 50 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "generator-keystone", 3 | "version": "0.5.1", 4 | "description": "A KeystoneJS Project Generator for Yeoman", 5 | "keywords": [ 6 | "yeoman-generator", 7 | "keystonejs", 8 | "keystone", 9 | "express", 10 | "cms", 11 | "mongoose", 12 | "mongodb", 13 | "mongo", 14 | "website", 15 | "site", 16 | "blog" 17 | ], 18 | "homepage": "https://github.com/keystonejs/generator-keystone", 19 | "bugs": "https://github.com/keystonejs/generator-keystone/issues", 20 | "author": { 21 | "name": "Jed Watson", 22 | "url": "https://github.com/JedWatson" 23 | }, 24 | "main": "app/index.js", 25 | "repository": { 26 | "type": "git", 27 | "url": "git://github.com/keystonejs/generator-keystone.git" 28 | }, 29 | "scripts": { 30 | "lint": "eslint .", 31 | "lint-fix": "eslint . --fix", 32 | "test": "npm run lint && mocha" 33 | }, 34 | "dependencies": { 35 | "colors": "^1.1.2", 36 | "keystone-utils": "^0.4.0", 37 | "lodash": "^4.13.1", 38 | "yeoman-generator": "^0.17.7" 39 | }, 40 | "devDependencies": { 41 | "eslint": "^2.12.0", 42 | "eslint-config-keystone": "^2.3.1", 43 | "eslint-plugin-react": "^5.1.1", 44 | "mocha": "^2.5.3" 45 | }, 46 | "license": "MIT" 47 | } 48 | -------------------------------------------------------------------------------- /test/test-creation.js: -------------------------------------------------------------------------------- 1 | /* global describe, beforeEach, it */ 2 | 'use strict'; 3 | 4 | var path = require('path'); 5 | var helpers = require('yeoman-generator').test; 6 | 7 | 8 | describe('keystone generator', function () { 9 | beforeEach(function (done) { 10 | helpers.testDirectory(path.join(__dirname, 'temp'), function (err) { 11 | if (err) { 12 | return done(err); 13 | } 14 | 15 | this.app = helpers.createGenerator('keystone:app', [ 16 | '../../app', 17 | ]); 18 | done(); 19 | }.bind(this)); 20 | }); 21 | 22 | it('creates expected files', function (done) { 23 | var expected = [ 24 | // add files you expect to exist here. 25 | '.editorconfig', 26 | ]; 27 | 28 | // helpers.mockPrompt(this.app, { 29 | // 'someOption': true, 30 | // }); 31 | this.app.options['skip-install'] = true; 32 | this.app.run({}, function () { 33 | helpers.assertFiles(expected); 34 | done(); 35 | }); 36 | }); 37 | }); 38 | -------------------------------------------------------------------------------- /test/test-load.js: -------------------------------------------------------------------------------- 1 | /* global describe it */ 2 | 'use strict'; 3 | 4 | var assert = require('assert'); 5 | 6 | describe('keystone generator', function () { 7 | it('can be imported without blowing up', function () { 8 | var app = require('../app'); 9 | assert(app !== undefined); 10 | }); 11 | }); 12 | --------------------------------------------------------------------------------