almostfu 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 84b8eb1069b80ec84f15a9aa8985c5077d066084
4
+ data.tar.gz: ca3dfb0f16cb4d8f060e205fbe5810bc7795a843
5
+ SHA512:
6
+ metadata.gz: 6c58a4e8bc4571846acc22cc8ff6a7d2d990afc1a63f3154867f7d6739dd5db0d9c16443dea7f8a1d82f78887035b84a47dced0bbd8f60b812ef27ef149a05de
7
+ data.tar.gz: 1c4a7fc9af990a7da52f57d05a3da3bed11e4828cb7d7a31f1eab686060decb78f6364e8ef68cca312295261bb46f68bfbd2da72d1bc89db25b8882d70380613
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in almostfu.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 xiongbo
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # Almostfu
2
+
3
+ Simply package almost flat ui into rails
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'almostfu', :git => 'git@github.com:xiongbo/almostfu.git'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install almostfu
18
+
19
+ ## Dependency
20
+
21
+ This gem need compass, so you should also include compass in your Gemfile by use 'compass-rails' gem
22
+
23
+ #rails 4
24
+ gem 'compass-rails', '~>2.0.alpha.0'
25
+
26
+ #rails 3.X, in asset group
27
+ gem 'compass-rails'
28
+
29
+ and also need foundation gem
30
+
31
+ gem 'zurb-foundation', '~>4.0.0'
32
+
33
+ ## Usage
34
+
35
+ In your application.css.scss, import compass and foundation
36
+
37
+ @import compass
38
+ @import foundation
39
+ @import almostfu
40
+
41
+
42
+ ## Contributing
43
+
44
+ 1. Fork it
45
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
46
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
47
+ 4. Push to the branch (`git push origin my-new-feature`)
48
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/almostfu.gemspec ADDED
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'almostfu/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "almostfu"
8
+ spec.version = Almostfu::VERSION
9
+ spec.authors = ["xiongbo"]
10
+ spec.email = ["xiongbo027@gmail.com"]
11
+ spec.description = %q{Simply warpped almost flat ui}
12
+ spec.summary = %q{almost flat ui warpper}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
data/lib/almostfu.rb ADDED
@@ -0,0 +1,11 @@
1
+ require "almostfu/version"
2
+
3
+ module Almostfu
4
+ module Rails
5
+ if ::Rails.version < "3.1"
6
+ require "almostfu/railtie"
7
+ else
8
+ require "almostfu/engine"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ # coding: utf-8
2
+ module Almostfu
3
+ module Rails
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # coding: utf-8
2
+ module Almostfu
3
+ module Rails
4
+ class Railtie < ::Rails::Railtie
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module Almostfu
2
+ VERSION = "0.0.3"
3
+ end
@@ -0,0 +1,62 @@
1
+ // Global Foundation Settings
2
+ @import "settings";
3
+
4
+ // Comment out this import if you are customizing you imports below
5
+ //@import "foundation";
6
+
7
+ // Import specific parts of Foundation by commenting the import "foundation"
8
+ // and uncommenting what you want below. You must uncomment the following if customizing
9
+
10
+ @import "foundation"; // *always required
11
+ @import "foundation/components/global"; // *always required
12
+ @import "foundation/components/grid";
13
+ @import "foundation/components/visibility";
14
+ @import "foundation/components/block-grid";
15
+ @import "foundation/components/type";
16
+ @import "foundation/components/buttons";
17
+ @import "foundation/components/forms"; // *requires components/buttons
18
+ @import "foundation/components/custom-forms"; // *requires components/buttons, components/forms
19
+ @import "foundation/components/button-groups"; // *requires components/buttons
20
+ @import "foundation/components/dropdown-buttons"; // *requires components/buttons
21
+ @import "foundation/components/split-buttons"; // *requires components/buttons
22
+ @import "foundation/components/flex-video";
23
+ @import "foundation/components/section";
24
+ @import "foundation/components/top-bar"; // *requires components/grid
25
+ @import "foundation/components/orbit";
26
+ @import "foundation/components/reveal";
27
+ @import "foundation/components/joyride";
28
+ @import "foundation/components/clearing";
29
+ @import "foundation/components/alert-boxes";
30
+ @import "foundation/components/breadcrumbs";
31
+ @import "foundation/components/keystrokes";
32
+ @import "foundation/components/labels";
33
+ @import "foundation/components/inline-lists";
34
+ @import "foundation/components/pagination";
35
+ @import "foundation/components/panels";
36
+ @import "foundation/components/pricing-tables";
37
+ @import "foundation/components/progress-bars";
38
+ @import "foundation/components/side-nav";
39
+ @import "foundation/components/sub-nav";
40
+ @import "foundation/components/switch";
41
+ @import "foundation/components/magellan";
42
+ @import "foundation/components/tables";
43
+ @import "foundation/components/thumbs";
44
+ @import "foundation/components/tooltips";
45
+ @import "foundation/components/dropdown";
46
+
47
+ // Compass Imports
48
+ @import "compass/css3/box-shadow";
49
+ @import "compass/css3/images";
50
+ @import "compass/css3/transition";
51
+ @import "compass/css3/opacity";
52
+
53
+ // FLAT UI Customizations
54
+ @import "buttons";
55
+ @import "pagination";
56
+ @import "topbar";
57
+ @import "subnav";
58
+ @import "forms";
59
+ @import "sections";
60
+ @import "sidenav";
61
+ @import "misc";
62
+
@@ -0,0 +1,91 @@
1
+ @mixin button-effect($bg:$primary-color){
2
+ $dark-bg: darken($bg, 5%);
3
+ $darker-bg: darken($bg, 10%);
4
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
5
+ border-color:$dark-bg !important;
6
+ border-width:2px;
7
+ @include background-image(linear-gradient($bg, $bg 5%, $dark-bg));
8
+ &:hover,
9
+ &:focus,
10
+ &:active{
11
+ background-color: $bg;
12
+ @include background-image(linear-gradient($bg, $bg));
13
+ @include opacity(0.95);
14
+ @include box-shadow(0 1px 1px rgba( 0, 0, 0, .1));
15
+ border-color:$darker-bg !important;
16
+ @include transition(.25s);
17
+ }
18
+ @include box-shadow(0 1px 0 rgba(255, 255, 255, 0.0) inset);
19
+ }
20
+ .disabled:hover{
21
+ opacity: 0.6 !important;
22
+ }
23
+ .button {
24
+ @include button-effect();
25
+ }
26
+
27
+
28
+ a,
29
+ button,
30
+ input[type="submit"]{
31
+ &.primary-dark {
32
+ @include button-effect($belize-hole);
33
+ }
34
+
35
+ &.secondary {
36
+ @include button-effect($clouds);
37
+ text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.25);
38
+ }
39
+ &.success{
40
+ @include button-effect($emerland);
41
+ }
42
+ &.success-dark{
43
+ @include button-effect($turquoise);
44
+ }
45
+ &.success-darker{
46
+ @include button-effect($nephritis);
47
+ }
48
+ &.success-darkest{
49
+ @include button-effect($green-sea);
50
+ }
51
+
52
+ &.alert{
53
+ @include button-effect($alizarin);
54
+ }
55
+ &.alert-dark{
56
+ @include button-effect($pomegranate);
57
+ }
58
+
59
+ &.info{
60
+ @include button-effect($sun-flower);
61
+ }
62
+ &.info-dark{
63
+ @include button-effect($orange);
64
+ }
65
+
66
+ &.warning{
67
+ @include button-effect($carrot);
68
+ }
69
+ &.warning-dark{
70
+ @include button-effect($pumpkin);
71
+ }
72
+
73
+ &.highlight{
74
+ @include button-effect($amethyst);
75
+ }
76
+ &.highlight-dark{
77
+ @include button-effect($wisteria);
78
+ }
79
+
80
+ &.inverse{
81
+ @include button-effect($wet-asphalt);
82
+ }
83
+ &.inverse-dark{
84
+ @include button-effect($midnight-blue);
85
+ }
86
+ }
87
+
88
+
89
+
90
+
91
+
@@ -0,0 +1,30 @@
1
+ form{
2
+ input.error{
3
+ &:focus{
4
+ border-color: $alizarin;
5
+ }
6
+ color:$alizarin;
7
+ }
8
+ .success input{
9
+ border-color: $success-color;
10
+ color:$success-color;
11
+ &:focus{
12
+ border-color: $success-color;
13
+ }
14
+ }
15
+
16
+
17
+ .success label,
18
+ label.success{
19
+ @include form-label-error-color($success-color);
20
+ }
21
+ .success small,
22
+ small.success{
23
+ @include form-error-message($success-color);
24
+ }
25
+
26
+ span.prefix,
27
+ span.postfix {
28
+ border-color: $clouds;
29
+ }
30
+ }
@@ -0,0 +1,9 @@
1
+ .panel.callout {
2
+ @include box-shadow(0 1px 0 rgba(255, 255, 255, 0) inset);
3
+ }
4
+ .clearing-thumbs{
5
+ list-style:none;
6
+ li{
7
+ display: inline;
8
+ }
9
+ }
@@ -0,0 +1,15 @@
1
+ .pagination {
2
+ li a {
3
+ border-radius: $global-rounded;
4
+ &:hover{
5
+ background-color: $turquoise;
6
+ border-color: $turquoise;
7
+ color: white;
8
+ @include transition(background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out);
9
+
10
+ }
11
+ }
12
+ li.unavailable a:hover{
13
+ background-color: $clouds;
14
+ }
15
+ }
@@ -0,0 +1,56 @@
1
+ .section-container.auto,
2
+ .section-container.tabs,
3
+ .section-container.accordion{
4
+ section,
5
+ .section{
6
+ .content {
7
+ top: -2px;
8
+ }
9
+ .title{
10
+ a{
11
+ color:$primary-color;
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ .section-container.accordion,
18
+ .section-container.vertical-nav,
19
+ .section-container.horizontal-nav{
20
+ section,
21
+ .section{
22
+ &.active{
23
+ .title{
24
+ background:$midnight-blue;
25
+ &:hover{
26
+ background:$wet-asphalt;
27
+ @include transition(.25s);
28
+ }
29
+ a{
30
+ color:#fff;
31
+ }
32
+ }
33
+ }
34
+ &:hover{
35
+ .title{
36
+ background:$turquoise;
37
+ @include transition(.25s);
38
+ a{
39
+ color:#fff;
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ .section-container.vertical-nav,
47
+ .section-container.horizontal-nav{
48
+ section,
49
+ .section{
50
+ .title{
51
+ a{
52
+ color:$primary-color;
53
+ }
54
+ }
55
+ }
56
+ }