summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/res/smw/ext.smw.dropdown.css
blob: d4c08903ca5b3e668225a99ab6d668704a376417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*!
 * This file is part of the Semantic MediaWiki Extension
 * @see https://www.semantic-mediawiki.org/
 *
 * @section LICENSE
 * 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
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 *
 * @since 3.0
 *
 * @file
 * @ingroup SMW
 *
 * @licence GNU GPL v2+
 *
 * https://codepen.io/mbdavid/pen/xGLaBJ
 */

.smw-dropdown {
	position: relative;
	display: inline-block;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
}

.smw-dropdown > a,
.smw-dropdown > button {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
	background-color: white;
	border: 1px solid #ccc;
	padding: 6px 20px 6px 10px;
	border-radius: 4px;
	display: inline-block;
	color: black;
	text-decoration: none;
}

.smw-dropdown > a:before,
.smw-dropdown > button:before {
	position: absolute;
	right: 12px;
	top: 12px;
	content: '';
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid black;
}

.smw-dropdown input[type=checkbox] {
	position: absolute;
	display: block;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	margin: 0px;
	opacity: 0;
}

.smw-dropdown input[type=checkbox]:checked {
	position: fixed;
	z-index: +0;
	top: 0px; left: 0px;
	right: 0px; bottom: 0px;
}

.smw-dropdown .smw-dropdown-menu {
	position: absolute;
	top: 31px;
	border: 1px solid #ccc;
	border-radius: 3px;
	left: 0px;
	list-style: none;
	padding: 4px 0px !important;
	display: none;
	background-color: white;
	box-shadow: 0 3px 6px rgba( 0, 0, 0, .175 );
	margin: 0 0 0 0 !important;
}

.smw-dropdown input[type=checkbox]:checked + .smw-dropdown-menu {
	display: block;
}

.smw-dropdown .smw-dropdown-menu li {
	display: block;
	padding: 4px 20px;
	white-space: nowrap;
	min-width: 100px;
	margin-bottom: 0;
}

.smw-dropdown .smw-dropdown-menu li:hover {
	background-color: #f5f5f5;
	cursor: pointer;
}

.smw-dropdown .smw-dropdown-menu li a {
	text-decoration: none;
	display: block;
	color: black
}

.smw-dropdown .smw-dropdown-menu .divider {
	height: 1px;
	margin: 9px 0;
	overflow: hidden;
	background-color: #e5e5e5;
	font-size: 1px;
	padding: 0;
}

.smw-dropdown-menu::before {
	top: -16px;
	right: 9px;
	left: auto;
	border: 8px solid transparent;
	border-bottom-color: rgba( 27, 31, 35, 0.15 );
}

.smw-dropdown-menu::before {
	top: -16px;
	right: 7px;
	left: auto;
	border: 8px solid transparent;
	border-bottom-color: rgba( 27, 31, 35, 0.15 );
	position: absolute;
	display: inline-block;
	content: '';
}

.smw-dropdown-menu::after {
	position: absolute;
	display: inline-block;
	content: '';
	top: -14px;
	right: 8px;
	left: auto;
	border: 7px solid transparent;
	border-bottom-color: #fff;
}