Projet

Général

Profil

Paste
Télécharger (3,19 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / admin_menu / admin_menu_toolbar / admin_menu_toolbar.css @ 76df55b7

1

    
2
/**
3
 * @file
4
 * Toolbar style for Administration menu.
5
 *
6
 * Important: We cannot re-use toolbar.png from Toolbar module, since we cannot
7
 * reliably determine the path to it.
8
 *
9
 * @todo Separate shortcut functionality into own module/widget.
10
 */
11

    
12
/* Adjust margin/height */
13
html body.admin-menu {
14
  margin-top: 29px !important;
15
}
16
html body.admin-menu-with-shortcuts {
17
  margin-top: 65px !important;
18
}
19
/* Displace the core Toolbar, if concurrently output. */
20
body div#toolbar.toolbar {
21
  top: 30px;
22
}
23

    
24
/**
25
 * Base styles.
26
 *
27
 * We use a keyword for the toolbar font size to make it display consistently
28
 * across different themes, while still allowing browsers to resize the text.
29
 */
30
#admin-menu {
31
  font: normal small "Lucida Grande", Verdana, sans-serif;
32
  -moz-box-shadow: 0 -10px 20px 13px #000;
33
  -webkit-box-shadow: 0 -10px 20px 13px #000;
34
  box-shadow: 0 -10px 20px 13px #000;
35
  right: 0;
36
  width: auto;
37
}
38
#admin-menu-wrapper {
39
  font-size: .846em;
40
  padding: 5px 10px 0;
41
}
42

    
43
#admin-menu .dropdown a {
44
  color: #fafafa;
45
}
46

    
47
/* Remove border from all lists and actions */
48
#admin-menu .dropdown .admin-menu-action a {
49
  border-left: 0;
50
}
51
#admin-menu .dropdown .admin-menu-icon > a {
52
  padding: 2px 10px 3px;
53
}
54

    
55
/**
56
 * Administration menu.
57
 */
58
#admin-menu .dropdown .admin-menu-icon > a span {
59
  vertical-align: text-bottom;
60
  width: 11px;
61
  height: 14px;
62
  display: block;
63
  background: url(toolbar.png) no-repeat 0 -45px;
64
  text-indent: -9999px;
65
}
66
#admin-menu > div > .dropdown > li > a {
67
  border-right: 0;
68
  margin-bottom: 4px;
69
  padding: 2px 10px 3px;
70
}
71
#admin-menu .dropdown .admin-menu-toolbar-category > a,
72
#admin-menu .dropdown .admin-menu-action > a {
73
  border-radius: 10px;
74
  -moz-border-radius: 10px;
75
  -webkit-border-radius: 10px;
76
}
77
#admin-menu .dropdown .admin-menu-toolbar-category > a.active-trail {
78
  text-shadow: #333 0 1px 0;
79
  background: url(toolbar.png) 0 0 repeat-x;
80
}
81
#admin-menu .dropdown .admin-menu-toolbar-category > a:hover {
82
  background-color: #444;
83
}
84
#admin-menu .dropdown .admin-menu-tab a {
85
  border-right: 0;
86
}
87
#admin-menu .dropdown li li.expandable ul {
88
  margin: -22px 0 0 160px;
89
}
90

    
91
/**
92
 * Shortcuts toggle.
93
 */
94
#admin-menu .shortcut-toggle {
95
  cursor: pointer;
96
  background: url(toolbar.png) 0 -20px no-repeat;
97
  display: block;
98
  float: right;
99
  margin: 0 0 0 1.3em;
100
  text-indent: -9999px;
101
  overflow: hidden;
102
  width: 25px;
103
  height: 25px;
104
}
105
#admin-menu .shortcut-toggle:focus,
106
#admin-menu .shortcut-toggle:hover {
107
  background-position: -50px -20px;
108
}
109
#admin-menu .shortcut-toggle.active {
110
  background-position: -25px -20px;
111
}
112
#admin-menu .shortcut-toggle.active:focus,
113
#admin-menu .shortcut-toggle.active:hover {
114
  background-position: -75px -20px;
115
}
116

    
117
/**
118
 * Shortcuts widget.
119
 */
120
#admin-menu .shortcut-toolbar {
121
  background-color: #666;
122
  clear: both;
123
  display: none;
124
  margin: 0 -10px;
125
  overflow: hidden;
126
  /* Align with icon; @see shortcut.css */
127
  padding-left: 5px;
128
}
129
#admin-menu .shortcut-toolbar.active {
130
  display: block;
131
}
132
/* Override theme list style; @see shortcut.css */
133
#admin-menu .shortcut-toolbar ul {
134
  margin: 0;
135
}
136
/* @see toolbar.css */
137
#admin-menu .shortcut-toolbar li {
138
  float: left;
139
  list-style-image: none;
140
  list-style-type: none;
141
}
142
#admin-menu .shortcut-toolbar a {
143
  display: block;
144
}
145