Subversion Repositories LCARS

Compare Revisions

Last modification

Regard whitespace Rev 301 → Rev 69

/trunk/styles/tooltip.css
1,11 → 1,7
<?php \header('Content-Type: text/css; charset=UTF-8'); ?>
<?php
require_once 'css/least/Mixins.php';
use de\pointedears\css\least\Mixins;
?>
/*
* Accessible Pure CSS Tooltips
* Copyright (C) 2008, 2015 Thomas 'PointedEars' Lahn <mehl@PointedEars.de>
* Copyright (C) 2008, 2011 Thomas 'PointedEars' Lahn <mehl@PointedEars.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
21,7 → 17,7
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
 
.tooltip-container {
.tooltip {
position: relative;
border-bottom: 1px dotted black;
text-decoration: none;
28,14 → 24,12
cursor: help;
}
 
.tooltip-container .tooltip {
.tooltip span {
display: none;
visibility: hidden;
opacity: 0;
<?php
Mixins::transition('-property', 'opacity, visibility');
Mixins::transition('-delay', '0.5s, 0.6s');
Mixins::transition('-duration', '0.1s, 0s');
?>
-moz-transition: visibility 0.5s linear;
-webkit-transition: visibility 0.5s linear;
position: absolute;
width: 11em;
height: auto;
47,29 → 41,24
background-color: #ffc !important;
color: black;
text-decoration: none;
overflow: auto;
}
 
.tooltip-container>.tooltip {
.tooltip>span {
width: auto;
min-width: 11em;
}
 
.tooltip-container:hover .tooltip,
.tooltip-contaniner:focus .tooltip
.tooltip:hover span,
.tooltip:focus span
{
display: block;
visibility: visible;
opacity: 1;
<?php
Mixins::transition('-property', 'opacity');
Mixins::transition('-delay', '0.5s');
Mixins::transition('-duration', '0.1s');
?>
z-index: 1337;
}
 
/* Copyright note */
.tooltip-container .tooltip:after {
.tooltip span:after {
display: block;
margin: 0.5em 0 0 0;
border-top: 1px solid gray;
76,7 → 65,7
padding-top: 0.5em;
background-color: transparent;
content: "Accessible Pure\a0 CSS\a0 Tooltips\0d \0a\
Copyright\a0 \a9 \a0 2008,\a0 2015\a0 \a0 \
Copyright\a0 \a9 \a0 2008,\a0 2010\a0 \a0 \
Thomas\a0 'PointedEars'\a0 Lahn <mehl@PointedEars.de>.\0d \0a \
Distributed under the\a0 GNU\a0 GPL\a0 v3 or later.";
color: gray;
83,13 → 72,13
font-size: xx-small;
}
 
*>.tooltip-container .tooltip:after {
*>.tooltip span:after {
color: black;
opacity: 0.9;
}
 
/* elements of the tooltip contents to hide when the tooltip is displayed */
.tooltip-container .tooltip .hidden {
/* elements of the tooltip contents to hide when the tooltop is displayed */
.tooltip span span {
position: relative;
visibility: visible;
display: inline;
97,8 → 86,8
border: none;
}
 
.tooltip-container:hover .tooltip .hidden,
.tooltip-container:focus .tooltip .hidden {
.tooltip:hover span span,
.tooltip:focus span span {
visibility: hidden;
display: none;
}