UNPKG

popoto

Version:

Graph based search interface for Neo4j database.

901 lines (706 loc) 14.1 kB
/* * Copyright (C) 2014-2018 Frederic Ciminera * * Popoto.js is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Popoto.js is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * contact@popotojs.com */ /***********************************************************/ /* Custom font containing a set of icons */ @font-face { font-family: 'popoto'; src: url('font/popoto/popoto.eot?mrx3j7'); src: url('font/popoto/popoto.eot?mrx3j7#iefix') format('embedded-opentype'), url('font/popoto/popoto.ttf?mrx3j7') format('truetype'), url('font/popoto/popoto.woff?mrx3j7') format('woff'), url('font/popoto/popoto.svg?mrx3j7#popoto') format('svg'); font-weight: normal; font-style: normal; } [class^="ppt-icon"], [class*=" ppt-icon"] { /* use !important to prevent issues with browser extensions that change fonts */ font-family: 'popoto', sans-serif !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .ppt-icon-voronoi:before { content: "\e901"; } .ppt-icon-text:before { content: "\e906"; } .ppt-icon-earth:before { content: "\e900"; } .ppt-icon-book:before { content: "\e91f"; } .ppt-icon-books:before { content: "\e920"; } .ppt-icon-file-text:before { content: "\e922"; } .ppt-icon-profile:before { content: "\e923"; } .ppt-icon-file-empty:before { content: "\e924"; } .ppt-icon-files-empty:before { content: "\e925"; } .ppt-icon-file-text2:before { content: "\e926"; } .ppt-icon-paste:before { content: "\e92d"; } .ppt-icon-spinner:before { content: "\e97a"; } .ppt-icon-spinner4:before { content: "\e97d"; } .ppt-icon-spinner5:before { content: "\e97e"; } .ppt-icon-cog:before { content: "\e994"; } .ppt-icon-pie-chart:before { content: "\e99a"; } .ppt-icon-stats-bars2:before { content: "\e99d"; } .ppt-icon-menu3:before { content: "\e9bf"; } .ppt-icon-menu4:before { content: "\e9c0"; } .ppt-icon-eye:before { content: "\e9ce"; } .ppt-icon-eye-blocked:before { content: "\e9d1"; } .ppt-icon-star-empty:before { content: "\e9d7"; } .ppt-icon-star-half:before { content: "\e9d8"; } .ppt-icon-star-full:before { content: "\e9d9"; } .ppt-icon-move-up:before { content: "\ea46"; } .ppt-icon-move-down:before { content: "\ea47"; } .ppt-icon-sort-alpha-asc:before { content: "\ea48"; } .ppt-icon-sort-alpha-desc:before { content: "\ea49"; } .ppt-icon-sort-numeric-asc:before { content: "\ea4a"; } .ppt-icon-sort-numberic-desc:before { content: "\ea4b"; } .ppt-icon-sort-amount-asc:before { content: "\ea4c"; } .ppt-icon-sort-amount-desc:before { content: "\ea4d"; } .ppt-icon-scissors:before { content: "\ea5a"; } .ppt-icon-video-camera:before { content: "\e914"; } .ppt-icon-camera:before { content: "\e90f"; } .ppt-icon-play:before { content: "\e912"; } .ppt-icon-images:before { content: "\e90e"; } .ppt-icon-image:before { content: "\e90d"; } .ppt-icon-home3:before { content: "\e902"; } .ppt-icon-newspaper:before { content: "\e904"; } .ppt-icon-office:before { content: "\e903"; } .ppt-icon-chart-donut:before { content: "\e905"; } .ppt-icon-logo:before { content: "\ee89"; } .ppt-icon-logo-1:before { content: "\ee8a"; } .ppt-icon-logo-2:before { content: "\ee8b"; } .ppt-icon-logo-3:before { content: "\ee8c"; } .ppt-icon-user:before { content: "\f007"; } .ppt-icon-film:before { content: "\f008"; } .ppt-icon-search-plus:before { content: "\f00e"; } .ppt-icon-search-minus:before { content: "\f010"; } .ppt-icon-power-off:before { content: "\f011"; } .ppt-icon-cog2:before { content: "\f013"; } .ppt-icon-repeat:before { content: "\f01e"; } .ppt-icon-refresh:before { content: "\f021"; } .ppt-icon-tag:before { content: "\f02b"; } .ppt-icon-tags:before { content: "\f02c"; } .ppt-icon-image2:before { content: "\f03e"; } .ppt-icon-map-marker:before { content: "\f041"; } .ppt-icon-arrows:before { content: "\f047"; } .ppt-icon-plus-circle:before { content: "\f055"; } .ppt-icon-minus-circle:before { content: "\f056"; } .ppt-icon-times-circle:before { content: "\f057"; } .ppt-icon-check-circle:before { content: "\f058"; } .ppt-icon-question-circle:before { content: "\f059"; } .ppt-icon-info-circle:before { content: "\f05a"; } .ppt-icon-crosshairs:before { content: "\f05b"; } .ppt-icon-times-circle-o:before { content: "\f05c"; } .ppt-icon-check-circle-o:before { content: "\f05d"; } .ppt-icon-ban:before { content: "\f05e"; } .ppt-icon-expand:before { content: "\f065"; } .ppt-icon-compress:before { content: "\f066"; } .ppt-icon-exclamation-circle:before { content: "\f06a"; } .ppt-icon-eye2:before { content: "\f06e"; } .ppt-icon-eye-slash:before { content: "\f070"; } .ppt-icon-exclamation-triangle:before { content: "\f071"; } .ppt-icon-calendar:before { content: "\f073"; } .ppt-icon-folder:before { content: "\f07b"; } .ppt-icon-folder-open:before { content: "\f07c"; } .ppt-icon-key:before { content: "\f084"; } .ppt-icon-cogs:before { content: "\f085"; } .ppt-icon-thumbs-o-up:before { content: "\f087"; } .ppt-icon-thumbs-o-down:before { content: "\f088"; } .ppt-icon-sign-out:before { content: "\f08b"; } .ppt-icon-thumb-tack:before { content: "\f08d"; } .ppt-icon-sign-in:before { content: "\f090"; } .ppt-icon-upload:before { content: "\f093"; } .ppt-icon-arrow-circle-left:before { content: "\f0a8"; } .ppt-icon-arrow-circle-right:before { content: "\f0a9"; } .ppt-icon-arrow-circle-up:before { content: "\f0aa"; } .ppt-icon-arrow-circle-down:before { content: "\f0ab"; } .ppt-icon-globe:before { content: "\f0ac"; } .ppt-icon-wrench:before { content: "\f0ad"; } .ppt-icon-filter:before { content: "\f0b0"; } .ppt-icon-group:before { content: "\f0c0"; } .ppt-icon-flask:before { content: "\f0c3"; } .ppt-icon-rotate-left:before { content: "\f0e2"; } .ppt-icon-calendar-o:before { content: "\f133"; } .ppt-icon-chevron-circle-left:before { content: "\f137"; } .ppt-icon-chevron-circle-right:before { content: "\f138"; } .ppt-icon-chevron-circle-up:before { content: "\f139"; } .ppt-icon-chevron-circle-down:before { content: "\f13a"; } .ppt-icon-ellipsis-h:before { content: "\f141"; } .ppt-icon-ellipsis-v:before { content: "\f142"; } .ppt-icon-thumbs-up:before { content: "\f164"; } .ppt-icon-thumbs-down:before { content: "\f165"; } .ppt-icon-arrow-circle-o-right:before { content: "\f18e"; } .ppt-icon-arrow-circle-o-left:before { content: "\f190"; } .ppt-icon-share-alt:before { content: "\f1e0"; } .ppt-icon-plug:before { content: "\f1e6"; } .ppt-icon-user-plus:before { content: "\f234"; } .ppt-icon-user-times:before { content: "\f235"; } .ppt-icon-calendar-plus-o:before { content: "\f271"; } .ppt-icon-calendar-minus-o:before { content: "\f272"; } .ppt-icon-calendar-times-o:before { content: "\f273"; } .ppt-icon-calendar-check-o:before { content: "\f274"; } .ppt-icon-user-circle:before { content: "\f2bd"; } .ppt-icon-user-circle-o:before { content: "\f2be"; } /**********************************************************************************/ .ppt-body { background-color: #2e3138; margin: 22px; font-family: sans-serif; color: #ffffff; } /* unvisited link */ .ppt-body a:link { color: #8bb71a; } /* visited link */ .ppt-body a:visited { color: #6e981a; } /* mouse over link */ .ppt-body a:hover { color: #abd71a; } /* selected link */ .ppt-body a:active { color: #abd71a; } /* Main HTML container element containing the taxonomy filter and graph */ .ppt-container-graph { background-color: #22252a; height: 750px; padding: 0 0 0; border-bottom-right-radius: 5px 5px; border-bottom-left-radius: 5px 5px; overflow: hidden; } /**************************/ /* Taxonomy Filter*/ .ppt-taxo-nav { overflow: auto; padding: 18px 18px 18px 18px; background-color: #444951; height: 100%; float: left; white-space: nowrap; } .ppt-taxo-nav.disabled { display: none; } .ppt-taxo-ul { list-style-type: none; display: block; vertical-align: top; padding: 0 0 0 0; margin: 0; } .ppt-taxo-sub-ul { list-style-type: none; display: block; vertical-align: top; padding: 0 0 0 1em; margin: 0; } .ppt-taxo-nav li { } .ppt-taxo__span-icon:before { content: "\f02b"; color: #8bb71a; } /**************************/ /* Div containing SVG element*/ .ppt-div-graph { position: relative; background-color: #22252a; height: 100%; padding: 0; border-bottom-right-radius: 5px 5px; overflow: hidden; } #popoto-graph:fullscreen { width: 100%; height: 100%; } #popoto-graph:-webkit-full-screen { width: 100%; height: 100%; } #popoto-graph:-moz-full-screen { width: 100%; height: 100%; } #popoto-graph:-ms-fullscreen { width: 100%; height: 100%; } /**********************************************************************************/ .ppt-header { padding-left: 16px; padding-right: 16px; border-radius: 5px 5px; height: 70px; min-width: 560px; line-height: 70px; font-weight: bold; font-size: 22px; background: #525863; background-position-x: 20px; background-position-y: 50%; } .ppt-section-header { min-width: 560px; padding-left: 18px; padding-right: 18px; background-color: #525863; height: 68px; line-height: 67px; margin-top: 22px; border-top-right-radius: 5px 5px; border-top-left-radius: 5px 5px; font-weight: bold; } .ppt-section-tips { min-width: 560px; padding-left: 18px; padding-right: 18px; background-color: #525863; margin-top: 22px; border-top-left-radius: 5px; border-top-right-radius: 5px; font-size: 14px; line-height: 35px; } .ppt-section-tips a { color: #8bb71a; } .ppt-section-tips p { margin-bottom: 0; margin-top: 0; } .ppt-toolbar { padding: 12px; position: absolute; right: 0; } .ppt-header-span { color: #8bb71a; } .ppt-section-main { } .ppt-container-query { text-align: center; margin-top: 22px; min-width: 560px; background-color: #22252a; border-radius: 5px 5px; padding: 18px; } .ppt-container-cypher { text-align: center; margin-top: 22px; min-width: 560px; background-color: #22252a; border-radius: 5px 5px; padding: 18px; } .ppt-container-results { width: 100%; min-width: 300px; background-color: #22252a; padding: 0; border-bottom-right-radius: 5px 5px; border-bottom-left-radius: 5px 5px; overflow: auto; } .ppt-footer { padding-left: 16px; padding-right: 16px; background-color: #525863; border-radius: 5px 5px; height: 70px; min-width: 560px; line-height: 70px; font-weight: bold; font-size: 22px; } /*****************************/ .ppt-menu { vertical-align: middle; cursor: pointer; margin-left: 12px; font-size: 2em; color: #7b7e84; } .ppt-menu.taxonomy:before { content: "\f02c"; } .ppt-menu.reset:before { content: "\f0e2"; } .ppt-menu.relation:before { content: "\e905"; } .ppt-menu.fit-text:before { content: "\e906"; } .ppt-menu.voronoi:before { content: "\e901"; } .ppt-menu.fullscreen:before { content: "\f065"; } .ppt-menu.center:before { content: "\f05b"; } .ppt-menu.save:before { content: "\f093"; } .ppt-menu.taxonomy:hover { color: #f0b017; } .ppt-menu.reset:hover { color: #f0b017; } .ppt-menu.relation:hover { color: #f0b017; } .ppt-menu.fit-text:hover { color: #f0b017; } .ppt-menu.voronoi:hover { color: #f0b017; } .ppt-menu.fullscreen:hover { color: #f0b017; } .ppt-menu.center:hover { color: #f0b017; } .ppt-menu.save:hover { color: #f0b017; } .ppt-count { cursor: pointer; color: #2aa1d3; } .ppt-label { cursor: pointer; } .ppt-label:hover { color: #f0b017; } .ppt-result { background-color: #444951; padding: 9px 18px; margin: 1px 0 0; color: white; } .ppt-result:hover { background-color: #525863; } .ppt-result-table { } .ppt-result-table th, td { text-align: left; } /****************** Query span Styles *************************/ /* P elements containing query constraints */ .ppt-query-constraint-elements { } /* P elements containing query inactive constraints */ .ppt-query-elements { } .ppt-span { color: #ffffff; } .ppt-span-link { color: #ffffff; } .ppt-span-root { color: #2aa1d3; cursor: pointer; } .ppt-span-root-value { color: #8f5bcc; cursor: pointer; } .ppt-span-choose { color: #8bb71a; cursor: pointer; } .ppt-span-group { color: #8e8e8e; cursor: pointer; } .ppt-span-value { color: #f0b017; cursor: pointer; } .ppt-span-link.hover { color: #ee4e10; } .ppt-span-root.hover { color: #ee4e10; } .ppt-span-root-value.hover { color: #ee4e10; } .ppt-span-choose.hover { color: #ee4e10; } .ppt-span-group.hover { color: #ee4e10; } .ppt-span-value.hover { color: #ee4e10; }