summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/res/smw/util/ext.smw.vertical.tabs.css
blob: 928943a8a616bdee08fcf400864ebe411b545021 (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
154
155
156
157
158
159
160
/*!
 * This file is part of the Semantic MediaWiki Extension
 * @see https://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
 *
 * @see https://www.w3schools.com/howto/howto_js_vertical_tabs.asp
 *
 * @since 3.0
 *
 * @file
 * @ingroup SMW
 *
 * @licence GNU GPL v2+
 * @author mwjames
 */

/* Style the tab */
div.smw-vtab-nav {
    margin-bottom: 10px;
    opacity: 0.5;
    pointer-events: none;
}

div.smw-vtab-nav.nav-right {
    float: right;
    margin-left: 10px;
}

div.smw-vtab-nav.nav-left {
    float: left;
    margin-right: 20px;
}

@media ( min-width: 300px ) {
    div.smw-vtab-nav {
        width: 25%;
        word-wrap: break-word;
    }
}

@media ( min-width: 600px ) {
    div.smw-vtab-nav {
        width: 250px;
    }
}

/* Style the buttons inside the tab */
div.smw-vtab-nav button {
    display: block;
    color: black;
    padding: 12px 16px;
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2em;
    background-color: #fff;
    color: #428bca;
    /* font-family: "Nimbus Sans L", "Liberation Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; */
}

div.smw-vtab-nav button a {
    color: #428bca;
    text-decoration: none;
}

div.smw-vtab-nav.nav-right button {
    border-left: 1px solid #ddd;
    text-align: left;
}

div.smw-vtab-nav.nav-left button {
    border-right: 1px solid #ddd;
    text-align: right;
}

/* Change background color of buttons on hover */
div.smw-vtab-nav button:hover {
    background-color: #eee;
    border-radius: 0 4px 4px 0;
    border-color: #ddd #ddd #ddd #ddd;
}

div.smw-vtab-nav.nav-right button:hover {
    border-left: 1px solid #ddd;
    border-color: #ddd #ddd #ddd #ddd;
}

div.smw-vtab-nav.nav-left button:hover {
    border-right: 1px solid #ddd;
    border-color: #ddd #ddd #ddd #ddd;
}

/* Create an active/current "tab button" class */
div.smw-vtab-nav button.active {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-style: normal;
    color: black;
}

div.smw-vtab-nav.nav-right button.active {
    border-radius: 0 4px 4px 0;
}

div.smw-vtab-nav.nav-left button.active {
    border-radius: 4px 0 0 4px;
}

div.smw-vtab-nav button.active a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

div.smw-vtab-nav.nav-right button.active, div.smw-vtab-nav.nav-right button.active a {
    border-left: 0px;
    border-color: #ddd #ddd #ddd #ddd;
}

div.smw-vtab-nav.nav-left button.active, div.smw-vtab-nav.nav-left button.active a {
    border-right: 0px;
    border-color: #ddd #ddd #ddd #ddd;
}

/* Style the tab content */
.smw-vtab-content {
    padding: 0px 0px;
    border: 1px solid #ccc;
    border: none;
    min-height: 200px;
}

div.smw-vtab-nav .smw-vtab-warning a {
    color: #ffc876;
}

div.smw-vtab-nav .smw-vtab-warning.active a {
    color: #eb8c00;
}

div.smw-vtab-nav .smw-vtab-warning a::before, div.smw-vtab-nav .smw-vtab-warning.active a::before {
    content: "⚠ ";
}