semantic_ui_rails 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/README.md +4 -0
- data/Rakefile +1 -0
- data/app/assets/fonts/semantic/icons.eot +0 -0
- data/app/assets/fonts/semantic/icons.svg +450 -0
- data/app/assets/fonts/semantic/icons.ttf +0 -0
- data/app/assets/fonts/semantic/icons.woff +0 -0
- data/app/assets/images/semantic/loader-large-inverted.gif +0 -0
- data/app/assets/images/semantic/loader-large.gif +0 -0
- data/app/assets/images/semantic/loader-medium-inverted.gif +0 -0
- data/app/assets/images/semantic/loader-medium.gif +0 -0
- data/app/assets/images/semantic/loader-mini-inverted.gif +0 -0
- data/app/assets/images/semantic/loader-mini.gif +0 -0
- data/app/assets/images/semantic/loader-small-inverted.gif +0 -0
- data/app/assets/images/semantic/loader-small.gif +0 -0
- data/app/assets/javascript/semantic/accordion.js +411 -0
- data/app/assets/javascript/semantic/behavior/api.js +666 -0
- data/app/assets/javascript/semantic/behavior/colorize.js +271 -0
- data/app/assets/javascript/semantic/behavior/form.js +703 -0
- data/app/assets/javascript/semantic/behavior/state.js +752 -0
- data/app/assets/javascript/semantic/chatroom.js +766 -0
- data/app/assets/javascript/semantic/checkbox.js +348 -0
- data/app/assets/javascript/semantic/dimmer.js +524 -0
- data/app/assets/javascript/semantic/dropdown.js +707 -0
- data/app/assets/javascript/semantic/modal.js +478 -0
- data/app/assets/javascript/semantic/nag.js +542 -0
- data/app/assets/javascript/semantic/popup.js +721 -0
- data/app/assets/javascript/semantic/rating.js +358 -0
- data/app/assets/javascript/semantic/search.js +769 -0
- data/app/assets/javascript/semantic/shape.js +776 -0
- data/app/assets/javascript/semantic/sidebar.js +489 -0
- data/app/assets/javascript/semantic/tab.js +674 -0
- data/app/assets/javascript/semantic/transition.js +650 -0
- data/app/assets/javascript/semantic/video.js +459 -0
- data/app/assets/stylesheets/semantic/accordion.css +97 -0
- data/app/assets/stylesheets/semantic/breadcrumb.css +66 -0
- data/app/assets/stylesheets/semantic/button.css +993 -0
- data/app/assets/stylesheets/semantic/chatroom.css +242 -0
- data/app/assets/stylesheets/semantic/checkbox.css +300 -0
- data/app/assets/stylesheets/semantic/comment.css +178 -0
- data/app/assets/stylesheets/semantic/dimmer.css +185 -0
- data/app/assets/stylesheets/semantic/divider.css +155 -0
- data/app/assets/stylesheets/semantic/dropdown.css +415 -0
- data/app/assets/stylesheets/semantic/feed.css +126 -0
- data/app/assets/stylesheets/semantic/form.css +427 -0
- data/app/assets/stylesheets/semantic/grid.css +561 -0
- data/app/assets/stylesheets/semantic/header.css +277 -0
- data/app/assets/stylesheets/semantic/icon.css +811 -0
- data/app/assets/stylesheets/semantic/image.css +143 -0
- data/app/assets/stylesheets/semantic/input.css +225 -0
- data/app/assets/stylesheets/semantic/item.css +564 -0
- data/app/assets/stylesheets/semantic/label.css +687 -0
- data/app/assets/stylesheets/semantic/list.css +418 -0
- data/app/assets/stylesheets/semantic/loader.css +148 -0
- data/app/assets/stylesheets/semantic/menu.css +1409 -0
- data/app/assets/stylesheets/semantic/message.css +242 -0
- data/app/assets/stylesheets/semantic/modal.css +123 -0
- data/app/assets/stylesheets/semantic/nag.css +130 -0
- data/app/assets/stylesheets/semantic/popup.css +209 -0
- data/app/assets/stylesheets/semantic/progress.css +257 -0
- data/app/assets/stylesheets/semantic/rating.css +120 -0
- data/app/assets/stylesheets/semantic/reveal.css +283 -0
- data/app/assets/stylesheets/semantic/search.css +222 -0
- data/app/assets/stylesheets/semantic/segment.css +362 -0
- data/app/assets/stylesheets/semantic/shape.css +87 -0
- data/app/assets/stylesheets/semantic/sidebar.css +100 -0
- data/app/assets/stylesheets/semantic/step.css +240 -0
- data/app/assets/stylesheets/semantic/tab.css +52 -0
- data/app/assets/stylesheets/semantic/table.css +468 -0
- data/app/assets/stylesheets/semantic/transition.css +867 -0
- data/app/assets/stylesheets/semantic/video.css +81 -0
- data/lib/semantic_ui_rails/version.rb +3 -0
- data/lib/semantic_ui_rails.rb +7 -0
- data/semantic_ui_rails.gemspec +23 -0
- metadata +149 -0
@@ -0,0 +1,100 @@
|
|
1
|
+
/*******************************
|
2
|
+
Semantic Module: Sidebar
|
3
|
+
Author: Jack Lukic
|
4
|
+
Notes: First Commit March 25, 2013
|
5
|
+
Sidebar Menu System
|
6
|
+
*******************************/
|
7
|
+
/*******************************
|
8
|
+
Sidebar
|
9
|
+
*******************************/
|
10
|
+
body {
|
11
|
+
-webkit-transition: margin 0.3s ease, -webkit-transform 0.3s ease;
|
12
|
+
-moz-transition: margin 0.3s ease, -moz-transform 0.3s ease;
|
13
|
+
-o-transition: margin 0.3s ease,
|
14
|
+
transform 0.3s ease
|
15
|
+
;
|
16
|
+
-ms-transition: margin 0.3s ease,
|
17
|
+
transform 0.3s ease
|
18
|
+
;
|
19
|
+
transition: margin 0.3s ease,
|
20
|
+
transform 0.3s ease
|
21
|
+
;
|
22
|
+
}
|
23
|
+
.ui.sidebar {
|
24
|
+
position: fixed;
|
25
|
+
margin: 0 !important;
|
26
|
+
width: 275px !important;
|
27
|
+
height: 100% !important;
|
28
|
+
-webkit-border-radius: 0px !important;
|
29
|
+
-moz-border-radius: 0px !important;
|
30
|
+
border-radius: 0px !important;
|
31
|
+
-ms-overflow-y: auto;
|
32
|
+
overflow-y: auto;
|
33
|
+
top: 0px;
|
34
|
+
left: 0px;
|
35
|
+
z-index: 999;
|
36
|
+
-webkit-transition: margin-left 0.3s ease, margin-top 0.3s ease;
|
37
|
+
-moz-transition: margin-left 0.3s ease, margin-top 0.3s ease;
|
38
|
+
-o-transition: margin-left 0.3s ease, margin-top 0.3s ease;
|
39
|
+
-ms-transition: margin-left 0.3s ease, margin-top 0.3s ease;
|
40
|
+
transition: margin-left 0.3s ease, margin-top 0.3s ease;
|
41
|
+
}
|
42
|
+
/*******************************
|
43
|
+
Types
|
44
|
+
*******************************/
|
45
|
+
.ui.sidebar {
|
46
|
+
margin-left: -275px !important;
|
47
|
+
}
|
48
|
+
.ui.right.sidebar {
|
49
|
+
left: 100%;
|
50
|
+
margin: 0px !important;
|
51
|
+
}
|
52
|
+
.ui.top.sidebar {
|
53
|
+
margin: -40px 0px 0px 0px !important;
|
54
|
+
width: 100% !important;
|
55
|
+
height: 40px !important;
|
56
|
+
}
|
57
|
+
.ui.bottom.sidebar {
|
58
|
+
width: 100% !important;
|
59
|
+
height: 40px !important;
|
60
|
+
top: 100%;
|
61
|
+
margin: 0px !important;
|
62
|
+
}
|
63
|
+
/*******************************
|
64
|
+
States
|
65
|
+
*******************************/
|
66
|
+
.ui.active.sidebar {
|
67
|
+
margin-left: 0px !important;
|
68
|
+
}
|
69
|
+
.ui.active.right.sidebar {
|
70
|
+
margin-left: -275px !important;
|
71
|
+
}
|
72
|
+
.ui.active.top.sidebar {
|
73
|
+
margin-top: 0px !important;
|
74
|
+
}
|
75
|
+
.ui.active.bottom.sidebar {
|
76
|
+
margin-top: -40px !important;
|
77
|
+
}
|
78
|
+
/*******************************
|
79
|
+
Variations
|
80
|
+
*******************************/
|
81
|
+
.ui.floating.sidebar {
|
82
|
+
-webkit-box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
|
83
|
+
-moz-box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
|
84
|
+
box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
|
85
|
+
}
|
86
|
+
.ui.right.floating.sidebar {
|
87
|
+
-webkit-box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
|
88
|
+
-moz-box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
|
89
|
+
box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
|
90
|
+
}
|
91
|
+
.ui.top.floating.sidebar {
|
92
|
+
-webkit-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
|
93
|
+
-moz-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
|
94
|
+
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
|
95
|
+
}
|
96
|
+
.ui.bottom.floating.sidebar {
|
97
|
+
-webkit-box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
|
98
|
+
-moz-box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
|
99
|
+
box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
|
100
|
+
}
|
@@ -0,0 +1,240 @@
|
|
1
|
+
/*
|
2
|
+
* # Semantic Steps
|
3
|
+
* http://github.com/quirkyinc/semantic
|
4
|
+
*
|
5
|
+
*
|
6
|
+
* Copyright 2013 Contributors
|
7
|
+
* Released under the MIT license
|
8
|
+
* http://opensource.org/licenses/MIT
|
9
|
+
*
|
10
|
+
* Released: April 17 2013
|
11
|
+
*/
|
12
|
+
/*******************************
|
13
|
+
Step
|
14
|
+
*******************************/
|
15
|
+
.ui.step,
|
16
|
+
.ui.steps .step {
|
17
|
+
display: inline-block;
|
18
|
+
position: relative;
|
19
|
+
padding: 1em 2em 1em 3em;
|
20
|
+
vertical-align: top;
|
21
|
+
background-color: #FFFFFF;
|
22
|
+
color: #888888;
|
23
|
+
-webkit-box-sizing: border-box;
|
24
|
+
-moz-box-sizing: border-box;
|
25
|
+
-ms-box-sizing: border-box;
|
26
|
+
box-sizing: border-box;
|
27
|
+
}
|
28
|
+
.ui.step:after,
|
29
|
+
.ui.steps .step:after {
|
30
|
+
position: absolute;
|
31
|
+
z-index: 2;
|
32
|
+
content: '';
|
33
|
+
top: 0em;
|
34
|
+
right: -1.45em;
|
35
|
+
border-bottom: 1.5em solid transparent;
|
36
|
+
border-left: 1.5em solid #FFFFFF;
|
37
|
+
border-top: 1.5em solid transparent;
|
38
|
+
width: 0em;
|
39
|
+
height: 0em;
|
40
|
+
}
|
41
|
+
.ui.step,
|
42
|
+
.ui.steps .step,
|
43
|
+
.ui.steps .step:after {
|
44
|
+
-webkit-transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
|
45
|
+
-moz-transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
|
46
|
+
-o-transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
|
47
|
+
-ms-transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
|
48
|
+
transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
|
49
|
+
}
|
50
|
+
/*******************************
|
51
|
+
Group
|
52
|
+
*******************************/
|
53
|
+
.ui.steps {
|
54
|
+
cursor: pointer;
|
55
|
+
display: inline-block;
|
56
|
+
font-size: 0em;
|
57
|
+
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
|
58
|
+
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
|
59
|
+
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
|
60
|
+
line-height: 1;
|
61
|
+
-webkit-box-sizing: border-box;
|
62
|
+
-moz-box-sizing: border-box;
|
63
|
+
-ms-box-sizing: border-box;
|
64
|
+
box-sizing: border-box;
|
65
|
+
-moz-border-radius: 0.3125rem;
|
66
|
+
-webkit-border-radius: 0.3125rem;
|
67
|
+
border-radius: 0.3125rem;
|
68
|
+
}
|
69
|
+
.ui.steps .step:first-child {
|
70
|
+
padding-left: 1.35em;
|
71
|
+
-webkit-border-radius: 0.3125em 0em 0em 0.3125em;
|
72
|
+
-moz-border-radius: 0.3125em 0em 0em 0.3125em;
|
73
|
+
border-radius: 0.3125em 0em 0em 0.3125em;
|
74
|
+
}
|
75
|
+
.ui.steps .step:last-child {
|
76
|
+
-webkit-border-radius: 0em 0.3125em 0.3125em 0em;
|
77
|
+
-moz-border-radius: 0em 0.3125em 0.3125em 0em;
|
78
|
+
border-radius: 0em 0.3125em 0.3125em 0em;
|
79
|
+
}
|
80
|
+
.ui.steps .step:only-child {
|
81
|
+
-webkit-border-radius: 0.3125em;
|
82
|
+
-moz-border-radius: 0.3125em;
|
83
|
+
border-radius: 0.3125em;
|
84
|
+
}
|
85
|
+
.ui.steps .step:last-child {
|
86
|
+
margin-right: 0em;
|
87
|
+
}
|
88
|
+
.ui.steps .step:last-child:after {
|
89
|
+
display: none;
|
90
|
+
}
|
91
|
+
/*******************************
|
92
|
+
States
|
93
|
+
*******************************/
|
94
|
+
/* Hover */
|
95
|
+
.ui.step:hover,
|
96
|
+
.ui.step.hover {
|
97
|
+
background-color: #F7F7F7;
|
98
|
+
color: rgba(0, 0, 0, 0.8);
|
99
|
+
}
|
100
|
+
.ui.steps .step.hover:after,
|
101
|
+
.ui.steps .step:hover:after,
|
102
|
+
.ui.step:hover,
|
103
|
+
.ui.step.hover::after {
|
104
|
+
border-left-color: #F7F7F7;
|
105
|
+
}
|
106
|
+
/* Hover */
|
107
|
+
.ui.steps .step.down,
|
108
|
+
.ui.steps .step:active,
|
109
|
+
.ui.step.down,
|
110
|
+
.ui.step:active {
|
111
|
+
background-color: #F0F0F0;
|
112
|
+
}
|
113
|
+
.ui.steps .step.down:after,
|
114
|
+
.ui.steps .step:active:after,
|
115
|
+
.ui.steps.down::after,
|
116
|
+
.ui.steps:active::after {
|
117
|
+
border-left-color: #F0F0F0;
|
118
|
+
}
|
119
|
+
/* Active */
|
120
|
+
.ui.steps .step.active,
|
121
|
+
.ui.active.step {
|
122
|
+
cursor: auto;
|
123
|
+
background-color: #555555;
|
124
|
+
color: #FFFFFF;
|
125
|
+
font-weight: bold;
|
126
|
+
}
|
127
|
+
.ui.steps .step.active:after,
|
128
|
+
.ui.active.steps:after {
|
129
|
+
border-left-color: #555555;
|
130
|
+
}
|
131
|
+
/* Disabled */
|
132
|
+
.ui.steps .disabled.step,
|
133
|
+
.ui.disabled.step {
|
134
|
+
cursor: auto;
|
135
|
+
background-color: #FFFFFF;
|
136
|
+
color: #CBCBCB;
|
137
|
+
}
|
138
|
+
.ui.disabled.step:after {
|
139
|
+
border: none;
|
140
|
+
background-color: #FFFFFF;
|
141
|
+
top: 0.42em;
|
142
|
+
right: -1em;
|
143
|
+
width: 2.15em;
|
144
|
+
height: 2.15em;
|
145
|
+
-webkit-transform: rotate(-45deg);
|
146
|
+
-moz-transform: rotate(-45deg);
|
147
|
+
-o-transform: rotate(-45deg);
|
148
|
+
-ms-transform: rotate(-45deg);
|
149
|
+
transform: rotate(-45deg);
|
150
|
+
-webkit-box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
|
151
|
+
-moz-box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
|
152
|
+
box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
|
153
|
+
}
|
154
|
+
/*******************************
|
155
|
+
Variations
|
156
|
+
*******************************/
|
157
|
+
/* Attached */
|
158
|
+
.attached.ui.steps {
|
159
|
+
margin: 0em;
|
160
|
+
-webkit-border-radius: 0.3125em 0.3125em 0em 0em;
|
161
|
+
-moz-border-radius: 0.3125em 0.3125em 0em 0em;
|
162
|
+
border-radius: 0.3125em 0.3125em 0em 0em;
|
163
|
+
}
|
164
|
+
.attached.ui.steps .step:first-child {
|
165
|
+
-webkit-border-radius: 0.3125em 0em 0em 0em;
|
166
|
+
-moz-border-radius: 0.3125em 0em 0em 0em;
|
167
|
+
border-radius: 0.3125em 0em 0em 0em;
|
168
|
+
}
|
169
|
+
.attached.ui.steps .step:last-child {
|
170
|
+
-webkit-border-radius: 0em 0.3125em 0em 0em;
|
171
|
+
-moz-border-radius: 0em 0.3125em 0em 0em;
|
172
|
+
border-radius: 0em 0.3125em 0em 0em;
|
173
|
+
}
|
174
|
+
/* Bottom Side */
|
175
|
+
.bottom.attached.ui.steps {
|
176
|
+
margin-top: -1px;
|
177
|
+
-webkit-border-radius: 0em 0em 0.3125em 0.3125em;
|
178
|
+
-moz-border-radius: 0em 0em 0.3125em 0.3125em;
|
179
|
+
border-radius: 0em 0em 0.3125em 0.3125em;
|
180
|
+
}
|
181
|
+
.bottom.attached.ui.steps .step:first-child {
|
182
|
+
-webkit-border-radius: 0em 0em 0em 0.3125em;
|
183
|
+
-moz-border-radius: 0em 0em 0em 0.3125em;
|
184
|
+
border-radius: 0em 0em 0em 0.3125em;
|
185
|
+
}
|
186
|
+
.bottom.attached.ui.steps .step:last-child {
|
187
|
+
-webkit-border-radius: 0em 0em 0.3125em 0em;
|
188
|
+
-moz-border-radius: 0em 0em 0.3125em 0em;
|
189
|
+
border-radius: 0em 0em 0.3125em 0em;
|
190
|
+
}
|
191
|
+
/* Evenly divided */
|
192
|
+
.ui.one.steps,
|
193
|
+
.ui.two.steps,
|
194
|
+
.ui.three.steps,
|
195
|
+
.ui.four.steps,
|
196
|
+
.ui.five.steps,
|
197
|
+
.ui.six.steps,
|
198
|
+
.ui.seven.steps,
|
199
|
+
.ui.eight.steps {
|
200
|
+
display: block;
|
201
|
+
}
|
202
|
+
.ui.one.steps > .step {
|
203
|
+
width: 100%;
|
204
|
+
}
|
205
|
+
.ui.two.steps > .step {
|
206
|
+
width: 50%;
|
207
|
+
}
|
208
|
+
.ui.three.steps > .step {
|
209
|
+
width: 33.333%;
|
210
|
+
}
|
211
|
+
.ui.four.steps > .step {
|
212
|
+
width: 25%;
|
213
|
+
}
|
214
|
+
.ui.five.steps > .step {
|
215
|
+
width: 20%;
|
216
|
+
}
|
217
|
+
.ui.six.steps > .step {
|
218
|
+
width: 16.666%;
|
219
|
+
}
|
220
|
+
.ui.seven.steps > .step {
|
221
|
+
width: 14.285%;
|
222
|
+
}
|
223
|
+
.ui.eight.steps > .step {
|
224
|
+
width: 12.500%;
|
225
|
+
}
|
226
|
+
/*******************************
|
227
|
+
Sizes
|
228
|
+
*******************************/
|
229
|
+
.ui.small.step,
|
230
|
+
.ui.small.steps .step {
|
231
|
+
font-size: 0.8rem;
|
232
|
+
}
|
233
|
+
.ui.step,
|
234
|
+
.ui.steps .step {
|
235
|
+
font-size: 1rem;
|
236
|
+
}
|
237
|
+
.ui.large.step,
|
238
|
+
.ui.large.steps .step {
|
239
|
+
font-size: 1.25rem;
|
240
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
/*
|
2
|
+
* # Semantic Button
|
3
|
+
* http://github.com/quirkyinc/semantic
|
4
|
+
*
|
5
|
+
*
|
6
|
+
* Copyright 2013 Contributors
|
7
|
+
* Released under the MIT license
|
8
|
+
* http://opensource.org/licenses/MIT
|
9
|
+
*
|
10
|
+
* Released: April 17 2013
|
11
|
+
*/
|
12
|
+
/*******************************
|
13
|
+
UI Tabs
|
14
|
+
*******************************/
|
15
|
+
.ui.tab {
|
16
|
+
display: none;
|
17
|
+
}
|
18
|
+
.ui.tab.active,
|
19
|
+
.ui.tab.open {
|
20
|
+
display: block;
|
21
|
+
}
|
22
|
+
/*******************************
|
23
|
+
States
|
24
|
+
*******************************/
|
25
|
+
/*--------------------
|
26
|
+
Loading
|
27
|
+
---------------------*/
|
28
|
+
.ui.tab.loading {
|
29
|
+
position: relative;
|
30
|
+
overflow: hidden;
|
31
|
+
display: block;
|
32
|
+
min-height: 250px;
|
33
|
+
text-indent: -10000px;
|
34
|
+
}
|
35
|
+
.ui.tab.loading * {
|
36
|
+
position: relative !important;
|
37
|
+
left: -10000px !important;
|
38
|
+
}
|
39
|
+
.ui.tab.loading:after {
|
40
|
+
position: absolute;
|
41
|
+
top: 50px;
|
42
|
+
left: 50%;
|
43
|
+
content: 'Loading...';
|
44
|
+
margin-left: -32px;
|
45
|
+
text-indent: 5px;
|
46
|
+
color: rgba(0, 0, 0, 0.4);
|
47
|
+
width: 100%;
|
48
|
+
height: 100%;
|
49
|
+
padding-top: 75px;
|
50
|
+
background: url(../images/loader-large.gif) no-repeat 0px 0px;
|
51
|
+
visibility: visible;
|
52
|
+
}
|