-
Notifications
You must be signed in to change notification settings - Fork 0
/
tiny-form-popup.css
executable file
·75 lines (64 loc) · 2.16 KB
/
tiny-form-popup.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* Tiny Form Popup default css stylings for OpenLearning
* Initially written by Jenna Fox <a@creativepony.com>
* 2011-6-22
*/
.tiny-form-popup {
border: 1px solid #666;
background-color: white;
position: absolute;
/*margin-top: -24px; /* .notch top + .notch (height / 2) */
/*margin-left: 10px; /* .notch margin-left, but positive */
padding: 5px;
width: 290px;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
}
.tiny-form-popup .tfp-notch {
background-image: url(spouts.png);
background-repeat: no-repeat;
position: absolute; /* now it takes up no space inside the .tiny-form-popup */
}
/* align spout with top,left coords when positioned */
.tiny-form-popup.tfp-left-edge, .tiny-form-popup.tfp-right-edge { margin-top: -25px; } /* notch top + notch height/2 */
.tiny-form-popup.tfp-top-edge, .tiny-form-popup.tfp-bottom-edge { margin-left: -151px; } /* outer width / 2 */
/* left and right notch bubbles */
.tiny-form-popup .tfp-notch-left, .tiny-form-popup .tfp-notch-right {
width: 10px; /* should always be half of height and <= 47px (due to notch image) */
height: 20px;
top: 15px; /* at least half of height + border radius of parent */
}
.tiny-form-popup .tfp-notch-top, .tiny-form-popup .tfp-notch-bottom {
width: 20px; /* should always be twice of height and <= 94px (due to notch image) */
height: 10px;
left: 50%; /* offset left to middle, then slip it back half it's height */
margin-left: -10px; /* half of width */
}
/* left notch */
.tiny-form-popup .tfp-notch-left {
background-position: left center;
margin-left: -10px; /* (0 - width) */
left: 0;
}
/* right notch */
.tiny-form-popup .tfp-notch-right {
background-position: right center;
margin-right: -10px; /* (0 - width) */
right: 0;
}
/* top notch */
.tiny-form-popup .tfp-notch-top {
background-position: center top;
margin-top: -10px; /* (0 - width) */
top: 0;
}
/* bottom notch */
.tiny-form-popup .tfp-notch-bottom {
background-position: center bottom;
margin-bottom: -10px; /* (0 - width) */
bottom: 0;
}
/* hide form content bits usually - gracefully degrading without JS */
.tiny-form-content { display: none; }
.tiny-form-content:target { display: block; }