uikit-rails 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,92 @@
1
+ #dialog {
2
+ position: fixed;
3
+ left: 50%;
4
+ top: 150px;
5
+ max-width: 600px;
6
+ min-width: 250px;
7
+ border: 1px solid #eee;
8
+ background: white;
9
+ z-index: 1000;
10
+ }
11
+
12
+ #dialog .content {
13
+ padding: 15px 20px;
14
+ }
15
+
16
+ #dialog h1 {
17
+ margin: 0 0 5px 0;
18
+ font-size: 16px;
19
+ font-weight: normal;
20
+ }
21
+
22
+ #dialog p {
23
+ margin: 0;
24
+ padding: 0;
25
+ font-size: .9em;
26
+ }
27
+
28
+ #dialog.modal {
29
+ box-shadow: 0 1px 8px 0 black;
30
+ }
31
+
32
+ /* close */
33
+
34
+ #dialog .close {
35
+ position: absolute;
36
+ top: 3px;
37
+ right: 10px;
38
+ text-decoration: none;
39
+ color: #888;
40
+ font-size: 16px;
41
+ font-weight: bold;
42
+ display: none;
43
+ }
44
+
45
+ #dialog.closable .close {
46
+ display: block;
47
+ }
48
+
49
+ #dialog .close:hover {
50
+ color: black;
51
+ }
52
+
53
+ #dialog .close:active {
54
+ margin-top: 1px;
55
+ }
56
+
57
+ /* slide */
58
+
59
+ #dialog.slide {
60
+ -webkit-transition: opacity 300ms, top 300ms;
61
+ -moz-transition: opacity 300ms, top 300ms;
62
+ }
63
+
64
+ #dialog.slide.hide {
65
+ opacity: 0;
66
+ top: -500px;
67
+ }
68
+
69
+ /* fade */
70
+
71
+ #dialog.fade {
72
+ -webkit-transition: opacity 300ms;
73
+ -moz-transition: opacity 300ms;
74
+ }
75
+
76
+ #dialog.fade.hide {
77
+ opacity: 0;
78
+ }
79
+
80
+ /* scale */
81
+
82
+ #dialog.scale {
83
+ -webkit-transition: -webkit-transform 300ms;
84
+ -moz-transition: -moz-transform 300ms;
85
+ -webkit-transform: scale(1);
86
+ -moz-transform: scale(1);
87
+ }
88
+
89
+ #dialog.scale.hide {
90
+ -webkit-transform: scale(0);
91
+ -moz-transform: scale(0);
92
+ }
@@ -0,0 +1,32 @@
1
+ .menu {
2
+ position: absolute;
3
+ top: 0;
4
+ left: 0;
5
+ z-index: 100;
6
+ margin: 0;
7
+ padding: 0;
8
+ background: white;
9
+ border: 1px solid rgba(0,0,0,0.2);
10
+ }
11
+
12
+ .menu li {
13
+ list-style: none;
14
+ }
15
+
16
+ .menu li a {
17
+ display: block;
18
+ padding: 5px 30px 5px 12px;
19
+ text-decoration: none;
20
+ border-top: 1px solid #eee;
21
+ color: #2e2e2e;
22
+ outline: none;
23
+ }
24
+
25
+ .menu li:first-child a {
26
+ border-top: none;
27
+ }
28
+
29
+ .menu li a:hover,
30
+ .menu li.selected a {
31
+ background: #f1faff;
32
+ }
@@ -0,0 +1,107 @@
1
+
2
+ #notifications {
3
+ position: fixed;
4
+ top: 10px;
5
+ right: 15px;
6
+ }
7
+
8
+ #notifications li {
9
+ margin-bottom: 5px;
10
+ list-style: none;
11
+ }
12
+
13
+ .notification {
14
+ position: relative;
15
+ max-width: 600px;
16
+ min-width: 250px;
17
+ border: 1px solid #eee;
18
+ background: white;
19
+ z-index: 100;
20
+ }
21
+
22
+ .notification .content {
23
+ padding: 15px 20px;
24
+ }
25
+
26
+ .notification h1 {
27
+ margin: 0 0 5px 0;
28
+ font-size: 16px;
29
+ font-weight: normal;
30
+ }
31
+
32
+ .notification p {
33
+ margin: 0;
34
+ padding: 0;
35
+ font-size: .9em;
36
+ }
37
+
38
+ .notification .close {
39
+ position: absolute;
40
+ top: 5px;
41
+ right: 10px;
42
+ text-decoration: none;
43
+ color: #888;
44
+ display: none;
45
+ }
46
+
47
+ .notification.closable .close {
48
+ display: block;
49
+ }
50
+
51
+ .notification .close:hover {
52
+ color: black;
53
+ }
54
+
55
+ .notification .close:active {
56
+ margin-top: 1px;
57
+ }
58
+
59
+ /* close */
60
+
61
+ .notification .close {
62
+ position: absolute;
63
+ top: 3px;
64
+ right: 10px;
65
+ text-decoration: none;
66
+ color: #888;
67
+ font-size: 16px;
68
+ font-weight: bold;
69
+ display: none;
70
+ }
71
+
72
+ /* slide */
73
+
74
+ .notification.slide {
75
+ -webkit-transition: opacity 300ms, top 300ms;
76
+ -moz-transition: opacity 300ms, top 300ms;
77
+ }
78
+
79
+ .notification.slide.hide {
80
+ opacity: 0;
81
+ top: -500px;
82
+ }
83
+
84
+ /* fade */
85
+
86
+ .notification.fade {
87
+ -webkit-transition: opacity 300ms;
88
+ -moz-transition: opacity 300ms;
89
+ }
90
+
91
+ .notification.fade.hide {
92
+ opacity: 0;
93
+ }
94
+
95
+ /* scale */
96
+
97
+ .notification.scale {
98
+ -webkit-transition: -webkit-transform 300ms;
99
+ -moz-transition: -moz-transform 300ms;
100
+ -webkit-transform: scale(1);
101
+ -moz-transform: scale(1);
102
+ }
103
+
104
+ .notification.scale.hide {
105
+ -webkit-transform: scale(0);
106
+ -moz-transform: scale(0);
107
+ }
@@ -0,0 +1,16 @@
1
+ #overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ opacity: 1;
6
+ width: 100%;
7
+ height: 100%;
8
+ background: rgba(0,0,0,.75);
9
+ transition: opacity 300ms;
10
+ z-index: 500;
11
+ }
12
+
13
+ #overlay.hide {
14
+ pointer-events: none;
15
+ opacity: 0;
16
+ }
@@ -0,0 +1,27 @@
1
+ .split-button {
2
+ display: inline-block;
3
+ border: 1px solid #eee;
4
+ }
5
+
6
+ .split-button a {
7
+ display: inline-block;
8
+ float: left;
9
+ height: 20px;
10
+ line-height: 20px;
11
+ padding: 5px 10px;
12
+ text-decoration: none;
13
+ -webkit-user-select: none;
14
+ -moz-user-select: none;
15
+ }
16
+
17
+ .split-button .toggle {
18
+ border-left: 1px solid #eee;
19
+ }
20
+
21
+ .split-button .toggle span {
22
+ display: block;
23
+ margin-top: 8px;
24
+ border-left: 4px solid transparent;
25
+ border-right: 4px solid transparent;
26
+ border-top: 4px solid #888;
27
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uikit-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -37,10 +37,31 @@ extra_rdoc_files: []
37
37
  files:
38
38
  - .gitignore
39
39
  - Gemfile
40
+ - README.rb
40
41
  - Rakefile
41
42
  - lib/uikit-rails.rb
43
+ - lib/uikit-rails/engine.rb
42
44
  - lib/uikit-rails/version.rb
43
45
  - uikit-rails.gemspec
46
+ - vendor/assets/javascripts/ui.card.js
47
+ - vendor/assets/javascripts/ui.color-picker.js
48
+ - vendor/assets/javascripts/ui.confirmation.js
49
+ - vendor/assets/javascripts/ui.dialog.js
50
+ - vendor/assets/javascripts/ui.emitter.js
51
+ - vendor/assets/javascripts/ui.js
52
+ - vendor/assets/javascripts/ui.menu.js
53
+ - vendor/assets/javascripts/ui.notification.js
54
+ - vendor/assets/javascripts/ui.overlay.js
55
+ - vendor/assets/javascripts/ui.split-button.js
56
+ - vendor/assets/stylesheets/ui.card.css
57
+ - vendor/assets/stylesheets/ui.color-picker.css
58
+ - vendor/assets/stylesheets/ui.confirmation.css
59
+ - vendor/assets/stylesheets/ui.css
60
+ - vendor/assets/stylesheets/ui.dialog.css
61
+ - vendor/assets/stylesheets/ui.menu.css
62
+ - vendor/assets/stylesheets/ui.notification.css
63
+ - vendor/assets/stylesheets/ui.overlay.css
64
+ - vendor/assets/stylesheets/ui.split-button.css
44
65
  homepage: ''
45
66
  licenses: []
46
67
  post_install_message: