Subversion Repositories LCARS

Rev

Rev 301 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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