Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cd670dfa

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID cd670dfafdb3560614634765e2a377946ff1809b
  • Vorgänger ff33b093

Erweiterung und Optimierung less und css fuer Design 4.0

Unterschiede anzeigen:

css/less/menu.less
1
/* ------------------------------------------------------------- */
2
/* MENU (V3) and HTML MENU (menu.less)                          */
3
/* ------------------------------------------------------------- */
4

  
1 5
// ----------------------------------------------------------------------------
2 6
//
3 7
// MENU (V3) and HTML MENU
......
9 13
//
10 14
// CONTENTS:
11 15
// - MENUV3
12
// - - List-Element general
13
// - - - Links & Inbound Pseudo Link (DIV)
14
// - - Items with Sub Items
15
// - - List 1st Level (horizontal)
16
// - - - List 2nd and 3rd Level (Vertical)
17
// - - - List 2nd Level (Vertical)
18
// - - - - List 3rd Level (Vertical)
16
//   - List-Element general
17
//     - Links & Inbound Pseudo Link (DIV)
18
//   - Items with Sub Items
19
//   - List 1st Level (horizontal)
20
//     - List 2nd and 3rd Level (Vertical)
21
//     - List 2nd Level (Vertical)
22
//     - List 3rd Level (Vertical)
23
// 
24
// - HTML-MENU (LEFT)
25
//   - Layout Web Page (LEFT & RIGHT AREA)
26
//   - HTML-JS-MENU
27
//     - Menue Items
28
//     - Top Menu Item (1st Level)
29
//     - Sub Menu Item (2nd Level)
30
//     - Sub Sub Menu Item (3rd & last Level)
19 31
//
20
// - HTML-MENU
21
// - HTML-MENU (Overrides)
22
// ----------------------------------------------------------------------------
32
// - DHTML-MENU (TOP WITH ICONS, JUST OVERRIDES)
33
//   - Menu Bar on Top
34
//   - Menu-Container Sub (Sub Menu 2nd Level)
35
//   - Menu-Item Sub (2nd Level)
36
//   - Non-Generic Overrides (With Group Ids
23 37

  
38
// ----------------------------------------------------------------------------
24 39

  
25 40

  
26 41

  
......
28 43
// MENUV3
29 44
// --------------------------------------
30 45

  
31

  
32 46
#menuv3 {
33 47
  // Main-Properties of this element in File SCAFFOLDING.LESS
34
  background-color: @menu_link_bg_level1 ;
48
  background-color: @menu_bg ;
35 49

  
36 50

  
37 51

  
38 52
  // --------------
39 53
  // List-Element general
40
  //
41

  
54
  // --------------
42 55
  li {
43
    display: block;
44
    position: relative;
45
    float: none;
46
    font-weight: normal !important ;
47
    font-size: @font-size-smaller;
48
    line-height: 96%;
49
    white-space: nowrap;
50
    border: 0;
51
    padding: 0;
52
    margin: 0;
56
    display:     	block;
57
    position:    	relative;
58
    float: 				none;
59
    font-weight: 	normal !important ;
60
    font-size:   	@font-size-smaller;
61
    line-height: 	96%;
62
    white-space: 	nowrap;
63
    border:      	0;
64
    padding:     	0;
65
    margin:      	0;
53 66

  
54 67
    &:hover {
55
      cursor: pointer;
68
      cursor:    pointer;
56 69
    }
57 70

  
58

  
59 71
    // --------------
60 72
    // Links & Inbound Pseudo Link (DIV)
61
    //
73
    // --------------
62 74
    a,
63 75
    a:visited,
64 76
    div.x,
65 77
    div.x:visited {
66
      display: block;
67
      color: @menu_link;
78
      display:         block;
79
      color:           @menu_link;
68 80
      text-decoration: none;
69 81
      //padding-right: 0.6em;
70 82
    }
......
72 84
  } //  /li (List-Element general)
73 85

  
74 86

  
75

  
76

  
77 87
  // --------------
78 88
  // List 1st Level (horizontal)
79
  //
80

  
89
  // --------------
81 90
  & > ul {
82 91
    list-style: none;
83
    margin: 0;
84
    padding: 0;
85
    float: left;
86

  
92
    margin:     0;
93
    padding:    0;
94
    float:      left;
87 95

  
88 96
    & > li{
89
      display: block;
90
      height: 17px;
91
      padding: 9px 0.9em 6px 0.9em;
92
      background-color: @menu_link_bg_level1 ;
93
      vertical-align: middle;
97
      display:          block;
98
      height:           17px;
99
      padding:          9px 0.9em 6px 0.9em;
100
      background-color: @menu_bg ;
101
      color:						@menu_link ;
102
      vertical-align:   middle;
94 103

  
95 104
      &:hover {
96 105
        background-color: @menu_link_bg_level1_hover;
97 106

  
98 107
        // Display Menu 2nd level
99 108
        > ul {
100
          display: block;
109
          display:  block;
101 110
          position: absolute;
102 111
        }
103 112
      }
104 113

  
105 114

  
106

  
107 115
      // --------------
108
      // List 2nd and 3rd Level (Vertical)
109
      //
110

  
116
      // List 2nd and 3rd Level (vertical)
117
      // --------------
111 118
      ul {
112 119
        position: relative;
113
        display: none;
114
        padding: 0 2em 2em 2em;
115
        margin: 0 -2em -2em -2.8em;
116

  
120
        display:  none;
121
        padding:  0 2em 2em 2em;
122
        margin:   0 -2em -2em -2.8em;
117 123

  
118 124
        li{
119
          border-bottom: 1px #777777 solid ;
120
          padding: 0.45em 0.6em 0.58em 0.8em ;
125
          border-bottom: 1px @menu_border_color solid ;
126
          padding:       0.45em 0.6em 0.58em 0.8em ;
121 127
        }
122
      }
128
      } // /ul (2nd and 3rd Level)
123 129

  
124 130

  
125 131
      // --------------
126 132
      /* List 2nd Level (Vertical) */
127
      //
133
      // --------------
128 134
      & > ul {
129 135
        top: 32px;
130 136

  
131 137
        & > li {
132 138
          background-color: @menu_link_bg_level2 ;
133

  
134
          //
139
          padding-left:     12px ;
140
          margin-left: 			1px;
141
          
135 142
          // Items with Sub Items
136
          //
137 143
          div.x {
138
            background: no-repeat right url("../image/menu-arrow-to-right-5.png");
144
            background:    no-repeat right url("../image/menu-arrow-to-right-5.png");
139 145
            padding-right: 2.0em ;
146
            
147
            // does not work because text has to be a block
148
//            &::after { 
149
//							content: 		"▷" ;
150
//							color: 			@gray-dark ;
151
//							font-size: 	120% ;
152
//							padding: 		0 0 0 1.0em ;
153
//							text-align: right ;
154
//							display:		inline-box ;
155
//        	  }
140 156
          }
141 157

  
142
          //
143 158
          // List-Item Hover
144
          //
145 159
          &:hover {
146
            color: @menu_link_hover;
160
            color:            @menu_link_hover;
147 161
            background-color: @menu_link_bg_level2_hover;
148 162

  
149 163
            // Display Menu 3rd level
150 164
            > ul {
151
              display: block;
165
              display:  block;
152 166
              position: absolute;
153 167
            }
154 168
          }
155 169

  
156

  
157 170
          // --------------
158 171
          // List 3rd Level (Vertical)
159
          //
160

  
172
          // --------------
161 173
          > ul {
162
            top: 0;
163
            left: 99%;
164
            padding: 2em;
165
            margin: -2em;
166
            list-style: none;
174
            top:         0;
175
            left:        99%;
176
            padding:     2em;
177
            margin:     -2em;
178
            list-style:  none;
167 179

  
168 180
            > li {
169
              background-color: @menu_link_bg_level3 ;
170
              border-left: 0.2em solid @menu_link_bg;
181
              background-color: 	@menu_link_bg_level3 ;
182
              //border-left:    	0.2em solid @menu_border_color;
171 183

  
172
              &:hover { background-color: @menu_link_bg_level3_hover }
184
              &:hover { 
185
              	background-color: @menu_link_bg_level3_hover }
173 186
             }
174
          }
175

  
176
        }
177 187

  
188
          } // /ul (3rd level)
178 189

  
190
        } // />li (2nd level)
179 191

  
180
      } // /List 2nd Level (Vertical)
192
      } // /ul List 2nd Level (Vertical)
181 193

  
182
    } //  /> li
183
  } //  /ul
184
}
185
//  /#menuv3
194
    } //  />li (1st level)
186 195

  
196
  } //  /ul (1st level)
187 197

  
198
} //  /#menuv3
188 199

  
189 200

  
190 201
//  PENDENT: ??? (ggf. entfernen)
191 202
li.sub {
192
  position: relative;
193
  left: 0.2em;
194
  top: 0px;
203
  position: 				relative;
204
  left: 						0.2em;
205
  top: 							0px;
195 206
  background-color: #FFFFFF;
196 207
}
197 208

  
198 209

  
199 210

  
211
// --------------------------------------
212
// HTML-MENU (LEFT)
213
// --------------------------------------
200 214

  
201 215
// --------------------
202
// HTML-MENU (LEFT)
216
// Layout Web Page (LEFT & RIGHT AREA)
203 217
// --------------------
204 218

  
205
// Layout Page
206

  
207
// Left (Menu) area/column
219
// LEFT (Menu) area/column
208 220
body > #layout-split-left {
209 221
  display: block;
210
  //position: relative;
211
  position: fixed !important;
212
  top: 0 ;
213
  left: 0 ;
214
  width: 200px;
215
  //height: 101%;
216
  height: 100%;
217
  z-index: 1;
218
  //overflow: hidden;
219
  overflow: hidden   ;
220
  border-right: 1px @gray solid;
221
  background-color: @gray-mediumdark;
222
  position: 				fixed !important;
223
  top: 							0 ;
224
  left: 						0 ;
225
  width: 						200px;
226
  height: 					100%;
227
  z-index: 					1;
228
  overflow: 				hidden   ;
229
  border-right: 		1px @gray-standard solid;
230
  background-color: @gray-dark;
222 231

  
223 232

  
224 233
}
225 234

  
226
// Right (Content) area/column
235
// RIGHT (Content) area/column
227 236
div#layout-split-right {
228
  margin-left: 200px;
229
  margin-top: 70px;
230
  display: block;
231
  z-index: 1;
232
  overflow: hidden;
237
  margin-left: 	200px;
238
  margin-top: 	70px;
239
  display: 			block;
240
  z-index: 			1;
241
  overflow: 		hidden;
233 242
  // PENDENT: das muss dringend geloest werden,
234 243
  // siehe z.B. /am.pl?action=edit_account&callback=am.pl%3faction%3dlist_account&id=6130
235 244
  // Bearbeitung von Konto (wird unten abgeschnitten, falls nicht mit prov. Behelf wie unten)
236
  min-height: 800px;
237
  height: auto;
245
  min-height: 	800px;
246
  height: 			auto;
238 247

  
239 248
  .layout-actionbar { top: 36px; }
240 249

  
241 250
  & > #content {
242
    top: 70px ;
251
    top: 68px;
252
		padding-top: 30px;
243 253

  
244 254
    h1 { top: 28px !important; }
245 255
    & > form > .tabwidget {
......
252 262
      & > ul.ui-tabs-nav{ top: 69px !important ; }
253 263
    }
254 264
  }
265
  
266
  // PENDENT: war für Klasse .layout-split-right eingesetzt, wo gebraucht im alten Kivi ?? ggf. entfernen
267
  &.folded {
268
		margin-left: 40px
269
	}
270
  
271
  
272
  
255 273
}
256 274

  
257
// PENDENT: wo gebraucht im alten Kivi ?? ggf. entfernen
275
// PENDENT: wo als Klasse gebraucht im alten Kivi ?? ggf. entfernen
258 276
div.layout-split-right.folded {
259 277
  margin-left: 40px
260 278
}
261 279

  
262
// Menu itself
280
// --------------------
281
// HTML-JS-MENU
282
// --------------------
263 283

  
264 284
#layout-split-left #html-menu {
265
  display: block;
266
  overflow-y: scroll;
267
  overflow-x: hidden;
268
  width: 100%;
269
  height: 100%;
270
  margin: 27px 0 0 0;
271
  padding: 0 0 50px 0;
272
  background-color: @menu_link_bg_level1 ;
273
  font-size: @font-size-small;
274

  
275
  // scrollbars could be invisible only on Webkit-Browsers
285
  display: 						block;
286
  overflow-y: 				scroll;
287
  overflow-x: 				hidden;
288
  width: 							100%;
289
  height: 						100%;
290
  margin: 						27px 0 0 0;
291
  padding: 						0 0 150px 0;
292
  background-color: 	@menu_bg ;
293
  font-size: 					@font-size-small;
294
	border-bottom: 			20px @menu_border_color solid ; // PENDENT: Rand unten sollte vorhanden sein
295

  
296
  // scrollbars can be invisible only on Webkit-Browsers
276 297
  &::-webkit-scrollbar {
277 298
    display: none;
278 299
  }
279 300

  
280
  // -----------------
281
  // Menue-Items
301
	& > div:last-of-type {
302
		border-bottom: @menu_border ; // PENDENT: Rand unten sollte vorhanden sein
303
	}
304

  
305
	// -----------------------
306
	// Menue-Items
307
	// -----------------------
282 308
  .mi {
283
    display: block ;
309
    display: 			block ;
284 310
    a {
285
      display: block;
286
      word-wrap: break-word;
311
      display: 		block;
312
      word-wrap: 	break-word;
287 313
    }
288 314
    &:first-child {
289
      border-top: 2px @gray solid ;
315
      border-top: 2px @menu_border_color solid ; // PENDENT: 2px ??? sonst @menu_border verwenden
316
    }
317
    &:last-child {
318
      border-bottom: @menu_border ; // PENDENT: 2px ??? sonst @menu_border verwenden
290 319
    }
291 320
  }
292 321

  
293
  // Top/1st Level
322

  
323
	// -----------------------
324
	// Top Menu Item (1st Level)
325
	// -----------------------
294 326
  .s0 {
295 327
    padding: 0 ;
296
    background-color: #cccccc ;
297
    color: @gray-darker;
298
    border-bottom: 1px @gray solid ;
299
    font-size: 90% ;
300
    text-transform: uppercase;
328
    background-color: @menu_left_level_1_bg ;
329
    color: 						@menu_left_level_1_color;
330
    border-top: 			@menu_border ;
331
    font-size: 				90% ;
332
    text-transform: 	uppercase;
301 333

  
302 334
    a {
303
      padding: 5px 0 6px 8px ;
335
      padding: 	5px 0 6px 8px ;
336
      cursor: 	pointer ;
304 337

  
305 338
      &:hover,
306 339
      &:active{
307
        background-color: @gray ;
308
        color: #000 ;
340
        background-color: @menu_left_level_1_hover_bg ;
341
        color: 						@menu_left_level_1_hover_color ;
342
        text-decoration: 	none;
309 343
      }
310 344
      &:link,
311
      &:visited { color: @gray-mediumdark ; }
345
      &:visited { color: @menu_left_level_1_color ; }
312 346
    }
313 347

  
314 348
    &.menu-open{
315
      font-weight: bold;
316
      background-color: @gray-dark ;
317
      color: #fff ;
349
      font-weight: 			normal;
350
      background-color: @menu_open_bg ;
351
      color: 						@menu_open_color ;
352
    	border-bottom: 		0 ;
318 353

  
319 354
      a {
320
        padding: 5px 0 6px 8px ;
355
        padding: 				5px 0 6px 8px ;
356
        cursor: 				auto ;
321 357

  
322 358
        &:hover,
323 359
        &:active{
324
          background-color: #000 ;
325
          color: #fff ;
360
          background-color: @menu_open_bg ;
361
          color: 						@menu_open_color ;
362
          text-decoration: 	none;
326 363
        }
327 364
        &:link,
328
        &:visited { color: #fff ; }
365
        &:visited { color: 	@menu_open_color ; }
329 366
      }
330 367
    }
331

  
332 368
  } // /.s0
333 369

  
334
  // 2nd level
370
	// -----------------------
371
	// Sub Menu Item (2nd Level)
372
	// -----------------------
335 373
  .s1{
336 374
    font-size: 80% ;
337
    padding: 2px 0 3px 8px ;
338
    background-color: @gray-verylight ;
339 375
    padding: 0 ;
340
    border-top: 1px #bfbfbf solid ;
376
    background-color: @menu_left_level_2_bg ;
377
    border-top: 			@menu_border ;
341 378

  
342 379
    a {
343
      padding: 4px 0 3px 8px ;
380
      padding: 				4px 0 3px 8px ;
344 381

  
345 382
      &:hover,
346 383
      &:active{
347
        background-color: #D5D5D5 ;
348
        color: #000 ;
384
        background-color: @menu_left_level_2_hover_bg ;
385
        color: 						@menu_left_level_2_hover_color ;
386
        text-decoration: 	none;
349 387
      }
350 388
      &:link,
351
      &:visited { color: @gray-mediumdark ; }
389
      &:visited { color: 	@menu_left_level_2_color ; }
352 390
    }
353 391

  
354 392
    // has submenu (has 3rd-Level menu)
355 393
    &.sm{
356 394
      &:after{
357
        content: "▼" ;
358
        color: @gray ;
359
        font-size: 80% ;
395
        content: 		"▼" ;
396
        color: 			@gray-standard ;
397
        font-size: 	80% ;
360 398
      }
361 399
      a {
362
        display: inline-block ;
363
        width: 162px; // with scrollbar{ display:none; } 174px is possible, works only with ::-webkit-scrollbar
364
        color: @gray ;
400
        display: 	inline-block ;
401
        width: 		162px; // with scrollbar{ display:none; } 174px is possible, works only with ::-webkit-scrollbar
402
        color: 		@menu_left_level_2_color ;
365 403

  
366 404
        &:hover,
367 405
        &:active{
368
          background-color: @gray-verylight ;
369
          color: #999 ;
370
          text-decoration: none ;
406
          background-color: 	@menu_left_level_2_bg ;
407
          color: 							@menu_left_level_2_color ;
408
          text-decoration: 		none ;
371 409
        }
372 410
        &:link,
373
        &:visited { color: @gray-mediumdark ; }
411
        &:visited { color: 		@menu_left_level_2_color ; }
374 412

  
375 413
        &.ml:link,
376
        &.ml:visited{ color: @gray ; }
414
        &.ml:visited{ color: 	@menu_left_level_2_color ; }
377 415
      }
378 416
    }
379
    & > .s2:last-child { border-bottom: 1px #bfbfbf solid }
417
    & > .s2:last-child { 			border-bottom: @menu_border ; }
418

  
380 419
  } // /.s1
381 420

  
382
  // 3rd & last level
421
	// -----------------------
422
	// Sub Sub Menu Item (3rd & last Level)
423
	// -----------------------
383 424
  .s2{
384
    padding: 0 ;
385
    font-size: 80% ;
386
    background-color: @gray-morelighter ;
425
    padding: 					0 ;
426
    font-size: 				80% ;
427
    background-color: @menu_left_level_3_bg ;
387 428

  
388 429
    a {
389
      padding: 2px 0 3px 20px ;
430
      padding: 				2px 0 3px 20px ;
390 431

  
391 432
      &:hover,
392 433
      &:active{
393
        background-color: #BCBCBC ;
394
        color: #000 ;
434
        background-color: 	@menu_left_level_3_hover_bg ;
435
        color: 							@menu_left_level_3_hover_color ;
436
        text-decoration: 		none;
395 437
      }
396 438
      &:link,
397
      &:visited { color: @gray-mediumdark ; }
439
      &:visited { color: 		@menu_left_level_3_color ; }
398 440
    }
399 441

  
400

  
401 442
  } // /.s2
402

  
403 443
} // /#html-menu
404 444

  
405 445

  
406 446

  
407
// --------------------
408
// DHTML-MENU (TOP WITH ICONS)
409
// --------------------
410 447

  
411
#main_menu_div {
412 448

  
413
  .DHTMLSuite_menuBar_top {
414
    top: 30px;
415
  }
449
// --------------------------------------
450
// DHTML-MENU (TOP WITH ICONS, JUST OVERRIDES)
451
// --------------------------------------
416 452

  
417
}
418
.DHTMLSuite_menuBar_sub {
419
  width: auto !important;
420
  padding: 0.1em 0 0.4em 0.4em !important;
453
#main_menu_div {
421 454

  
422
  .DHTMLSuite_menuItem_sub_regular{
423
    //display: table-row ;
424
    //vertical-align: middle ;
425
    a.DHTMLSuite_menuItem_textContent{
426
      //display: table-cell;
427
      //font-size: @font-size-small ;
455
	// -----------------------
456
	// Menu Bar on Top
457
	// -----------------------
428 458

  
429
    }
430
  }
431
}
459
  .DHTMLSuite_menuBar_top {
460
    top: 				28px;
461
		height: 		31px !important;
462
    padding: 		0;
463
    margin: 		0 ;
464
	
465
		// -----------------------
466
		// Menu Item on Top
467
		// -----------------------
468
		// Menu Item on Top, generic
469
		// same as .DHTMLSuite_menuItem_top_* below
470
    & > div {
471
    	padding: 0.3em 0 0 0 ;
472
    	
473
    	// Container with useless icon
474
    	div:first-child { }
475
    	// Text Menu Item top
476
    	.DHTMLSuite_menuItem_textContent {
477
    		font-size: 	90% ;
478
    		padding: 		0.1em 0.2em 0.2em 0.2em ;
479
    	}
480
    	// Arrow down Top
481
    	.DHTMLSuite_menuItem_top_arrowShowSub {
482
  				margin: 	0 0.2em 0.2em 0.2em ;
483
    	}    	
484
    } // / > div (Menu Item on Top, generic)
485
    
486
    // Menu Item on Top with funny classes
487
		.DHTMLSuite_menuItem_top_regular { }
488
		// Hover
489
		.DHTMLSuite_menuItem_top_over,
490
		.DHTMLSuite_menuItem_top_click {
491
			color: 						@color-red-strong ;
492
			background-color: @brand-superlight ; 
493
			.DHTMLSuite_menuItem_top_arrowShowSub{
494
				border: 				none !important ;
495
			}
496
		}
497
		// Clicked with Submenu
498
		.DHTMLSuite_menuItem_top_click { }
499
    
500
  } // /.DHTMLSuite_menuBar_top
501

  
502
} // /#main_menu_div
503

  
504

  
505
// -----------------------
506
// Menu-Container Sub (Sub Menu 2nd Level)
507
// -----------------------
508
.DHTMLSuite_menuBar_sub {
509
	width: 					auto !important;
510
	padding: 				0.1em 0 0.4em 0.4em !important;
511
	margin: 				11px 0 0 0;
512
	border-top: 		none;
513
	border-right: 	1px solid @brand-lighter;
514
	border-bottom: 	1px solid @brand-lighter;
515
	border-left: 		1px solid @brand-lighter;
516

  
517
	// -----------------------
518
	// Menu-Item Sub (2nd Level)
519
	// -----------------------
520
	.DHTMLSuite_menuItem_sub_regular, 
521
	.DHTMLSuite_menuItem_sub_over, 
522
	.DHTMLSuite_menuItem_sub_click, 
523
	.DHTMLSuite_menuItem_sub_disabled, 
524
	.DHTMLSuite_menuItem_sub_active {
525
		clear: 							both;
526
		padding-left: 			25px;
527
		padding-right: 			0.7em;
528
		padding-top: 				0.2em;
529
		padding-bottom: 		0.2em;
530
		cursor: 						pointer;
531
		background-repeat: 	no-repeat;
532
		font-size: 					90%;
533
		
534
		.DHTMLSuite_menuItem_sub_arrowShowSub {
535
			right: 						3px !important;
536
		}
537
	}
538
	// Regular
539
	.DHTMLSuite_menuItem_sub_regular{
540
		a.DHTMLSuite_menuItem_textContent{	}
541
	}
542
	// Hover & Active
543
	.DHTMLSuite_menuItem_sub_over, 
544
	.DHTMLSuite_menuItem_sub_active {
545
		color: @color-orange-strong ;
546
		background-color: @brand-superlight; 
547
	}
548

  
549
} // /.DHTMLSuite_menuBar_sub
432 550

  
433 551

  
434 552

  

Auch abrufbar als: Unified diff