Last change
on this file since f08e256 was d7b7f00, checked in by Gorazd Biskoski <gorazdbiskoskii@…>, 4 weeks ago |
Add project
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | .sidebar {
|
---|
2 | width: 260px;
|
---|
3 | border-right: 1px solid #e0e0e0;
|
---|
4 | display: flex;
|
---|
5 | flex-direction: column;
|
---|
6 | justify-content: flex-start;
|
---|
7 | }
|
---|
8 |
|
---|
9 | .sidebar ul {
|
---|
10 | list-style: none;
|
---|
11 | flex-grow: 1;
|
---|
12 | padding-inline-start: 0;
|
---|
13 | margin-top: 0;
|
---|
14 | width: 95%;
|
---|
15 | padding-right: 0;
|
---|
16 | }
|
---|
17 |
|
---|
18 | .sidebar ul li {
|
---|
19 | padding: 10px 15px;
|
---|
20 | color: #555;
|
---|
21 | cursor: pointer;
|
---|
22 | position: relative;
|
---|
23 | border-radius: 4px;
|
---|
24 | }
|
---|
25 |
|
---|
26 | .sidebar ul li.active,
|
---|
27 | .sidebar ul li:hover {
|
---|
28 | color: #000;
|
---|
29 | background-color: #e7f3ff;
|
---|
30 | font-weight: bold;
|
---|
31 | transition-duration: 100ms;
|
---|
32 | width: 100%;
|
---|
33 | padding-right: 0;
|
---|
34 | }
|
---|
35 |
|
---|
36 | .sidebar ul li.active::after {
|
---|
37 | content: '';
|
---|
38 | position: absolute;
|
---|
39 | top: 0;
|
---|
40 | right: 0;
|
---|
41 | height: 100%;
|
---|
42 | width: 4px;
|
---|
43 | background-color: #FFA500;
|
---|
44 | }
|
---|
45 |
|
---|
46 | @media (max-width: 768px) {
|
---|
47 | .sidebar {
|
---|
48 | width: 100%;
|
---|
49 | border-right: none;
|
---|
50 | border-bottom: 1px solid #e0e0e0;
|
---|
51 | }
|
---|
52 |
|
---|
53 | .sidebar ul li {
|
---|
54 | text-align: center;
|
---|
55 | padding: 15px;
|
---|
56 | }
|
---|
57 |
|
---|
58 | .sidebar ul li.active::after {
|
---|
59 | width: 100%;
|
---|
60 | height: 4px;
|
---|
61 | top: auto;
|
---|
62 | bottom: 0;
|
---|
63 | right: 0;
|
---|
64 | left: 0;
|
---|
65 | }
|
---|
66 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.