Permalink
Browse files

Metro experiment

  • Loading branch information...
1 parent 6153c53 commit 6bccc09526395f0e12731ecb83d76bd2ed27b927 @dhilipsiva committed Feb 22, 2013
@@ -1,71 +0,0 @@
-/*
- * 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;
-}
Binary file not shown.
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
@@ -1,78 +0,0 @@
-/**
- * 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);
@@ -1,34 +0,0 @@
-(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 6bccc09

Please sign in to comment.