Permalink
Browse files

Popover, and added DASH

  • Loading branch information...
specialorange committed Nov 3, 2012
1 parent eec379f commit 99f18c52e797bf83c37c1688051551d84f789bf7
View
@@ -0,0 +1,79 @@
+/**
+ * jQuery.popover example stylesheet.
+ * By Davey IJzermans
+ * http://daveyyzermans.nl
+ *
+ * License: public domain
+ */
+
+.popover {
+ position: absolute;
+ top: 0; left: 0;
+ max-height: 50%;
+ width: 25%;
+ margin-right: 10px;
+ display: none;
+ -webkit-box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.1);
+ box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.1);
+}
+.popover.wider {
+ width: 340px;
+}
+.popover.large {
+ width: 470px;
+ max-height: 350px;
+}
+.popover .arrow, .popover .top-arrow {
+ position: absolute;
+ top: 0; left: 50%;
+ margin: -10px 0 0 -3px;
+ width: 0; height: 0;
+ border-top: 5px solid transparent;
+ border-left: 5px solid transparent;
+ border-right: 5px solid transparent;
+ border-bottom: 5px solid #F16529;
+}
+.popover .bottom-arrow {
+ top: 100%; left: 50%;
+ margin: 0 0 0 -3px;
+ border-top: 5px solid #F16529;
+ border-bottom: 5px solid transparent;
+}
+.popover .left-arrow {
+ top: 50%; left: -10px;
+ margin: -3px 0 0;
+ border-right: 5px solid #F16529;
+ border-bottom: 5px solid transparent;
+}
+.popover .right-arrow {
+ top: 50%; left: 100%;
+ margin: -3px 0 0;
+ border-left: 5px solid #F16529;
+ border-bottom: 5px solid transparent;
+}
+.popover .wrap {
+ background: white;
+ border: 1px solid #F16529;
+ border-radius: 4px;
+ max-height: 50%;
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+}
+.popover .title {
+ background: #F16529 url(popover_gradient.png) repeat-x;
+ color: black;
+ font-size: 1.3em;
+ text-align: center;
+ padding: 8px 0 0 0;
+ height: 27px;
+}
+.popover .content {
+ padding: 15px;
+ max-height: 175px;
+ overflow: auto;
+ line-height: 1.3em;
+ font-size: 0.9em;
+}
+.popover.large .content {
+ max-height: 285px;
+}
View
Binary file not shown.
@@ -0,0 +1,8 @@
+*.class
+*.pyc
+*.pyo
+.sublime-project
+.sublime-workspace
+.DS_Store
+dev.html
+dev*.html
@@ -0,0 +1,20 @@
+Copyright (c) 2012 Davey IJzermans
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,49 @@
+# jQuery.popover
+
+Easy to use and customizable popover plugin for jQuery. For a demo and
+documentation, visit http://daveyijzermans.nl/jquery/popover/demo.html
+
+## Changelog
+
+### v1.1.2
+- Some code style tweaks
+- Box shadow in stylesheet
+- Moved preventDefault to setTrigger method
+
+### v1.1.1
+- Fixed hideAll method
+
+### v1.1.0
+- Fixed hideOnHTMLClick on iDevices
+
+### v1.0.9
+- Fixed url parameter
+
+### v1.0.8
+- Added automatic reposition.
+- Changed offset logic, see docs.
+
+### v1.0.7
+- Added focus-trigger.
+
+### v1.0.6
+- Some z-index tweaks to make the popover appear on top of each other instead of the order they were instantiated.
+
+### v1.0.5
+- Added preventChildrenPropagation parameter.
+
+### v1.0.4
+- The preventDefault parameter now does what it's supposed to. preventDefault on the element the popover's invoked on instead of the popover itself.
+
+### v1.0.3
+- Again some small changes to the hover trigger.
+- Hovering the popover now makes it stay.
+
+### v1.0.2
+- Added 'anchor' parameter, for attaching the popover to another element
+
+### v1.0.1
+- Fixed hover trigger
+
+### v1.0.0
+- Initial release
View
@@ -0,0 +1,121 @@
+/**
+ * CSS reset by Eric Meyer
+ * http://meyerweb.com/eric/tools/css/reset/
+ * v2.0 | 20110126
+ * License: none (public domain)
+ */
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, embed,
+figure, figcaption, footer, header, hgroup,
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+}
+/* HTML5 display-role reset for older browsers */
+article, aside, details, figcaption, figure,
+footer, header, hgroup, menu, nav, section {
+ display: block;
+}
+body {
+ line-height: 1;
+}
+ol, ul {
+ list-style: none;
+}
+blockquote, q {
+ quotes: none;
+}
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: '';
+ content: none;
+}
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+
+/**
+ * Demo page styling
+ */
+body {
+ margin: 80px 10%;
+ font-family: Arial;
+ font-size: 15px;
+ line-height: 1.3em;
+ min-width: 1000px;
+}
+h1 {
+ font-size: 2.5em;
+}
+h2 {
+ font-size: 2em;
+}
+h3 {
+ font-size: 1.6em;
+}
+h4 {
+ font-size: 1.1em;
+}
+h1, h2, h3, h4, h5, h6 {
+ font-weight: bold;
+ margin: 0.7em 0;
+}
+p {
+ margin: 1em 0;
+}
+strong {
+ font-weight: bold;
+}
+em {
+ font-style: italic;
+}
+ul, ol {
+ list-style: square;
+ margin: 0 2em;
+}
+ul ul, ul ol, ol ul, ol ol {
+ margin: 0 0 0 1.5em;
+}
+.sandbox {
+ margin: 0.7em 0;
+ padding: 1em;
+ background: #f9f9f9;
+}
+code {
+ font-family: Courier;
+ background: #f9f9f9;
+}
+pre {
+ margin: 1em 0; padding: 1em;
+ background: #f9f9f9;
+ overflow: auto;
+}
+.sandbox, pre {
+ border-radius: 5px;
+}
+table, tr, td, th {
+ border: 1px solid #ddd;
+}
+th {
+ background: #f9f9f9;
+ font-weight: bold;
+}
+th, td {
+ padding: 5px;
+}
@@ -0,0 +1,2 @@
+Aww yeah!
+<img src="http://www.myfacewhen.net/uploads/961-aww-yeah.jpg" width="300" />
Oops, something went wrong.

0 comments on commit 99f18c5

Please sign in to comment.