Skip to content
Snippets Groups Projects
Commit e702ba56 authored by kasperisager's avatar kasperisager
Browse files

Initial progress on v2.0.0

parent 5e1e15c0
No related branches found
No related tags found
No related merge requests found
Showing
with 4983 additions and 0 deletions
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
\ No newline at end of file
## The MIT License (MIT)
Copyright 2014 © [Kasper Kronborg Isager](http://github.com/kasperisager)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<?php if (!defined('APPLICATION')) exit();
$ThemeInfo['bootstrap'] = array(
'Name' => 'Bootstrap',
'Description' => '',
'Version' => '2.0.0',
'Author' => 'Kasper K. Isager',
'AuthorEmail' => 'kasperisager@gmail.com',
'AuthorUrl' => 'https://github.com/kasperisager',
'RequiredApplications' => array('Vanilla' => '2.1.x')
);
{
"name": "vanilla-bootstrap",
"version": "2.0.0",
"authors": [
"kasperisager <kasperisager@gmail.com>"
],
"license": "MIT",
"homepage": "https://github.com/kasperisager/vanilla-bootstrap",
"private": true,
"dependencies": {
"bootstrap": "3.1.x"
}
}
/*
* Use this file in case you don't feel comfortable writing LESS. I do highly
* recommend taking the time to learn at least the basics of LESS as it will
* greatly help you in customizing Bootstrap. Here are some of the high-
* lights of a preprocessor like LESS:
*
* - Store information in variables for optimal reuse:
*
@brand-color: #4fc6eb;
.header { color: @brand-color; }
*
* - Nest your selectors, i.e. .header .button { ... } can be written as:
*
.header {
.button { ... }
}
*
* - Write reusable mixins for handling otherwise tedious code:
*
.border-radius(@radius) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
}
.round { .border-radius(10px); }
*
* Other features include mathematical operations, extend/inheritance, import of
* partials and more.
*
* If we still don't have you convinced, then simply put your good ol' CSS in
* this file and it will be automatically included in Vanilla.
*
* Happy theming!
*/
File added
This diff is collapsed.
File added
File added
This diff is collapsed.
var gulp = require('gulp')
, gutil = require('gulp-util')
, less = require('gulp-less')
, concat = require('gulp-concat')
, uglify = require('gulp-uglify')
, server = require('tiny-lr')()
, livereload = require('gulp-livereload');
gulp.task('less', function () {
gulp.src('less/style.less')
.pipe(less({ paths: 'bower_components'})
.on('error', gutil.log))
.pipe(gulp.dest('design'))
.pipe(livereload(server));
});
gulp.task('default', ['less']);
gulp.task('watch', function () {
server.listen(35729, function (err) {
if (err) return gutil.log(err);
gulp.watch('less/**/*', function () {
gulp.run('less');
});
});
});
gulp.task('scripts', function () {
gulp.src([
'bower_components/bootstrap/js/transition.js',
// 'bower_components/bootstrap/js/alert.js',
// 'bower_components/bootstrap/js/button.js',
// 'bower_components/bootstrap/js/carousel.js',
'bower_components/bootstrap/js/collapse.js',
'bower_components/bootstrap/js/dropdown.js',
// 'bower_components/bootstrap/js/modal.js',
// 'bower_components/bootstrap/js/tooltip.js',
// 'bower_components/bootstrap/js/popover.js',
// 'bower_components/bootstrap/js/scrollspy.js',
// 'bower_components/bootstrap/js/tab.js',
// 'bower_components/bootstrap/js/affix.js'
])
.pipe(uglify())
.pipe(concat('custom.js'))
.pipe(gulp.dest('js'));
});
+function(n){"use strict";function t(){var n=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==n.style[i])return{end:t[i]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,r=this;n(this).one(n.support.transition.end,function(){i=!0});var o=function(){i||n(r).trigger(n.support.transition.end)};return setTimeout(o,t),this},n(function(){n.support.transition=t()})}(jQuery);
+function(t){"use strict";var e=function(s,n){this.$element=t(s),this.options=t.extend({},e.DEFAULTS,n),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=t.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var s=this.$parent&&this.$parent.find("> .panel > .in");if(s&&s.length){var n=s.data("bs.collapse");if(n&&n.transitioning)return;s.collapse("hide"),n||s.data("bs.collapse",null)}var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",i].join("-"));this.$element.one(t.support.transition.end,t.proxy(a,this)).emulateTransitionEnd(350)[i](this.$element[0][l])}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var s=this.dimension();this.$element[s](this.$element[s]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[s](0).one(t.support.transition.end,t.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var s=t.fn.collapse;t.fn.collapse=function(s){return this.each(function(){var n=t(this),i=n.data("bs.collapse"),a=t.extend({},e.DEFAULTS,n.data(),"object"==typeof s&&s);!i&&a.toggle&&"show"==s&&(s=!s),i||n.data("bs.collapse",i=new e(this,a)),"string"==typeof s&&i[s]()})},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(e){var s,n=t(this),i=n.attr("data-target")||e.preventDefault()||(s=n.attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,""),a=t(i),l=a.data("bs.collapse"),o=l?"toggle":n.data(),r=n.attr("data-parent"),h=r&&t(r);l&&l.transitioning||(h&&h.find('[data-toggle=collapse][data-parent="'+r+'"]').not(n).addClass("collapsed"),n[a.hasClass("in")?"addClass":"removeClass"]("collapsed")),a.collapse(o)})}(jQuery);
+function(o){"use strict";function t(t){o(e).remove(),o(r).each(function(){var e=n(o(this)),r={relatedTarget:this};e.hasClass("open")&&(e.trigger(t=o.Event("hide.bs.dropdown",r)),t.isDefaultPrevented()||e.removeClass("open").trigger("hidden.bs.dropdown",r))})}function n(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var e=n&&o(n);return e&&e.length?e:t.parent()}var e=".dropdown-backdrop",r="[data-toggle=dropdown]",d=function(t){o(t).on("click.bs.dropdown",this.toggle)};d.prototype.toggle=function(e){var r=o(this);if(!r.is(".disabled, :disabled")){var d=n(r),a=d.hasClass("open");if(t(),!a){"ontouchstart"in document.documentElement&&!d.closest(".navbar-nav").length&&o('<div class="dropdown-backdrop"/>').insertAfter(o(this)).on("click",t);var i={relatedTarget:this};if(d.trigger(e=o.Event("show.bs.dropdown",i)),e.isDefaultPrevented())return;d.toggleClass("open").trigger("shown.bs.dropdown",i),r.focus()}return!1}},d.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=o(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var d=n(e),a=d.hasClass("open");if(!a||a&&27==t.keyCode)return 27==t.which&&d.find(r).focus(),e.click();var i=" li:not(.divider):visible a",s=d.find("[role=menu]"+i+", [role=listbox]"+i);if(s.length){var p=s.index(s.filter(":focus"));38==t.keyCode&&p>0&&p--,40==t.keyCode&&p<s.length-1&&p++,~p||(p=0),s.eq(p).focus()}}}};var a=o.fn.dropdown;o.fn.dropdown=function(t){return this.each(function(){var n=o(this),e=n.data("bs.dropdown");e||n.data("bs.dropdown",e=new d(this)),"string"==typeof t&&e[t].call(n)})},o.fn.dropdown.Constructor=d,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=a,this},o(document).on("click.bs.dropdown.data-api",t).on("click.bs.dropdown.data-api",".dropdown form",function(o){o.stopPropagation()}).on("click.bs.dropdown.data-api",r,d.prototype.toggle).on("keydown.bs.dropdown.data-api",r+", [role=menu], [role=listbox]",d.prototype.keydown)}(jQuery);
\ No newline at end of file
//
// # Badges
//
// No styleguide reference.
// Library
// -----------------------------------------------------------------------------
@import (reference) "@{bootstrap}/badges";
// Extensions
// -----------------------------------------------------------------------------
.Count {
&:extend(.badge);
}
//
// # Button Groups
//
// No styleguide reference.
// Library
// -----------------------------------------------------------------------------
@import (reference) "@{bootstrap}/button-groups";
// Extensions
// -----------------------------------------------------------------------------
.ButtonGroup {
&:extend(.btn-group);
}
//
// # Dropdowns
//
// No styleguide reference.
@import (reference) "@{bootstrap}/dropdowns";
.MenuItems {
&:extend(.dropdown-menu);
ul {
padding: 0;
list-style: none;
}
li > a {
&:extend(.dropdown-menu > li > a);
&:hover,
&:focus {
&:extend(.dropdown-menu > li > a:hover);
}
}
li > hr {
border: 0;
&:extend(.dropdown-menu .divider);
}
.Open > & {
&:extend(.open > .dropdown-menu);
}
}
.ToggleFlyout {
position: relative;
}
.OptionsMenu {
.OptionsTitle {
display: none;
}
.SpFlyoutHandle {
cursor: pointer;
&:extend(.text-muted);
&:hover,
&:focus {
color: @link-color;
}
}
&.Open .SpFlyoutHandle {
color: @link-color;
}
.MenuItems {
&:extend(.dropdown-menu-right);
}
}
// # Glyphicons
//
// No styleguide reference.
// Library
// -----------------------------------------------------------------------------
@import (once) "@{bootstrap}/glyphicons";
// Extensions
// -----------------------------------------------------------------------------
.Sprite,
.Sprite16,
.SpFlyoutHandle {
&:extend(.glyphicon);
}
.SpNotifications {
&:extend(.glyphicon-globe all);
}
.SpInbox {
&:extend(.glyphicon-inbox all);
}
.SpBookmarks {
&:extend(.glyphicon-bookmark all);
}
.SpDropdownHandle {
&:extend(.glyphicon-chevron-down all);
}
.SpOptions,
.SpFlyoutHandle {
&:extend(.glyphicon-cog all);
}
.SpActivity {
&:extend(.glyphicon-time all);
}
.SpDiscussion,
.SpDiscussions,
.SpComment,
.SpComments {
&:extend(.glyphicon-comment all);
}
.SpAllCategories {
&:extend(.glyphicon-tags all);
}
.SpEditProfile,
.SpMyDiscussions {
&:extend(.glyphicon-user all);
}
.SpMyDrafts {
&:extend(.glyphicon-file all);
}
.SpMod {
&:extend(.glyphicon-flag all);
}
.SpDashboard {
&:extend(.glyphicon-dashboard all);
}
.SpDelete {
&:extend(.glyphicon-ban-circle all);
}
// Bookmark Icons
a.Bookmark {
.hide-text();
& {
.glyphicon();
.glyphicon-star-empty()
}
&:before {
font-size: @font-size-base;
line-height: @line-height-base;
color: @text-color;
}
&:hover,
&:focus {
text-decoration: none;
}
}
a.Bookmarked {
.glyphicon-star();
}
//
// # Labels
//
// No styleguide reference.
// Library
// -----------------------------------------------------------------------------
@import (reference) "@{bootstrap}/labels";
// Extensions
// -----------------------------------------------------------------------------
.Tag {
&:extend(.label);
&:extend(.label-default);
}
.Tag-Closed {
&:extend(.label-danger);
}
.Tag-Announcement {
&:extend(.label-info);
}
.Note.Closed {
display: inline-block;
font-size: @font-size-base;
font-weight: 400;
line-height: @line-height-base;
&:extend(.label);
&:extend(.label-danger);
&:extend(.glyphicon-ban-circle all);
&:before {
margin-right: 5px;
vertical-align: top;
line-height: @line-height-computed;
&:extend(.glyphicon);
}
}
//
// # List Group
//
// No styleguide reference.
// Library
// -----------------------------------------------------------------------------
@import (reference) "@{bootstrap}/list-group";
// Extensions
// -----------------------------------------------------------------------------
.PanelInfo {
list-style: none;
&:extend(.list-group);
a {
&:extend(.list-group-item);
&:extend(a.list-group-item);
&:hover,
&:focus {
&:extend(a.list-group-item:hover);
}
}
.Active a {
&,
&:hover,
&:focus {
&:extend(a.list-group-item.active);
}
.Count {
&:extend(a.list-group-item.active > .badge);
}
}
li:first-child a {
&:extend(.list-group-item:first-child);
}
li:last-child a {
&:extend(.list-group-item:last-child);
}
.Heading {
&:extend(.list-group-item);
&:extend(.list-group-heading);
}
}
//
// # Modals
//
// No styleguide reference.
// Library
// -----------------------------------------------------------------------------
@import (reference) "@{bootstrap}/modals";
// Extensions
// -----------------------------------------------------------------------------
.Overlay {
display: block;
background-color: fade(@modal-backdrop-bg, (@modal-backdrop-opacity * 100));
&:extend(.modal);
> .Popup {
&:extend(.modal-dialog);
h1 {
margin: -@modal-inner-padding;
margin-bottom: @modal-inner-padding;
font-size: @font-size-h4;
&:extend(.modal-header);
&:extend(.modal-title);
}
.Border {
&:extend(.modal-content);
}
.Content {
&:extend(.modal-body);
.Buttons {
margin: -@modal-inner-padding;
margin-top: (@modal-inner-padding + 15px);
}
}
.Buttons {
&:extend(.modal-footer);
}
}
}
//
// # Navbar
//
// No styleguide reference.
@import (once) "@{bootstrap}/navbar";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment