source: src/webapp/webclient/css/side-menu.css@ e44e1f1

0.5 debian/bullseye debian/jessie
Last change on this file since e44e1f1 was f03591a, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago
  • Improved webclient file uploading
  • Improvded webservice
    • Map uploading
    • tileserver searches it's maps under maps now
  • Maps have spoken names now (set by the user during upload)
  • Moved to leaflet 1.1.0
  • Property mode set to 100644
File size: 5.7 KB
RevLine 
[f03591a]1/*
2 Copyright (C) 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
[4972eea]18body {
19 color: #777;
20}
21
22.pure-img-responsive {
23 max-width: 100%;
24 height: auto;
25}
26
27/*
28Add transition to containers so they can push in and out.
29*/
30#layout,
31#menu,
32.menu-link {
33 -webkit-transition: all 0.2s ease-out;
34 -moz-transition: all 0.2s ease-out;
35 -ms-transition: all 0.2s ease-out;
36 -o-transition: all 0.2s ease-out;
37 transition: all 0.2s ease-out;
38}
39
40/*
41This is the parent `<div>` that contains the menu and the content area.
42*/
43#layout {
44 position: relative;
45 left: 0;
46 padding-left: 0;
47}
48 #layout.active #menu {
49 left: 150px;
50 width: 150px;
51 }
52
53 #layout.active .menu-link {
54 left: 150px;
55 }
56/*
57The content `<div>` is where all your content goes.
58*/
59.content {
60 margin: 0 auto;
61 padding: 0 2em;
62 max-width: 800px;
63 margin-bottom: 50px;
64 line-height: 1.6em;
65}
66
67.header {
68 margin: 0;
69 color: #333;
70 text-align: center;
71 padding: 2.5em 2em 0;
72 border-bottom: 1px solid #eee;
73 }
74 .header h1 {
75 margin: 0.2em 0;
76 font-size: 3em;
77 font-weight: 300;
78 }
79 .header h2 {
80 font-weight: 300;
81 color: #ccc;
82 padding: 0;
83 margin-top: 0;
84 }
85
86.content-subhead {
87 margin: 50px 0 20px 0;
88 font-weight: 300;
89 color: #888;
90}
91
92
93
94/*
95The `#menu` `<div>` is the parent `<div>` that contains the `.pure-menu` that
96appears on the left side of the page.
97*/
98
99#menu {
100 margin-left: -150px; /* "#menu" width */
101 width: 150px;
102 position: fixed;
103 top: 0;
104 left: 0;
105 bottom: 0;
106 z-index: 1000; /* so the menu or its navicon stays above all content */
107 background: #347C7C;
108 overflow-y: auto;
109 -webkit-overflow-scrolling: touch;
110}
111 /*
112 All anchors inside the menu should be styled like this.
113 */
114 #menu a {
115 color: #fff;
116 border: none;
117 padding: 0.6em 0 0.6em 0.6em;
118 }
119
120 /*
121 Remove all background/borders, since we are applying them to #menu.
122 */
123 #menu .pure-menu,
124 #menu .pure-menu ul {
125 border: none;
126 background: transparent;
127 }
128
129 /*
130 Add that light border to separate items into groups.
131 */
132 #menu .pure-menu ul,
133 #menu .pure-menu .menu-item-divided {
134 border-top: 1px solid #BCD9D9;
135 }
136 /*
137 Change color of the anchor links on hover/focus.
138 */
139 #menu .pure-menu li a:hover,
140 #menu .pure-menu li a:focus {
141 background: #BCD9D9;
142 }
143
144 /*
145 This styles the selected menu item `<li>`.
146 */
147 #menu .pure-menu-selected,
148 #menu .pure-menu-heading {
149 background: #45A545;
150 }
151 /*
152 This styles a link within a selected menu item `<li>`.
153 */
154 #menu .pure-menu-selected a {
155 color: #fff;
156 }
157
158 /*
159 This styles the menu heading.
160 */
161 #menu .pure-menu-heading {
162 font-size: 110%;
163 color: #fff;
164 margin: 0;
165 }
166
167/* -- Dynamic Button For Responsive Menu -------------------------------------*/
168
169/*
170The button to open/close the Menu is custom-made and not part of Pure. Here's
171how it works:
172*/
173
174/*
175`.menu-link` represents the responsive menu toggle that shows/hides on
176small screens.
177*/
178.menu-link {
179 position: fixed;
180 display: block; /* show this only on small screens */
181 top: 0;
182 left: 0; /* "#menu width" */
183 background: #000;
184 background: rgba(0,0,0,0.7);
185 font-size: 10px; /* change this value to increase/decrease button size */
186 z-index: 10;
187 width: 2em;
188 height: auto;
189 padding: 2.1em 1.6em;
190}
191
192 .menu-link:hover,
193 .menu-link:focus {
194 background: #000;
195 }
196
197 .menu-link span {
198 position: relative;
199 display: block;
200 }
201
202 .menu-link span,
203 .menu-link span:before,
204 .menu-link span:after {
205 background-color: #fff;
206 width: 100%;
207 height: 0.2em;
208 }
209
210 .menu-link span:before,
211 .menu-link span:after {
212 position: absolute;
213 margin-top: -0.6em;
214 content: " ";
215 }
216
217 .menu-link span:after {
218 margin-top: 0.6em;
219 }
220
221
222/* -- Responsive Styles (Media Queries) ------------------------------------- */
223
224/*
225Hides the menu at `48em`, but modify this based on your app's needs.
226*/
227@media (min-width: 48em) {
228
229 .header,
230 .content {
231 padding-left: 2em;
232 padding-right: 2em;
233 }
234
235 #layout {
236 padding-left: 150px; /* left col width "#menu" */
237 left: 0;
238 }
239 #menu {
240 left: 150px;
241 }
242
243 .menu-link {
244 position: fixed;
245 left: 150px;
246 display: none;
247 }
248
249 #layout.active .menu-link {
250 left: 150px;
251 }
252}
253
254@media (max-width: 48em) {
255 /* Only apply this when the window is small. Otherwise, the following
256 case results in extra padding on the left:
257 * Make the window small.
258 * Tap the menu to trigger the active state.
259 * Make the window large again.
260 */
261 #layout.active {
262 position: relative;
263 left: 150px;
264 }
265}
Note: See TracBrowser for help on using the repository browser.