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,143 @@
|
|
1
|
+
/*
|
2
|
+
* # Semantic Image
|
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
|
+
Image
|
14
|
+
*******************************/
|
15
|
+
.ui.image {
|
16
|
+
position: relative;
|
17
|
+
display: inline-block;
|
18
|
+
vertical-align: middle;
|
19
|
+
max-width: 100%;
|
20
|
+
background-color: rgba(0, 0, 0, 0.05);
|
21
|
+
}
|
22
|
+
img.ui.image {
|
23
|
+
display: block;
|
24
|
+
background: none;
|
25
|
+
}
|
26
|
+
.ui.image img {
|
27
|
+
display: block;
|
28
|
+
max-width: 100%;
|
29
|
+
height: auto;
|
30
|
+
}
|
31
|
+
/*******************************
|
32
|
+
States
|
33
|
+
*******************************/
|
34
|
+
.ui.disabled.image {
|
35
|
+
cursor: default;
|
36
|
+
opacity: 0.3;
|
37
|
+
}
|
38
|
+
/*******************************
|
39
|
+
Variations
|
40
|
+
*******************************/
|
41
|
+
/*--------------
|
42
|
+
Rounded
|
43
|
+
---------------*/
|
44
|
+
.ui.rounded.images .image,
|
45
|
+
.ui.rounded.images img,
|
46
|
+
.ui.rounded.image img,
|
47
|
+
.ui.rounded.image {
|
48
|
+
-webkit-border-radius: 0.3125em;
|
49
|
+
-moz-border-radius: 0.3125em;
|
50
|
+
border-radius: 0.3125em;
|
51
|
+
}
|
52
|
+
/*--------------
|
53
|
+
Circular
|
54
|
+
---------------*/
|
55
|
+
.ui.circular.images .image,
|
56
|
+
.ui.circular.images img,
|
57
|
+
.ui.circular.image img,
|
58
|
+
.ui.circular.image {
|
59
|
+
-webkit-border-radius: 500rem;
|
60
|
+
-moz-border-radius: 500rem;
|
61
|
+
border-radius: 500rem;
|
62
|
+
}
|
63
|
+
/*--------------
|
64
|
+
Avatar
|
65
|
+
---------------*/
|
66
|
+
.ui.avatar.images .image,
|
67
|
+
.ui.avatar.images img,
|
68
|
+
.ui.avatar.image img,
|
69
|
+
.ui.avatar.image {
|
70
|
+
margin-right: 0.5em;
|
71
|
+
display: inline-block;
|
72
|
+
width: 2em;
|
73
|
+
height: 2em;
|
74
|
+
-webkit-border-radius: 500rem;
|
75
|
+
-moz-border-radius: 500rem;
|
76
|
+
border-radius: 500rem;
|
77
|
+
}
|
78
|
+
/*-------------------
|
79
|
+
Floated
|
80
|
+
--------------------*/
|
81
|
+
.ui.floated.image,
|
82
|
+
.ui.floated.images {
|
83
|
+
float: left;
|
84
|
+
margin-right: 1em;
|
85
|
+
margin-bottom: 1em;
|
86
|
+
}
|
87
|
+
.ui.right.floated.images,
|
88
|
+
.ui.right.floated.image {
|
89
|
+
float: right;
|
90
|
+
margin-bottom: 1em;
|
91
|
+
margin-left: 1em;
|
92
|
+
}
|
93
|
+
/*--------------
|
94
|
+
Sizes
|
95
|
+
---------------*/
|
96
|
+
.ui.tiny.images .image,
|
97
|
+
.ui.tiny.images img,
|
98
|
+
.ui.tiny.image {
|
99
|
+
width: 20px;
|
100
|
+
font-size: 0.7rem;
|
101
|
+
}
|
102
|
+
.ui.mini.images .image,
|
103
|
+
.ui.mini.images img,
|
104
|
+
.ui.mini.image {
|
105
|
+
width: 35px;
|
106
|
+
font-size: 0.8rem;
|
107
|
+
}
|
108
|
+
.ui.small.images .image,
|
109
|
+
.ui.small.images img,
|
110
|
+
.ui.small.image {
|
111
|
+
width: 80px;
|
112
|
+
font-size: 0.9rem;
|
113
|
+
}
|
114
|
+
.ui.medium.images .image,
|
115
|
+
.ui.medium.images img,
|
116
|
+
.ui.medium.image {
|
117
|
+
width: 300px;
|
118
|
+
font-size: 1rem;
|
119
|
+
}
|
120
|
+
.ui.large.images .image,
|
121
|
+
.ui.large.images img,
|
122
|
+
.ui.large.image {
|
123
|
+
width: 450px;
|
124
|
+
font-size: 1.1rem;
|
125
|
+
}
|
126
|
+
.ui.huge.images .image,
|
127
|
+
.ui.huge.images img,
|
128
|
+
.ui.huge.image {
|
129
|
+
width: 600px;
|
130
|
+
font-size: 1.2rem;
|
131
|
+
}
|
132
|
+
/*******************************
|
133
|
+
Groups
|
134
|
+
*******************************/
|
135
|
+
.ui.images {
|
136
|
+
font-size: 0em;
|
137
|
+
margin: 0em -0.25rem 0rem;
|
138
|
+
}
|
139
|
+
.ui.images .image,
|
140
|
+
.ui.images img {
|
141
|
+
display: inline-block;
|
142
|
+
margin: 0em 0.25em 0.5em;
|
143
|
+
}
|
@@ -0,0 +1,225 @@
|
|
1
|
+
/*
|
2
|
+
* # Semantic Input
|
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: May 29 2013
|
11
|
+
*/
|
12
|
+
/*******************************
|
13
|
+
Standard
|
14
|
+
*******************************/
|
15
|
+
/*--------------------
|
16
|
+
Inputs
|
17
|
+
---------------------*/
|
18
|
+
.ui.input {
|
19
|
+
display: inline-block;
|
20
|
+
position: relative;
|
21
|
+
}
|
22
|
+
.ui.input input {
|
23
|
+
width: 100%;
|
24
|
+
font-family: "Helvetica Neue", "Helvetica", Arial;
|
25
|
+
margin: 0em;
|
26
|
+
padding: 0.85em 1.2em;
|
27
|
+
font-size: 0.875em;
|
28
|
+
background-color: #FFFFFF;
|
29
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
30
|
+
outline: none;
|
31
|
+
color: rgba(0, 0, 0, 0.7);
|
32
|
+
-webkit-border-radius: 0.3125em;
|
33
|
+
-moz-border-radius: 0.3125em;
|
34
|
+
border-radius: 0.3125em;
|
35
|
+
-webkit-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
|
36
|
+
-moz-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
|
37
|
+
-o-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
|
38
|
+
-ms-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
|
39
|
+
transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
|
40
|
+
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
41
|
+
-webkit-box-sizing: border-box;
|
42
|
+
-moz-box-sizing: border-box;
|
43
|
+
-ms-box-sizing: border-box;
|
44
|
+
box-sizing: border-box;
|
45
|
+
}
|
46
|
+
/*--------------------
|
47
|
+
Placeholder
|
48
|
+
---------------------*/
|
49
|
+
/* browsers require these rules separate */
|
50
|
+
.ui.input::-web inputkit-input-placeholder {
|
51
|
+
color: #E0E0E0;
|
52
|
+
}
|
53
|
+
.ui.input::-moz input-placeholder {
|
54
|
+
color: #E0E0E0;
|
55
|
+
}
|
56
|
+
/*******************************
|
57
|
+
States
|
58
|
+
*******************************/
|
59
|
+
/*--------------------
|
60
|
+
Active
|
61
|
+
---------------------*/
|
62
|
+
.ui.input input:active,
|
63
|
+
.ui.input.down input {
|
64
|
+
border-color: rgba(0, 0, 0, 0.3);
|
65
|
+
background-color: #FAFAFA;
|
66
|
+
}
|
67
|
+
/*--------------------
|
68
|
+
Loading
|
69
|
+
---------------------*/
|
70
|
+
.ui.loading.input > .icon {
|
71
|
+
background: url(../images/loader-mini.gif) no-repeat 50% 50%;
|
72
|
+
}
|
73
|
+
.ui.loading.input > .icon:before,
|
74
|
+
.ui.loading.input > .icon:after {
|
75
|
+
display: none;
|
76
|
+
}
|
77
|
+
/*--------------------
|
78
|
+
Focus
|
79
|
+
---------------------*/
|
80
|
+
.ui.input.focus input,
|
81
|
+
.ui.input input:focus {
|
82
|
+
border-color: rgba(0, 0, 0, 0.2);
|
83
|
+
color: rgba(0, 0, 0, 0.85);
|
84
|
+
}
|
85
|
+
.ui.input.focus input input::-webkit-input-placeholder,
|
86
|
+
.ui.input input:focus input::-webkit-input-placeholder {
|
87
|
+
color: #AAAAAA;
|
88
|
+
}
|
89
|
+
.ui.input.focus input input::-moz-placeholder,
|
90
|
+
.ui.input input:focus input::-moz-placeholder {
|
91
|
+
color: #AAAAAA;
|
92
|
+
}
|
93
|
+
/*--------------------
|
94
|
+
Error
|
95
|
+
---------------------*/
|
96
|
+
.ui.input.error input {
|
97
|
+
background-color: #FFFAFA;
|
98
|
+
border-color: #E7BEBE;
|
99
|
+
color: #D95C5C;
|
100
|
+
}
|
101
|
+
/* Error Placeholder */
|
102
|
+
.ui.input.error input ::-webkit-input-placeholder {
|
103
|
+
color: rgba(255, 80, 80, 0.4);
|
104
|
+
}
|
105
|
+
.ui.input.error input ::-moz-placeholder {
|
106
|
+
color: rgba(255, 80, 80, 0.4);
|
107
|
+
}
|
108
|
+
.ui.input.error input :focus::-webkit-input-placeholder {
|
109
|
+
color: rgba(255, 80, 80, 0.7);
|
110
|
+
}
|
111
|
+
.ui.input.error input :focus::-moz-placeholder {
|
112
|
+
color: rgba(255, 80, 80, 0.7);
|
113
|
+
}
|
114
|
+
/*******************************
|
115
|
+
Variations
|
116
|
+
*******************************/
|
117
|
+
/*--------------------
|
118
|
+
Transparent
|
119
|
+
---------------------*/
|
120
|
+
.ui.transparent.input input {
|
121
|
+
border: none;
|
122
|
+
background-color: transparent;
|
123
|
+
}
|
124
|
+
/*--------------------
|
125
|
+
Icon
|
126
|
+
---------------------*/
|
127
|
+
.ui.icon.input > .icon {
|
128
|
+
position: absolute;
|
129
|
+
opacity: 0.5;
|
130
|
+
top: 0px;
|
131
|
+
right: 0px;
|
132
|
+
margin: 0em;
|
133
|
+
width: 2.6em;
|
134
|
+
height: 2.6em;
|
135
|
+
padding-top: 0.75em;
|
136
|
+
text-align: center;
|
137
|
+
-webkit-border-radius: 0em 0.2em 0.2em 0em;
|
138
|
+
-moz-border-radius: 0em 0.2em 0.2em 0em;
|
139
|
+
border-radius: 0em 0.2em 0.2em 0em;
|
140
|
+
-webkit-box-sizing: border-box;
|
141
|
+
-moz-box-sizing: border-box;
|
142
|
+
-ms-box-sizing: border-box;
|
143
|
+
box-sizing: border-box;
|
144
|
+
-webkit-transition: opacity 0.3s ease-out;
|
145
|
+
-moz-transition: opacity 0.3s ease-out;
|
146
|
+
-o-transition: opacity 0.3s ease-out;
|
147
|
+
-ms-transition: opacity 0.3s ease-out;
|
148
|
+
transition: opacity 0.3s ease-out;
|
149
|
+
}
|
150
|
+
.ui.icon.input input {
|
151
|
+
padding-right: 3em !important;
|
152
|
+
}
|
153
|
+
.ui.icon.input > .circular.icon {
|
154
|
+
top: 0.35em;
|
155
|
+
right: 0.5em;
|
156
|
+
}
|
157
|
+
/* Left Side */
|
158
|
+
.ui.left.icon.input > .icon {
|
159
|
+
right: auto;
|
160
|
+
left: 1px;
|
161
|
+
-webkit-border-radius: 0.2em 0em 0em 0.2em;
|
162
|
+
-moz-border-radius: 0.2em 0em 0em 0.2em;
|
163
|
+
border-radius: 0.2em 0em 0em 0.2em;
|
164
|
+
}
|
165
|
+
.ui.left.icon.input > .circular.icon {
|
166
|
+
right: auto;
|
167
|
+
left: 0.5em;
|
168
|
+
}
|
169
|
+
.ui.left.icon.input > input {
|
170
|
+
padding-left: 3em !important;
|
171
|
+
padding-right: 1.2em !important;
|
172
|
+
}
|
173
|
+
/* Focus */
|
174
|
+
.ui.icon.input > input:focus ~ .icon {
|
175
|
+
opacity: 1;
|
176
|
+
}
|
177
|
+
/*--------------------
|
178
|
+
Labeled
|
179
|
+
---------------------*/
|
180
|
+
.ui.labeled.input .corner.label {
|
181
|
+
top: 1px;
|
182
|
+
right: 1px;
|
183
|
+
font-size: 0.7em;
|
184
|
+
-webkit-border-top-right-radius: 0.3125em;
|
185
|
+
-moz-border-top-right-radius: 0.3125em;
|
186
|
+
border-top-right-radius: 0.3125em;
|
187
|
+
}
|
188
|
+
.ui.labeled.input input {
|
189
|
+
padding-right: 2.5em !important;
|
190
|
+
}
|
191
|
+
/* Spacing with corner label */
|
192
|
+
.ui.labeled.icon.input:not(.left) > input {
|
193
|
+
padding-right: 3.25em !important;
|
194
|
+
}
|
195
|
+
.ui.labeled.icon.input:not(.left) > .icon {
|
196
|
+
margin-right: 0.75em;
|
197
|
+
}
|
198
|
+
/*--------------------
|
199
|
+
Action
|
200
|
+
---------------------*/
|
201
|
+
.ui.action.input {
|
202
|
+
display: table;
|
203
|
+
}
|
204
|
+
.ui.action.input > input {
|
205
|
+
display: table-cell;
|
206
|
+
border-top-right-radius: 0px !important;
|
207
|
+
border-bottom-right-radius: 0px !important;
|
208
|
+
border-right: none;
|
209
|
+
}
|
210
|
+
.ui.action.input > .button {
|
211
|
+
display: table-cell;
|
212
|
+
opacity: 0.9;
|
213
|
+
border-top-left-radius: 0px;
|
214
|
+
border-bottom-left-radius: 0px;
|
215
|
+
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
|
216
|
+
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
|
217
|
+
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
|
218
|
+
white-space: nowrap;
|
219
|
+
}
|
220
|
+
.ui.action.input > input:focus ~ .button {
|
221
|
+
opacity: 1;
|
222
|
+
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
|
223
|
+
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
|
224
|
+
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset;
|
225
|
+
}
|