UNPKG

tooltipster

Version:

A flexible and extensible jQuery plugin for modern tooltips.

850 lines (753 loc) 15.4 kB
/*blue #0078c9 orange #ff5e3c */ @import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700); @font-face { font-family: 'icomoon'; src:url('../images/icons/icomoon.eot'); src:url('../images/icons/icomoond41d.eot?#iefix') format('embedded-opentype'), url('../images/icons/icomoon.svg#icomoon') format('svg'), url('../images/icons/icomoon.woff') format('woff'), url('../images/icons/icomoon.ttf') format('truetype'); font-weight: normal; font-style: normal; } ::selection { background: #0078c9; color: #fff; } ::-moz-selection { background: #0078c9; color: #fff; } body { color: #5d6365; font-size: 1em; line-height: 1.6em; font-family: 'Open Sans', sans-serif; font-weight: 300; background: #5d6365; } #background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; } #background img { min-height: 100%; min-width: 100%; } #background:before { content: ''; display: block; width: 100%; height: 20%; position: absolute; bottom: 0; background: -moz-linear-gradient(top, rgba(93,99,101,0) 0%, rgba(93,99,101,1) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(93,99,101,0)), color-stop(100%,rgba(93,99,101,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(93,99,101,0) 0%,rgba(93,99,101,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(93,99,101,0) 0%,rgba(93,99,101,1) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(93,99,101,0) 0%,rgba(93,99,101,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(93,99,101,0) 0%,rgba(93,99,101,1) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#005d6365', endColorstr='#5d6365',GradientType=0 ); /* IE6-9 */ } #wrapper { width: 100%; max-width: 1300px; margin: 0 auto; position: relative; box-shadow: 0.6em 0px 15px rgba(0,0,0,0.1), -0.6em 0px 15px rgba(0,0,0,0.1); } * { -webkit-transition: all 300ms; -moz-transition: all 300ms; -o-transition: all 300ms; -ms-transition: all 300ms; transition: all 300ms; } h1 { font-weight: 300; font-size: 1.4em; line-height: 1.4em; margin-bottom: 1.8em; } h2 { color: #a9b1b3; font-weight: 300; font-size: 4em; line-height: 1.4em; margin-bottom: 0.5em; } h3 { font-size: 2em; line-height: 1.4em; margin-bottom: 0.7em; padding-top: 1em; } h4 { font-size: 1.4em; line-height: 1.4em; font-weight: 400; margin-bottom: 1em; } h5 { margin-bottom: 1em; } p { margin-bottom: 1.5em; } strong { font-weight: 600; } a { text-decoration: none; color: #0078c9; font-weight: 600; } a:hover { color: #a9b1b3; } a.alt { color: rgba(255,255,255,0.75); } a.alt:hover { color: rgba(255,255,255,1); } a:before { font-family: 'icomoon'; font-style: normal; speak: none; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; } a.button { display: inline-block; padding: 0.8em 1em; border: 3px solid #ff5e3c; border-radius: 6px; color: #ff5e3c; background: #fff; font-weight: 600; } a.button:hover { background: #ff5e3c; color: #fff; } a.button.alt { color: #ff5e3c; border: none; } a.button.alt:hover { background: #ff5e3c; color: #fff; border: none; } a.button:active { -webkit-transform: scale3d(0.95,0.95,1); -moz-transform: scale3d(0.95,0.95,1); -o-transform: scale3d(0.95,0.95,1); -ms-transform: scale3d(0.95,0.95,1); transform: scale3d(0.95,0.95,1); } a.white { color: #fff; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,0); } a.white:hover { border-bottom: 1px solid rgba(255,255,255,1); } .clear { clear: both; } .row { overflow: hidden; } header { background: #fff; max-width: 1300px; box-shadow: 0px 3px 0px rgba(0,0,0,0.05); } header select { display: none; } section { width: 100%; margin: 0 auto; border-bottom: 2px dashed #e5eaeb; padding: 6em; background: #fff; box-sizing: border-box; -moz-box-sizing: border-box; } #talk { border-bottom: none !important; } h2 a, h3 a, h4 a { font-size: 0.8em; margin-left: 50px; } footer { width: 100%; margin: 0 auto; padding: 6em; background: #0078c9; color: #fff; box-sizing: border-box; -moz-box-sizing: border-box; text-align: center; } nav { width: 100%; max-width: 1300px; box-sizing: border-box; -moz-box-sizing: border-box; background: #fff; float: right; z-index: 2; text-align: right; } nav ul { display: block; margin: 0; width: auto; float: right; } nav li { display: inline-block; margin: 0; float: left; } nav a { display: inline-block; font-weight: 400; color: #a9b1b3; padding: 1.5em 0.75em; } nav a:hover { background: #0078c9; color: #fff; } .code { background: #e6eff1; border-radius: 4px; display: inline-block; font-family: monospace; padding: 0 6px; } .red { color: red; } #mobile-nav { display: none; } #social { width: auto; position: absolute; left: 0; top: 0; z-index: 3; } #social div { float: left; width: 90px; padding: 1.5em 2em; } #tweet { margin-top: 2px; } div#github { position: relative; bottom: 4px; margin-left: 0px; padding-top: 2em; width: 90px; } #github a { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; transition: none; } #templates { display: none; } pre { box-sizing: border-box; -moz-box-sizing: border-box; padding: 3em; background: #e6eff1; box-shadow: 0px 0px 20px rgba(0,0,0,0.0); margin-bottom: 4em; white-space: pre-wrap; } pre:hover { background: #fff; box-shadow: 0px 0px 20px rgba(0,0,0,0.3); } pre:last-child { margin-bottom: 0; } /* ------------------------------------- Welcome ------------------------------------- */ #welcome { text-align: center; padding: 12em 0 9em; color: #fff; width: 100%; border-bottom: none; background: rgba(0,0,0,0.3); } #welcome h1 { display: block; max-width: 635px; margin-left: auto; margin-right: auto; } #tooltipster { width: 100%; max-width: 258px; margin-bottom: 2em; } #browsers { } #browsers img { height: 42px; margin: 0 8px; opacity: 0.5; } #browsers img:hover { opacity: 1; } #download { font-size: 1.2em; line-height: 1.4em; margin-top: 30px; width: 100%; } #download a.button:before { content: "\64"; padding-right: 1em; font-size: 0.9em; } /* ------------------------------------- Demos ------------------------------------- */ #demos ul { display: block; width: 100%; font-size: 1.4em; line-height: 1.4em; } #demos li { display: block; width: 50%; font-weight: 400; margin-bottom: 1em; padding-top: 1.4em; padding-right: 2em; position: relative; box-sizing: border-box; -moz-box-sizing: border-box; float: left; } #demos span { display: block; border: 3px solid #ff5e3c; border-radius: 100%; box-sizing: border-box; -moz-box-sizing: border-box; width: 5em; height: 5em; background: #ff5e3c; color: #fff; font-size: 0.6em; line-height: 1em; font-weight: 700; padding: 1.8em 0 0 0; text-align: center; margin: -1.4em 1em 0 0; text-transform: uppercase; float: left; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; + -o-user-select: none; -webkit-user-select:none; user-select:none; } #demos span:hover { background: #fff; color: #5d6365; border: 3px solid #5d6365; cursor: pointer; } #demo-complex { position: absolute; } #demo-complex.complex { -webkit-animation: pulse 4s infinite; -moz-animation: pulse 4s infinite; -o-animation: pulse 4s infinite; animation: pulse 4s infinite; position: fixed; } @-webkit-keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(0.4); } 100% { transform: scale(1); } } @-moz-keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } } @-o-keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } } #demo-complex-li { z-index: 1; } #demo-complex-placeholder { visibility: hidden; } #demo-imagemap { position: relative; } #demo-imagemap:hover { background: #ff5e3c !important; border: 3px solid #ff5e3c !important; cursor: auto !important; } #demo-imagemaparea { cursor: pointer; } #demo-imagemapped { left: 50%; margin: -23px 0 0 -23px; position: absolute; top: 50%; } #demo-position { margin-bottom: 40px!i; } #demo-position-grid { border: 2px dashed lightgrey; border-bottom: none; box-sizing: border-box; display: inline-block; left: 80px; padding: 5px 20px; position: absolute; top: 20px; width: 220px; } #demos span#demo-smart { cursor: move; cursor: grab; cursor: -moz-grab; cursor: -webkit-grab; } #grouped_icons input { font-size: 30px; } #grouped_separator { display: inline-block; margin: 0 50px; } /* ------------------------------------- Tooltips ------------------------------------- */ #demos span.tooltipster-icon { cursor: help; margin-left: 4px; background: #0078c9; border: 3px solid #0078c9; width: 2.3em; height: 2.3em; padding: 0.4em 0 0; margin: 2em 0 0 -3em; } .tooltipster-content { font-family: 'Open Sans', sans-serif; } .tooltipster-content img { float: left; margin: 2px 12px 0 0; border: 2px solid black; } .tooltipster-content p { margin: 0; } .tooltipster-content a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); } .tooltipster-content a:hover { color: #fff; border-bottom: 1px solid rgba(255,255,255,1); } /* Pink theme for sideTip */ .tooltipster-sidetip.tooltipster-pink .tooltipster-box { background: url(../images/pattern-navy.png); border: none; color: #fff; border-radius: 5px; box-shadow: inset -3px -3px 0 #ff3c70; } .tooltipster-sidetip.tooltipster-bottom.tooltipster-pink .tooltipster-box { margin-top: 20px; } .tooltipster-sidetip.tooltipster-left.tooltipster-pink .tooltipster-box { margin-right: 20px; } .tooltipster-sidetip.tooltipster-right.tooltipster-pink .tooltipster-box { margin-left: 20px; } .tooltipster-sidetip.tooltipster-top.tooltipster-pink .tooltipster-box { margin-bottom: 20px; } .tooltipster-sidetip.tooltipster-pink .tooltipster-content { font-family: 'Courier', monospace; padding: 15px 18px; } .tooltipster-sidetip.tooltipster-pink .tooltipster-arrow { } .tooltipster-sidetip.tooltipster-bottom.tooltipster-pink .tooltipster-arrow { height: 20px; margin-left: -6px; width: 12px; } .tooltipster-sidetip.tooltipster-left.tooltipster-pink .tooltipster-arrow { height: 12px; margin-top: -6px; width: 20px; } .tooltipster-sidetip.tooltipster-right.tooltipster-pink .tooltipster-arrow { height: 12px; margin-top: -6px; width: 20px; } .tooltipster-sidetip.tooltipster-top.tooltipster-pink .tooltipster-arrow { height: 20px; margin-left: -6px; width: 12px; } .tooltipster-sidetip.tooltipster-bottom.tooltipster-pink .tooltipster-arrow-uncropped { top: -20px; } .tooltipster-sidetip.tooltipster-right.tooltipster-pink .tooltipster-arrow-uncropped { left: -20px; } .tooltipster-sidetip.tooltipster-pink .tooltipster-arrow-background { display: none; } .tooltipster-sidetip.tooltipster-pink .tooltipster-arrow-border { border: 6px solid transparent; } .tooltipster-sidetip.tooltipster-bottom.tooltipster-pink .tooltipster-arrow-border { border-bottom: 20px solid #2a2a2a; border-top: 20px solid transparent; } .tooltipster-sidetip.tooltipster-left.tooltipster-pink .tooltipster-arrow-border { border-left: 20px solid #ff3c70; border-right: 20px solid transparent; } .tooltipster-sidetip.tooltipster-right.tooltipster-pink .tooltipster-arrow-border { border-left: 20px solid transparent; border-right: 20px solid #2a2a2a; } .tooltipster-sidetip.tooltipster-top.tooltipster-pink .tooltipster-arrow-border { border-bottom: 20px solid transparent; border-top: 20px solid #ff3c70; } .tooltip_slow { height: 60px; line-height: 60px; width: 60px; } /* ------------------------------------- Options and methods ------------------------------------- */ table { width: 100%; } table h4 { margin-bottom: 0; } tr:nth-child(odd) { background: #f4f5f7; } td { padding: 1em; } td h4 { font-family: 'Courier', monospace; color: #0078c9; } #table_options td:nth-child(2) { width: 150px; } .table_methods td:nth-child(2) { width: 150px; } /* ------------------------------------- Themes ------------------------------------- */ #themes { margin: 60px 0 50px; } #themes div { display: inline-block; height: 60px; line-height: 60px; margin: 0 1em 1em 0; padding: 0px 20px; vertical-align: top; } .tooltipster-default-preview { border-radius: 5px; border: 2px solid #000; background: #565656; color: #fff; } .tooltipster-light-preview { border-radius: 5px; border: 1px solid #cccccc; background: #ededed; color: #666666; } .tooltipster-borderless-preview { border-radius: 5px; background: #1b1b1b; background: rgba(10,10,10,0.90); color: white; } .tooltipster-punk-preview { border-radius: 5px; border-bottom: 3px solid #f71169; background: #2a2a2a; color: #fff; } .tooltipster-noir-preview { border-radius: 0px; border: 3px solid black; background: #fff; color: black; } .tooltipster-shadow-preview { border-radius: 5px; background: #fff; box-shadow: 0px 0px 14px rgba(0,0,0,0.3); color: #8d8d8d; } /* ------------------------------------- Talk ------------------------------------- */ #talk h3 { margin-bottom: 1em; } /* ------------------------------------- Breakpoints ------------------------------------- */ @media all and (max-width : 1100px) { #tweet, #gplus { display: none; } #demos li { width: 100%; } table, tr, td { display: block; } td { padding: 2em 2em 0 2em; } td:last-child { padding-bottom: 2em; } } @media all and (max-width : 920px) { #demos ul { width: 100%; padding: 0; } } @media all and (max-width : 820px) { nav ul { display: none; } #social div { padding: 0.5em 0.7em; } header { padding: 0; } header select { display: block; float: right; margin: 1em 1em; } section { padding: 3em; } #welcome { padding: 7.4em 3em 6em; } #download span { display: block; margin-top: 0.5em; } } @media all and (max-width : 450px) { table h4 { font-size: 1em; line-height: 1em; } section { padding: 2em; } h2 { font-size: 3em; line-height: 1.2em; margin-bottom: 0.23em; } h3 { font-size: 1.4em; line-height: 1.4em; margin-bottom: 1.3em; } h4 { font-size: 1.2em; } pre { padding: 1em; } }