Subversion Repositories LCARS

Rev

Rev 69 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69 Rev 301
Line 1... Line 1...
1
<?php \header('Content-Type: text/css; charset=UTF-8'); ?>
1
<?php \header('Content-Type: text/css; charset=UTF-8'); ?>
-
 
2
<?php
-
 
3
require_once 'css/least/Mixins.php';
-
 
4
use de\pointedears\css\least\Mixins;
-
 
5
?>
2
/*
6
/*
3
 * Accessible Pure CSS Tooltips
7
 * Accessible Pure CSS Tooltips
4
 * Copyright (C) 2008, 2011 Thomas 'PointedEars' Lahn <mehl@PointedEars.de>
8
 * Copyright (C) 2008, 2015 Thomas 'PointedEars' Lahn <mehl@PointedEars.de>
5
 *
9
 *
6
 * This program is free software: you can redistribute it and/or modify
10
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
11
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
12
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
13
 * (at your option) any later version.
10
 *
14
 *
11
 * This program is distributed in the hope that it will be useful,
15
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
18
 * GNU General Public License for more details.
15
 *
19
 *
16
 * You should have received a copy of the GNU General Public License
20
 * You should have received a copy of the GNU General Public License
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 */
22
 */
19
23
20
.tooltip {
24
.tooltip-container {
21
  position: relative;
25
  position: relative;
22
  border-bottom: 1px dotted black;
26
  border-bottom: 1px dotted black;
23
  text-decoration: none;
27
  text-decoration: none;
24
  cursor: help;
28
  cursor: help;
25
}
29
}
26
30
27
.tooltip span {
31
.tooltip-container .tooltip {
28
  display: none;
-
 
29
  visibility: hidden;
32
  visibility: hidden;
30
  opacity: 0;
33
  opacity: 0;
-
 
34
  <?php
-
 
35
    Mixins::transition('-property', 'opacity, visibility');
31
  -moz-transition: visibility 0.5s linear;
36
    Mixins::transition('-delay', '0.5s, 0.6s');
32
  -webkit-transition: visibility 0.5s linear;
37
    Mixins::transition('-duration', '0.1s, 0s');
-
 
38
  ?>
33
  position: absolute;
39
  position: absolute;
34
  width: 11em;
40
  width: 11em;
35
  height: auto;
41
  height: auto;
36
  padding: 2px 5px 5px 5px;
42
  padding: 2px 5px 5px 5px;
37
  border: 1px solid #666;
43
  border: 1px solid #666;
Line 39... Line 45...
39
  -moz-box-shadow: 6px 6px 6px #666;
45
  -moz-box-shadow: 6px 6px 6px #666;
40
  -webkit-box-shadow: 6px 6px 6px #666;
46
  -webkit-box-shadow: 6px 6px 6px #666;
41
  background-color: #ffc !important;
47
  background-color: #ffc !important;
42
  color: black;
48
  color: black;
43
  text-decoration: none;
49
  text-decoration: none;
-
 
50
  overflow: auto;
44
}
51
}
45
52
46
.tooltip>span {
53
.tooltip-container>.tooltip {
47
  width: auto;
54
  width: auto;
48
  min-width: 11em;
55
  min-width: 11em;
49
}
56
}
50
57
51
.tooltip:hover span,
58
.tooltip-container:hover .tooltip,
52
.tooltip:focus span
59
.tooltip-contaniner:focus .tooltip
53
{
60
{
54
  display: block;
-
 
55
  visibility: visible;
61
  visibility: visible;
56
  opacity: 1;
62
  opacity: 1;
-
 
63
  <?php
-
 
64
    Mixins::transition('-property', 'opacity');
-
 
65
    Mixins::transition('-delay', '0.5s');
-
 
66
    Mixins::transition('-duration', '0.1s');
-
 
67
  ?>
57
  z-index: 1337;
68
  z-index: 1337;
58
}
69
}
59
70
60
/* Copyright note */
71
/* Copyright note */
61
.tooltip span:after {
72
.tooltip-container .tooltip:after {
62
  display: block;
73
  display: block;
63
  margin: 0.5em 0 0 0;
74
  margin: 0.5em 0 0 0;
64
  border-top: 1px solid gray;
75
  border-top: 1px solid gray;
65
  padding-top: 0.5em;
76
  padding-top: 0.5em;
66
  background-color: transparent;
77
  background-color: transparent;
67
  content: "Accessible Pure\a0 CSS\a0 Tooltips\0d \0a\
78
  content: "Accessible Pure\a0 CSS\a0 Tooltips\0d \0a\
68
    Copyright\a0 \a9 \a0 2008,\a0 2010\a0 \a0 \
79
    Copyright\a0 \a9 \a0 2008,\a0 2015\a0 \a0 \
69
    Thomas\a0 'PointedEars'\a0 Lahn <mehl@PointedEars.de>.\0d \0a \
80
    Thomas\a0 'PointedEars'\a0 Lahn <mehl@PointedEars.de>.\0d \0a \
70
    Distributed under the\a0 GNU\a0 GPL\a0 v3 or later.";
81
    Distributed under the\a0 GNU\a0 GPL\a0 v3 or later.";
71
  color: gray;
82
  color: gray;
72
  font-size: xx-small;
83
  font-size: xx-small;
73
}
84
}
74
85
75
*>.tooltip span:after {
86
*>.tooltip-container .tooltip:after {
76
  color: black;
87
  color: black;
77
  opacity: 0.9;
88
  opacity: 0.9;
78
}
89
}
79
90
80
/* elements of the tooltip contents to hide when the tooltop is displayed */
91
/* elements of the tooltip contents to hide when the tooltip is displayed */
81
.tooltip span span {
92
.tooltip-container .tooltip .hidden {
82
  position: relative;
93
  position: relative;
83
  visibility: visible;
94
  visibility: visible;
84
  display: inline;
95
  display: inline;
85
  padding: 0;
96
  padding: 0;
86
  border: none;
97
  border: none;
87
}
98
}
88
99
89
.tooltip:hover span span,
100
.tooltip-container:hover .tooltip .hidden,
90
.tooltip:focus span span {
101
.tooltip-container:focus .tooltip .hidden {
91
  visibility: hidden;
102
  visibility: hidden;
92
  display: none;
103
  display: none;
93
}
104
}
94
105