-
Notifications
You must be signed in to change notification settings - Fork 0
/
ddsmoothmenu.css
125 lines (104 loc) · 2.38 KB
/
ddsmoothmenu.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.ddsmoothmenu{
padding: 1px;
}
.ddsmoothmenu ul{
z-index:100;
margin: 0;
padding: 0 0 0 30px;
list-style-type: none;
}
/*Top level list items*/
.ddsmoothmenu ul li{
position: relative;
display: inline;
float: left;
}
/*Top level menu link items style*/
.ddsmoothmenu ul li a {
display: block;
height: 42px;
padding: 0 30px 0 20px;
line-height: 42px;
font-size: 14px;
color: #bbb3ac;
text-align: center;
text-decoration: none;
font-weight: 400;
outline: none;
}
* html .ddsmoothmenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
}
.ddsmoothmenu ul li a.selected, .ddsmoothmenu ul li a:hover { /*CSS class that's dynamically added to the currently active menu items' LI A element*/
color: #0ad6e7;
}
/*1st sub level menu*/
.ddsmoothmenu ul li ul {
position: absolute;
width: 120px;
margin: 0;
padding: 0;
left: 0;
display: none; /*collapse all sub menus to begin with*/
visibility: hidden;
background: #4a4a4a;
border: 1px solid #5c5c5c;
border-top: 0;
}
.ddsmoothmenu ul li ul span.bottom { position: absolute; width: 178px; height: 13px; bottom: -13px; left: 0; background: url(images/templatemo_smb_b.png) no-repeat; }
/*Sub level menu list items (undo style from Top level List Items)*/
.ddsmoothmenu ul li ul li{
display: list-item;
float: none;
}
/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.ddsmoothmenu ul li ul li ul{
top: 0;
}
/* Sub level menu links style */
.ddsmoothmenu ul li ul li a{
font-weight: 500;
width: 80px; /*width of sub menus*/
height: 28px;
line-height: 28px;
padding: 0 20px;
margin: 0;
font-size: 11px;
text-align: left;
background: none;
color: #bbb3ac;
}
.ddsmoothmenu ul li ul li .last {
border-bottom: none;
}
.ddsmoothmenu ul li ul li a.selected, .ddsmoothmenu ul li ul li a:hover {
color: #0ad6e7;
width: 131px;
padding-left: 20px;
background: none;
}
/* Holly Hack for IE \*/
* html .ddsmoothmenu{height: 1%;} /*Holly Hack for IE7 and below*/
/* ######### CSS classes applied to down and right arrow images ######### */
.downarrowclass{
position: absolute;
top: 12px;
right: 7px;
}
.rightarrowclass{
position: absolute;
top: 6px;
right: 5px;
}
/* ######### CSS for shadow added to sub menus ######### */
.ddshadow{
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
}
.toplevelshadow{ /*shadow opacity. Doesn't work in IE*/
opacity: 0.5;
}
/* menu */