summaryrefslogtreecommitdiffstats
path: root/doc/global/template/style/htmltabs.css
blob: f904fb1635d75955203f284c134aee5c17c80413 (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
/*
-----------
HTML Tabs
-----------
*/

.blankline {
  height: 1em;
  display: block;
}

input[type="radio"],
input[type="radio"] ~ .tabcontent {
  display: none;
  margin: 0;
}

input[type="radio"] + label {
  display: inline-block;
}

input[type="radio"] + label {
  margin-left: 0;
  padding: 10px 10px 8px;
  background-image: linear-gradient(to right, #09102b, #53586b);
  color: #ccc;
  position: relative;
  clip-path: polygon(10px 0%, 100% 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% calc(100% - 10px), 0% 10px);
  margin-right: 2px;
  min-width: 50px;
  cursor: pointer;
}

input[type="radio"]:hover + label,
input[type="radio"]:checked + label {
  opacity: 0.75;
  transition: all ease 0.3s;
}

input[type="radio"]:checked + label {
  color: #41cd52;
}

/* Some styling for the content */
div.tabcontent {
  border-left: 3px solid #ccc;
  border-top: 1px solid #ccc;
}

div.tabcontent >:first-child:not(.pre) {
  padding-top: 2px;
}

div.tabcontent >:not(.pre) {
  padding-left: 10px;
}

div.tabcontent pre {
  margin-top: 0;
}