superstyles 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock ADDED
@@ -0,0 +1,14 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ superstyles (0.0.1)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+
10
+ PLATFORMS
11
+ ruby
12
+
13
+ DEPENDENCIES
14
+ superstyles!
data/lib/superstyles.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Superstyles
2
- FileUtils.cp_r("/sass", RAILS_ROOT + "/public/stylesheets/")
2
+ FileUtils.cp_r("/sass", Rails.root.to_s + "/public/stylesheets/")
3
3
  end
@@ -0,0 +1,12 @@
1
+ @import general/styleguide.sass
2
+ @import general/mixins.sass
3
+ @import general/reset.sass
4
+ @import general/helper.sass
5
+ @import general/frames.sass
6
+ @import general/forms.sass
7
+ @import general/validations.sass
8
+ @import general/buttons.sass
9
+ @import general/navigation.sass
10
+ @import plugins/jquery.appmenu.sass
11
+ @import plugins/jquery.jgrowl.sass
12
+ @import plugins/tooltip.sass
@@ -0,0 +1,132 @@
1
+ input[type=submit], input[type=button], .button
2
+ font-family: $font-family
3
+ font-weight: 400
4
+ +rounded
5
+ text-transform: uppercase
6
+
7
+ &:hover
8
+ cursor: pointer
9
+ text-decoration: none
10
+
11
+ &:focus
12
+ +glow
13
+ text-decoration: none
14
+ +transition
15
+
16
+ &:active
17
+ position: relative
18
+ top: 1px
19
+ left: 1px
20
+ +do-not-glow
21
+
22
+ .content
23
+ height: 100%
24
+ position: relative
25
+ width: 100%
26
+
27
+ .spotlight
28
+ display: none
29
+ position: absolute
30
+
31
+ &.green
32
+ color: $text-complementary
33
+ background: $primary-dark
34
+
35
+ &:hover
36
+ background: $orange
37
+ +gradient($primary-dark, $primary-middle)
38
+ +transition
39
+
40
+ &:active
41
+ background: $orange + #131
42
+ +gradient($primary-middle, $primary-dark)
43
+
44
+ &.red
45
+ color: $text-complementary
46
+ background: $red
47
+
48
+ &:hover
49
+ background: $red + #242
50
+ +gradient($red, $red + #242)
51
+ +transition
52
+
53
+ &:active
54
+ +gradient($red + #242 , $red)
55
+
56
+ &.orange
57
+ color: $text-complementary
58
+ background: $orange
59
+
60
+ &:hover
61
+ background: $orange + #333
62
+ +gradient($orange, $orange + #111)
63
+ +transition
64
+
65
+ &:active
66
+ background: $orange - #333
67
+ +gradient($orange + #111, $orange)
68
+
69
+ &.grey
70
+ color: $text
71
+ background: $grey-bg
72
+
73
+ &:hover
74
+ background: $grey-bg-hover
75
+ +transition
76
+
77
+ &:active
78
+ background: $orange
79
+
80
+ &.big
81
+ font-size: 16px
82
+ min-width: 120px
83
+ padding: 5px
84
+ +rounded
85
+
86
+ &.small
87
+ font-size: 12px
88
+ font-weight: 400
89
+ height: 20px
90
+ line-height: 20px
91
+ min-width: 100px
92
+ padding: 0 5px
93
+ +rounded(4px)
94
+
95
+ &.tiny
96
+ font-size: 10px
97
+ padding: 2px 4px
98
+
99
+
100
+ &[disabled], &.disabled
101
+ color= $light_grey
102
+ background= $dark-grey
103
+ +gradient($light-grey, $dark-grey)
104
+
105
+ &:hover, &:focus, &:active
106
+ background= $dark-grey
107
+ cursor: default
108
+ +do-not-glow
109
+ +gradient($light-grey, $dark-grey)
110
+ left: inherit
111
+ text-decoration: none
112
+ top: inherit
113
+
114
+ .button
115
+ display: block
116
+ text-align: center
117
+
118
+ &.small
119
+ //padding: 4px 7px
120
+
121
+ &.big
122
+ .content
123
+ padding: 7px inherit 6px
124
+
125
+ .spotlight
126
+ left: 12px !important
127
+
128
+ input[type=button], input[type=submit]
129
+ padding: 3px 0 2px
130
+
131
+ &.small
132
+ min-width: 114px
@@ -0,0 +1,146 @@
1
+ fieldset
2
+ +border
3
+ margin: 0 0 10px
4
+ padding: 10px
5
+ position: relative
6
+ +rounded
7
+
8
+ legend
9
+ color: $primary-dark
10
+ font-family: $special-font
11
+ font-size: 18px
12
+ padding: 0 5px
13
+ text-align: left
14
+
15
+
16
+ input
17
+ position: relative // needed for correct positioning of the javascript-validation-messages
18
+
19
+ &[type=text], &[type=password]
20
+ +border
21
+ margin: 0
22
+ padding: 4px
23
+ +rounded
24
+ +transition(box-shadow, 0.1s)
25
+ width: 200px
26
+
27
+ &:hover
28
+ +border($primary-dark)
29
+
30
+ &:focus
31
+ +border($primary-dark)
32
+ +glow
33
+ outline: none
34
+
35
+ &[disabled]
36
+ background: white
37
+
38
+ &:hover
39
+ +border
40
+
41
+ &[type=checkbox]
42
+ margin: 0
43
+ padding: 0
44
+
45
+ &[type=radio]
46
+ float: left
47
+
48
+ &[type=search], &.search
49
+ +sprite("icons", "magnifier_15", 4, 4)
50
+ background-color: white
51
+ margin: -1px 10px 0 0
52
+ padding-left: 23px
53
+
54
+ &:focus
55
+ +glow(0, 0, 5px, 1px, $tolingo)
56
+
57
+
58
+ textarea
59
+ +border($medium-grey)
60
+ font-family: $font-family
61
+ -moz-appearance: none
62
+ padding: 5px
63
+ resize: none
64
+ +rounded
65
+
66
+ &:hover
67
+ border-color: $dark-grey
68
+
69
+ &:focus
70
+ border-color: $darker-grey
71
+ -moz-appearance: none
72
+ outline: none
73
+
74
+ select
75
+ &:focus
76
+ outline: none
77
+
78
+ .select-shadow
79
+ +glow
80
+ position: absolute
81
+ +rounded
82
+
83
+ form
84
+ ul
85
+ padding: 10px 5px
86
+
87
+ li
88
+ padding: 2px 0
89
+ text-align: left
90
+
91
+ &.submit
92
+ height: auto
93
+ margin-top: 20px
94
+ overflow: hidden
95
+ text-align: center
96
+
97
+ label
98
+ &:not(.error)
99
+ color: $label
100
+ float: left
101
+ font-size: 12px
102
+ margin: 7px 10px 0 0
103
+ text-align: right
104
+ width: 107px
105
+
106
+ &:hover
107
+ + input
108
+ +border
109
+
110
+ select
111
+ margin: 3px 0 3px 0px
112
+ width: 210px
113
+
114
+
115
+ &.pimpedUpload
116
+ [type=file]
117
+ +opacity(0)
118
+
119
+ &.invisible
120
+ display: none
121
+
122
+ &.visible
123
+ display: inline
124
+ +opacity(1)
125
+
126
+ .requirement_note
127
+ +sprite("icons", "required")
128
+ bottom: 0
129
+ color: $dark-grey
130
+ font-size: 9px
131
+ padding-left: 14px
132
+ padding-top: 1px
133
+ position: absolute
134
+ right: 20px
135
+ text-align: left
136
+ width: auto
137
+
138
+ .required_markup
139
+ color: $orange
140
+
141
+ // Firefox-Hack to get rid of the dotted Standard-Border and some mysterious padding
142
+ button, input[type=submit], input[type=button]
143
+ border: none
144
+
145
+ &::-moz-focus-inner
146
+ border: 0
@@ -0,0 +1,212 @@
1
+ .box.default
2
+ margin: 20px 0 20px 20px
3
+
4
+ > header, > footer
5
+ .tab
6
+ +border
7
+ height: 34px
8
+ padding: 5px 15px
9
+ text-align: left
10
+ width: 220px
11
+
12
+ &:after
13
+ content: ""
14
+ display: block
15
+ position: absolute
16
+ +sprite("gfx", "curve")
17
+ top: 0px
18
+
19
+ h2.title
20
+ padding-top: 8px
21
+
22
+ .subtitle
23
+ position: absolute
24
+ bottom: 5px
25
+
26
+ &+ .title
27
+ padding-top: 2px
28
+
29
+ > .body
30
+ +border
31
+ +custom-rounded(0, 0, 0, $radius)
32
+ padding: 15px
33
+ position: relative
34
+
35
+
36
+ > header
37
+ .tab
38
+ border-width: 2px 0 0 2px
39
+ +custom_rounded($radius, 0px, 0px, 0px)
40
+ float: left
41
+ text-align: left
42
+ margin-right: 57px
43
+
44
+ &:after
45
+ left: 250px
46
+
47
+ > footer
48
+ .tab
49
+ border-width: 0 2px 2px 0
50
+ +custom-rounded(0, 0, $radius, 0)
51
+ float: right
52
+ margin-left: 57px
53
+ text-align: right
54
+
55
+ &:after
56
+ right: 250px
57
+ +rotate(180deg)
58
+
59
+ .subtitle
60
+ right: 15px
61
+
62
+
63
+
64
+ .box.green-tabs
65
+ background: $grey-bg
66
+ +border($primary-dark)
67
+ margin: 40px 10px
68
+ padding: 10px
69
+ position: relative
70
+ +rounded
71
+
72
+ > header
73
+ position: absolute
74
+ top: -34px
75
+
76
+ .tab
77
+ background: $grey-bg
78
+ +border($primary-dark)
79
+ border-bottom-width: 0
80
+ +custom-rounded( 5px, 5px, 0, 0 )
81
+ float: left
82
+ margin-left: -2px
83
+ padding: 8px 10px
84
+ position: relative
85
+
86
+ a
87
+ color: $dark-grey
88
+ display: block
89
+ margin: -8px -10px
90
+ padding: 8px 10px
91
+
92
+ &:hover, &:focus
93
+ text-decoration: none
94
+
95
+ &:first-child
96
+ border-left-width: 2px
97
+ margin-left: 10px
98
+
99
+ &:hover
100
+ margin-left: 10px
101
+
102
+ &:hover, &.active
103
+ border-left-width: 2px
104
+ margin-bottom: -5px
105
+ margin-left: -2px
106
+ padding-bottom: 13px
107
+ top: -5px
108
+ z-index: 1
109
+
110
+ a
111
+ margin-bottom: -13px
112
+ padding-bottom: 13px
113
+
114
+ &.active
115
+ border-bottom: 2px solid $grey-bg
116
+ margin-bottom: -2px
117
+
118
+ a
119
+ color: $text
120
+ cursor: default
121
+
122
+ .box.details
123
+ background: white
124
+ +border($medium-grey)
125
+ float: left
126
+ margin-right: 10px
127
+ +rounded
128
+
129
+ header
130
+ +border
131
+ border-width: 0 0 2px
132
+
133
+ h3
134
+ float: left
135
+ margin-bottom: 1px
136
+ font-size: 10px
137
+ font-style: italic
138
+ font-weight: 400
139
+ padding: 2px 10px
140
+
141
+ .body
142
+ padding: 5px 10px
143
+
144
+ li
145
+ +border
146
+ border-width: 0 0 2px
147
+ clear: both
148
+ padding: 5px 10px
149
+ overflow: hidden
150
+
151
+ &:last-child
152
+ border: none
153
+
154
+ .label
155
+ color: $primary-dark
156
+ float: left
157
+ text-align: left
158
+
159
+ .value
160
+ float: right
161
+ font-size: 12px
162
+ font-weight: 400
163
+ text-align: right
164
+
165
+ &.list
166
+ margin-top: 0
167
+
168
+ .body
169
+ border: none
170
+ padding: 0
171
+
172
+
173
+
174
+ table.list
175
+ border-collapse: collapse
176
+ height: 100%
177
+
178
+ thead
179
+ tr
180
+ th
181
+ +border
182
+ border-bottom-color: $primary-dark
183
+ border-right-color: $dark-grey
184
+ border-width: 0 1px 2px
185
+ font-weight: 400
186
+ height: 25px
187
+ padding: 5px 10px
188
+ text-align: center
189
+
190
+ &:last-of-type
191
+ th
192
+ border-bottom: none
193
+
194
+ tbody
195
+ tr
196
+ &:first-of-type td
197
+ border-top: 2px solid $primary-dark
198
+
199
+ td
200
+ +border($dark-grey, 1px)
201
+ padding: 10px
202
+ text-align: center
203
+ vertical-align: middle
204
+
205
+ &:first-of-type
206
+ border-left: none
207
+
208
+ &:last-of-type
209
+ border-right: none
210
+
211
+ &.no-results
212
+ border: none