mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-31 11:54:03 -05:00
Attempt: Drop.js Working
Attempting to get Drop.js Working with multiple elements.
This commit is contained in:
parent
52a3460680
commit
97a75e92ac
16 changed files with 2365 additions and 91 deletions
|
@ -84,7 +84,7 @@
|
|||
</p>
|
||||
</header>
|
||||
|
||||
<iframe src="build/Squire-UI.html" width="500" height="80"></iframe>
|
||||
<iframe src="build/Squire-UI.html" width="500" height="300"></iframe>
|
||||
<iframe src="build/document.html" onload="top.editor=this.contentWindow.editor" width="500" height="500"></iframe>
|
||||
|
||||
|
||||
|
|
|
@ -39,3 +39,21 @@
|
|||
border-left:none;
|
||||
}
|
||||
|
||||
.drop {
|
||||
border: 1px solid #dbdbdb;
|
||||
padding: 14px;
|
||||
background: white;
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,0),0 0 10px rgba(0,0,0,0.1);
|
||||
-webkit-border-radius: 4px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.quit {
|
||||
float: right;
|
||||
top:0;
|
||||
right:0;
|
||||
}
|
||||
|
|
|
@ -2,30 +2,45 @@
|
|||
|
||||
<head>
|
||||
<link href="Squire-UI.css" rel="stylesheet" type="text/css" type="text/css" rel="stylesheet" />
|
||||
<link href="assets/drop/drop-theme-arrows.css" type="text/css" rel="stylesheet" />
|
||||
|
||||
<link href="assets/font-awesome/font-awesome.min.css" type="text/css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="assets/drop/drop-theme-arrows.css" />
|
||||
<script src="assets/drop/drop.min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="menu" contenteditable="false">
|
||||
<div class="group">
|
||||
<div id="bold" class="item"><i class="fa fa-bold"></i></div>
|
||||
<div class="item"><i class="fa fa-bold"></i></div>
|
||||
<div class="item"><i class="fa fa-italic"></i></div>
|
||||
<div class="item"><i class="fa fa-underline"></i></div>
|
||||
<div class="item"><i class="fa fa-font"></i></div>
|
||||
<div id="font" class="item">
|
||||
<i class="fa fa-font"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="item"><i class="fa fa-link"></i></div>
|
||||
<div class="item"><i class="fa fa-quote-right"></i></div>
|
||||
<div class="item"><i class="fa fa-list"></i></div>
|
||||
<div class="item"><i class="fa fa-picture-o"></i></div>
|
||||
<div class="item">
|
||||
<i class="fa fa-picture-o"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="item"><i class="fa fa-undo"></i></div>
|
||||
<div class="item"><i class="fa fa-undo flip"></i></div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="templates hidden">
|
||||
<div class="drop-font">
|
||||
<i class="fa fa-chevron-up quit" onclick="this.parentNode.parentNode.removeChild(this.parentNode)"></i>
|
||||
Text Size: <input type="number" min="12" max="72" step="6" value="12" name="font-size">
|
||||
<br>
|
||||
Font: <input type="text">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="assets/drop/drop.min.js" type="text/javascript"></script>
|
||||
<script src="Squire-UI.js" type="text/javascript"></script>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
(function() {
|
||||
var drop;
|
||||
var drop, quit;
|
||||
|
||||
drop = new Drop({
|
||||
target: document.querySelector('#bold'),
|
||||
content: 'Welcome to the future!',
|
||||
target: document.querySelector('#font'),
|
||||
content: document.querySelector('.drop-font').innerHTML,
|
||||
position: 'bottom left',
|
||||
openOn: 'click'
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
})();
|
||||
|
||||
|
|
29
build/assets/drop/drop-theme-basic.css
Executable file
29
build/assets/drop/drop-theme-basic.css
Executable file
|
@ -0,0 +1,29 @@
|
|||
.drop-element, .drop-element:after, .drop-element:before, .drop-element *, .drop-element *:after, .drop-element *:before {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.drop-element {
|
||||
position: absolute;
|
||||
display: none; }
|
||||
.drop-element.drop-open {
|
||||
display: block; }
|
||||
|
||||
.drop-element.drop-theme-basic {
|
||||
max-width: 100%;
|
||||
max-height: 100%; }
|
||||
.drop-element.drop-theme-basic .drop-content {
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-ms-border-radius: 5px;
|
||||
-o-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
-moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
font-family: inherit;
|
||||
background: #eeeeee;
|
||||
color: #444444;
|
||||
padding: 1em;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.5em; }
|
139
build/assets/drop/drop-theme-hubspot-popovers.css
Executable file
139
build/assets/drop/drop-theme-hubspot-popovers.css
Executable file
|
@ -0,0 +1,139 @@
|
|||
.drop-element, .drop-element:after, .drop-element:before, .drop-element *, .drop-element *:after, .drop-element *:before {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.drop-element {
|
||||
position: absolute;
|
||||
display: none; }
|
||||
.drop-element.drop-open {
|
||||
display: block; }
|
||||
|
||||
.drop-element.drop-theme-hubspot-popovers {
|
||||
max-width: 100%;
|
||||
max-height: 100%; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content {
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-ms-border-radius: 5px;
|
||||
-o-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
position: relative;
|
||||
font-family: inherit;
|
||||
background: #ebebeb;
|
||||
color: #444444;
|
||||
padding: 1em;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.5em; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-width: 10px;
|
||||
border-style: solid; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-center .drop-content {
|
||||
margin-bottom: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-center .drop-content:before {
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -10px;
|
||||
border-top-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-center .drop-content {
|
||||
margin-top: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-center .drop-content:before {
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
margin-left: -10px;
|
||||
border-bottom-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-right.drop-element-attached-middle .drop-content {
|
||||
margin-right: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-right.drop-element-attached-middle .drop-content:before {
|
||||
left: 100%;
|
||||
top: 50%;
|
||||
margin-top: -10px;
|
||||
border-left-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-left.drop-element-attached-middle .drop-content {
|
||||
margin-left: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-left.drop-element-attached-middle .drop-content:before {
|
||||
right: 100%;
|
||||
top: 50%;
|
||||
margin-top: -10px;
|
||||
border-right-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-left.drop-target-attached-bottom .drop-content {
|
||||
margin-top: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-left.drop-target-attached-bottom .drop-content:before {
|
||||
bottom: 100%;
|
||||
left: 10px;
|
||||
border-bottom-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-right.drop-target-attached-bottom .drop-content {
|
||||
margin-top: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-right.drop-target-attached-bottom .drop-content:before {
|
||||
bottom: 100%;
|
||||
right: 10px;
|
||||
border-bottom-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-top .drop-content {
|
||||
margin-bottom: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-top .drop-content:before {
|
||||
top: 100%;
|
||||
left: 10px;
|
||||
border-top-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-top .drop-content {
|
||||
margin-bottom: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-top .drop-content:before {
|
||||
top: 100%;
|
||||
right: 10px;
|
||||
border-top-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-right.drop-target-attached-left .drop-content {
|
||||
margin-right: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-right.drop-target-attached-left .drop-content:before {
|
||||
top: 10px;
|
||||
left: 100%;
|
||||
border-left-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-left.drop-target-attached-right .drop-content {
|
||||
margin-left: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-left.drop-target-attached-right .drop-content:before {
|
||||
top: 10px;
|
||||
right: 100%;
|
||||
border-right-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-left .drop-content {
|
||||
margin-right: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-left .drop-content:before {
|
||||
bottom: 10px;
|
||||
left: 100%;
|
||||
border-left-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-right .drop-content {
|
||||
margin-left: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-right .drop-content:before {
|
||||
bottom: 10px;
|
||||
right: 100%;
|
||||
border-right-color: #ebebeb; }
|
||||
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content {
|
||||
-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
|
||||
-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
|
||||
-webkit-border-radius: 2px;
|
||||
-moz-border-radius: 2px;
|
||||
-ms-border-radius: 2px;
|
||||
-o-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
padding: 3px;
|
||||
font-size: 13px; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content .drop-content-inner {
|
||||
border: 1px solid #dbdbdb;
|
||||
padding: 14px;
|
||||
background: white;
|
||||
overflow: hidden;
|
||||
width: 280px; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content .drop-content-inner .title {
|
||||
font-size: 18px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 12px;
|
||||
font-weight: normal;
|
||||
line-height: 1; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content .drop-content-inner p:last-child {
|
||||
margin-bottom: 0; }
|
|
@ -1,31 +0,0 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<link href="ui.css" rel="stylesheet" type="text/css" type="text/css" rel="stylesheet" />
|
||||
<link href="assets/font-awesome/font-awesome.min.css" type="text/css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="assets/drop/drop-theme-arrows.css" />
|
||||
<script src="assets/drop/drop.min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="menu" contenteditable="false">
|
||||
<div class="group">
|
||||
<div id="bold" class="item"><i class="fa fa-bold"></i></div>
|
||||
<div class="item"><i class="fa fa-italic"></i></div>
|
||||
<div class="item"><i class="fa fa-underline"></i></div>
|
||||
<div class="item"><i class="fa fa-font"></i></div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="item"><i class="fa fa-link"></i></div>
|
||||
<div class="item"><i class="fa fa-quote-right"></i></div>
|
||||
<div class="item"><i class="fa fa-list"></i></div>
|
||||
<div class="item"><i class="fa fa-picture-o"></i></div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="item"><i class="fa fa-undo"></i></div>
|
||||
<div class="item"><i class="fa fa-undo flip"></i></div>
|
||||
</div>
|
||||
</header>
|
||||
</body>
|
||||
|
||||
</html>
|
41
build/ui.css
41
build/ui.css
|
@ -1,41 +0,0 @@
|
|||
.menu .item {
|
||||
color:#000;
|
||||
float:left;
|
||||
background:#FFF;
|
||||
padding:10px;
|
||||
border-left:1px #EEE solid;
|
||||
-webkit-font-smoothing:subpixel-antialiased
|
||||
}
|
||||
|
||||
.menu .group {
|
||||
border-radius:3px;
|
||||
display:inline-block;
|
||||
border:1px #EEE solid;
|
||||
margin:5px
|
||||
}
|
||||
|
||||
.menu .group .item .flip {
|
||||
-ms-transform:rotateY(180deg);
|
||||
-webkit-transform:rotateY(180deg);
|
||||
-moz-transform:rotateY(180deg);
|
||||
transform:rotateY(180deg)
|
||||
}
|
||||
|
||||
.menu {
|
||||
text-align:center;
|
||||
-webkit-touch-callout:none;
|
||||
-webkit-user-select:none;
|
||||
-khtml-user-select:none;
|
||||
-moz-user-select:none;
|
||||
-ms-user-select:none;
|
||||
user-select:none
|
||||
}
|
||||
|
||||
.menu .group .item:hover, .menu .item:first-child:hover {
|
||||
border-left: 3px #55ACEE solid;
|
||||
}
|
||||
|
||||
.menu .item:first-child {
|
||||
border-left:none;
|
||||
}
|
||||
|
|
@ -39,3 +39,21 @@
|
|||
border-left:none;
|
||||
}
|
||||
|
||||
.drop {
|
||||
border: 1px solid #dbdbdb;
|
||||
padding: 14px;
|
||||
background: white;
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,0),0 0 10px rgba(0,0,0,0.1);
|
||||
-webkit-border-radius: 4px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.quit {
|
||||
float: right;
|
||||
top:0;
|
||||
right:0;
|
||||
}
|
||||
|
|
|
@ -2,30 +2,45 @@
|
|||
|
||||
<head>
|
||||
<link href="Squire-UI.css" rel="stylesheet" type="text/css" type="text/css" rel="stylesheet" />
|
||||
<link href="assets/drop/drop-theme-arrows.css" type="text/css" rel="stylesheet" />
|
||||
|
||||
<link href="assets/font-awesome/font-awesome.min.css" type="text/css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="assets/drop/drop-theme-arrows.css" />
|
||||
<script src="assets/drop/drop.min.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="menu" contenteditable="false">
|
||||
<div class="group">
|
||||
<div id="bold" class="item"><i class="fa fa-bold"></i></div>
|
||||
<div class="item"><i class="fa fa-bold"></i></div>
|
||||
<div class="item"><i class="fa fa-italic"></i></div>
|
||||
<div class="item"><i class="fa fa-underline"></i></div>
|
||||
<div class="item"><i class="fa fa-font"></i></div>
|
||||
<div id="font" class="item">
|
||||
<i class="fa fa-font"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="item"><i class="fa fa-link"></i></div>
|
||||
<div class="item"><i class="fa fa-quote-right"></i></div>
|
||||
<div class="item"><i class="fa fa-list"></i></div>
|
||||
<div class="item"><i class="fa fa-picture-o"></i></div>
|
||||
<div class="item">
|
||||
<i class="fa fa-picture-o"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="item"><i class="fa fa-undo"></i></div>
|
||||
<div class="item"><i class="fa fa-undo flip"></i></div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="templates hidden">
|
||||
<div class="drop-font">
|
||||
<i class="fa fa-chevron-up quit" onclick="this.parentNode.parentNode.removeChild(this.parentNode)"></i>
|
||||
Text Size: <input type="number" min="12" max="72" step="6" value="12" name="font-size">
|
||||
<br>
|
||||
Font: <input type="text">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="assets/drop/drop.min.js" type="text/javascript"></script>
|
||||
<script src="Squire-UI.js" type="text/javascript"></script>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
(function() {
|
||||
var drop;
|
||||
var drop, quit;
|
||||
|
||||
drop = new Drop({
|
||||
target: document.querySelector('#bold'),
|
||||
content: 'Welcome to the future!',
|
||||
target: document.querySelector('#font'),
|
||||
content: document.querySelector('.drop-font').innerHTML,
|
||||
position: 'bottom left',
|
||||
openOn: 'click'
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
})();
|
||||
|
||||
|
|
120
ui/assets/drop/drop-theme-arrows.css
Executable file
120
ui/assets/drop/drop-theme-arrows.css
Executable file
|
@ -0,0 +1,120 @@
|
|||
.drop-element, .drop-element:after, .drop-element:before, .drop-element *, .drop-element *:after, .drop-element *:before {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.drop-element {
|
||||
position: absolute;
|
||||
display: none; }
|
||||
.drop-element.drop-open {
|
||||
display: block; }
|
||||
|
||||
.drop-element.drop-theme-arrows {
|
||||
max-width: 100%;
|
||||
max-height: 100%; }
|
||||
.drop-element.drop-theme-arrows .drop-content {
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-ms-border-radius: 5px;
|
||||
-o-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
position: relative;
|
||||
font-family: inherit;
|
||||
background: #eeeeee;
|
||||
color: #444444;
|
||||
padding: 1em;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.5em;
|
||||
-webkit-transform: translateZ(0);
|
||||
-moz-transform: translateZ(0);
|
||||
-ms-transform: translateZ(0);
|
||||
-o-transform: translateZ(0);
|
||||
transform: translateZ(0);
|
||||
-webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
|
||||
-moz-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
|
||||
filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2)); }
|
||||
.drop-element.drop-theme-arrows .drop-content:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-width: 16px;
|
||||
border-style: solid; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-center .drop-content {
|
||||
margin-bottom: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-center .drop-content:before {
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -16px;
|
||||
border-top-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-center .drop-content {
|
||||
margin-top: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-center .drop-content:before {
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
margin-left: -16px;
|
||||
border-bottom-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-right.drop-element-attached-middle .drop-content {
|
||||
margin-right: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-right.drop-element-attached-middle .drop-content:before {
|
||||
left: 100%;
|
||||
top: 50%;
|
||||
margin-top: -16px;
|
||||
border-left-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-left.drop-element-attached-middle .drop-content {
|
||||
margin-left: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-left.drop-element-attached-middle .drop-content:before {
|
||||
right: 100%;
|
||||
top: 50%;
|
||||
margin-top: -16px;
|
||||
border-right-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-left.drop-target-attached-bottom .drop-content {
|
||||
margin-top: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-left.drop-target-attached-bottom .drop-content:before {
|
||||
bottom: 100%;
|
||||
left: 16px;
|
||||
border-bottom-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-right.drop-target-attached-bottom .drop-content {
|
||||
margin-top: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-right.drop-target-attached-bottom .drop-content:before {
|
||||
bottom: 100%;
|
||||
right: 16px;
|
||||
border-bottom-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-top .drop-content {
|
||||
margin-bottom: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-top .drop-content:before {
|
||||
top: 100%;
|
||||
left: 16px;
|
||||
border-top-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-top .drop-content {
|
||||
margin-bottom: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-top .drop-content:before {
|
||||
top: 100%;
|
||||
right: 16px;
|
||||
border-top-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-right.drop-target-attached-left .drop-content {
|
||||
margin-right: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-right.drop-target-attached-left .drop-content:before {
|
||||
top: 16px;
|
||||
left: 100%;
|
||||
border-left-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-left.drop-target-attached-right .drop-content {
|
||||
margin-left: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-top.drop-element-attached-left.drop-target-attached-right .drop-content:before {
|
||||
top: 16px;
|
||||
right: 100%;
|
||||
border-right-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-left .drop-content {
|
||||
margin-right: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-left .drop-content:before {
|
||||
bottom: 16px;
|
||||
left: 100%;
|
||||
border-left-color: #eeeeee; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-right .drop-content {
|
||||
margin-left: 16px; }
|
||||
.drop-element.drop-theme-arrows.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-right .drop-content:before {
|
||||
bottom: 16px;
|
||||
right: 100%;
|
||||
border-right-color: #eeeeee; }
|
29
ui/assets/drop/drop-theme-basic.css
Executable file
29
ui/assets/drop/drop-theme-basic.css
Executable file
|
@ -0,0 +1,29 @@
|
|||
.drop-element, .drop-element:after, .drop-element:before, .drop-element *, .drop-element *:after, .drop-element *:before {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.drop-element {
|
||||
position: absolute;
|
||||
display: none; }
|
||||
.drop-element.drop-open {
|
||||
display: block; }
|
||||
|
||||
.drop-element.drop-theme-basic {
|
||||
max-width: 100%;
|
||||
max-height: 100%; }
|
||||
.drop-element.drop-theme-basic .drop-content {
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-ms-border-radius: 5px;
|
||||
-o-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
-moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
font-family: inherit;
|
||||
background: #eeeeee;
|
||||
color: #444444;
|
||||
padding: 1em;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.5em; }
|
139
ui/assets/drop/drop-theme-hubspot-popovers.css
Executable file
139
ui/assets/drop/drop-theme-hubspot-popovers.css
Executable file
|
@ -0,0 +1,139 @@
|
|||
.drop-element, .drop-element:after, .drop-element:before, .drop-element *, .drop-element *:after, .drop-element *:before {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.drop-element {
|
||||
position: absolute;
|
||||
display: none; }
|
||||
.drop-element.drop-open {
|
||||
display: block; }
|
||||
|
||||
.drop-element.drop-theme-hubspot-popovers {
|
||||
max-width: 100%;
|
||||
max-height: 100%; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content {
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-ms-border-radius: 5px;
|
||||
-o-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
position: relative;
|
||||
font-family: inherit;
|
||||
background: #ebebeb;
|
||||
color: #444444;
|
||||
padding: 1em;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.5em; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-width: 10px;
|
||||
border-style: solid; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-center .drop-content {
|
||||
margin-bottom: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-center .drop-content:before {
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -10px;
|
||||
border-top-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-center .drop-content {
|
||||
margin-top: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-center .drop-content:before {
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
margin-left: -10px;
|
||||
border-bottom-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-right.drop-element-attached-middle .drop-content {
|
||||
margin-right: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-right.drop-element-attached-middle .drop-content:before {
|
||||
left: 100%;
|
||||
top: 50%;
|
||||
margin-top: -10px;
|
||||
border-left-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-left.drop-element-attached-middle .drop-content {
|
||||
margin-left: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-left.drop-element-attached-middle .drop-content:before {
|
||||
right: 100%;
|
||||
top: 50%;
|
||||
margin-top: -10px;
|
||||
border-right-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-left.drop-target-attached-bottom .drop-content {
|
||||
margin-top: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-left.drop-target-attached-bottom .drop-content:before {
|
||||
bottom: 100%;
|
||||
left: 10px;
|
||||
border-bottom-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-right.drop-target-attached-bottom .drop-content {
|
||||
margin-top: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-right.drop-target-attached-bottom .drop-content:before {
|
||||
bottom: 100%;
|
||||
right: 10px;
|
||||
border-bottom-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-top .drop-content {
|
||||
margin-bottom: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-top .drop-content:before {
|
||||
top: 100%;
|
||||
left: 10px;
|
||||
border-top-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-top .drop-content {
|
||||
margin-bottom: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-top .drop-content:before {
|
||||
top: 100%;
|
||||
right: 10px;
|
||||
border-top-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-right.drop-target-attached-left .drop-content {
|
||||
margin-right: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-right.drop-target-attached-left .drop-content:before {
|
||||
top: 10px;
|
||||
left: 100%;
|
||||
border-left-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-left.drop-target-attached-right .drop-content {
|
||||
margin-left: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-top.drop-element-attached-left.drop-target-attached-right .drop-content:before {
|
||||
top: 10px;
|
||||
right: 100%;
|
||||
border-right-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-left .drop-content {
|
||||
margin-right: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-right.drop-target-attached-left .drop-content:before {
|
||||
bottom: 10px;
|
||||
left: 100%;
|
||||
border-left-color: #ebebeb; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-right .drop-content {
|
||||
margin-left: 10px; }
|
||||
.drop-element.drop-theme-hubspot-popovers.drop-element-attached-bottom.drop-element-attached-left.drop-target-attached-right .drop-content:before {
|
||||
bottom: 10px;
|
||||
right: 100%;
|
||||
border-right-color: #ebebeb; }
|
||||
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content {
|
||||
-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
|
||||
-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
|
||||
-webkit-border-radius: 2px;
|
||||
-moz-border-radius: 2px;
|
||||
-ms-border-radius: 2px;
|
||||
-o-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
padding: 3px;
|
||||
font-size: 13px; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content .drop-content-inner {
|
||||
border: 1px solid #dbdbdb;
|
||||
padding: 14px;
|
||||
background: white;
|
||||
overflow: hidden;
|
||||
width: 280px; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content .drop-content-inner .title {
|
||||
font-size: 18px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 12px;
|
||||
font-weight: normal;
|
||||
line-height: 1; }
|
||||
.drop-element.drop-theme-hubspot-popovers .drop-content .drop-content-inner p:last-child {
|
||||
margin-bottom: 0; }
|
1814
ui/assets/drop/drop.js
Executable file
1814
ui/assets/drop/drop.js
Executable file
File diff suppressed because it is too large
Load diff
2
ui/assets/drop/drop.min.js
vendored
Executable file
2
ui/assets/drop/drop.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue