source: extensions/modus/css/menuh.css.tpl @ 31999

Last change on this file since 31999 was 29969, checked in by rvelices, 10 years ago

modus fix text indent for pages without menus on small screens

File size: 3.8 KB
Line 
1#menubar UL {
2        list-style: none;
3        padding: 0 0 0 2px;
4        margin: 0; /*various default user agent css*/
5}
6
7{if !isset($loaded_plugins['rv_menutree'])}
8#mbCategories UL {
9        list-style-type: square;
10        padding-left: 8px;
11}
12{/if}
13
14#menubar LI.selected>A {
15        font-weight: bold;
16}
17
18#menubar .menuInfoCatByChild {
19        font-size: 80%;
20        font-style: italic;
21}
22
23#menubar INPUT {
24        text-indent: 2px;
25        -moz-box-sizing: border-box;
26        box-sizing: border-box;
27}
28
29#quickconnect FIELDSET {
30        margin: 0 5px 0 0;
31        padding: 0 5px;
32}
33
34
35#menuTagCloud {
36        text-align: center;
37}
38
39#menuTagCloud A {
40        white-space: nowrap;
41        margin-right: 5px;
42}
43
44
45
46
47
48/* Horizontal menu */
49#menubar {
50        margin: 0;
51        width: 100%;
52        padding: 5px 0 8px;
53        background-color: {$skin.menubar.backgroundColor};
54{if !empty($skin.menubar.gradient)}
55        {$skin.menubar.gradient|cssGradient}
56{/if}
57{if !empty($skin.menubar.color)}
58        color: {$skin.menubar.color};
59{/if}
60}
61
62{if !empty($skin.menubar.link.color)}
63#menubar DT A {
64        color: {$skin.menubar.link.color};
65}
66{/if}
67
68{if !empty($skin.menubar.linkHover.color)}
69#menubar DT A:hover {
70        color: {$skin.menubar.linkHover.color};
71}
72{/if}
73
74#menubar DL {
75        display: inline;
76        float: left;
77        margin: 0 0.25em;
78        padding: 0 0.25em;
79}
80
81#menubar DT {
82        display: inline;
83        cursor: pointer;
84        font-size: 120%;
85        font-weight: bold;
86        text-align: center;
87}
88
89#menubar DD {
90        display: none;
91        position: absolute;
92        margin: 0;
93        padding: 10px;
94        line-height: 150%;
95        max-width: 300px;
96        box-shadow: 2px 2px 5px gray;
97        background-color: {$skin.dropdowns.backgroundColor};
98{if !empty($skin.menubar.color)}
99        color: {$skin.BODY.color};
100{/if}
101}
102
103#menubar DD A {
104                font-size: 14px;
105}
106
107
108#menubar DL:hover > DD {
109        display: block;
110        z-index: 5;
111}
112
113#content {
114        clear: both;
115}
116
117#qsearchInput {
118        width: 13%;
119        max-width: 180px;
120}
121
122
123
124
125#menuSwitcher {
126        display: none;
127}
128
129@media screen and (max-width:980px) {
130        #mbProfile {
131                display: none !important;
132        }
133        #mbTags {
134                display: none !important;
135        }
136}
137
138@media screen and (max-width:840px) {
139        #mbMostVisited {
140                display: none !important;
141        }
142}
143
144@media screen and (max-width:640px) {
145        #mbBestRated {
146                display: none !important;
147        }
148
149        #menuSwitcher {
150                display: block;
151                position: absolute;
152                padding-top: 2px;
153{if !empty($skin.pageTitle.link.color)}
154                color: {$skin.pageTitle.link.color};/*switcher is outside page title so not inherited*/
155{/if}
156        }
157
158{if !empty($skin.pageTitle.linkHover.color)}
159        #menuSwitcher:hover {
160                color: {$skin.pageTitle.linkHover.color};/*switcher is outside page title so not inherited*/
161        }
162{/if}
163
164        .contentWithMenu .titrePage H2,
165        .contentWithMenu .browsePath {
166                text-indent: 25px; /*make space for menu switcher*/
167                letter-spacing: -0.5px;
168        }
169
170        .titrePage H2:first-line,
171        .browsePath:first-line {
172                line-height: 28px; /*long bread crumbs go on second line and would run into menu switcher*/
173        }
174
175        #menubar {
176                display: none;
177                position: absolute;
178                width: auto;
179                box-shadow: 2px 2px 5px gray;
180                opacity: 0.95;
181                z-index: 5;
182                min-width: 40%;
183{if $skin.menubar.backgroundColor != $skin.dropdowns.backgroundColor}
184                background-color: {$skin.dropdowns.backgroundColor};
185{/if}
186{if !empty($skin.menubar.gradient)}
187                background-image: none;
188{/if}
189{if !empty($skin.menubar.color)}
190                color: inherit;
191{/if}
192        }
193
194{if !empty($skin.menubar.link.color)}
195        #menubar DT A {
196                        color: {$skin.A.color}; /*update link color because background is dropdowns; don't care about hover as this is mobile probably...*/
197        }
198{/if}
199
200        #menubar DL {
201                display: block;
202                float: none;
203                margin-top: 4px;
204                margin-bottom: 4px;
205        }
206
207        #menubar DT {
208                display: block;
209                text-align: left;
210                font-size: 20px;
211                font-weight: normal;
212        }
213
214        #menubar DL:hover > DD { /*reset large wifth hover effect*/
215                display: none;
216        }
217       
218        #menubar DD {
219                position: static;
220                box-shadow: none; /*reset std*/
221                padding-top: 5px; /*reduce from standard*/
222        }
223
224        #qsearchInput {
225                width: 100%;
226                max-width: none;
227                margin: 5px 0;
228        }
229
230}
Note: See TracBrowser for help on using the repository browser.