~ruther/blog

ref: 32f0d65bfa5928b4abb81beab0dd807aff1b72cd blog/themes/poison/assets/css/tabs.css -rw-r--r-- 1.6 KiB
32f0d65b — Rutherther feat: Add about me 9 months ago
                                                                                
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
/* Style the tabs */
.tabs {
  overflow: hidden;
  border-bottom: 1px solid var(--text-color);
}

@media (min-width: 48em) {
    /* Style the buttons that are used to open the tabs content */
    .tabs button {
        font-family: Menlo, Monaco, "Courier New", monospace;
        font-size: 0.8em;
    background-color: var(--bkg-color);
    color: var(--text-color);
    float: left;
    border-top: 1px solid var(--text-color);
    border-right: 1px solid var(--text-color);
    border-bottom: none;
    border-left: 1px solid var(--text-color);
    border-radius: 5px 5px 0 0;
    margin: 0 0.2em 0 0;
    outline: none;
    cursor: pointer;
    padding: 0.5em 1em;
    transition: 0.3s;
    }
}

@media (max-width: 48em) {
    /* Style the buttons that are used to open the tabs content */
    .tabs button {
        font-family: Menlo, Monaco, "Courier New", monospace;
        font-size: 0.8em;
    background-color: var(--bkg-color);
    color: var(--text-color);
    float: left;
    border-top: 1px solid var(--text-color);
    border-right: 1px solid var(--text-color);
    border-bottom: none;
    border-left: 1px solid var(--text-color);
    border-radius: 5px 5px 0 0;
    margin: 0 0.2em 0 0;
    outline: none;
    cursor: pointer;
    padding: 0.7em 1.3em;
    transition: 0.3s;
    }

}

/* Change background color of buttons on hover */
.tabs button:hover {
  background-color: #ddd;
  color: var(--dark-gray);
}

/* Create an active/current tablink class */
.tabs button.active {
  background-color: #ccc;
  color: #000;
}

/* Style the tabs content */
.tabcontent {
  display: none;
  padding-top: 0.2em;
}