-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
92 lines (76 loc) · 1.84 KB
/
main.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
85
86
87
88
89
90
91
92
/*
______________________________________________________________________________________________
| |
| Copyright 2024 ag-sanjjeev |
| |
| The source code is licensed under MIT-style License. |
| The usage, permission and condition are applicable to this source code as per license. |
| That can be found in LICENSE file or at https://opensource.org/licenses/MIT. |
|______________________________________________________________________________________________|
*/
/* Multi level dropdown menu 1 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
background: linear-gradient(30deg, #4CAF50, #1E88E5);
}
nav {
display: inline;
width: 100%;
}
nav a {
text-decoration: none;
color: white;
font-size: 1.25em;
}
nav .f-left {
padding: 1em 2em;
float: left;
display: flex;
gap: 1.5em;
}
nav .f-right {
padding: 1em 2em;
float: right;
font-size: 1.25em;
}
nav .f-right summary {
list-style: none;
font-style: normal;
color: white;
}
nav summary::after {
content: '+';
}
nav .f-right details {
position: relative;
}
nav .f-right ul {
list-style: none;
position: absolute;
right: 100%;
background: white;
width: max-content;
padding: 10px 20px;
border-top-left-radius: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
box-shadow: 12px -12px 12px 3px rgba(0,0,0,0.1);
}
nav .f-right ul li {
padding: 5px;
}
nav .f-right ul a {
color: black;
color: black;
font-size: 1em;
text-transform: capitalize;
}
nav .f-right ul summary {
color: black;
}