afgor-ui 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitattributes +17 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +74 -0
- data/Rakefile +1 -0
- data/afgor-ui.gemspec +32 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/afgor/ui.rb +7 -0
- data/lib/afgor/ui/version.rb +5 -0
- data/vendor/assets/javascripts/afgor-ui.js +44 -0
- data/vendor/assets/stylesheets/afgor-ui-grid.css +132 -0
- data/vendor/assets/stylesheets/afgor-ui.css +380 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5a3273a217f7882dd79d68142db972f5eb2b530b
|
4
|
+
data.tar.gz: 2918930e9546128484ca8cdeeb3378861a3ac9c7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dec684f2c04020a85ebb4f6259ae69526ce146082436b1cd49b5ede52ed6d5b82d0f585526295f30d66f6afb41378cc30c6a30fdc7b6825162ab5a459882a6f0
|
7
|
+
data.tar.gz: 96ee12479156fd7ef4aaf05e6506b72e7d7895eb2dc4824762c1fc10225b45ba6b4f88b5e67d1d6ea780497937a0b4e2cd049adc617df8d4e9c2db84b46e589f
|
data/.gitattributes
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
2
|
+
* text=auto
|
3
|
+
|
4
|
+
# Custom for Visual Studio
|
5
|
+
*.cs diff=csharp
|
6
|
+
|
7
|
+
# Standard to msysgit
|
8
|
+
*.doc diff=astextplain
|
9
|
+
*.DOC diff=astextplain
|
10
|
+
*.docx diff=astextplain
|
11
|
+
*.DOCX diff=astextplain
|
12
|
+
*.dot diff=astextplain
|
13
|
+
*.DOT diff=astextplain
|
14
|
+
*.pdf diff=astextplain
|
15
|
+
*.PDF diff=astextplain
|
16
|
+
*.rtf diff=astextplain
|
17
|
+
*.RTF diff=astextplain
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Markus
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# afgor-ui
|
2
|
+
|
3
|
+
A simple framework by afgor.com, created for designing web apps and simple websites. Has some nice effects and is fully flat.
|
4
|
+
|
5
|
+
So how to use it in your project
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'afgor-ui'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install afgor-ui
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
To include **afgor-ui** in your project you need to add some simple lines in your `index.html`
|
26
|
+
|
27
|
+
Firstly add the main `css` file of **afgor-ui**
|
28
|
+
|
29
|
+
``` css
|
30
|
+
@import 'afgor-ui.css'
|
31
|
+
```
|
32
|
+
|
33
|
+
Then you need to add a *js* file to make those lovely effects work, this could be done by adding the line below
|
34
|
+
|
35
|
+
to your `application.js` files
|
36
|
+
|
37
|
+
``` html
|
38
|
+
//= require afgor-ui
|
39
|
+
```
|
40
|
+
|
41
|
+
and you also need some additional libraries to include manualy
|
42
|
+
|
43
|
+
``` html
|
44
|
+
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
|
45
|
+
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
|
46
|
+
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/jquery.gsap.min.js"></script>
|
47
|
+
````
|
48
|
+
|
49
|
+
in the end of your document.
|
50
|
+
|
51
|
+
And now the main thing is done!
|
52
|
+
|
53
|
+
If you want to use **afgor-ui-grid** you should include the next css file
|
54
|
+
|
55
|
+
``` css
|
56
|
+
@import 'afgor-ui-grid.css'
|
57
|
+
```
|
58
|
+
|
59
|
+
So this is it! Just use. More about elements you can find at GitHub Wiki Page.
|
60
|
+
|
61
|
+
## Development
|
62
|
+
|
63
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
64
|
+
|
65
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
66
|
+
|
67
|
+
## Contributing
|
68
|
+
|
69
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/evenfly-framework.
|
70
|
+
|
71
|
+
|
72
|
+
## License
|
73
|
+
|
74
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/afgor-ui.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'afgor/ui/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "afgor-ui"
|
8
|
+
spec.version = Afgor::Ui::VERSION
|
9
|
+
spec.authors = ["Markus Benovsky"]
|
10
|
+
spec.email = ["markus@afgor.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{A simple framework by afgor.com}
|
13
|
+
spec.description = %q{Created for designing web apps and simple websites. Has some nice effects and is fully flat.}
|
14
|
+
spec.homepage = "https://github.com/MarkusBansky/afgor-framework/tree/ruby-package"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
# end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "afgor/ui"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/afgor/ui.rb
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
var vscaleX = 1.05;
|
2
|
+
var vscaleY = 1.05;
|
3
|
+
$(document)
|
4
|
+
.ready(function() {
|
5
|
+
var buttons_nodes = document.querySelectorAll('.btn');
|
6
|
+
buttons = Array.prototype.slice.call(buttons_nodes, 0);
|
7
|
+
buttons.forEach(function(button) {
|
8
|
+
button.addEventListener('click', function() {
|
9
|
+
var duration = 0.3, delay = 0.08;
|
10
|
+
TweenMax.to(button, duration,
|
11
|
+
{scaleY : vscaleY, ease : Expo.easeOut});
|
12
|
+
TweenMax.to(button, duration, {
|
13
|
+
scaleX : vscaleX,
|
14
|
+
scaleY : 1,
|
15
|
+
ease : Back.easeOut,
|
16
|
+
easeParams : [ 3 ],
|
17
|
+
delay : delay
|
18
|
+
});
|
19
|
+
TweenMax.to(button, duration * 1.25, {
|
20
|
+
scaleX : 1,
|
21
|
+
scaleY : 1,
|
22
|
+
ease : Back.easeOut,
|
23
|
+
easeParams : [ 6 ],
|
24
|
+
delay : delay * 3
|
25
|
+
});
|
26
|
+
});
|
27
|
+
});
|
28
|
+
|
29
|
+
$(".input")
|
30
|
+
.focus(function() {
|
31
|
+
$(this).parent(".field-container").addClass("is-focused");
|
32
|
+
});
|
33
|
+
|
34
|
+
$(".input")
|
35
|
+
.blur(function() {
|
36
|
+
$(this).parent(".field-container").removeClass("is-focused");
|
37
|
+
});
|
38
|
+
|
39
|
+
$('.field-container')
|
40
|
+
.on('keyup', '.text-area', function() {
|
41
|
+
$(this).height(0);
|
42
|
+
$(this).height(this.scrollHeight);
|
43
|
+
});
|
44
|
+
});
|
@@ -0,0 +1,132 @@
|
|
1
|
+
@media screen and (max-width: 42em) {
|
2
|
+
.container {
|
3
|
+
width: 98%;
|
4
|
+
margin: auto;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
@media screen and (min-width: 42em) and (max-width: 64em) {
|
8
|
+
.container {
|
9
|
+
width: 84%;
|
10
|
+
margin: auto;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
@media screen and (min-width: 64em) {
|
14
|
+
.container {
|
15
|
+
width: 68%;
|
16
|
+
margin: auto;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.row {
|
21
|
+
margin-top: 0.5rem;
|
22
|
+
display: flex;
|
23
|
+
flex-direction: row;
|
24
|
+
flex-wrap: wrap;
|
25
|
+
}
|
26
|
+
|
27
|
+
.col {
|
28
|
+
flex: 1 1 8%;
|
29
|
+
margin: 0 0 0.5rem 0;
|
30
|
+
padding: 0.5em 10px;
|
31
|
+
box-sizing: border-box;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* nested grids */
|
35
|
+
.row .row, .row.nested {
|
36
|
+
flex: 1 1 auto;
|
37
|
+
margin-top: -0.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* full width grids */
|
41
|
+
.row.wide-fit {
|
42
|
+
margin-left: -10px;
|
43
|
+
margin-right: -10px;
|
44
|
+
}
|
45
|
+
|
46
|
+
/* center grids */
|
47
|
+
.row.center {
|
48
|
+
justify-content: center;
|
49
|
+
}
|
50
|
+
|
51
|
+
.center .col {
|
52
|
+
flex-grow: 0;
|
53
|
+
flex-shrink: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
/* columns widths */
|
57
|
+
|
58
|
+
.col-span-1 {
|
59
|
+
flex-basis: 8.3333%;
|
60
|
+
}
|
61
|
+
|
62
|
+
.col-span-2 {
|
63
|
+
flex-basis: 16.6666%;
|
64
|
+
}
|
65
|
+
|
66
|
+
.col-span-3 {
|
67
|
+
flex-basis: 25%;
|
68
|
+
}
|
69
|
+
|
70
|
+
.col-span-4 {
|
71
|
+
flex-basis: 33.3333%;
|
72
|
+
}
|
73
|
+
|
74
|
+
.col-span-5 {
|
75
|
+
flex-basis: 41.6666%;
|
76
|
+
}
|
77
|
+
|
78
|
+
.col-span-6 {
|
79
|
+
flex-basis: 50%;
|
80
|
+
}
|
81
|
+
|
82
|
+
.col-span-7 {
|
83
|
+
flex-basis: 58.3333%;
|
84
|
+
}
|
85
|
+
|
86
|
+
.col-span-8 {
|
87
|
+
flex-basis: 66.6666%;
|
88
|
+
}
|
89
|
+
|
90
|
+
.col-span-9 {
|
91
|
+
flex-basis: 75%;
|
92
|
+
}
|
93
|
+
|
94
|
+
.col-span-10 {
|
95
|
+
flex-basis: 83.3333%;
|
96
|
+
}
|
97
|
+
|
98
|
+
.col-span-11 {
|
99
|
+
flex-basis: 91.6666%;
|
100
|
+
}
|
101
|
+
|
102
|
+
.col-span-12 {
|
103
|
+
flex-basis: 100%;
|
104
|
+
}
|
105
|
+
|
106
|
+
.padding-top-1 { padding-top: 28px; }
|
107
|
+
.padding-top-2 { padding-top: 56px; }
|
108
|
+
.padding-top-3 { padding-top: 84px; }
|
109
|
+
.padding-top-4 { padding-top: 112px; }
|
110
|
+
.padding-top-5 { padding-top: 140px; }
|
111
|
+
.padding-top-6 { padding-top: 168px; }
|
112
|
+
|
113
|
+
.padding-bottom-1 { padding-bottom: 28px; }
|
114
|
+
.padding-bottom-2 { padding-bottom: 56px; }
|
115
|
+
.padding-bottom-3 { padding-bottom: 84px; }
|
116
|
+
.padding-bottom-4 { padding-bottom: 112px; }
|
117
|
+
.padding-bottom-5 { padding-bottom: 140px; }
|
118
|
+
.padding-bottom-6 { padding-bottom: 168px; }
|
119
|
+
|
120
|
+
.offset-top-1 { margin-top: 28px; }
|
121
|
+
.offset-top-2 { margin-top: 56px; }
|
122
|
+
.offset-top-3 { margin-top: 84px; }
|
123
|
+
.offset-top-4 { margin-top: 112px; }
|
124
|
+
.offset-top-5 { margin-top: 140px; }
|
125
|
+
.offset-top-6 { margin-top: 168px; }
|
126
|
+
|
127
|
+
.offset-bottom-1 { margin-bottom: 28px; }
|
128
|
+
.offset-bottom-2 { margin-bottom: 56px; }
|
129
|
+
.offset-bottom-3 { margin-bottom: 84px; }
|
130
|
+
.offset-bottom-4 { margin-bottom: 112px; }
|
131
|
+
.offset-bottom-5 { margin-bottom: 140px; }
|
132
|
+
.offset-bottom-6 { margin-bottom: 168px; }
|
@@ -0,0 +1,380 @@
|
|
1
|
+
|
2
|
+
@import url(http://fonts.googleapis.com/css?family=Roboto:400,300,500,300italic,400italic,500italic,700,700italic&subset=latin,cyrillic);
|
3
|
+
|
4
|
+
* {
|
5
|
+
font-family: 'Roboto', sans-serif;
|
6
|
+
font-weight: 400;
|
7
|
+
color: #0b4c6a;
|
8
|
+
}
|
9
|
+
|
10
|
+
h1, h2, h3, h4, h5, h6 { font-weight: 500; }
|
11
|
+
b { font-weight: 600; }
|
12
|
+
p { font-weight: 500;font-size: 14px; }
|
13
|
+
|
14
|
+
p.center, h1.center, h2.center, h3.center, h4.center, h5.center, h6.center {
|
15
|
+
margin: auto;
|
16
|
+
text-align: center;
|
17
|
+
}
|
18
|
+
|
19
|
+
hr { border: 0;
|
20
|
+
height: 0;
|
21
|
+
margin: 15px;
|
22
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
23
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
|
24
|
+
|
25
|
+
/* Styling button and colors */
|
26
|
+
.btn {
|
27
|
+
min-width: 100px;
|
28
|
+
min-height: 40px;
|
29
|
+
background: #5bc0eb;
|
30
|
+
color: #fff;
|
31
|
+
padding: 4px 0;
|
32
|
+
margin: 5px;
|
33
|
+
border-radius: 3px;
|
34
|
+
border: none;
|
35
|
+
text-decoration:none;
|
36
|
+
text-transform: uppercase;
|
37
|
+
-webkit-user-select: none;
|
38
|
+
-moz-user-select: none;
|
39
|
+
-ms-user-select: none;
|
40
|
+
user-select: none;
|
41
|
+
}
|
42
|
+
.btn:hover { cursor: pointer; }
|
43
|
+
.btn:focus { outline:none; }
|
44
|
+
.btn:active, .btn:target {
|
45
|
+
background-color: #5bc0eb;
|
46
|
+
border-color: #5bc0eb;
|
47
|
+
outline: none;
|
48
|
+
text-decoration:none;
|
49
|
+
}
|
50
|
+
.primary, .primary:active, .primary:target, p.primary, h1.primary, h2.primary, h3.primary, h4.primary, h5.primary, h6.primary { background-color: #5bc0eb; }
|
51
|
+
.success, .success:active, .success:target, p.success, h1.success, h2.success, h3.success, h4.success, h5.success, h6.success { background-color: #9bc53d; }
|
52
|
+
.error, .error:active, .error:target, p.error, h1.error, h2.error, h3.error, h4.error, h5.error, h6.error { background-color: #ff3939; }
|
53
|
+
.info, .info:active, .info:target, p.info, h1.info, h2.info, h3.info, h4.info, h5.info, h6.info { background-color: #f5dd32; }
|
54
|
+
.warning, .warning:active, .warning:target, p.warning, h1.warning, h2.warning, h3.warning, h4.warning, h5.warning, h6.warning { background-color: #f78334; }
|
55
|
+
|
56
|
+
|
57
|
+
/* Styling input field containers */
|
58
|
+
label { display: block; font-weight: 600; }
|
59
|
+
.field-container {
|
60
|
+
margin: 10px 0;
|
61
|
+
margin-bottom: 20px;
|
62
|
+
clear: both;
|
63
|
+
}
|
64
|
+
.field-container:after {
|
65
|
+
content: "";
|
66
|
+
display: block;
|
67
|
+
width: 100%;
|
68
|
+
height: 4px;
|
69
|
+
margin-top: -1px;
|
70
|
+
border-width: 0 2px 2px 2px;
|
71
|
+
border-style: solid;
|
72
|
+
border-color: #bab6b6;
|
73
|
+
}
|
74
|
+
.field-container.is-focused:after, .field-container.field-primary.is-focused:after { border-color: #5bc0eb; }
|
75
|
+
.field-container.field-success.is-focused:after { border-color: #9bc53d; }
|
76
|
+
.field-container.field-info.is-focused:after { border-color: #f5dd32; }
|
77
|
+
.field-container.field-warning.is-focused:after { border-color: #f78334; }
|
78
|
+
.field-container.field-error.is-focused:after { border-color: #ff3939; }
|
79
|
+
|
80
|
+
|
81
|
+
/* Styling the main input field */
|
82
|
+
input[type='text'], input[type='password'], input[type='email'] {
|
83
|
+
width: 100%;
|
84
|
+
margin: 0;
|
85
|
+
padding: 0 6px;
|
86
|
+
border: none;
|
87
|
+
outline: none;
|
88
|
+
background: transparent;
|
89
|
+
font-size: 16px;
|
90
|
+
font-weight: 300;
|
91
|
+
color: #404040;
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
/* Styling main input */
|
96
|
+
input[type='radio'],
|
97
|
+
input[type='checkbox'] {
|
98
|
+
display: none;
|
99
|
+
cursor: pointer;
|
100
|
+
}
|
101
|
+
input[type='radio']:focus, input[type='radio']:active,
|
102
|
+
input[type='checkbox']:focus,
|
103
|
+
input[type='checkbox']:active {
|
104
|
+
outline: none;
|
105
|
+
}
|
106
|
+
input[type='radio'] + label,
|
107
|
+
input[type='checkbox'] + label {
|
108
|
+
cursor: pointer;
|
109
|
+
display: inline-block;
|
110
|
+
position: relative;
|
111
|
+
padding-left: 25px;
|
112
|
+
margin-right: 10px;
|
113
|
+
color: #0b4c6a;
|
114
|
+
}
|
115
|
+
input[type='radio'] + label:before, input[type='radio'] + label:after,
|
116
|
+
input[type='checkbox'] + label:before,
|
117
|
+
input[type='checkbox'] + label:after {
|
118
|
+
content: '';
|
119
|
+
font-family: helvetica;
|
120
|
+
display: inline-block;
|
121
|
+
width: 18px;
|
122
|
+
height: 18px;
|
123
|
+
left: 0;
|
124
|
+
bottom: 0;
|
125
|
+
text-align: center;
|
126
|
+
position: absolute;
|
127
|
+
}
|
128
|
+
input[type='radio'] + label:before,
|
129
|
+
input[type='checkbox'] + label:before {
|
130
|
+
background-color: #fafafa;
|
131
|
+
-moz-transition: all 0.3s ease-in-out;
|
132
|
+
-o-transition: all 0.3s ease-in-out;
|
133
|
+
-webkit-transition: all 0.3s ease-in-out;
|
134
|
+
transition: all 0.3s ease-in-out;
|
135
|
+
}
|
136
|
+
input[type='radio'] + label:after,
|
137
|
+
input[type='checkbox'] + label:after {
|
138
|
+
color: #fff;
|
139
|
+
}
|
140
|
+
input[type='radio']:checked + label:before,
|
141
|
+
input[type='checkbox']:checked + label:before {
|
142
|
+
-moz-box-shadow: inset 0 0 0 10px #5bc0eb;
|
143
|
+
-webkit-box-shadow: inset 0 0 0 10px #5bc0eb;
|
144
|
+
box-shadow: inset 0 0 0 10px #5bc0eb;
|
145
|
+
}
|
146
|
+
input[type='radio']:checked.success + label:before,
|
147
|
+
input[type='checkbox']:checked.success + label:before {
|
148
|
+
-moz-box-shadow: inset 0 0 0 10px #9bc53d;
|
149
|
+
-webkit-box-shadow: inset 0 0 0 10px #9bc53d;
|
150
|
+
box-shadow: inset 0 0 0 10px #9bc53d;
|
151
|
+
}
|
152
|
+
input[type='radio']:checked.info + label:before,
|
153
|
+
input[type='checkbox']:checked.info + label:before {
|
154
|
+
-moz-box-shadow: inset 0 0 0 10px #f5dd32;
|
155
|
+
-webkit-box-shadow: inset 0 0 0 10px #f5dd32;
|
156
|
+
box-shadow: inset 0 0 0 10px #f5dd32;
|
157
|
+
}
|
158
|
+
input[type='radio']:checked.warning + label:before,
|
159
|
+
input[type='checkbox']:checked.warning + label:before {
|
160
|
+
-moz-box-shadow: inset 0 0 0 10px #f78334;
|
161
|
+
-webkit-box-shadow: inset 0 0 0 10px #f78334;
|
162
|
+
box-shadow: inset 0 0 0 10px #f78334;
|
163
|
+
}
|
164
|
+
input[type='radio']:checked.error + label:before,
|
165
|
+
input[type='checkbox']:checked.error + label:before {
|
166
|
+
-moz-box-shadow: inset 0 0 0 10px #ff3939;
|
167
|
+
-webkit-box-shadow: inset 0 0 0 10px #ff3939;
|
168
|
+
box-shadow: inset 0 0 0 10px #ff3939;
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
/*Radio Specific styles*/
|
173
|
+
input[type='radio'] + label:before {
|
174
|
+
-moz-border-radius: 50%;
|
175
|
+
-webkit-border-radius: 50%;
|
176
|
+
border-radius: 50%;
|
177
|
+
}
|
178
|
+
input[type='radio'] + label:hover:after, input[type='radio']:checked + label:after {
|
179
|
+
content: '\2022';
|
180
|
+
position: absolute;
|
181
|
+
top: 3px;
|
182
|
+
font-size: 22px;
|
183
|
+
line-height: 15px;
|
184
|
+
}
|
185
|
+
input[type='radio'] + label:hover:after {
|
186
|
+
color: #c7c7c7;
|
187
|
+
}
|
188
|
+
input[type='radio']:checked + label:after, input[type='radio']:checked + label:hover:after {
|
189
|
+
color: #fff;
|
190
|
+
}
|
191
|
+
|
192
|
+
|
193
|
+
/*Checkbox Specific styles*/
|
194
|
+
input[type='checkbox'] + label:before {
|
195
|
+
-moz-border-radius: 3px;
|
196
|
+
-webkit-border-radius: 3px;
|
197
|
+
border-radius: 3px;
|
198
|
+
}
|
199
|
+
input[type='checkbox'] + label:hover:after, input[type='checkbox']:checked + label:after {
|
200
|
+
content: "\2713";
|
201
|
+
line-height: 18px;
|
202
|
+
font-size: 14px;
|
203
|
+
}
|
204
|
+
input[type='checkbox'] + label:hover:after {
|
205
|
+
color: #c7c7c7;
|
206
|
+
}
|
207
|
+
input[type='checkbox']:checked + label:after, input[type='checkbox']:checked + label:hover:after {
|
208
|
+
color: #fff;
|
209
|
+
}
|
210
|
+
|
211
|
+
|
212
|
+
/*Toggle Specific styles*/
|
213
|
+
input[type='checkbox'].toggle {
|
214
|
+
display: inline-block;
|
215
|
+
-webkit-appearance: none;
|
216
|
+
-moz-appearance: none;
|
217
|
+
appearance: none;
|
218
|
+
width: 55px;
|
219
|
+
height: 28px;
|
220
|
+
background-color: #fafafa;
|
221
|
+
position: relative;
|
222
|
+
-moz-border-radius: 30px;
|
223
|
+
-webkit-border-radius: 30px;
|
224
|
+
border-radius: 30px;
|
225
|
+
@inlcude box-shadow(none);
|
226
|
+
-moz-transition: all 0.2s ease-in-out;
|
227
|
+
-o-transition: all 0.2s ease-in-out;
|
228
|
+
-webkit-transition: all 0.2s ease-in-out;
|
229
|
+
transition: all 0.2s ease-in-out;
|
230
|
+
}
|
231
|
+
input[type='checkbox'].toggle:hover:after {
|
232
|
+
background-color: #c7c7c7;
|
233
|
+
}
|
234
|
+
input[type='checkbox'].toggle:after {
|
235
|
+
content: '';
|
236
|
+
display: inline-block;
|
237
|
+
position: absolute;
|
238
|
+
width: 24px;
|
239
|
+
height: 24px;
|
240
|
+
background-color: #adadad;
|
241
|
+
top: 2px;
|
242
|
+
left: 2px;
|
243
|
+
-moz-border-radius: 50%;
|
244
|
+
-webkit-border-radius: 50%;
|
245
|
+
border-radius: 50%;
|
246
|
+
-moz-transition: all 0.2s ease-in-out;
|
247
|
+
-o-transition: all 0.2s ease-in-out;
|
248
|
+
-webkit-transition: all 0.2s ease-in-out;
|
249
|
+
transition: all 0.2s ease-in-out;
|
250
|
+
}
|
251
|
+
input[type='checkbox']:checked.toggle {
|
252
|
+
-moz-box-shadow: inset 0 0 0 15px #5bc0eb;
|
253
|
+
-webkit-box-shadow: inset 0 0 0 15px #5bc0eb;
|
254
|
+
box-shadow: inset 0 0 0 15px #5bc0eb;
|
255
|
+
}
|
256
|
+
input[type='checkbox']:checked.success.toggle {
|
257
|
+
-moz-box-shadow: inset 0 0 0 15px #9bc53d;
|
258
|
+
-webkit-box-shadow: inset 0 0 0 15px #9bc53d;
|
259
|
+
box-shadow: inset 0 0 0 15px #9bc53d;
|
260
|
+
}
|
261
|
+
input[type='checkbox']:checked.info.toggle {
|
262
|
+
-moz-box-shadow: inset 0 0 0 15px #f5dd32;
|
263
|
+
-webkit-box-shadow: inset 0 0 0 15px #f5dd32;
|
264
|
+
box-shadow: inset 0 0 0 15px #f5dd32;
|
265
|
+
}
|
266
|
+
input[type='checkbox']:checked.warning.toggle {
|
267
|
+
-moz-box-shadow: inset 0 0 0 15px #f78334;
|
268
|
+
-webkit-box-shadow: inset 0 0 0 15px #f78334;
|
269
|
+
box-shadow: inset 0 0 0 15px #f78334;
|
270
|
+
}
|
271
|
+
input[type='checkbox']:checked.error.toggle {
|
272
|
+
-moz-box-shadow: inset 0 0 0 15px #ff3939;
|
273
|
+
-webkit-box-shadow: inset 0 0 0 15px #ff3939;
|
274
|
+
box-shadow: inset 0 0 0 15px #ff3939;
|
275
|
+
}
|
276
|
+
input[type='checkbox']:checked.toggle:after {
|
277
|
+
left: 29px;
|
278
|
+
background-color: #fff;
|
279
|
+
}
|
280
|
+
|
281
|
+
|
282
|
+
/* Styling the main textarea filed */
|
283
|
+
textarea {
|
284
|
+
min-height: 38px;
|
285
|
+
height: 38px;
|
286
|
+
margin: 2px 0 3px;
|
287
|
+
overflow-y: hidden;
|
288
|
+
resize: none;
|
289
|
+
font-size: 16px;
|
290
|
+
font-weight: 300;
|
291
|
+
-webkit-transition: height .1s;
|
292
|
+
-moz-transition: height .1s;
|
293
|
+
transition: height .1s;
|
294
|
+
}
|
295
|
+
::-webkit-input-placeholder { color: #bab6b6; }
|
296
|
+
:-moz-placeholder { color: #bab6b6; }
|
297
|
+
:-ms-placeholder { color: #bab6b6; }
|
298
|
+
|
299
|
+
|
300
|
+
/* Styling image content group */
|
301
|
+
.group:after {
|
302
|
+
content: "";
|
303
|
+
display: table;
|
304
|
+
clear: both;
|
305
|
+
}
|
306
|
+
strong {
|
307
|
+
font-weight: normal;
|
308
|
+
color: #2f2f2f;
|
309
|
+
}
|
310
|
+
.item-content {
|
311
|
+
position: relative;
|
312
|
+
width: 95%;
|
313
|
+
max-width: 50rem;
|
314
|
+
margin: 20px auto;
|
315
|
+
padding: 20px;
|
316
|
+
border: 2px solid #f1f1f1;
|
317
|
+
background-color: #f7f7f7;
|
318
|
+
border-radius: 5px;
|
319
|
+
display: -webkit-box;
|
320
|
+
display: -webkit-flex;
|
321
|
+
display: -ms-flexbox;
|
322
|
+
display: flex;
|
323
|
+
-webkit-box-align: center;
|
324
|
+
-webkit-align-items: center;
|
325
|
+
-ms-flex-align: center;
|
326
|
+
align-items: center;
|
327
|
+
-webkit-transform: translateZ(0);
|
328
|
+
transform: translateZ(0);
|
329
|
+
}
|
330
|
+
.item-img {
|
331
|
+
position: relative;
|
332
|
+
float: left;
|
333
|
+
display: block;
|
334
|
+
width: 30%;
|
335
|
+
-webkit-transform-origin: 50% 50%;
|
336
|
+
-ms-transform-origin: 50% 50%;
|
337
|
+
transform-origin: 50% 50%;
|
338
|
+
-webkit-transform-style: preserve-3d;
|
339
|
+
transform-style: preserve-3d;
|
340
|
+
-webkit-animation: floating 5s -1s infinite;
|
341
|
+
animation: floating 5s -1s infinite;
|
342
|
+
}
|
343
|
+
.item-img img {
|
344
|
+
display: block;
|
345
|
+
width: 100%;
|
346
|
+
height: auto;
|
347
|
+
-webkit-transform-origin: 50% 100%;
|
348
|
+
-ms-transform-origin: 50% 100%;
|
349
|
+
transform-origin: 50% 100%;
|
350
|
+
-webkit-transform: translateZ(-5rem);
|
351
|
+
transform: translateZ(-5rem);
|
352
|
+
}
|
353
|
+
@-webkit-keyframes floating {
|
354
|
+
0%, 100% {
|
355
|
+
-webkit-transform: translateY(-5%);
|
356
|
+
transform: translateY(-5%);
|
357
|
+
}
|
358
|
+
50% {
|
359
|
+
-webkit-transform: translateY(0);
|
360
|
+
transform: translateY(0);
|
361
|
+
}
|
362
|
+
}
|
363
|
+
|
364
|
+
@keyframes floating {
|
365
|
+
0%, 100% {
|
366
|
+
-webkit-transform: translateY(-5%);
|
367
|
+
transform: translateY(-5%);
|
368
|
+
}
|
369
|
+
50% {
|
370
|
+
-webkit-transform: translateY(0);
|
371
|
+
transform: translateY(0);
|
372
|
+
}
|
373
|
+
}
|
374
|
+
.item-caption {
|
375
|
+
display: block;
|
376
|
+
position: relative;
|
377
|
+
float: left;
|
378
|
+
width: 65%;
|
379
|
+
margin-left: 5%;
|
380
|
+
}
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: afgor-ui
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Markus Benovsky
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: Created for designing web apps and simple websites. Has some nice effects
|
42
|
+
and is fully flat.
|
43
|
+
email:
|
44
|
+
- markus@afgor.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".gitattributes"
|
50
|
+
- ".gitignore"
|
51
|
+
- ".travis.yml"
|
52
|
+
- Gemfile
|
53
|
+
- LICENSE.txt
|
54
|
+
- README.md
|
55
|
+
- Rakefile
|
56
|
+
- afgor-ui.gemspec
|
57
|
+
- bin/console
|
58
|
+
- bin/setup
|
59
|
+
- lib/afgor/ui.rb
|
60
|
+
- lib/afgor/ui/version.rb
|
61
|
+
- vendor/assets/javascripts/afgor-ui.js
|
62
|
+
- vendor/assets/stylesheets/afgor-ui-grid.css
|
63
|
+
- vendor/assets/stylesheets/afgor-ui.css
|
64
|
+
homepage: https://github.com/MarkusBansky/afgor-framework/tree/ruby-package
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
metadata: {}
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.2.3
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: A simple framework by afgor.com
|
88
|
+
test_files: []
|