-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
84 lines (73 loc) · 1.62 KB
/
style.css
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
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #f5f5f5;
}
/* Sidebar styles */
.sidebar {
list-style-type: none;
margin: 0;
padding: 0;
width: 250px;
background-color: #212529; /* Dark background color */
color: #ffffff; /* Text color */
position: fixed;
height: 100%;
overflow: auto;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: width 0.3s ease;
}
.sidebar li a {
display: block;
color: #ffffff;
padding: 16px;
text-decoration: none;
border-bottom: 1px solid #444; /* Separator color */
transition: background-color 0.3s ease;
}
.sidebar li a.active {
background-color: #17a2b8; /* Active link color */
}
.sidebar li a:hover:not(.active) {
background-color: #343a40; /* Hovered link color */
}
/* Content styles */
.content {
margin-left: 250px;
padding: 20px;
height: 1000px;
background-color: #ffffff; /* Content background color */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Content shadow */
border-radius: 4px; /* Rounded corners */
transition: margin-left 0.3s ease, box-shadow 0.3s ease;
}
/* Media queries */
@media screen and (max-width: 900px) {
.sidebar {
width: 100px;
}
.content {
margin-left: 100px;
}
.sidebar li a {
padding: 8px;
font-size: 14px;
}
}
@media screen and (max-width: 400px) {
.sidebar {
width: 100%;
height: auto;
position: relative;
}
.content {
margin-left: 0;
}
.sidebar li a {
text-align: center;
float: none;
border-bottom: none;
padding: 16px;
font-size: 16px;
}
}