├── .gitignore ├── LICENSE.txt ├── README.md ├── bootstrap ├── css │ ├── bootstrap.css │ └── prettify.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff └── js │ ├── bootstrap.min.js │ └── prettify.js ├── css ├── demo.css ├── docs.css ├── drunken-parrot.css └── font-awesome.min.css ├── documentation.html ├── fonts ├── fontawesome │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff └── source-sans-pro │ ├── sourcesanspro-bold.eot │ ├── sourcesanspro-bold.svg │ ├── sourcesanspro-bold.ttf │ ├── sourcesanspro-bold.woff │ ├── sourcesanspro-extralight.eot │ ├── sourcesanspro-extralight.svg │ ├── sourcesanspro-extralight.ttf │ ├── sourcesanspro-extralight.woff │ ├── sourcesanspro-regular.eot │ ├── sourcesanspro-regular.svg │ ├── sourcesanspro-regular.ttf │ ├── sourcesanspro-regular.woff │ ├── sourcesanspro-semibold.eot │ ├── sourcesanspro-semibold.svg │ ├── sourcesanspro-semibold.ttf │ └── sourcesanspro-semibold.woff ├── images ├── captain-hoarrd.png ├── jumbotron.jpg ├── logo-dark@2x.png ├── logo-yellow@2x.png ├── logo@2x.png ├── thumbnail-01.jpg ├── thumbnail-02.jpg ├── thumbnail-03.jpg ├── thumbnail-04.jpg ├── thumbnail-large-01.jpg ├── thumbnail-large-02.jpg └── thumbnail-large-03.jpg ├── index.html └── js ├── application.js ├── bootstrap-switch.js ├── checkbox.js ├── html5shiv.js ├── radio.js ├── switch.js └── toolbar.js /.gitignore: -------------------------------------------------------------------------------- 1 | *.DS_Store -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Drunken Parrot Flat UI Free is licensed under a Creative Commons Attribution 3.0 Unported (CC BY 3.0) (http://creativecommons.org/licenses/by/3.0/) and MIT License - http://opensource.org/licenses/mit-license.html. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Drunken Parrot Flat UI Free 2 | ======= 3 | 4 | Drunken Parrot Flat UI Free is licensed under a Creative Commons Attribution 3.0 Unported (CC BY 3.0) (http://creativecommons.org/licenses/by/3.0/) and MIT License - http://opensource.org/licenses/mit-license.html. 5 | 6 | ## Links: 7 | 8 | + [Hoarrd.com](https://hoarrd.com/drunken-parrot-flat-ui-kit/) 9 | + [Components & Style Guide: Free Version](http://hoarrd.github.io/drunken-parrot-flat-ui/) -------------------------------------------------------------------------------- /bootstrap/css/prettify.css: -------------------------------------------------------------------------------- 1 | .com { color: #93a1a1; } 2 | .lit { color: #195f91; } 3 | .pun, .opn, .clo { color: #93a1a1; } 4 | .fun { color: #dc322f; } 5 | .str, .atv { color: #D14; } 6 | .kwd, .prettyprint .tag { color: #1e347b; } 7 | .typ, .atn, .dec, .var { color: teal; } 8 | .pln { color: #48484c; } 9 | 10 | .prettyprint { 11 | padding: 8px; 12 | background-color: #f7f7f9; 13 | border: 1px solid #e1e1e8; 14 | } 15 | .prettyprint.linenums { 16 | -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 17 | -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 18 | box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 19 | } 20 | 21 | /* Specify class=linenums on a pre to get line numbering */ 22 | ol.linenums { 23 | margin: 0 0 0 33px; /* IE indents via margin-left */ 24 | } 25 | ol.linenums li { 26 | padding-left: 12px; 27 | color: #bebec5; 28 | line-height: 20px; 29 | text-shadow: 0 1px 0 #fff; 30 | } -------------------------------------------------------------------------------- /bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rikitanone/drunken-parrot-flat-ui/7a7988b292a6348d959a608447413d9d142e5769/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rikitanone/drunken-parrot-flat-ui/7a7988b292a6348d959a608447413d9d142e5769/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rikitanone/drunken-parrot-flat-ui/7a7988b292a6348d959a608447413d9d142e5769/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /bootstrap/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.1.1 (http://getbootstrap.com) 3 | * Copyright 2011-2014 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",f.resetText||d.data("resetText",d[e]()),d[e](f[b]||this.options[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},b.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});return this.$element.trigger(j),j.isDefaultPrevented()?void 0:(this.sliding=!0,f&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),f&&this.cycle(),this)};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(b){a(d).remove(),a(e).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('
').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown",h),e.focus()}return!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=" li:not(.divider):visible a",i=f.find("[role=menu]"+h+", [role=listbox]"+h);if(i.length){var j=i.index(i.filter(":focus"));38==b.keyCode&&j>0&&j--,40==b.keyCode&&jWe have restyled all the core bootstrap button classes.
47 |48 | 49 | 50 | 51 | 52 | 53 | 54 |
55 | 56 |57 | <button class="btn btn-default">Default</button> 58 | <button class="btn btn-primary">Primary</button> 59 | <button class="btn btn-danger">Danger</button> 60 | <button class="btn btn-warning">Warning</button> 61 | <button class="btn btn-info">Info</button> 62 | <button class="btn btn-success">Success</button> 63 |64 |
and have introduced a new class called .btn-stroke.
69 | 70 | 71 |72 | <button class="btn btn-stroke">Stoke</button> 73 |74 |
We have also added the classes .btn-orange and .btn-purple to the color various for you to use.
78 |79 |
80 | <button class="btn btn-purple">Purple</button> 81 | <button class="btn btn-orange">Orange</button> 82 |83 |
All the buttons have disabled variations.
87 |88 | 89 | 90 | 91 | 92 | 93 | 94 |
95 | 96 |97 | <button class="btn btn-default" disabled="disabled">Default</button> 98 | <button class="btn btn-primary" disabled="disabled">Primary</button> 99 | <button class="btn btn-danger" disabled="disabled">Danger</button> 100 | <button class="btn btn-warning" disabled="disabled">Warning</button> 101 | <button class="btn btn-info" disabled="disabled">Info</button> 102 | <button class="btn btn-success" disabled="disabled">Success</button> 103 |104 |
You can also create a 3D button variant of any of the buttons by adding the class .btn-embossed.
108 |109 |
110 | <button class="btn btn-primary btn-embossed">3D Button</button> 111 | <button class="btn btn-success btn-embossed">3D Button</button> 112 |113 |
Finally, we have introduced one new size called Kraken, to use this size simply add .btn-kr to any button. 117 |
118 |119 | <button class="btn btn-primary btn-kr">Kraken</button> 120 |121 |
We have restyled the bootstrap inputs, below is an example of a standard text input.
130 |136 | <input type="text" class="form-control" placeholder="Web designer, etc."> 137 |138 |
Icons can be added to the start of inputs by adding the .input-icon class to the parent element and including the icon you want before the input field.
160 |170 | <div class="form-group input-icon"> 171 | <span class="fa fa-user"></span> 172 | <input type="text" class="form-control" placeholder="Username"> 173 | </div> 174 |175 |
and the error state use the same classes as well.
179 |197 | <div class="form-group has-warning"> 198 | <input type="text" class="form-control" value="Warning"> 199 | </div> 200 | 201 | <div class="form-group has-error"> 202 | <input type="text" class="form-control" value="Error"> 203 | </div> 204 | 205 | <div class="form-group has-success"> 206 | <input type="text" class="form-control" value="Success"> 207 | </div> 208 |209 |
The pagination uses the same classes as bootstrap
217 | 226 |227 | <ul class="pagination"> 228 | <li><a href="#">←</a></li> 229 | <li><a href="#">1</a></li> 230 | <li class="active"><a href="#">2</a></li> 231 | <li><a href="#">3</a></li> 232 | <li><a href="#">4</a></li> 233 | <li class="disabled"><a href="#">5</a></li> 234 | <li><a href="#">→</a></li> 235 | </ul> 236 |237 |
You can you the classes .pagination-sm or .pagination-lg to control the sizes
240 | 249 |260 | <ul class="pagination pagination-sm"> 261 | <li><a href="#">←</a></li> 262 | <li><a href="#">1</a></li> 263 | <li class="active"><a href="#">2</a></li> 264 | <li><a href="#">3</a></li> 265 | <li><a href="#">4</a></li> 266 | <li class="disabled"><a href="#">5</a></li> 267 | <li><a href="#">→</a></li> 268 | </ul> 269 | 270 | <ul class="pagination pagination-lg"> 271 | <li><a href="#">←</a></li> 272 | <li><a href="#">1</a></li> 273 | <li class="active"><a href="#">2</a></li> 274 | <li><a href="#">3</a></li> 275 | <li><a href="#">4</a></li> 276 | <li class="disabled"><a href="#">5</a></li> 277 | <li><a href="#">→</a></li> 278 | </ul> 279 | 280 |281 |
Breadcrumbs can be made minimal by adding the class .breadcrumbs-minimal
288 | 294 | 295 |296 | <ol class="breadcrumb breadcrumbs-minimal"> 297 | <li><a href="#">Home</a></li> 298 | <li><a href="#">Electronics Hover</a></li> 299 | <li><a href="#">Cameras</a></li> 300 | <li><a href="#">Digital Cameras</a></li> 301 | </ol> 302 |303 |
The default tabs use the same classes as the tabs in bootstrap
310 | 311 |322 | <ul class="nav nav-tabs"> 323 | <li class="active"><a href="#">Home</a></li> 324 | <li><a href="#">Profile</a></li> 325 | <li><a href="#">Messages</a></li> 326 | </ul> 327 |328 | 329 |
and if you want to double the border you can add the class .nav-stroke
333 |344 | <ul class="nav nav-tabs nav-stroke"> 345 | ... 346 | </ul> 347 |348 | 349 |
and the restyled pills navigation
353 |365 | <ul class="nav nav-pills"> 366 | <li class="active"><a href="#">Home</a></li> 367 | <li><a href="#">Profile</a></li> 368 | <li><a href="#">Messages</a></li> 369 | <li class="disabled"><a href="#">Disabled link</a></li> 370 | </ul> 371 |372 | 373 |
You can change the icon used to close the alerts if you want but changing the class on the button element but most of the time you will want to use .fa-times and dont forget to add .alert-dismissable to the parent div.
381 |387 | <div class="alert alert-primary alert-dismissable"> 388 | <button type="button" class="close fa fa-times"></button> 389 | ... 390 | </div> 391 |392 | 393 |
All the color variations are available via the same classes as bootstrap
396 |403 | <div class="alert alert-primary">...</div> 404 | <div class="alert alert-info">...</div> 405 | <div class="alert alert-success">...</div> 406 | <div class="alert alert-warning">...</div> 407 | <div class="alert alert-error">...</div> 408 |409 | 410 |
We have introduced a hover state to the bootstrap thumbnails, you can control the icon by changing the icon class on the a tag, by default we use .fa-eye which should be suitable for many cases.
417 |426 | <a href="#" class="thumbnail fa fa-eye"> 427 | <img src="images/thumbnail.jpg" > 428 | </a> 429 |430 | 431 |
Custom content thumbnails follow the same patterns as bootstraps thumbnails however you can add .thumbnail-caption to the container div to round the corners of the thumbnail image.
434 |448 | <div class="thumbnail thumbnail-caption"> 449 | <img src="images/thumbnail-large.jpg"> 450 | <div class="caption"> 451 | <h4>...</h4> 452 | <p>...</p> 453 | <p> 454 | <a href="#" class="btn btn-primary">Arr!</a> 455 | <a href="#" class="btn btn-stroke">Avast</a> 456 | </p> 457 | </div> 458 | </div> 459 |460 | 461 |
Our restyled panels all follow the same classes as there bootstrap counterparts, so panels are easily intergrated into your projects.
468 |500 | <!-- Basic --> 501 | <div class="panel panel-default"> 502 | <div class="panel-body"> 503 | Basic panel 504 | </div> 505 | </div> 506 | 507 | <!-- With Headings --> 508 | <div class="panel panel-default"> 509 | <div class="panel-heading">Panel heading without title</div> 510 | <div class="panel-body"> 511 | Panel content 512 | </div> 513 | </div> 514 | 515 | <div class="panel panel-default"> 516 | <div class="panel-heading"> 517 | <h3 class="panel-title">Panel title</h3> 518 | </div> 519 | <div class="panel-body"> 520 | Panel content 521 | </div> 522 | </div> 523 | 524 | <!-- With Footer --> 525 | <div class="panel panel-default"> 526 | <div class="panel-body"> 527 | Panel content 528 | </div> 529 | <div class="panel-footer">Panel footer</div> 530 | </div> 531 |532 |
All the contextual options are also available by adding any of the contextual state classes.
535 |581 | <div class="panel panel-primary">...</div> 582 | <div class="panel panel-success">...</div> 583 | <div class="panel panel-info">...</div> 584 | <div class="panel panel-warning">...</div> 585 | <div class="panel panel-danger">...</div> 586 |587 |
Our version of the panels with tables, again these follow the same classes as the bootstrap version.
591 |My name is Captain Kidd, as I sailed, as I sailed. Oh my name is Captain Kidd as I sailed. My name is Captain Kidd and God's laws I did forbid, and most wickedly I did as I sailed.
598 |# | 605 |Ship Name | 606 |Captain | 607 |Status | 608 |
---|---|---|---|
1 | 613 |Walrus | 614 |James Flint | 615 |Unknown | 616 |
2 | 619 |Royal Fortune | 620 |Black Bart | 621 |Destroyed | 622 |
3 | 625 |Ranger | 626 |Charles Vane | 627 |Captured | 628 |
636 | <!-- Panel with Table --> 637 | <div class="panel panel-default"> 638 | <div class="panel-heading">Panel heading</div> 639 | <div class="panel-body"> 640 | <p>...</p> 641 | </div> 642 | 643 | <!-- Table --> 644 | <table class="table"> 645 | ... 646 | </table> 647 | </div> 648 |649 |
Our checkboxes require javascript to work correctly. First off make sure you have included jQuery in your code and the checkbox.js plugin.
656 |To get a checkbox up and running is nice and simple, wrap the input in a label with the class .checkbox and add the attribute data-toggle="checkbox" to the checkbox input. Thats it. 667 |
668 | <label class="checkbox> 669 | <input type="checkbox" value="" data-toggle="checkbox" /> 670 | Oy! Me box is filled! 671 | </label> 672 |673 |
Adding in the standard attributes of checked="" and disabled="" will work as expected.
676 |693 | <label class="checkbox"> 694 | <input type="checkbox" value="" data-toggle="checkbox" checked=""/> 695 | Oy! Me box is filled! 696 | </label> 697 | 698 | <label class="checkbox"> 699 | <input type="checkbox" value="" data-toggle="checkbox" disabled="" /> 700 | Aaand I’m disabled. 701 | </label> 702 | 703 | <label class="checkbox"> 704 | <input type="checkbox" value="" data-toggle="checkbox" disabled="" checked="" /> 705 | Got picked, but I’m disabled. 706 | </label> 707 |708 |
Our radios also require javascript to work correctly. Just like the checkboxes, make sure you have included jQuery in your code and the radio.js plugin.
714 |To get a radio up and running is also nice and simple, wrap the input in a label with the class .radio and add the attribute data-toggle="radio" to the radio input. Thats it. 724 |
725 | <label class="radio> 726 | <input type="radio" name="optionsRadios" value="option1" data-toggle="radio" /> 727 | Radio is off 728 | </label> 729 |730 |
Just like the checkbox elements, adding in the standard attributes of checked="" and disabled="" will work as expected.
733 |752 | <label class="radio"> 753 | <input type="radio" value="" name="optionsRadios" data-toggle="radio" checked="" /> 754 | Radio is on 755 | </label> 756 | 757 | <label class="radio"> 758 | <input type="radio" value="" name="optionsRadiosDisabled" data-toggle="radio" disabled="" /> 759 | Disabled radio is off 760 | </label> 761 | 762 | <label class="radio"> 763 | <input type="radio" value="" name="optionsRadiosDisabled" data-toggle="radio" disabled="" checked="" /> 764 | Disabled radio is on 765 | </label> 766 |767 |
We use the bootstrap switch plugin from http://www.bootstrap-switch.org/ and requires jQuery like our other plugins. To get started with the switches include the bootstrap-switch JS plugin.
773 | 774 |Using the plugin is extremly simple, just add the attribute data-toggle="switch" to a checkbox input and initialise the plugin.
775 |776 | $("[data-toggle='switch']").bootstrapSwitch(); 777 |778 |
782 | <input type="checkbox" data-toggle="switch" /> 783 |784 |
Adding the checked attribute the element will turn the switch on.
785 | 786 |788 | <input type="checkbox" checked data-toggle="switch" /> 789 |790 |
The tiles are a custom componant providied just for the Drunken Parrot UI Kit. We have created two custom tiles, one for a profile and one for a login. Both the tiles are extremely easy to include in your project by following the markup below.
930 |Profile Tile
971 |972 | <div class="tile tile-profile"> 973 | <img src="images/captain-hoarrd.png" alt=""> 974 | <h4>James Hoarrd</h4> 975 | <p>Ship Captain</p> 976 | <a href="#" class="btn btn-block btn-danger btn-embossed">Profile</a> 977 | </div> 978 |979 |
Login Tile
981 | 982 |983 | <div class="tile tile-login"> 984 | <h3 class="logo">Hoarrd!</h3> 985 | <div class="input-icon"> 986 | <span class="fa-user fa"></span> 987 | <input type="text" class="form-control" placeholder="Username"> 988 | </div> 989 | <div class="input-icon"> 990 | <span class="fa-lock fa"></span> 991 | <input type="password" class="form-control" placeholder="******"> 992 | </div> 993 | <a href="#" class="btn btn-block btn-primary btn-embossed">Log in</a> 994 | <div class="login-action clearfix"> 995 | <div class="col-md-8"> 996 | <label class="checkbox"> 997 | <input type="checkbox" value="" data-toggle="checkbox" />Remember Me 998 | </label> 999 | </div> 1000 | <div class="col-md-4"> 1001 | <a href="#">Forget?</a> 1002 | </div> 1003 | </div> 1004 | </div> 1005 |1006 | 1007 |
The toolbar is another custom componant for Drunken Parror UI Kit that makes use of a customised version Paul Kinzett's toolbar.js Jquery Plugin. The toolbars requires jquery, so please make sure you have included jQuery in your project and the toolbar.js plugin file.
1013 | 1014 |Include your toolbar icons in a div wrapper and ensure it is hidden.
1024 |1025 | <div id="toolbar-icons" style="display: none"> 1026 | <a href="#"><i class="fa fa-user"></i></a> 1027 | <a href="#"><i class="fa fa-star"></i></a> 1028 | <a href="#"><i class="fa fa-flag"></i></a> 1029 | <a href="#"><i class="fa fa-edit"></i></a> 1030 | <a href="#"><i class="fa fa-trash-o"></i></a> 1031 | </div> 1032 |1033 |
And include the icon you want to trigger the toolbar which will need the class .icon-button on the parent link tag.
1035 | 1036 |1037 | <a id="toolbar" class="icon-button"><i class="fa fa-cog"></i></a> 1038 |1039 |
Finally inlcude the js code as per the documentation in the Toolbar.js documentation.
1041 |1042 | $('#toolbar').toolbar({ 1043 | content: '#toolbar-icons', 1044 | position: 'top' 1045 | }); 1046 |1047 |
We have included two new position options to the toolbar plugin. vertical-top and vertical-bottom
1049 |