Permalink
Browse files

Added metro UI fonts

  • Loading branch information...
dhilipsiva committed Feb 22, 2013
1 parent b6d6ec3 commit 6153c5386e05a8c64c0c281f71fb9ad9c1c5436a
View
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,71 @@
+/*
+ * Metro UI CSS
+ * Copyright 2012 Sergey Pimenov
+ * Licensed under the MIT License
+ *
+ * Threme-dark.less
+ *
+ */
+body {
+ background: #1d1d1d;
+}
+.text-rest-state {
+ color: #ffffff;
+}
+.text-rest2-state {
+ color: rgba(255, 255, 255, 0.6);
+}
+.text-hover-state {
+ color: rgba(255, 255, 255, 0.8);
+}
+.text-pressed-state {
+ color: rgba(255, 255, 255, 0.4);
+}
+.link-text {
+ color: #9466ff;
+}
+.link-text:hover {
+ color: rgba(148, 102, 255, 0.8);
+}
+.link-text:active {
+ color: rgba(148, 102, 255, 0.6);
+}
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ color: #ffffff;
+}
+h1:hover,
+h2:hover,
+h3:hover,
+h4:hover,
+h5:hover,
+h6:hover {
+ color: rgba(255, 255, 255, 0.8);
+}
+h1:active,
+h2:active,
+h3:active,
+h4:active,
+h5:active,
+h6:active {
+ color: rgba(255, 255, 255, 0.4);
+}
+a,
+.link {
+ color: #9466ff;
+}
+a:hover,
+.link:hover {
+ color: rgba(148, 102, 255, 0.8);
+}
+a:active,
+.link:active {
+ color: rgba(148, 102, 255, 0.6);
+}
+.page .page-header .page-header-content .user-login .name {
+ color: #fff;
+}
View
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,14 @@
+Icon Set: Iconic -- http://somerandomdude.com/work/iconic/
+License: CC BY-SA 3.0 -- http://creativecommons.org/licenses/by-sa/3.0/us/
+
+
+Icon Set: Broccolidry -- http://dribbble.com/shots/587469-Free-16px-Broccolidryiconsaniconsetitisfullof-icons
+License: Aribitrary -- http://licence.visualidiot.com/
+
+
+Icon Set: Meteocons -- http://www.alessioatzeni.com/meteocons/
+License: Arbitrary -- http://www.alessioatzeni.com/meteocons/#about
+
+
+Icon Set: IcoMoon - Free -- http://keyamoon.com/icomoon/
+License: CC BY-SA 3.0 -- http://creativecommons.org/licenses/by-sa/3.0/
View
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,78 @@
+/**
+ * jQuery plugin for input elements for Metro UI CSS framework
+ */
+(function($) {
+ var pluginName = 'Accordion',
+ initAllSelector = '[data-role="accordion"]',
+ paramKeys = [];
+
+ $[pluginName] = function(element, options) {
+ if (!element) {
+ return $()[pluginName]({initAll: true});
+ }
+
+ var defaults = {
+ };
+
+ var plugin = this;
+ plugin.settings = {};
+ var $element = $(element);
+
+ var $li, $triggers, $frames;
+
+ plugin.init = function() {
+ plugin.settings = $.extend({}, defaults, options);
+
+ $li = $element.children("li");
+ $triggers = $li.children("a");
+ $frames = $li.children("div");
+
+ $triggers.on('click', function(e){
+ e.preventDefault();
+ var $a = $(this),
+ $activeLi = $li.filter('.active'),
+ $parentLi = $a.parent("li"),
+ target = $a.parent('li').children("div");
+
+ if ( $parentLi.hasClass('active') ) {
+ target.slideUp(undefined, function(){
+ $parentLi.removeClass("active");
+ });
+
+ } else {
+ $frames.slideUp(undefined, function(){
+ $activeLi.removeClass("active");
+ });
+ target.slideDown();
+ $parentLi.addClass("active");
+ }
+ });
+ };
+
+
+
+ plugin.init();
+
+ };
+
+ $.fn[pluginName] = function(options) {
+ var elements = options && options.initAll ? $(initAllSelector) : this;
+ return elements.each(function() {
+ var that = $(this),
+ params = {},
+ plugin;
+ if (undefined == that.data(pluginName)) {
+ $.each(paramKeys, function(index, key){
+ params[key[0].toLowerCase() + key.slice(1)] = that.data('param' + key);
+ });
+ plugin = new $[pluginName](this, params);
+ that.data(pluginName, plugin);
+ }
+ });
+ };
+ // autoinit
+ $(function(){
+ $()[pluginName]({initAll: true});
+ });
+
+})(jQuery);
@@ -0,0 +1,34 @@
+(function($){
+ $.fn.ButtonSet = function( options ){
+ var defaults = {
+ };
+
+ var $this = $(this)
+ , $buttons = $this.find("button")
+ ;
+
+ var initButtons = function(buttons){
+ buttons.on('click', function(e){
+ e.preventDefault();
+ var $a = $(this);
+ if ( $a.hasClass('active') ) return false;
+ $buttons.removeClass("active");
+ $(this).addClass("active");
+ });
+ }
+
+ return this.each(function(){
+ if ( options ) {
+ $.extend(defaults, options)
+ }
+
+ initButtons($buttons);
+ });
+ }
+
+ $(function () {
+ $('[data-role="button-set"]').each(function () {
+ $(this).ButtonSet();
+ })
+ })
+})(window.jQuery);
Oops, something went wrong.

0 comments on commit 6153c53

Please sign in to comment.