summaryrefslogtreecommitdiff
path: root/assets/css/src/sidebar.css
blob: 467e48b1c6c1e762943637a77129411d97bbba3d (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
.sidebar-container {
    height: 100%;
    display: flex;
    flex-flow: row
}

@media (max-width: 768px) {
    .sidebar-container {
        flex-flow: wrap
    }
}

.sidebar-content {
    padding-left: 10px;
    flex: 1 100%;
    max-width: 85%;
    overflow-wrap: break-word
}

@media (max-width: 768px) {
    .sidebar-content {
        padding-left: 0;
        order: 1;
        max-width: 100%
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) {
    .sidebar-content {
        max-width: 75%
    }
}

.sidebar {
    max-width: 25%;
    min-width: 230px
}

@media (max-width: 768px) {
    .sidebar {
        flex: 1 auto;
        order: 2
    }
}

.sidebar h2 {
    margin-top: 0
}

.sidebar>ul a {
    text-decoration: none;
    color: var(--color-light);
    font-weight: 300
}

.sidebar>ul a:hover {
    color: var(--color-primary);
}

.sidebar>ul li {
    list-style-type: none;
    line-height: 35px;
    border-bottom: 1px dotted #efefef;
    padding-left: 13px
}

.sidebar>ul li:hover {
    border-left: 5px solid #555;
    padding-left: 8px
}

.sidebar>ul li.active {
    border-left: 5px solid #333;
    padding-left: 8px
}

.sidebar>ul li.active a {
    color: var(--color-primary);
    font-weight: bold
}

.sidebar-icons>ul li {
    padding-left: 0
}

.sidebar-icons>ul li:hover,
.sidebar-icons>ul li.active {
    padding-left: 0;
    border-left: none
}

.sidebar>ul li.active a:focus,
.sidebar>ul li.active a:hover {
    color: var(--color-medium);
}

.sidebar>ul li:last-child {
    margin-bottom: 15px
}