picasso 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/README.md +1 -1
  2. data/docs/all.html +391 -0
  3. data/docs/arrows.html +130 -0
  4. data/docs/bubbles.html +126 -0
  5. data/docs/build/manifest.json +4 -0
  6. data/docs/build/md/arrows.md +43 -0
  7. data/docs/build/md/bubbles.md +43 -0
  8. data/docs/build/md/buttons.md +89 -0
  9. data/docs/build/md/components.md +1 -0
  10. data/docs/build/md/despegar.md +198 -0
  11. data/docs/build/md/intro.md +1 -0
  12. data/docs/build/md/utils.md +17 -0
  13. data/docs/build/templates/index.html +37 -0
  14. data/docs/build/templates/layout.html +39 -0
  15. data/docs/build/templates/page.html +24 -0
  16. data/docs/buttons.html +170 -0
  17. data/docs/components.html +93 -0
  18. data/docs/config.rb +6 -0
  19. data/docs/css/github.css +88 -0
  20. data/docs/css/markdown.css +100 -0
  21. data/docs/css/style.css +838 -0
  22. data/docs/despegar.html +281 -0
  23. data/docs/index.html +93 -0
  24. data/docs/intro.html +93 -0
  25. data/docs/js/docs.js +16 -0
  26. data/docs/js/rainbow-custom.min.js +13 -0
  27. data/docs/sass/style.scss +215 -0
  28. data/docs/utils.html +104 -0
  29. data/lib/picasso/version.rb +1 -1
  30. data/stylesheets/_picasso.scss +3 -0
  31. data/stylesheets/picasso/_components.scss +3 -0
  32. data/stylesheets/picasso/_despegar.scss +1 -0
  33. data/stylesheets/picasso/_utils.scss +1 -0
  34. data/stylesheets/picasso/components/_arrows.scss +54 -0
  35. data/stylesheets/picasso/components/_bubbles.scss +76 -0
  36. data/stylesheets/picasso/components/_buttons.scss +2 -0
  37. data/stylesheets/picasso/components/buttons/_buttons.scss +106 -0
  38. data/stylesheets/picasso/components/buttons/_mini-buttons.scss +66 -0
  39. data/stylesheets/{despegar → picasso/despegar}/_variables.scss +4 -2
  40. data/stylesheets/picasso/utils/_clearfix.scss +33 -0
  41. metadata +41 -4
data/docs/js/docs.js ADDED
@@ -0,0 +1,16 @@
1
+
2
+ $(document).ready(function() {
3
+
4
+ $codesTags = $('pre code');
5
+
6
+ $codesTags.each(function(idx, el) {
7
+
8
+ var $el = $(el);
9
+ var _class = $el.attr('class');
10
+ var lang = _class.split('-');
11
+ lang = lang[1];
12
+ $el.attr('data-language', lang);
13
+
14
+ });
15
+
16
+ });
@@ -0,0 +1,13 @@
1
+ /* Rainbow v1.1.8 rainbowco.de | included languages: generic, javascript, html, css */
2
+ window.Rainbow=function(){function q(a){var b,c=a.getAttribute&&a.getAttribute("data-language")||0;if(!c){a=a.attributes;for(b=0;b<a.length;++b)if("data-language"===a[b].nodeName)return a[b].nodeValue}return c}function B(a){var b=q(a)||q(a.parentNode);if(!b){var c=/\blang(?:uage)?-(\w+)/;(a=a.className.match(c)||a.parentNode.className.match(c))&&(b=a[1])}return b}function C(a,b){for(var c in e[d]){c=parseInt(c,10);if(a==c&&b==e[d][c]?0:a<=c&&b>=e[d][c])delete e[d][c],delete j[d][c];if(a>=c&&a<e[d][c]||
3
+ b>c&&b<e[d][c])return!0}return!1}function r(a,b){return'<span class="'+a.replace(/\./g," ")+(l?" "+l:"")+'">'+b+"</span>"}function s(a,b,c,h){var f=a.exec(c);if(f){++t;!b.name&&"string"==typeof b.matches[0]&&(b.name=b.matches[0],delete b.matches[0]);var k=f[0],i=f.index,u=f[0].length+i,g=function(){function f(){s(a,b,c,h)}t%100>0?f():setTimeout(f,0)};if(C(i,u))g();else{var m=v(b.matches),l=function(a,c,h){if(a>=c.length)h(k);else{var d=f[c[a]];if(d){var e=b.matches[c[a]],i=e.language,g=e.name&&e.matches?
4
+ e.matches:e,j=function(b,d,e){var i;i=0;var g;for(g=1;g<c[a];++g)f[g]&&(i=i+f[g].length);d=e?r(e,d):d;k=k.substr(0,i)+k.substr(i).replace(b,d);l(++a,c,h)};i?n(d,i,function(a){j(d,a)}):typeof e==="string"?j(d,d,e):w(d,g.length?g:[g],function(a){j(d,a,e.matches?e.name:0)})}else l(++a,c,h)}};l(0,m,function(a){b.name&&(a=r(b.name,a));if(!j[d]){j[d]={};e[d]={}}j[d][i]={replace:f[0],"with":a};e[d][i]=u;g()})}}else h()}function v(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b.sort(function(a,
5
+ b){return b-a})}function w(a,b,c){function h(b,k){k<b.length?s(b[k].pattern,b[k],a,function(){h(b,++k)}):D(a,function(a){delete j[d];delete e[d];--d;c(a)})}++d;h(b,0)}function D(a,b){function c(a,b,h,e){if(h<b.length){++x;var g=b[h],l=j[d][g],a=a.substr(0,g)+a.substr(g).replace(l.replace,l["with"]),g=function(){c(a,b,++h,e)};0<x%250?g():setTimeout(g,0)}else e(a)}var h=v(j[d]);c(a,h,0,b)}function n(a,b,c){var d=m[b]||[],f=m[y]||[],b=z[b]?d:d.concat(f);w(a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&(?![\w\#]+;)/g,
6
+ "&amp;"),b,c)}function o(a,b,c){if(b<a.length){var d=a[b],f=B(d);return!(-1<(" "+d.className+" ").indexOf(" rainbow "))&&f?(f=f.toLowerCase(),d.className+=d.className?" rainbow":"rainbow",n(d.innerHTML,f,function(k){d.innerHTML=k;j={};e={};p&&p(d,f);setTimeout(function(){o(a,++b,c)},0)})):o(a,++b,c)}c&&c()}function A(a,b){var a=a&&"function"==typeof a.getElementsByTagName?a:document,c=a.getElementsByTagName("pre"),d=a.getElementsByTagName("code"),f,e=[];for(f=0;f<d.length;++f)e.push(d[f]);for(f=0;f<
7
+ c.length;++f)c[f].getElementsByTagName("code").length||e.push(c[f]);o(e,0,b)}var j={},e={},m={},z={},d=0,y=0,t=0,x=0,l,p;return{extend:function(a,b,c){1==arguments.length&&(b=a,a=y);z[a]=c;m[a]=b.concat(m[a]||[])},b:function(a){p=a},a:function(a){l=a},color:function(a,b,c){if("string"==typeof a)return n(a,b,c);if("function"==typeof a)return A(0,a);A(a,b)}}}();window.addEventListener?window.addEventListener("load",Rainbow.color,!1):window.attachEvent("onload",Rainbow.color);Rainbow.onHighlight=Rainbow.b;
8
+ Rainbow.addClass=Rainbow.a;Rainbow.extend([{matches:{1:{name:"keyword.operator",pattern:/\=/g},2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\('|"){1}/g}}},pattern:/(\(|\s|\[|\=|:)(('|")([^\\\1]|\\.)*?(\3))/gm},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/|\#)[\s\S]*?$/gm},{name:"constant.numeric",pattern:/\b(\d+(\.\d+)?(e(\+|\-)?\d+)?(f|d)?|0x[\da-f]+)\b/gi},{matches:{1:"keyword"},pattern:/\b(and|array|as|bool(ean)?|c(atch|har|lass|onst)|d(ef|elete|o(uble)?)|e(cho|lse(if)?|xit|xtends|xcept)|f(inally|loat|or(each)?|unction)|global|if|import|int(eger)?|long|new|object|or|pr(int|ivate|otected)|public|return|self|st(ring|ruct|atic)|switch|th(en|is|row)|try|(un)?signed|var|void|while)(?=\(|\b)/gi},
9
+ {name:"constant.language",pattern:/true|false|null/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\||\*|\=/g},{matches:{1:"function.call"},pattern:/(\w+?)(?=\()/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(function)\s(.*?)(?=\()/g}]);Rainbow.extend("javascript",[{name:"selector",pattern:/(\s|^)\$(?=\.|\()/g},{name:"support",pattern:/\b(window|document)\b/g},{matches:{1:"support.property"},pattern:/\.(length|node(Name|Value))\b/g},{matches:{1:"support.function"},pattern:/(setTimeout|setInterval)(?=\()/g},{matches:{1:"support.method"},pattern:/\.(getAttribute|push|getElementById|getElementsByClassName|log|setTimeout|setInterval)(?=\()/g},{matches:{1:"support.tag.script",2:[{name:"string",pattern:/('|")(.*?)(\1)/g},{name:"entity.tag.script",
10
+ pattern:/(\w+)/g}],3:"support.tag.script"},pattern:/(&lt;\/?)(script.*?)(&gt;)/g},{name:"string.regexp",matches:{1:"string.regexp.open",2:{name:"constant.regexp.escape",pattern:/\\(.){1}/g},3:"string.regexp.close",4:"string.regexp.modifier"},pattern:/(\/)(?!\*)(.+)(\/)([igm]{0,3})/g},{matches:{1:"storage",3:"entity.function"},pattern:/(var)?(\s|^)(.*)(?=\s?=\s?function\()/g},{name:"entity.function",pattern:/(\w+)(?=:\s{0,}function)/g}]);Rainbow.extend("html",[{name:"source.php.embedded",matches:{2:{language:"php"}},pattern:/&lt;\?=?(?!xml)(php)?([\s\S]*?)(\?&gt;)/gm},{name:"source.css.embedded",matches:{"0":{language:"css"}},pattern:/&lt;style(.*?)&gt;([\s\S]*?)&lt;\/style&gt;/gm},{name:"source.js.embedded",matches:{"0":{language:"javascript"}},pattern:/&lt;script(?! src)(.*?)&gt;([\s\S]*?)&lt;\/script&gt;/gm},{name:"comment.html",pattern:/&lt;\!--[\S\s]*?--&gt;/g},{matches:{1:"support.tag.open",2:"support.tag.close"},pattern:/(&lt;)|(\/?\??&gt;)/g},
11
+ {name:"support.tag",matches:{1:"support.tag",2:"support.tag.special",3:"support.tag-name"},pattern:/(&lt;\??)(\/|\!?)(\w+)/g},{matches:{1:"support.attribute"},pattern:/([a-z-]+)(?=\=)/g},{matches:{1:"support.operator",2:"string.quote",3:"string.value",4:"string.quote"},pattern:/(=)('|")(.*?)(\2)/g},{matches:{1:"support.operator",2:"support.value"},pattern:/(=)([a-zA-Z\-0-9]*)\b/g},{matches:{1:"support.attribute"},pattern:/\s(\w+)(?=\s|&gt;)(?![\s\S]*&lt;)/g}],!0);Rainbow.extend("css",[{name:"comment",pattern:/\/\*[\s\S]*?\*\//gm},{name:"constant.hex-color",pattern:/#([a-f0-9]{3}|[a-f0-9]{6})(?=;|\s)/gi},{matches:{1:"constant.numeric",2:"keyword.unit"},pattern:/(\d+)(px|em|cm|s|%)?/g},{name:"string",pattern:/('|")(.*?)\1/g},{name:"support.css-property",matches:{1:"support.vendor-prefix"},pattern:/(-o-|-moz-|-webkit-|-ms-)?[\w-]+(?=\s?:)(?!.*\{)/g},{matches:{1:[{name:"entity.name.sass",pattern:/&amp;/g},{name:"direct-descendant",pattern:/&gt;/g},{name:"entity.name.class",
12
+ pattern:/\.[\w\-_]+/g},{name:"entity.name.id",pattern:/\#[\w\-_]+/g},{name:"entity.name.pseudo",pattern:/:[\w\-_]+/g},{name:"entity.name.tag",pattern:/\w+/g}]},pattern:/([\w\ ,:\.\#\&\;\-_]+)(?=.*\{)/g},{matches:{2:"support.vendor-prefix",3:"support.css-value"},pattern:/(:|,)\s?(-o-|-moz-|-webkit-|-ms-)?([a-zA-Z-]*)(?=\b)(?!.*\{)/g},{matches:{1:"support.tag.style",2:[{name:"string",pattern:/('|")(.*?)(\1)/g},{name:"entity.tag.style",pattern:/(\w+)/g}],3:"support.tag.style"},pattern:/(&lt;\/?)(style.*?)(&gt;)/g}],
13
+ !0);
@@ -0,0 +1,215 @@
1
+ @import "picasso";
2
+
3
+ body{
4
+
5
+ }
6
+
7
+ //
8
+ //Components
9
+ //
10
+
11
+ //Buttons
12
+ .button-demo-1{
13
+ @include button();
14
+ }
15
+
16
+ .button-demo-2{
17
+ @include button(70px, 30px, #0088CC, white);
18
+ }
19
+
20
+ .button-demo-3{
21
+ @include button(80px, 30px, #FBB450, white);
22
+ }
23
+
24
+ .button-demo-4{
25
+ @include button(250px, 30px, #62C462, white);
26
+ }
27
+
28
+ //Mini-Buttons
29
+ .mini-button-demo-1{
30
+ @include mini-button();
31
+ }
32
+
33
+ .mini-button-demo-2{
34
+ @include mini-button(#0088CC, white);
35
+ }
36
+
37
+ .mini-button-demo-3{
38
+ @include mini-button(#DA4F49, white);
39
+ }
40
+
41
+ .mini-button-demo-4{
42
+ @include mini-button(#414141, white);
43
+ }
44
+
45
+ //Arrows
46
+ .arrow-demo-1{
47
+ @include arrow();
48
+ }
49
+
50
+ .arrow-demo-2{
51
+ @include arrow(#B94A48, white);
52
+ }
53
+
54
+ .arrow-demo-3{
55
+ @include arrow(#F89406, white);
56
+ }
57
+
58
+ .arrow-demo-4{
59
+ @include arrow(#468847, white);
60
+ }
61
+
62
+
63
+ //Bubbles
64
+ .bubble-demo-1{
65
+ @include bubble();
66
+ }
67
+
68
+ .bubble-demo-2{
69
+ @include bubble(400px, #E6E6E6, #333333, true);
70
+ }
71
+
72
+ .bubble-demo-1, .bubble-demo-2{
73
+ margin: 20px 0;
74
+ }
75
+
76
+
77
+ //Despegar
78
+
79
+ .despegar-size-1-demo{
80
+ font-size: $despegar-size-1;
81
+ }
82
+
83
+ .despegar-size-2-demo{
84
+ font-size: $despegar-size-2;
85
+ }
86
+
87
+ .despegar-size-3-demo{
88
+ font-size: $despegar-size-3;
89
+ }
90
+
91
+ .despegar-size-4-demo{
92
+ font-size: $despegar-size-4;
93
+ }
94
+
95
+ .despegar-size-5-demo{
96
+ font-size: $despegar-size-5;
97
+ }
98
+
99
+ .despegar-size-6-demo{
100
+ font-size: $despegar-size-6;
101
+ }
102
+
103
+ .despegar-black-demo{
104
+ padding: 10px;
105
+ background: $despegar-black;
106
+ color: white;
107
+ }
108
+
109
+ .despegar-white-demo{
110
+ padding: 10px;
111
+ background: $despegar-white;
112
+ }
113
+
114
+ .despegar-yellow-demo{
115
+ padding: 10px;
116
+ background: $despegar-yellow;
117
+ }
118
+
119
+ .despegar-red-demo{
120
+ padding: 10px;
121
+ background: $despegar-red;
122
+ }
123
+
124
+ .despegar-blue-demo{
125
+ padding: 10px;
126
+ background: $despegar-blue;
127
+ color: white;
128
+ }
129
+
130
+ .despegar-gray-1-demo{
131
+ padding: 10px;
132
+ background: $despegar-gray-1;
133
+ color: white;
134
+ }
135
+
136
+ .despegar-gray-2-demo{
137
+ padding: 10px;
138
+ background: $despegar-gray-2;
139
+ color: white;
140
+ }
141
+
142
+ .despegar-gray-3-demo{
143
+ padding: 10px;
144
+ background: $despegar-gray-3;
145
+ color: white;
146
+ }
147
+
148
+ .despegar-gray-4-demo{
149
+ padding: 10px;
150
+ background: $despegar-gray-4;
151
+ color: white;
152
+ }
153
+
154
+ .despegar-gray-5-demo{
155
+ padding: 10px;
156
+ background: $despegar-gray-5;
157
+ color: white;
158
+ }
159
+
160
+ .despegar-gray-6-demo{
161
+ padding: 10px;
162
+ background: $despegar-gray-6;
163
+ }
164
+
165
+ .despegar-gray-7-demo{
166
+ padding: 10px;
167
+ background: $despegar-gray-7;
168
+ }
169
+
170
+ .despegar-searchbox-bg-demo{
171
+ padding: 10px;
172
+ background: $despegar-searchbox-bg;
173
+ }
174
+
175
+ .despegar-title-color-demo{
176
+ padding: 10px;
177
+ background: $despegar-title-color;
178
+ color: white;
179
+ }
180
+
181
+ .despegar-titlealt-color-demo{
182
+ padding: 10px;
183
+ background: $despegar-titlealt-color;
184
+ }
185
+
186
+ .despegar-link-color-demo{
187
+ padding: 10px;
188
+ background: $despegar-link-color;
189
+ }
190
+
191
+ .despegar-link-color-hover-demo{
192
+ padding: 10px;
193
+ background: $despegar-link-color-hover;
194
+ }
195
+
196
+ .despegar-error-bg-demo{
197
+ padding: 10px;
198
+ background: $despegar-error-bg;
199
+ }
200
+
201
+ .despegar-error-border-demo{
202
+ padding: 10px;
203
+ background: $despegar-error-border;
204
+ }
205
+
206
+ .despegar-warning-bg-demo{
207
+ padding: 10px;
208
+ background: $despegar-warning-bg;
209
+ }
210
+
211
+ .despegar-warning-border-demo{
212
+ padding: 10px;
213
+ background: $despegar-warning-border;
214
+ }
215
+
data/docs/utils.html ADDED
@@ -0,0 +1,104 @@
1
+ <!doctype html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7
+ <title>Picasso Docs</title>
8
+
9
+ <link type="text/css" rel="stylesheet" href="./css/markdown.css">
10
+ <link type="text/css" rel="stylesheet" href="./css/github.css">
11
+ <link type="text/css" rel="stylesheet" href="./css/style.css">
12
+ </head>
13
+
14
+ <body>
15
+
16
+
17
+
18
+
19
+ <aside>
20
+ <nav>
21
+ <ol>
22
+
23
+ <li>
24
+ <a href="./intro.html#picasso-framework-css-sass">Picasso. Framework CSS/Sass.</a>
25
+
26
+ <ol>
27
+
28
+ </ol>
29
+
30
+ </li>
31
+
32
+ <li>
33
+ <a href="./components.html#components">Components</a>
34
+
35
+ <ol>
36
+
37
+ <li><a href="./buttons.html#buttons">Buttons</a></li>
38
+
39
+ <li><a href="./buttons.html#mini-buttons">Mini-Buttons</a></li>
40
+
41
+ <li><a href="./arrows.html#arrows">Arrows</a></li>
42
+
43
+ <li><a href="./bubbles.html#bubbles">Bubbles</a></li>
44
+
45
+ </ol>
46
+
47
+ </li>
48
+
49
+ <li>
50
+ <a href="./utils.html#utils">Utils</a>
51
+
52
+ <ol>
53
+
54
+ <li><a href="./utils.html#clearfix">Clearfix</a></li>
55
+
56
+ </ol>
57
+
58
+ </li>
59
+
60
+ <li>
61
+ <a href="./despegar.html#despegar">Despegar</a>
62
+
63
+ <ol>
64
+
65
+ <li><a href="./despegar.html#variables">Variables</a></li>
66
+
67
+ </ol>
68
+
69
+ </li>
70
+
71
+ </ol>
72
+ </nav>
73
+ </aside>
74
+
75
+
76
+ <article>
77
+ <a name="utils"></a><h1>Utils</h1>
78
+ <a name="clearfix"></a><h2>Clearfix</h2>
79
+ <p>Basado en <a href="http://nicolasgallagher.com/micro-clearfix-hack/">http://nicolasgallagher.com/micro-clearfix-hack/</a>.
80
+
81
+ </p>
82
+ <a name="sass"></a><h3>Sass</h3>
83
+ <pre><code class="lang-css">@import &quot;picasso/utils/clearfix&quot;;
84
+
85
+ //Clearfix
86
+ .container{
87
+ @include clearfix;
88
+ }</code></pre>
89
+
90
+ </article>
91
+
92
+
93
+ <footer>
94
+ <a href="./all.html">Everything on a single page</a>
95
+
96
+ </footer>
97
+
98
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
99
+ <script src="./js/docs.js"></script>
100
+ <script src="./js/rainbow-custom.min.js"></script>
101
+
102
+ </body>
103
+
104
+ </html>
@@ -1,3 +1,3 @@
1
1
  module Picasso
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,3 @@
1
+ @import "picasso/utils";
2
+ @import "picasso/components";
3
+ @import "picasso/despegar";
@@ -0,0 +1,3 @@
1
+ @import "components/buttons";
2
+ @import "components/arrows";
3
+ @import "components/bubbles";
@@ -0,0 +1 @@
1
+ @import "despegar/variables";
@@ -0,0 +1 @@
1
+ @import "utils/clearfix";
@@ -0,0 +1,54 @@
1
+ //
2
+ // Arrows
3
+ //
4
+
5
+ $arrow-default-background: #888;
6
+ $arrow-default-color: white;
7
+
8
+ @mixin arrow(
9
+
10
+ // Background del elemento
11
+ $background: $arrow-default-background,
12
+
13
+ // Color del elemento
14
+ $color: $arrow-default-color){
15
+
16
+ @include arrow-layout();
17
+ @include arrow-visual($background, $color);
18
+
19
+ }
20
+
21
+ @mixin arrow-visual($background, $color) {
22
+
23
+ background: $background;
24
+ color: $color;
25
+ font-family: sans-serif;
26
+ font-style: normal;
27
+ font-size: 9px;
28
+
29
+ &:after{
30
+ border-top: 7px solid transparent;
31
+ border-bottom: 7px solid transparent;
32
+ border-left: 7px solid $background;
33
+ }
34
+
35
+ }
36
+
37
+ @mixin arrow-layout() {
38
+
39
+ padding: 0px 5px;
40
+ display: inline-block;
41
+ height: 14px;
42
+ line-height: 16px;
43
+ position: relative;
44
+
45
+ &:after{
46
+ content: "";
47
+ position: absolute;
48
+ top: 0;
49
+ right: -7px;
50
+ width: 0;
51
+ height: 0;
52
+ }
53
+
54
+ }
@@ -0,0 +1,76 @@
1
+ //
2
+ // Bubbles
3
+ //
4
+
5
+ @import "compass/css3/border-radius";
6
+ @import "compass/typography/text/ellipsis";
7
+ //@import "compass/css3/pie";
8
+
9
+ $bubble-default-width : auto;
10
+ $bubble-default-background : #EEE;
11
+ $bubble-default-color : #999;
12
+ $bubble-default-ellipsis : false;
13
+
14
+ @mixin bubble(
15
+
16
+ // Ancho del elemento
17
+ $width: $bubble-default-width,
18
+
19
+ // Background del elemento
20
+ $background: $bubble-default-background,
21
+
22
+ // Color del texto del elemento
23
+ $color: $bubble-default-color,
24
+
25
+ // Seteo de ellipsis
26
+ $ellipsis: $bubble-default-ellipsis
27
+ ){
28
+
29
+ @include bubble-layout($width);
30
+ @include bubble-visual($background, $color, $ellipsis);
31
+
32
+ }
33
+
34
+ @mixin bubble-visual($background, $color, $ellipsis){
35
+
36
+ background: $background;
37
+ @include border-radius(5px);
38
+
39
+ blockquote{
40
+ color: $color;
41
+ @if $ellipsis {
42
+ @include ellipsis(true);
43
+ }
44
+ }
45
+
46
+ h4{
47
+ @if $ellipsis {
48
+ @include ellipsis(true);
49
+ }
50
+ }
51
+
52
+ &:after{
53
+ border-left: 10px solid transparent;
54
+ border-right: 10px solid transparent;
55
+ border-top: 15px solid $background;
56
+ }
57
+
58
+ }
59
+
60
+ @mixin bubble-layout($width){
61
+
62
+ padding: 10px;
63
+ display: block;
64
+ width: $width;
65
+ position: relative;
66
+
67
+ &:after{
68
+ content: "";
69
+ position: absolute;
70
+ bottom: -15px;
71
+ right: 20px;
72
+ width: 0;
73
+ height: 0;
74
+ }
75
+
76
+ }