Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tabs.scss « shortcodes « sass « assets - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3978a4bc2a9aa8c847ac7dd303b3162fbcfa2b99 (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
.tabs {
    border: 1px solid #e9ecef;
    border-radius: .25rem;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;

    label {
        display: inline-block;
        padding: 0.3em 1em;
        border-bottom: 2px transparent;
        cursor: pointer;
    }


    >input[type=radio] {
        height: 0;
        width: 0;
        overflow: hidden;
        opacity: 0;
        position: absolute;

        &:checked+label {
            border-bottom: 2px solid #05b;

            +.tab {
                display: block;
            }
        }
    }


    >div.tab {
        display: none;
        order: 999;
	    width: 100%;
	    border-top: 1px solid #f8f9fa;
	    padding: 1em 1em;
    }
}