Repository navigation
Expand file tree
/
Copy pathbasic.css
More file actions
114 lines (97 loc) · 2.08 KB
/
Copy pathbasic.css
File metadata and controls
114 lines (97 loc) · 2.08 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* Basic CSS for Opera 9 Compatibility */
body {
font-family: sans-serif;
font-size: 16px;
color: #333;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
#header {
background-color: #222;
color: #fff;
padding: 10px;
overflow: hidden; /* Contain floated elements */
z-index: 1000; /* Ensure main navbar is on top */
position: relative; /* Needed for z-index to work */
}
#brand {
float: left;
font-size: 1.5em;
font-weight: bold;
}
#brand a {
color: #fff;
text-decoration: none;
}
#nav {
float: right;
}
#nav ul {
margin: 0;
padding: 0;
list-style: none;
}
#nav ul li {
float: left;
margin-left: 5px; /* Reduce left margin slightly */
position: relative; /* For potential future use */
}
#nav ul li a {
display: block;
color: #fff;
text-decoration: none;
padding: 5px 8px; /* Reduce padding slightly */
}
#nav ul li a.active {
font-weight: bold;
}
/* Basic Dropdown Styling */
#social-dropdown {
cursor: pointer;
}
#dropdown-content {
display: none;
position: absolute;
top: 100%;
left: 0;
background-color: #333;
padding: 5px 0;
border: 1px solid #555;
z-index: 1002; /* Ensure dropdown content is on top */
}
#dropdown-content li {
float: none; /* Override float for dropdown items */
margin: 0;
}
#dropdown-content li a {
padding: 5px 15px;
display: block;
text-align: left;
}
#dropdown-content li a:hover {
background-color: #444;
}
#main-content {
padding: 20px;
background-color: #fff;
margin: 20px;
border: 1px solid #ddd;
z-index: 1; /* Ensure main content is below the navbar and dropdown */
position: relative; /* Needed for z-index */
}
#footer {
background-color: #222;
color: #fff;
padding: 10px;
text-align: center;
overflow: hidden; /* Contain floated seal */
margin-top: 20px;
z-index: 2; /* Ensure footer is above main content (optional) */
position: relative; /* Needed for z-index */
}
#footer a {
color: #eee;
text-decoration: none;
margin: 0 5px;
}