Skip to content

Commit 962745e

Browse files
author
Philip Guo
committed
more demo action
1 parent 4afd4f5 commit 962745e

4 files changed

Lines changed: 136 additions & 104 deletions

File tree

‎v3/commentary-bubbles-demo.css‎

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/* For styling tricks, see: http://css-tricks.com/textarea-tricks/ */
2+
textarea.bubbleInputText {
3+
border: 1px solid #ccc;
4+
outline: none;
5+
overflow: auto; /* to look pretty on IE */
6+
7+
/* make sure textarea doesn't grow and stretch the enclosing bubble */
8+
resize: none;
9+
width: 200px;
10+
max-width: 200px;
11+
height: 60px;
12+
max-height: 60px;
13+
}
14+
15+
16+
.ui-tooltip-pgbootstrap,
17+
textarea.bubbleInputText {
18+
font-size: 9pt;
19+
line-height: 1.3em;
20+
21+
font-family: verdana, arial, helvetica, sans-serif;
22+
}
23+
24+
25+
/* modified version of Twitter bootstrap style by Philip Guo */
26+
.ui-tooltip-pgbootstrap{
27+
color: #333;
28+
background-color: #ffffff;
29+
30+
max-width: 250px;
31+
min-width: 10px;
32+
33+
border: 2px solid #4284D3;
34+
35+
cursor: pointer;
36+
37+
*border-right-width: 2px;
38+
*border-bottom-width: 2px;
39+
40+
-webkit-border-radius: 5px;
41+
-moz-border-radius: 5px;
42+
border-radius: 5px;
43+
44+
/* way too poofy ...
45+
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
46+
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
47+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
48+
*/
49+
50+
-webkit-box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
51+
-moz-box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
52+
box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
53+
54+
-webkit-background-clip: padding-box;
55+
-moz-background-clip: padding;
56+
background-clip: padding-box;
57+
}
58+
59+
.ui-tooltip-pgbootstrap .ui-tooltip-titlebar{
60+
font-size: 18px;
61+
line-height: 22px;
62+
63+
border-bottom: 1px solid #ccc;
64+
background-color: transparent;
65+
}
66+
67+
.ui-tooltip-pgbootstrap .ui-tooltip-content{
68+
padding: 5px /* 5px is minimum or else it might look ugly */ 7px;
69+
}
70+
71+
72+
.ui-tooltip-pgbootstrap .ui-tooltip-titlebar .ui-state-default{
73+
right: 9px; top: 49%;
74+
border-style: none;
75+
}
76+
77+
.ui-tooltip-pgbootstrap .ui-tooltip-icon{
78+
background: white;
79+
}
80+
81+
.ui-tooltip-pgbootstrap .ui-tooltip-icon .ui-icon{
82+
width: auto;
83+
height: auto;
84+
float: right;
85+
font-size: 20px;
86+
font-weight: bold;
87+
line-height: 18px;
88+
color: #000000;
89+
text-shadow: 0 1px 0 #ffffff;
90+
opacity: 0.2;
91+
filter: alpha(opacity=20);
92+
}
93+
94+
.ui-tooltip-pgbootstrap .ui-tooltip-icon .ui-icon:hover{
95+
color: #000000;
96+
text-decoration: none;
97+
cursor: pointer;
98+
opacity: 0.4;
99+
filter: alpha(opacity=40);
100+
}
101+
102+
103+
/* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */
104+
.ui-tooltip-pgbootstrap{
105+
-moz-border-radius: 5px;
106+
-webkit-border-radius: 5px;
107+
border-radius: 5px;
108+
}
109+

‎v3/commentary-bubbles-demo.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<link type="text/css" href="css/jquery.qtip.css" rel="stylesheet" />
2424

2525
<script type="text/javascript" src="commentary-bubbles-demo.js"></script>
26+
<link rel="stylesheet" href="commentary-bubbles-demo.css"/>
2627

2728

2829
</head>

‎v3/commentary-bubbles-demo.js‎

Lines changed: 25 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎v3/css/jquery.qtip.css‎

Lines changed: 1 addition & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* http://craigsworks.com/projects/qtip2/
33
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */
44

5-
/* Modified by Philip Guo */
6-
75
/* Fluid class for determining actual width in IE */
86
#qtip-rcontainer{
97
position: absolute;
@@ -245,8 +243,7 @@
245243
/* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */
246244
.ui-tooltip-rounded,
247245
.ui-tooltip-tipsy,
248-
.ui-tooltip-bootstrap,
249-
.ui-tooltip-pgbootstrap{
246+
.ui-tooltip-bootstrap{
250247
-moz-border-radius: 5px;
251248
-webkit-border-radius: 5px;
252249
border-radius: 5px;
@@ -517,91 +514,6 @@
517514
}
518515

519516

520-
/* modified version of Twitter bootstrap style by Philip Guo */
521-
.ui-tooltip-pgbootstrap{
522-
font-size: 9pt;
523-
line-height: 1.3em;
524-
525-
font-family: verdana, arial, helvetica, sans-serif;
526-
527-
color: #333;
528-
background-color: #ffffff;
529-
530-
max-width: 350px;
531-
min-width: 10px;
532-
533-
border: 2px solid #4284D3;
534-
535-
cursor: pointer;
536-
537-
*border-right-width: 2px;
538-
*border-bottom-width: 2px;
539-
540-
-webkit-border-radius: 5px;
541-
-moz-border-radius: 5px;
542-
border-radius: 5px;
543-
544-
/* way too poofy ...
545-
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
546-
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
547-
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
548-
*/
549-
550-
-webkit-box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
551-
-moz-box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
552-
box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
553-
554-
-webkit-background-clip: padding-box;
555-
-moz-background-clip: padding;
556-
background-clip: padding-box;
557-
}
558-
559-
.ui-tooltip-pgbootstrap .ui-tooltip-titlebar{
560-
font-size: 18px;
561-
line-height: 22px;
562-
563-
border-bottom: 1px solid #ccc;
564-
background-color: transparent;
565-
}
566-
567-
.ui-tooltip-pgbootstrap .ui-tooltip-content{
568-
padding: 5px /* 5px is minimum or else it might look ugly */ 7px;
569-
}
570-
571-
572-
.ui-tooltip-pgbootstrap .ui-tooltip-titlebar .ui-state-default{
573-
right: 9px; top: 49%;
574-
border-style: none;
575-
}
576-
577-
.ui-tooltip-pgbootstrap .ui-tooltip-icon{
578-
background: white;
579-
}
580-
581-
.ui-tooltip-pgbootstrap .ui-tooltip-icon .ui-icon{
582-
width: auto;
583-
height: auto;
584-
float: right;
585-
font-size: 20px;
586-
font-weight: bold;
587-
line-height: 18px;
588-
color: #000000;
589-
text-shadow: 0 1px 0 #ffffff;
590-
opacity: 0.2;
591-
filter: alpha(opacity=20);
592-
}
593-
594-
.ui-tooltip-pgbootstrap .ui-tooltip-icon .ui-icon:hover{
595-
color: #000000;
596-
text-decoration: none;
597-
cursor: pointer;
598-
opacity: 0.4;
599-
filter: alpha(opacity=40);
600-
}
601-
602-
603-
604-
605517
/* IE9 fix - removes all filters */
606518
.ui-tooltip:not(.ie9haxors) div.ui-tooltip-content,
607519
.ui-tooltip:not(.ie9haxors) div.ui-tooltip-titlebar{

0 commit comments

Comments
 (0)