This repository was archived by the owner on Dec 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
108 lines (91 loc) · 2.38 KB
/
styles.css
File metadata and controls
108 lines (91 loc) · 2.38 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
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #fff;
}
.dropdown {
text-align: left;
}
.dropdown>ul>li:not(:last-child) {
border-right: 1px solid #fff;
/* White separator for dark backgrounds */
/* If your background is light, use a darker color for the separator */
}
/* Ensure that the separators don't add to the width of the list items (which can misalign text) */
.dropdown>ul>li {
box-sizing: border-box;
}
/* Adjust the padding of the list items to create space for the separator */
.dropdown>ul>li>span {
padding: 10px 25px;
/* Increase right padding to accommodate the separator */
}
.dropdown>ul {
border-top-left-radius: 0;
/* Remove the top border-radius */
border-top-right-radius: 0;
/* Since the label now has it */
list-style-type: none;
margin: 0;
padding: 0;
background-color: #f96854;
border-radius: 4px;
display: inline-block;
}
.dropdown>ul>li {
position: relative;
color: white;
display: inline-block;
margin-right: 10px;
}
.dropdown>ul>li>span {
padding: 10px 20px;
cursor: pointer;
display: block;
transition: background-color 0.3s;
font-size: 14px;
}
.dropdown>ul>li>span:after {
content: ' ▼';
font-size: smaller;
}
.dropdown>ul>li>span:hover {
background-color: #c25040;
}
.dropdown ul li ul {
display: none;
position: absolute;
left: 0;
top: 100%;
background-color: #fff;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
border-radius: 0 0 4px 4px;
z-index: 1000;
padding: 0;
/* Remove padding */
border: none;
/* Remove border */
}
.dropdown ul li ul li {
display: block;
white-space: nowrap;
}
.dropdown ul li ul li a {
color: #333;
padding: 10px 20px;
/* Adjust padding to match the parent menu item */
text-decoration: none;
display: block;
transition: background-color 0.3s;
}
.dropdown ul li ul li a:hover {
background-color: #f2f2f2;
}
.dropdown>ul>li:first-child>span,
.dropdown>ul>li:last-child>span {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
</style>