psique 0.1.0

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.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +5 -0
  4. data/LICENSE +22 -0
  5. data/README.md +2 -0
  6. data/Rakefile +34 -0
  7. data/assets/fonts/psique/roboto-bold.eot +0 -0
  8. data/assets/fonts/psique/roboto-bold.svg +593 -0
  9. data/assets/fonts/psique/roboto-bold.ttf +0 -0
  10. data/assets/fonts/psique/roboto-bold.woff +0 -0
  11. data/assets/fonts/psique/roboto-regular.eot +0 -0
  12. data/assets/fonts/psique/roboto-regular.svg +621 -0
  13. data/assets/fonts/psique/roboto-regular.ttf +0 -0
  14. data/assets/fonts/psique/roboto-regular.woff +0 -0
  15. data/assets/fonts/psique/sourcesanspro-bold.eot +0 -0
  16. data/assets/fonts/psique/sourcesanspro-bold.svg +954 -0
  17. data/assets/fonts/psique/sourcesanspro-bold.ttf +0 -0
  18. data/assets/fonts/psique/sourcesanspro-bold.woff +0 -0
  19. data/assets/fonts/psique/sourcesanspro-regular.eot +0 -0
  20. data/assets/fonts/psique/sourcesanspro-regular.svg +977 -0
  21. data/assets/fonts/psique/sourcesanspro-regular.ttf +0 -0
  22. data/assets/fonts/psique/sourcesanspro-regular.woff +0 -0
  23. data/assets/images/psique/.keep +0 -0
  24. data/assets/javascripts/psique.js.coffee +2 -0
  25. data/assets/javascripts/psique/panels.js.coffee +7 -0
  26. data/assets/stylesheets/psique.scss +19 -0
  27. data/assets/stylesheets/psique/_buttons.scss +222 -0
  28. data/assets/stylesheets/psique/_forms.scss +92 -0
  29. data/assets/stylesheets/psique/_grid.scss +20 -0
  30. data/assets/stylesheets/psique/_lists.scss +160 -0
  31. data/assets/stylesheets/psique/_mixins.scss +69 -0
  32. data/assets/stylesheets/psique/_panels.scss +148 -0
  33. data/assets/stylesheets/psique/_settings.scss +127 -0
  34. data/assets/stylesheets/psique/_summaries.scss +188 -0
  35. data/assets/stylesheets/psique/_typography.scss +70 -0
  36. data/doc/assets/_footer.html +7 -0
  37. data/doc/assets/_header.html +66 -0
  38. data/doc/assets/brick.png +0 -0
  39. data/doc/assets/css/doc.css +132 -0
  40. data/doc/assets/css/github.css +61 -0
  41. data/doc/assets/css/screen.css +16 -0
  42. data/doc/assets/script/components.js +89 -0
  43. data/doc/public/styleguide/brick.png +0 -0
  44. data/doc/public/styleguide/components.html +593 -0
  45. data/doc/public/styleguide/core.html +105 -0
  46. data/doc/public/styleguide/css/doc.css +132 -0
  47. data/doc/public/styleguide/css/github.css +61 -0
  48. data/doc/public/styleguide/css/screen.css +16 -0
  49. data/doc/public/styleguide/index.html +105 -0
  50. data/doc/public/styleguide/script/components.js +89 -0
  51. data/hologram_config.yml +28 -0
  52. data/lib/psique.rb +8 -0
  53. data/lib/psique/engine.rb +17 -0
  54. data/lib/psique/version.rb +3 -0
  55. data/psique.gemspec +33 -0
  56. data/test/dummy/README.rdoc +3 -0
  57. data/test/dummy/Rakefile +6 -0
  58. data/test/dummy/app/assets/images/.keep +0 -0
  59. data/test/dummy/app/assets/javascripts/application.js +2 -0
  60. data/test/dummy/app/assets/stylesheets/application.css.scss +1 -0
  61. data/test/dummy/app/controllers/application_controller.rb +5 -0
  62. data/test/dummy/app/controllers/styleguide_controller.rb +4 -0
  63. data/test/dummy/app/views/layouts/application.html.haml +15 -0
  64. data/test/dummy/app/views/styleguide/index.html.haml +17 -0
  65. data/test/dummy/bin/bundle +3 -0
  66. data/test/dummy/bin/rails +4 -0
  67. data/test/dummy/bin/rake +4 -0
  68. data/test/dummy/config.ru +4 -0
  69. data/test/dummy/config/application.rb +10 -0
  70. data/test/dummy/config/boot.rb +5 -0
  71. data/test/dummy/config/database.yml +25 -0
  72. data/test/dummy/config/environment.rb +5 -0
  73. data/test/dummy/config/environments/development.rb +37 -0
  74. data/test/dummy/config/environments/production.rb +78 -0
  75. data/test/dummy/config/environments/test.rb +39 -0
  76. data/test/dummy/config/initializers/assets.rb +8 -0
  77. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  78. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  79. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  80. data/test/dummy/config/initializers/inflections.rb +16 -0
  81. data/test/dummy/config/initializers/mime_types.rb +4 -0
  82. data/test/dummy/config/initializers/session_store.rb +3 -0
  83. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  84. data/test/dummy/config/locales/en.yml +23 -0
  85. data/test/dummy/config/routes.rb +3 -0
  86. data/test/dummy/config/secrets.yml +22 -0
  87. data/test/psique_test.rb +7 -0
  88. data/test/test_helper.rb +15 -0
  89. metadata +1185 -0
File without changes
@@ -0,0 +1,2 @@
1
+ #= require_self
2
+ #= require_tree .
@@ -0,0 +1,7 @@
1
+ $ ->
2
+ $(".tab[role='tab']").click ->
3
+ tab = $(this)
4
+ tabpanel = $("##{ tab.attr('aria-controls') }")
5
+
6
+ $([tab[0], tabpanel[0]]).addClass('active')
7
+ $([tab[0], tabpanel[0]]).siblings().removeClass('active')
@@ -0,0 +1,19 @@
1
+ // Reset and vendors
2
+ @import 'normalize';
3
+ @import 'compass';
4
+ @import 'breakpoint';
5
+ @import 'susy';
6
+ @import 'font-awesome';
7
+
8
+ // Settings and mixins
9
+ @import 'psique/settings';
10
+ @import 'psique/mixins';
11
+
12
+ // Base and core elements
13
+ @import 'psique/typography';
14
+ @import 'psique/grid';
15
+ @import 'psique/panels';
16
+ @import 'psique/summaries';
17
+ @import 'psique/lists';
18
+ @import 'psique/forms';
19
+ @import 'psique/buttons';
@@ -0,0 +1,222 @@
1
+ $gen-font: 'Roboto', sans-serif;
2
+ @mixin button-properties($borderpx,$border-color, $color, $padding, $btnwidth, $font, $fsize, $fweight){
3
+ border: $borderpx solid $border-color;
4
+ color: $color;
5
+ padding: $padding; width: $btnwidth;
6
+ font-family:$font; font-size:$fsize; font-weight:$fweight;
7
+ }
8
+ @mixin vertical-center(){
9
+ position: relative;
10
+ top: 50%;
11
+ -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%);transform: translateY(-50%);
12
+ }
13
+ html, html a {
14
+ -webkit-font-smoothing: antialiased;
15
+ -moz-osx-font-smoothing: grayscale;
16
+ text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
17
+ }
18
+
19
+ body{
20
+ margin:0;
21
+ width:100%;
22
+ }
23
+ .set_wrapper{
24
+ width:80%;
25
+ margin:0 auto;
26
+ max-width:920px;
27
+ min-width: 920px;
28
+ }
29
+ .button-container{
30
+ margin-top: 60px; margin-left: 60px;
31
+ display:inline-block;
32
+ vertical-align:top;
33
+ }
34
+ .btn{
35
+ @include background-image(linear-gradient($capota-light,$capota));
36
+ @include single-box-shadow(0px, -1px, 0px, 0px,rgba(255, 255, 255, 0.15), inset);
37
+ @include button-properties(1px,$capota-dark, white, 6px 25px, auto, $gen-font, 0.8em, 600);
38
+ border-radius:4px;
39
+ text-align: center;
40
+ cursor:pointer;
41
+ &:hover{
42
+ @include background-image(linear-gradient($capota-light,$capota-dark));
43
+ }
44
+ &:active{
45
+ @include background-image(linear-gradient($capota-light,$capota));
46
+ @include single-box-shadow(0px, 1px, 4px, 0px,rgba(16, 90, 134, 1), inset);
47
+ }
48
+ }
49
+ .btn-orange{
50
+ @include background-image(linear-gradient($darkorange-light,$darkorange));
51
+ @include single-box-shadow(0px, -1px, 0px, 0px,rgba(255, 255, 255, 0.15), inset);
52
+ @include button-properties(1px,$darkorange-dark, white, 6px 25px, auto, $gen-font, 0.8em, 600);
53
+ border-radius:4px;
54
+ text-align: center;
55
+ cursor:pointer;
56
+ &:hover{
57
+ @include background-image(linear-gradient($darkorange-light,$darkorange-dark));
58
+ }
59
+ &:active{
60
+ @include background-image(linear-gradient($darkorange-light,$darkorange));
61
+ @include single-box-shadow(0px, 1px, 4px, 0px,rgba(152, 59, 3, 0.87), inset);
62
+ }
63
+ }
64
+ .btn-inactive{
65
+ background: $lightgrey;
66
+ @include single-box-shadow(0px, -1px, 0px, 0px,rgba(255, 255, 255, 0.15), inset);
67
+ @include button-properties(1px,$auxgrey, $auxgrey, 6px 25px, auto, $gen-font, 0.8em, 600);
68
+ border-radius:4px;
69
+ text-align: center;
70
+ cursor: not-allowed;
71
+ }
72
+ .btn-icon{
73
+ padding:6px 20px;
74
+ .fa{
75
+ padding-right:4px;
76
+ font-size: 1.4em;
77
+ vertical-align: text-top;
78
+ }
79
+ span{
80
+ padding-left:3px;
81
+ }
82
+ }
83
+
84
+ /*------Social Connect Buttons-------*/
85
+ $twitter:#4099FF;
86
+ $facebook:#3D62B3;
87
+ $gplus:#D50F0F;
88
+ $twitter-light:lighten(#4099FF,8);
89
+ $facebook-light:lighten(#3D62B3,8);
90
+ $gplus-light:lighten(#D50F0F,8);
91
+ $twitter-dark:darken(#4099FF,8);
92
+ $facebook-dark:darken(#3D62B3,8);
93
+ $gplus-dark:darken(#D50F0F,8);
94
+
95
+ .btn-twitter{
96
+ @include background-image(linear-gradient($twitter-light,$twitter));
97
+ @include single-box-shadow(0px, -1px, 0px, 0px,rgba(255, 255, 255, 0.15), inset);
98
+ @include button-properties(1px,$twitter-dark, white, 6px 0px, 190px, $gen-font, 0.8em, 600);
99
+ border-radius:4px;
100
+ text-align: center;
101
+ cursor:pointer;
102
+ .fa{
103
+ padding-right: 7px;
104
+ display:inline-block;
105
+ }
106
+ span{
107
+ padding-right: 5px;
108
+ display:inline-block;
109
+ width: 3px;
110
+ border-left: 1px solid $twitter-dark;
111
+ }
112
+ p{
113
+ display:inline-block;
114
+ margin:0;
115
+ padding-right: 18px; padding-left: 13px;
116
+ }
117
+ &:hover{
118
+ @include background-image(linear-gradient($twitter-light,$twitter-dark));
119
+ }
120
+ &:active{
121
+ @include background-image(linear-gradient($twitter-light,$twitter));
122
+ @include single-box-shadow(0px, 1px, 4px, 0px,rgba(45, 116, 197, 1), inset);
123
+ }
124
+ }
125
+ .btn-facebook{
126
+ @include background-image(linear-gradient($facebook-light,$facebook));
127
+ @include single-box-shadow(0px, -1px, 0px, 0px,rgba(255, 255, 255, 0.15), inset);
128
+ @include button-properties(1px,$facebook-dark, white, 6px 0px, 190px, $gen-font, 0.8em, 600);
129
+ border-radius:4px;
130
+ text-align: center;
131
+ cursor:pointer;
132
+ .fa{
133
+ padding-right: 11px;
134
+ display:inline-block;
135
+ }
136
+ span{
137
+ padding-right: 13px;
138
+ display:inline-block;
139
+ width: 3px;
140
+ border-left: 1px solid $facebook-dark;
141
+ }
142
+ p{
143
+ display:inline-block;
144
+ margin:0;
145
+ padding-right:5px;
146
+ }
147
+ &:hover{
148
+ @include background-image(linear-gradient($facebook-light,$facebook-dark));
149
+ }
150
+ &:active{
151
+ @include background-image(linear-gradient($facebook-light,$facebook));
152
+ @include single-box-shadow(0px, 1px, 4px, 0px,rgba(10, 45, 123, 1), inset);
153
+ }
154
+ }
155
+ .btn-gplus{
156
+ @include background-image(linear-gradient($gplus-light,$gplus));
157
+ @include single-box-shadow(0px, -1px, 0px, 0px,rgba(255, 255, 255, 0.15), inset);
158
+ @include button-properties(1px,$gplus-dark, white, 6px 0px, 190px, $gen-font, 0.8em, 600);
159
+ border-radius:4px;
160
+ text-align: center;
161
+ cursor:pointer;
162
+ .fa{
163
+ padding-right: 7px;
164
+ display:inline-block;
165
+ }
166
+ span{
167
+ padding-right: 15px;
168
+ display:inline-block;
169
+ width: 3px;
170
+ border-left: 1px solid $gplus-dark;
171
+ }
172
+ p{
173
+ display:inline-block;
174
+ margin:0;
175
+ padding-right:12px;
176
+ }
177
+ &:hover{
178
+ @include background-image(linear-gradient($gplus-light,$gplus-dark));
179
+ }
180
+ &:active{
181
+ @include background-image(linear-gradient($gplus-light,$gplus));
182
+ @include single-box-shadow(0px, 1px, 4px, 0px,rgba(152, 59, 3, 0.87), inset);
183
+ }
184
+ }
185
+ .h30{
186
+ height: 30px;
187
+ }
188
+
189
+ .input-box{
190
+ @include border-left-radius(4px);
191
+ border: 1px solid $auxgrey;
192
+ outline: none;
193
+ display: inline-block;
194
+ vertical-align:top;
195
+ height:26px;
196
+ padding-left:10px;
197
+ }
198
+ .input-btn{
199
+ @include border-left-radius(0);
200
+ width: auto;
201
+ height:30px;
202
+ padding: 0px 9px;
203
+ display: inline-block;
204
+ position: relative;
205
+ left: -7px;
206
+ outline: none;
207
+ vertical-align: top;
208
+ }
209
+ .inactive{
210
+ background: $lightgrey;
211
+ color: $auxgrey;
212
+ border: 1px solid $auxgrey;
213
+ cursor: not-allowed;
214
+ outline: none;
215
+ box-shadow:none;
216
+ &:hover{
217
+ @extend .inactive;
218
+ }
219
+ &:active{
220
+ @extend .inactive;
221
+ }
222
+ }
@@ -0,0 +1,92 @@
1
+ /*doc
2
+ ---
3
+ title: Forms
4
+ name: forms
5
+ category: Core
6
+ ---
7
+ */
8
+
9
+ label {
10
+ display: inline-block;
11
+ font-weight: bold;
12
+ margin-bottom: 2px;
13
+ max-width: 100%;
14
+ }
15
+
16
+ .input {
17
+ @include trailer(.5);
18
+
19
+ select,
20
+ textarea,
21
+ input:not([type='checkbox']):not([type='file']):not([type='radio']) {
22
+ @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .15));
23
+ @include box-sizing(border-box);
24
+ @include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
25
+ background-color: $white;
26
+ background-image: none;
27
+ border: 1px solid $aux-grey;
28
+ border-radius: 4px;
29
+ color: #444;
30
+ display: block;
31
+ font-size: 12px;
32
+ height: 28px;
33
+ line-height: 28px;
34
+ padding: 0 5px;
35
+ width: 100%;
36
+
37
+ &:focus {
38
+ @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .15), 0 0 4px $azul-ceruleo);
39
+ border-color: $azul-ceruleo;
40
+ outline: 0;
41
+ }
42
+ }
43
+
44
+ textarea {
45
+ min-height: 100px;
46
+ resize: none;
47
+ }
48
+
49
+ [type='radio'],
50
+ [type='checkbox'] {
51
+ line-height: normal;
52
+ margin: 1px 0 0;
53
+ margin-left: -20px;
54
+ position: absolute;
55
+ }
56
+
57
+ &.boolean,
58
+ &.radio {
59
+ cursor: pointer;
60
+ display: inline-block;
61
+ font-weight: normal;
62
+ margin-bottom: 0;
63
+ padding-left: 20px;
64
+ position: relative;
65
+ vertical-align: middle;
66
+ }
67
+
68
+ &.highlight {
69
+ label { color: $highlight-color; }
70
+ select,
71
+ input:not([type='checkbox']):not([type='file']) {
72
+ @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .15), 0 0 4px $highlight-color);
73
+ border-color: $highlight-color;
74
+ }
75
+ }
76
+ }
77
+
78
+ .boolean.upside {
79
+ padding-left: 0;
80
+
81
+ input {
82
+ margin-left: 0;
83
+ right: -20px;
84
+ }
85
+ }
86
+
87
+ .hint {
88
+ display: inline-block;
89
+ font-size: .9em;
90
+ margin-top: 5px;
91
+ max-width: 100%;
92
+ }
@@ -0,0 +1,20 @@
1
+ // Define grid container responsive with one breakpoint
2
+ .grid {
3
+ @include container;
4
+ @include susy-breakpoint($screen-mobile, $layout-desktop) {
5
+ @include container;
6
+ max-width: none;
7
+ }
8
+ }
9
+
10
+ // Create mobile first grid system
11
+ @include make-cols('sm');
12
+
13
+ // Create desktop grid system
14
+ @include breakpoint($screen-mobile) {
15
+ @include make-cols('lg');
16
+ }
17
+
18
+ .row {
19
+ overflow: hidden;
20
+ }
@@ -0,0 +1,160 @@
1
+ /*doc
2
+ ---
3
+ title: Lists
4
+ name: list
5
+ category: Components
6
+ ---
7
+
8
+ ```haml_example
9
+ %aside.panel
10
+ %header.panel-header.border-bottom
11
+ Foros
12
+ %section.panel-content
13
+ %article.media
14
+ .media-left
15
+ %img{:src => "http://www.fillmurray.com/g/75/70/"}
16
+ .media-right
17
+ %header.media-header
18
+ %h4.media-title
19
+ %a{href: '#'} Lorem ipsum dolor sit amet consectetur adipisicing
20
+ %span.author john doe
21
+ %section.media-content
22
+ %p Lorem ipsum dolor sit amet consectetur adipisicing.
23
+
24
+ %article.media
25
+ .media-left
26
+ %img{:src => "http://www.fillmurray.com/g/80/75/"}
27
+ .media-right
28
+ %header.media-header
29
+ %h4.media-title
30
+ %a{href: '#'} Lorem ipsum dolor sit amet consectetur adipisicing
31
+ %span.author john doe
32
+ %section.media-content
33
+ %p Lorem ipsum dolor sit amet consectetur adipisicing.
34
+ ```
35
+
36
+ ```haml_example
37
+ %aside.panel
38
+ %header.panel-header.border-bottom
39
+ Otras secciones
40
+ %section.panel-content
41
+ .links-clean
42
+ %ul.left
43
+ %li
44
+ %a Lorem ipsum
45
+ %li
46
+ %a Dolor sit amet
47
+ %li
48
+ %a Consectetur
49
+ %ul.right
50
+ %li
51
+ %a Lorem ipsum
52
+ %li
53
+ %a Dolor sit amet
54
+ %li
55
+ %a Consectetur
56
+ ```
57
+
58
+ ```haml_example
59
+ %aside.panel
60
+ %header.panel-header.border-bottom
61
+ Otras secciones
62
+ %section.panel-content
63
+ .links-decorated
64
+ %ul.left
65
+ %li
66
+ %a Lorem ipsum
67
+ %li
68
+ %a Dolor sit amet
69
+ %li
70
+ %a Consectetur
71
+ %ul.right
72
+ %li
73
+ %a Lorem ipsum
74
+ %li
75
+ %a Dolor sit amet
76
+ %li
77
+ %a Consectetur
78
+ ```
79
+ */
80
+
81
+ %media {
82
+ @extend .row;
83
+
84
+ .media-title {
85
+ color: $primary-color;
86
+ font-weight: normal;
87
+ margin-bottom: 0;
88
+ line-height: 1em;
89
+ a { color: $primary-color; }
90
+ }
91
+
92
+ .author {
93
+ color: #666;
94
+ display: inline-block;
95
+ font-size: 11px !important;
96
+ font-weight: normal;
97
+ text-transform: uppercase;
98
+ white-space: nowrap;
99
+ }
100
+
101
+ .media-content {
102
+ p {
103
+ color: #323131;
104
+ font-size: 14px;
105
+ line-height: 1.2em;
106
+ margin: 0;
107
+ margin-top: .5em;
108
+ }
109
+ }
110
+
111
+ .thumbnail {
112
+ margin-bottom: .5em;
113
+ }
114
+
115
+ img {
116
+ max-width: 100%;
117
+ width: 100%;
118
+ }
119
+ }
120
+
121
+ .media {
122
+ @extend %media;
123
+
124
+ .media-left { @extend .col-sm-2; }
125
+ .media-right { @extend .col-sm-10; }
126
+ }
127
+
128
+ .links-clean {
129
+ @extend .row;
130
+ ul {
131
+ margin: 0;
132
+ padding: 0;
133
+ &.left { @extend .col-sm-6; }
134
+ &.right { @extend .col-sm-6; }
135
+
136
+ a {
137
+ color: $primary-color;
138
+ font-weight: bold;
139
+ }
140
+ }
141
+ }
142
+
143
+ .links-decorated {
144
+ @extend .links-clean;
145
+
146
+ li {
147
+ position: relative;
148
+ padding-left: 15px;
149
+ &:after {
150
+ border: 1px solid #9a2c2d;
151
+ content: '';
152
+ display: block;
153
+ height: 8px;
154
+ left: 0;
155
+ position: absolute;
156
+ top: 30%;
157
+ width: 8px;
158
+ }
159
+ }
160
+ }