From 590c158900270f84de388a0e98118462e279d19d Mon Sep 17 00:00:00 2001 From: ruslanchek Date: Wed, 4 Mar 2015 15:44:50 +0300 Subject: [PATCH] Refactor, breadcrumbs --- api.html | 63 ++++++++++++++---------- breadcrumbs.html | 9 ++-- buttons.html | 25 +++++----- catalog.html | 11 +++-- checkers.html | 9 ++-- colors.html | 12 ++--- components.html | 35 +++++++------ config.codekit | 51 +++++++++++-------- css/screen.css | 79 +++++++++++++++++------------- forms.html | 75 ++++++++++++++++++++++++++-- glossary.html | 9 ++-- grid.html | 9 ++-- index.html | 3 -- jade/{layout.jade => _layout.jade} | 2 + jade/_mixins.jade | 19 +++++++ jade/api.jade | 78 ++++++++++++++++------------- jade/breadcrumbs.jade | 20 ++++++-- jade/buttons.jade | 27 ++++++---- jade/catalog.jade | 11 ++++- jade/checkers.jade | 11 ++++- jade/colors.jade | 15 ++++-- jade/components.jade | 37 ++++++++------ jade/forms.jade | 74 ++++++++++++++++++++++++++-- jade/glossary.jade | 11 ++++- jade/grid.jade | 11 ++++- jade/index.jade | 2 +- jade/nav-h.jade | 11 ++++- jade/nav-v.jade | 11 ++++- jade/partials/demo-templates.jade | 6 --- jade/popup.jade | 11 ++++- jade/roadmap.jade | 12 +++-- jade/table.jade | 11 ++++- jade/tabs.jade | 38 ++++++++------ jade/typography.jade | 23 +++++++-- nav-h.html | 9 ++-- nav-v.html | 9 ++-- popup.html | 9 ++-- roadmap.html | 7 ++- sass/common/vars.sass | 2 +- sass/components/breadcrumbs.sass | 6 ++- sass/components/button.sass | 1 + sass/components/navigation.sass | 12 ++--- sass/components/popup.sass | 10 ++++ sass/components/typography.sass | 5 +- table.html | 9 ++-- tabs.html | 24 ++++----- typography.html | 24 ++++++--- 47 files changed, 644 insertions(+), 314 deletions(-) rename jade/{layout.jade => _layout.jade} (92%) create mode 100644 jade/_mixins.jade diff --git a/api.html b/api.html index 84cd3d5..fe58295 100644 --- a/api.html +++ b/api.html @@ -23,27 +23,36 @@

JavaScript API

-

The API will make you happy

-

UI.Animate

+ +
+ +

UI.Template

+
var Template = new UI.Template(templateName);

+
Template.render()
+
+

UI.Animate

var Animate = new UI.Animate({
 	$element: $('#my-element'),
 	animationDuration: 300
 });

-
Animate.play(animationMethod, onDone)
+
Animate.play(animationMethod, onDone)

Animation methods

-
fadeIn
-
fadeOut
-
appear
-
disappear
-

UI.ClickOutside

+
fadeIn
+
fadeOut
+
appear
+
disappear
+
+

UI.ClickOutside

var ClickOutside = new UI.ClickOutside({
 	selector: '#my-element',
 	onClickOutside: function($target){}
 })

-
ClickOutside.bind()
-
ClickOutside.unbind()
+
ClickOutside.bind()
+
ClickOutside.unbind()
+
-

UI.Popup

+

UI.Popup

var Popup = new UI.Popup({
 	width: 500,
 	modal: false,
@@ -52,20 +61,27 @@ 

UI.Popup

onShow: function(instance){}, onHide: function(instance){} });

-
Popup.show(title, content)
-
Popup.hide()
-
Popup.showMessage(type, timeout, content)
-
Popup.hideMessage()
-
Popup.changeContent(html)
-
Popup.changeTitle(html)
-
Popup.setWaitingMode(timeout, done)
-
Popup.removeWaitingMode()
+
Popup.show(title, content)
+
Popup.hide()
+
Popup.showMessage(type, timeout, content)
+
Popup.hideMessage()
+
Popup.changeContent(html)
+
Popup.changeTitle(html)
+
Popup.setWaitingMode(timeout, done)
+
Popup.removeWaitingMode()
+
-

UI.Tabs

+

UI.Tabs

var Tabs = new UI.Tabs({
-	tabsSelector: '.tabs',
-	tabsContentSelector: '.tabs-content'
+	tabsSelector: '#tabs',
+	tabsContentSelector: '#tabs-content',
+	sliding: true,
+	onTabOpen: function(name){}
 });

+
Tabs.openTab(name)
+
Tabs.next()
+
Tabs.prev()
+
Tabs.getActive()
@@ -125,16 +141,13 @@

UI.Tabs

AboutContactsMedia
-

About content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

-

Contacts content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do.

That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

-

Media content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do.

That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

diff --git a/breadcrumbs.html b/breadcrumbs.html index 444d91a..734f044 100644 --- a/breadcrumbs.html +++ b/breadcrumbs.html @@ -23,8 +23,12 @@

Breadcrumbs

+ +
+

Default breadcrumbs

Those little bastards are very useful

-
+ @@ -87,16 +91,13 @@

Breadcrumbs

-

About content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

-

Contacts content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do.

That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

-

Media content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do.

That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

diff --git a/buttons.html b/buttons.html index fda2069..590be12 100644 --- a/buttons.html +++ b/buttons.html @@ -23,6 +23,10 @@

Buttons

+ +
+

Buttons set

A beautiful set of buttons, the combinations of styles are awesome

@@ -74,22 +78,22 @@

Buttons

-

Button groups

+
+

Button groups

You can combine a couple of buttons into a group

-
- +
+ - +

-
- - - -
+
+ + +

@@ -156,16 +160,13 @@

Button groups

-

About content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

-

Contacts content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do.

That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

-

Media content

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do.

That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

diff --git a/catalog.html b/catalog.html index 3938f07..c686f1c 100644 --- a/catalog.html +++ b/catalog.html @@ -23,7 +23,11 @@

Catalog bricks

-

A best way to use Font Awesome icons

+ +
+

Coloured bricks

+

The best way to use Font Awesome icons