Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3fc38171

Von Andreas Rudin vor etwa 6 Jahren hinzugefügt

  • ID 3fc381717c5e7f0f657f604880fac7b7be4e492b
  • Vorgänger 9439c4f2
  • Nachfolger a58ef474

HP Aenderungen bis Oktober 2018

Unterschiede anzeigen:

css/less/tables.less
3 3
//  TABLES
4 4
//
5 5
//  ----------------------------------------------------------------------------
6
//  DESCRIPTION:
7
//
8
//
6
//  DESCRIPTION: for all kind of tables in #content
9 7
//
10 8
//  CONTENTS:
11 9
//  - MIXINS
......
39 37
//  ----------------------------------------------------------------------------
40 38

  
41 39

  
42

  
43

  
44

  
45

  
46

  
47

  
48

  
49

  
50

  
51 40
//  --------------------------------------
52 41
//  TABLE
53 42
//  --------------------------------------
54 43

  
55 44
table {
56 45
  font-size: @font-size-base ;
57
  table-layout: auto;
58
  border-spacing: 1px;
46
  table-layout: auto ;
47
  border-spacing: 1px ;
59 48

  
60 49

  
61 50
  //  --------------------------------------
62 51
  //  CELLS (TD & TH)
63 52
  //  --------------------------------------
64

  
65 53
  td,
66 54
  th {
67 55
    text-align: left ;
68
    vertical-align: top;
69
    font-size: @font-size-smaller;
56
    vertical-align: top ;
57
    font-size: @font-size-smaller ;
70 58
    font-weight: normal ;
71
    color: #000000;
72 59

  
73 60

  
74 61
    //  --------------
75 62
    //  Data format
76 63
    //
77
    &.right{
78
      text-align: right !important ;
79
    }
80
    &.center{
81
      text-align: center !important ;
82
    }
83
    &.numeric {
84
      text-align: right !important ;
85
    }
86
    &.numeric-centered{
87
      text-align: center !important ;
88
    }
89
    &.date {
90
      text-align: right !important ;
64
    &.right             { text-align:      right  !important ; }
65
    &.center            { text-align:      center !important ;
66
      input             { float:           none   !important ; }
91 67
    }
68
    &.numeric           { text-align:      right  !important ; }
69
    &.numeric-centered  { text-align:      center !important ; }
70
    &.date              { text-align:      right  !important ; }
92 71
    // PENDENT: wo eingesetzt
93
    &.button {
94
      text-align: center !important ;
95
    }
96
    &.img {
97
      text-align: center !important ;
98
    }
99
    &.top {
100
      vertical-align: top !important ;
101
    }
72
    &.button            { text-align:      center !important ; }
73
    &.img               { text-align:      center !important ; }
74
    &.top               { vertical-align:  top    !important ; }
102 75
    // see also div.longdesc in main.css
103 76
    // PENDENT: Mixin und Variablen erstellen
104 77
    &.long-desc,
105 78
    &.long-description,
106 79
    &.longdesc,
107 80
    &.longdescription {
108
      font-size: 70% ;
109
      color: #888888 ;
110
    }
111

  
112
    &.formelem-with-desc {
113
      div.description{
114
        margin-left: 2.0em
115
      }
116
    }
117

  
118
    &.formelem-with-desc-float {
119
      input,
120
      select,
121
      div.description {
122
        float: left;
123
      }
124
      div.description{
125
        margin-left: 2.0em
126
      }
81
      font-size: 80% ;
82
      color: @t-cell-head-text ;
127 83
    }
128

  
129

  
84
    &.highlight { background-color: @t-row-zebra-bg-highlight ; }
130 85
    //  --------------
131 86
    //  Images within Cells
132 87
    //
133
    img{
134
      //display: inline-block ;
135
      display: inline ;
136
      vertical-align: top ;
88
    img {
89
      display:        inline ;
90
      vertical-align: top    ;
137 91
    }
138

  
139 92
    &+a img,
140
    &+img {
141
      float: left ;
142
    }
143

  
93
    &+img { float:    left   ; }
144 94
    &~a img,
145
    &~img {
146
      float: right ;
147
    }
95
    &~img { float:    right  ; }
148 96

  
149 97

  
150 98
    //  --------------
151
    //  Description within Cell
99
    //  Description & labels within cells
152 100
    //
153 101
    div.description {
154
      font-size: 80% ;
155
      color: #555 ;
156
      float: both;
102
      font-size: 90% ;
103
      color:     @t-cell-head-text ;
104
      float:     none ;
105
      clear:     both ;
106
    }
107
    & > input,
108
    & > select {
109
      & + div.description { margin-top: 0.4em ; }
157 110
    }
158 111

  
159
    // PENDENT: vielleicht noetig?
160
    // PENDENT: Gut anschauen, geistert ein wenig ueberall im Code herum
161 112
    span {
162
      &.label{
163
        font-style: normal ;
164
        font-size: 90% ;
165
        color: @t-cell-head-text ;
113
      // simulates TH in horizontal tables
114
      &.label {
115
        display:              block ;
116
        padding:              0 0 0.5em 0 ;
117
        color:                @brand-data-label-color ;
166 118
      }
167
      &.below{
168
        //clear: both;
169
        overflow: hidden;
170
        display: block ;
171
        
172
        input{
173
          margin: 0 !important;
119
      &.below {
120
        //clear: both ;
121
        overflow:             hidden ;
122
        display:              block ;
123
        input {
124
          margin:             0.6em 0 0 0 !important ;
174 125
          &[type="checkbox"]{ padding: 0.6em 0.6em 0 0 ;}
175 126
        }
176 127
      }
177
      &.above{
178
        //clear: both;
179
        overflow: hidden;
128
      &.above {
129
        //clear: both ;
130
        overflow: hidden ;
180 131
        display: block ;
181 132
        margin-bottom: 0.4em ;
182
        
133
        padding: 0.3em 0.3em 0 0 !important ;
183 134
      }
184 135
    }
185 136

  
......
190 141
    //
191 142
    input,
192 143
    select {
193
      //float: left;
144
      //float: left ;
194 145
      &.below {
195
        display: block;
196
        clear: left;
197
        float: none;
146
        display: block ;
147
        clear: left ;
148
        float: none ;
198 149
        overflow: hidden ;
199
        margin: 0.3em 0 0 0 !important;
150
        margin: 0.3em 0 0 0 !important ;
200 151
      }
201 152
    }
202
    textarea{
153
    textarea {
203 154
      margin: -0.14em -0.0em ;
204 155
    }
205 156

  
......
217 168
  //  --------------
218 169
  //  TD (Table Data)
219 170
  //
220
  td {}
171
  td {
172
    color: @gray-mediumdark;
173
  }
221 174

  
222 175

  
223 176
  //  --------------
......
225 178
  //
226 179
  tr {
227 180
    //  if header-cell is in the same row as a caption-header-cell (TH.CAPTION)
228
    &.header-caption th{
181
    &.header-caption th {
229 182
      vertical-align: bottom ;
230 183
    }
184
    &.separator {
185
      // Standard separator is below
186
      th, td {
187
        padding-bottom: 3.0em ;
188
      }
189
      &.below {
190
        th, td {
191
          padding-bottom: 3.0em ;
192
        }
193
      }
194
      &.above {
195
        th, td {
196
          padding-top   : 3.0em ;
197
          padding-bottom: 0   ; // override .separator
198
        }
199
      }
200
    }
231 201
  }
232 202

  
233 203

  
234 204
  //  --------------------------------------
235 205
  //  THEAD
236 206
  //  --------------------------------------
237
  thead{
207
  thead {
238 208
    th {
239
      .mx-thead-th; //  Mixin
209
      .mx-thead-th ; //  Mixin
240 210

  
241 211
      a {
242 212
        img {
243
          vertical-align: middle;
244
          padding: 0;
245
          margin: 0;
213
          vertical-align: middle ;
214
          padding: 0 ;
215
          margin: 0 ;
246 216
        }
247 217
      }
248 218
    }
......
266 236
  //  TFOOT
267 237
  //  --------------------------------------
268 238
  tfoot {
269
    tr{
239
    tr {
270 240
      th,
271
      td{
272
        vertical-align: middle;
273
        //border-top: #999 1px solid ;
274
        border-bottom: #999 2px solid ;
275
        height: 1.8em;
241
      td {
242
        vertical-align: middle ;
243
        border-bottom: @table-border-color 2px solid ;
244
        height: 1.8em ;
276 245
      }
277

  
278
      td{
279
        font-weight: bold;
280
        color: #000;
246
      td {
247
        font-weight: bold ;
248
        color: @t-cell-foot-text ;
281 249
      }
282

  
283
      th{
284
        font-weight: normal;
285
        color: #666;
250
      th {
251
        font-weight: normal ;
252
        color: @t-cell-foot-text ;
286 253
       }
287

  
288 254
      //  if more than one row in TFOOT first row has other properties
289
      &:first{
255
      &:first {
290 256
        td,
291
        th{
292
          border-top: #000 2px solid ;
293
        }
257
        th { border-top: @table-border-color 2px solid ; }
294 258
      }
295

  
296
      // normaly last row of a table with some links or buttons under a designated row
259
      // sometimes last row of a table with some links or buttons under a designated row
297 260
      &.blank {
261
          border: none !important ;
298 262
        th,
299 263
        td {
300 264
          border: none !important ;
301 265
        }
302 266
      }
303 267
    } //  /tr
268
    // This is just for expecption (eg. form in price-rules)
269
    // tfoot.blank
270
    &.blank {
271
      tr {
272
          border: none !important ;
273
          &:first-child {
274
            th, td { border-top: 1px solid @table-border-color !important ; }
275
          }
276
        th,
277
        td {
278
          border: none !important ;
279
        }
280
      }
281
    } // /tfoot.blank
304 282
  } //  /TFOOT
305 283

  
306 284

  
......
312 290
  //  otherwise th.caption will be overridden if placed above
313 291
  caption,
314 292
  th.caption {
315
    color: @t-caption-text-color !important;
316
    font-weight: bold ;
317
    white-space: nowrap ;
318

  
293
    background-color:  @table-caption-bg ;
294
    white-space:       nowrap ;
319 295
    .mx-h3-caption ; //   Mixin
320

  
321 296
    //  Addition with smaller font-size
322
    small {
323
      font-size : @font-size-small ;
324
    }
297
    small { font-size : @font-size-small ; }
298
    margin: 0.1em 0 0.4em 0 ;
325 299
  }
326 300

  
327 301

  
......
331 305

  
332 306
  //  alternativ Version (Print style)
333 307
  tr.heading th {
334
    font-size: 120%;
335
    border-top: 1px #999 solid;
308
    font-size: 120% ;
309
    border-top: 1px @table-border-color solid ;
336 310
  }
337 311

  
338 312

  
......
340 314
  //  COLGROUP & COLS
341 315
  //  --------------------------------------
342 316

  
343
  colgroup{  
317
  colgroup {
344 318

  
345 319
    //  Table Columns
346 320
    //  only for background-color and width
347 321
    //   PENDENT: funktioniert Text-Ausrichtung?
348
    col{
349
      &.right  { text-align: right;  }
350
      &.center { text-align: center; }
351
      &.long-desc { font-size: 70% ; }
322
    col {
323
      &.right     { text-align: right  ; }
324
      &.center    { text-align: center ; }
325
      &.long-desc { font-size:  70%    ; }
352 326

  
353 327
      //  --------------
354 328
      //  Width of Columns (Dimensions)
......
374 348
  //  This table has at least a THEAD and a TBODY
375 349
  //  Optional a TFOOT for Totals
376 350
  &.tbl-list {
377
    border-spacing:  1px;
378
    border-collapse: collapse ;
379
    margin:          0 0 1.0em 0 ;
351
    border-spacing:       1px ;
352
    border-collapse:      collapse ;
353
    margin:               0 0 1.0em 0 ;
380 354

  
355
    & > caption { margin: 0.1em 0 0.0em 0 ; }
381 356
    td,
382
    th{
383
      padding: 0.2em 0.4em ;
384
      white-space: normal ;
385
      vertical-align: middle;
357
    th {
358
      padding:            0.2em 0.4em ;
359
      white-space:        normal ;
360
      vertical-align:     middle ;
361
    }
362
    th {  }
363
    td {  }
364

  
365
    // space left from window border
366
    & > thead > tr th:first-child,
367
    & > tbody > tr th:first-child,
368
    & > tfoot > tr td:first-child {
369
        padding-left:     0.8em !important ;
386 370
    }
387

  
388 371
    thead {
389 372
      tr {
390
        height: 2.2em ;
373
        height:           2.2em ;
391 374
        th {
392
          .mx-thead-th;
393
          background-color: @gray-light ;
394
          border-top:       1px solid @gray ;
395
          border-bottom:    1px solid @gray ;
396
        }
375
          .mx-thead-th ; // Mixin
376
          &.nowrap { white-space: nowrap  !important ; }
377

  
378
          & > a {
379
            display: block ;
380
            //margin-top: -2px ;
381
            &:link,
382
            &:visited {
383
              color: @t-cell-head-text-accent ;
384
              text-decoration: none ;
385
            }
386
            &:hover {
387
              color: @t-cell-head-text-accent ;
388
              text-decoration: underline ;
389
            }
390
            &:active,
391
            &:focus {
392
              color: @t-cell-head-text-accent ;
393
              text-decoration: underline ;
394
            }
395
          } // /a
396
        } // /th
397
      } // tr
398
      &.links-condensed {
399
        tr th a { display: inline ; }
397 400
      }
398
    }
401
    } // /thead
399 402

  
400
    tbody{
401
      border-bottom: #999 1px solid ;
402

  
403
      tr:nth-child(odd){
404
        background-color: #ececec ;
405
      }
406
      tr:nth-child(even){
407
        background-color: #dedede ;
403
    tbody {
404
      border-bottom:       @table-border-color 1px solid ;
405
      // zebra effect
406
      tr:nth-child(odd){   background-color:   @t-row-zebra-bg-odd  ; }
407
      tr:nth-child(even){  background-color:   @t-row-zebra-bg-even ; }
408
      // PENDENT: funktioniert nicht
409
      & > tr:last-child > td {
410
        border-bottom:   1px @table-border-color solid !important ;
411
        //padding-left:    0.8em !important;
408 412
      }
409
      tr:hover{
410
        background-color: #fff ;
413
      tr:hover {            background-color:   @t-row-zebra-bg-hover ; }
414
      tr.listrow_error {    background-color:   @brand-error-bg !important          ; }
415
      td {
416
        color: @brand-darkest ;
411 417
      }
418
    } // /tbody
412 419

  
413
      
414
    }
415
    tfoot{
416
      tr{
420
    tfoot {
421
      tr {
417 422
        th,
418
        td{ }
423
        td { }
419 424
      }
420
    }
425
    } // /tfoot
426

  
421 427
  } // /.tbl-list
422 428

  
423 429

  
......
428 434
  //  --------------------------------------
429 435

  
430 436
  //  Simple Table without Zebra Effect
431
  
432
  &.tbl-list-plain, &.tbl-plain {
437

  
438
  &.tbl-list-plain,
439
  &.tbl-plain {
433 440
    caption,
434
    th.caption { font-size: 80% !important; }
441
    th.caption { font-size: 80% !important ; }
435 442

  
436
    th,
437
    td{
438
      padding-right: 20px;
439
      padding-left:  10px;
443
    thead,
444
    tbody {
445
      th,
446
      td { padding: 3px 0.3em 4px 0.3em !important ; }
440 447
    }
441

  
442
    thead{
443
      th{
444
        .mx-thead-th; //  Mixin
448
    thead {
449
      th {
450
        .mx-thead-th ; // mixin
445 451
      }
446 452
    }
447 453

  
448
    tr{
454
    tr {
449 455
      th,
450
      td{
451
        padding: 0.3em inherit 0.3em 0.3em ;
456
      td { padding: 0.3em inherit 0.3em 0.3em ; }
457
      td { }
458
      th { }
459
    }
460
    // kompakt
461
    &.condensed {
462
      caption { padding-left: 0 ; }
463
      td, th {
464
        padding-right: 7px ;
465
        padding-left:  1px ;
466
      }
467
    }
468
    // liniert
469
    &.lined {
470
      tr {
471
        border-bottom: 1px @table-border-color solid ;
472
        & > th,
473
        & > th {
474
          vertical-align: middle !important ;
475
        }
452 476
      }
453
      td{ }
454
      th{ }
455 477
    }
478

  
456 479
  } // /.tbl-plain
457 480

  
481

  
458 482
  &.tbl-list-plain {
459 483
    thead th {
460
      border-top:    1px #000 solid !important;
461
      border-bottom: 1px #000 solid;
462
      font-weight:   bold;
484
      border-top:    1px @table-border-color solid !important ;
485
      border-bottom: 1px @table-border-color solid ;
486
      font-weight:   bold ;
463 487
    }
464 488
    tbody {
465 489
      td,
466
      th { border-bottom: 1px #999 solid; }
490
      th { border-bottom: 1px @table-border-color solid ; }
467 491
    }
468
  }
492
  }// /.tbl-list-plain
469 493

  
470 494

  
471 495

  
......
474 498
  //  TABLE HORIZONTAL
475 499
  //  --------------------------------------
476 500

  
477
  &.tbl-horizontal{
501
  &.tbl-horizontal {
478 502

  
479 503
    th,
480
    td{
481
      background: none;
482
      //padding: 0.5em 0.4em 0.2em 0.3em;
483
      padding-top: 0.5em ;
504
    td {
505
      background: none ;
506
      padding-top: 0.3em ;
484 507
      padding-right: 0.2em ;
485 508
      padding-bottom: 0.2em ;
486 509
      padding-left: 0.3em ;
......
491 514
        margin: 0.2em 0.3em 0 0 !important ;
492 515
      }
493 516
      &>input,
494
      &>select{
517
      &>select {
495 518
        margin: -0.3em 1px 0 0 ;
496 519
        // if there are further form elements within a table cell separated with a Linebreak BR
497
        &.addition { margin-top: 0.3em !important; }
520
        &.addition { margin-top: 0.3em !important ; }
498 521
      }
499 522

  
500 523
      // In some cases labels can be placed within the same cell as the form element
501 524
      // best is to have it above the element
502 525
      // PENDENT: Plazierung in LESS-Dateien
503
      .label-above{
504
        display: block;
526
      .label-above {
527
        display: block ;
505 528
        clear: both ;
506
        overflow: hidden;
507
        color: @t-cell-head-text;
529
        overflow: hidden ;
530
        margin-top: -0.5em ; // PENDENT: ansehen
508 531
        //height: 1.8em ; // PENDENT: besser loesen, gefaellt mir nicht
509 532
      }
533
      &.single-col {
534
        padding-top: 0 ;
535
        padding-bottom: 0 ;
536
      }
537
    } // /td /th
510 538

  
511
    }
512

  
513
    th{
514
      color: @t-cell-head-text-accent;
515
      vertical-align: top;
516
      padding-top: 0.5em ;
517
      
539
    th {
540
      color: @brand-data-label-color ;
541
      vertical-align: top ;
542
      & > a {
543
        &:link,
544
        &:visited {
545
          text-decoration:   none ;
546
          color:             @t-cell-label-text-accent ;
547
        }
548
        &:hover,
549
        &:active {
550
          text-decoration:   underline ;
551
        }
552
      }
518 553
      h4{
519 554
        margin: 0 ;
520 555
        padding: 0 ;
521
        
522 556
      }
523
    }
557
    } // /th
524 558

  
525
    td{
526
      // 2nd to x column with plain data (no form elements)
527
      &>span.plain-data,
528
      &>span.data,
529
      &>span{
530
        padding: 0.1em 0.3em 0.1em 0.3em ;
531
        display: block;
532
      }
533
      // Special Select-Element
534
      &>span.customer_vendor_picker{
535
        padding-left: 0 !important ;        
536
      }
537
      // Switch form element
538
      &>span.switch-form-element{
539
        padding: 0 !important ;   
540
        margin: -0.3em 1px 0 -0.14em !important ;     
541
      }
542
      &>span.wi-small-wide{ margin: 0 24px 0 0 ; display: block; }
543
      &>div.data{
544
        padding: 0.1363em 0 ;
545
      }
546
      &.data{
559
    td {
560
      // 2nd to x column with plain data
561
      // no form elements inside the cell
562
      color: @t-cell-data-text;
563
      &.data {
547 564
        padding: 0.4363em 0.3em 0.4363em 0.3em ;
548 565
      }
549
      &>span.label {
550
        padding: 0 0.3em 0.3em 0 ;        
551
        color: @t-cell-head-text;
552
        font-style: normal;
553
        display: block;
566

  
567
      & > span {
568
        padding: 0 ;
569
        margin:  0 ;
570
        &.wi-smallest    { width: (@input-wi-smallest    ) ; }
571
        &.wi-verysmall   { width: (@input-wi-verysmall   ) ; }
572
        &.wi-small       { width: (@input-wi-small       ) ; }
573
        &.wi-mediumsmall { width: (@input-wi-mediumsmall ) ; }
574
        &.wi-normal      { width: (@input-wi-normal      ) ; }
575
        &.wi-lightwide   { width: (@input-wi-lightwide   ) ; }
576
        &.wi-wide        { width: (@input-wi-wide        ) ; }
577
        &.wi-wider       { width: (@input-wi-wider       ) !important ; }
578
        &.wi-verywide    { width: (@input-wi-verywide    ) ; }
579

  
580
        &.data,
581
        &.plain-data {
582
          padding:        0.1em 0.3em 0.1em 0.2em ;
583
          margin-top:    -0.2em ;
584
          display:        block ;
585
        }
586
        &.label {
587
          padding:        0 0.3em 0.5em 0 !important ;
588
          display:        block ;
589
        }
590
        &.button-inline {
591
          margin:         0 !important ;
592
          padding:        0.3em 0 0 0 ;
593
          clear:          both ;
594
          display:        inline-block ;
595
          vertical-align: middle ;
596

  
597
          input.button,
598
          input[type="button"],
599
          button,
600
          a.button {
601
            float:        left ;
602
            margin:       0 0.3em 0 0 !important ;
603
          }
604
        }
605

  
606
        // Special Select-Element
607
        &.customer_vendor_picker {
608
          padding-left:   0 !important ;
609
          display:        inline-block ;
610
        }
611
        &.project_picker {
612
          margin:        -0.3em 0 0 0 ;
613
        }
614
        // Switch form element
615
        &.switch-form-element {
616
          padding:        0 !important ;
617
          margin:        -0.3em 1px 0 0 !important ;
618
        }
619
      } // / > span
620

  
621
      &>div.data { padding: 0.1363em 0 ; }
622
      // PENDENT: braucht es das?
623
      // PENDENT: span nicht td
624
      .plus1 {
625
        display: inline-block ;
626
        padding: 0 ;
554 627
      }
555
      &>span.project_picker{
556
        margin: -0.3em 0 0 -0.2em ;
628
      & > .condensed {
629
        padding: 0 !important ;
630
        margin: 0 ;
631
        input, select {
632
          margin-top: 0.2em ;
633
        }
557 634
      }
558
    }
559 635

  
560
    caption,
561
    th.caption{
562
      padding: 0.4em 0 0.2em 0.2em;
636
      &>span.wi-small-wide { margin: 0 24px 0 0 ; display: block ; }
563 637
    }
564 638

  
565 639
    // Exception: Thead in horizontal table
566 640
    thead th {
567
      padding: 0.5em 0.4em 0.9em 0.3em;
641
      padding: 0.5em 0.4em 0.5em 0.3em ;
642
      font-weight: bold ;
643
      color: @t-cell-head-text ;
644
      border: none ;
568 645
    }
569 646

  
570 647

  
571 648
    // Zebra effect
649
    // PENDENT: Klasse .zebra wahrscheinlich kaum eingsetzt
572 650
    &.zebra {
573
      tbody{
651
      tbody {
574 652
        tr:nth-child(odd){
575
          background-color: #dedede ;
653
          background-color: @gray-lighter ;
576 654
          th { background-color: #fff ; }
577 655
        }
578 656
        tr:nth-child(even){
579
          background-color: #ececec ;
657
          background-color: @gray-verylight ;
580 658
          th { background-color: #fff ; }
581 659
        }
582 660
      }
583 661
    } // /.zebra
584
    
585
    // checkered (bordered) table 
662

  
663
    // checkered (bordered) table
586 664
    &.checkered {
587 665
      border-collapse: collapse ;
588
      tbody{
589
        tr{
666
      tbody {
667
        tr {
590 668
          background-color: #F3F3F3 ;
591 669
          //th { background-color: #fff ; }
592 670
          td, th {
593
            border-color: #999 ;
671
            border-color: @table-border-color ;
594 672
            border-width: 1px ;
595 673
            border-style: solid ;
596 674
            padding: 0.3em 0.6em ;
......
598 676
        }
599 677
      }
600 678
    } // /.zebra
601
    
602
    
603 679

  
604 680
  } // /.tbl-horizontal
605 681

  
......
610 686
  //  --------------------------------------
611 687
  &.tbl-horizontal,
612 688
  &.tbl-plain,
613
  &.tbl-list{
689
  &.tbl-list {
614 690
    margin-bottom: 0.6em ;
615
    border-collapse: collapse;
616
    border: none; 
617
    
691
    border-collapse: collapse ;
692
    border: none ;
693

  
618 694
    tr td {
619
      &>span{
695
      &>span {
620 696
        padding: 0.3em 0.3em 0.6em 0.3em ;
621 697
      }
622 698
    }
623 699
  }
624 700

  
625

  
701
  &.tbl-horizontal.expanded {
702
    th.caption { padding-top: 1.2em ; padding-bottom: 0.6em ; }
703
  }
626 704

  
627 705

  
628 706

  
......
631 709
  //  --------------------------------------
632 710

  
633 711
  //  Table within DIV-Dialogs
634
  &.tbl-dialog{
712
  &.tbl-dialog {
635 713
    th,
636
    td{
637
      background-color: #ececec;
714
    td {
715
      background-color: @gray-verylight ;
638 716
    }
639
    th{
640
      color: #888;
717
    th {
718
      color: @t-cell-head-text ;
641 719
      font-size: @font-size-base ;
642
      vertical-align: top;
720
      vertical-align: top ;
643 721
    }
644 722
  }
645 723

  
646 724

  
647

  
648

  
649

  
650 725
  //  --------------------------------------
651
  //  TABLE CLASS TEST
726
  //  CLEAR-TABLE WITH NO FLOATING
652 727
  //  --------------------------------------
653
  //  Use this class for reviewing your Table HTML
654

  
655
  &.test,
656
  &.test-plain{
657
    //border: 1px #000 solid ;
658
    //background-color: #BFD2AD;
659

  
660
    th{
661
      background-color: #B3B3B3;
662
      color: #757575 ;
663
      font-weight: normal ;
664

  
665
      &.caption {
666
        background-color: #B3B3B3 ;
667
        //border: 1px solid red !important;
668
      }
669
    }
670
    td{
671
      background-color: #CFCDD2; 
672

  
673
      &.longdesc,
674
      &.longdescription,
675
      &.long-desc,
676
      &.long-description{
677
        border: 1px solid green !important;
678
      }
679
    }
680

  
681
    table {
682
      border: 1px #0000FF solid ;
683
      border-collapse: collapse;
684

  
685
      td, th{
686
        border: 1px #C20D18 dotted !important;
687
      }
688
    }
689

  
690
  } // /.test
691

  
692

  
693

  
694

  
695
  &.test{
696
    //border: 1px #000 solid ;
697
    //background-color: #BFD2AD;
698

  
699
    th{
700
      border: 1px #757575 solid !important;
701
      background-color: #B3B3B3;
702
      color: #757575 ;
703
      font-weight: normal ;
704

  
705
      &.caption {
706
        background-color: #B3B3B3 ;
707
        //border: 1px solid red !important;
708
      }
709
    }
710
    td{
711
      border: 1px #3C3C3B solid ; 
712
      background-color: #CFCDD2; 
713

  
714
      &.longdesc,
715
      &.longdescription,
716
      &.long-desc,
717
      &.long-description{
718
        border: 1px solid green !important;
719
      }
720
    }
721

  
722
    table {
723
      border: 2px #0000FF solid ;
724
      border-collapse: collapse;
725

  
726
      td, th{
727
        border: 1px #C20D18 dotted !important;
728
      }
729
    }
730

  
731
  } // /.test
732

  
728
  &.clear {
729
    float: none ;
730
    clear: both ;
731
  }
733 732

  
734 733

  
735 734
  //  --------------------------------------
......
743 742
  //  moderate width with padding on the right side
744 743
  &.width-moderate,
745 744
  &.moderate-width,
746
  &.wi-moderate{
745
  &.wi-moderate {
747 746
    width: auto ;
748 747
    td,
749 748
    th {
750 749
      // PENDENT: vielleicht in Pixeln angeben, statt in EMs (siehe tbl-plain)
751 750
      padding-left: 0.6em ;
752
      padding-right: 1.2em;
751
      padding-right: 1.2em ;
753 752
    }
754 753
  }
755 754

  
......
771 770
  &.wi-small-normal          { width: @tcol-wi-small + @tcol-wi-normal ; }
772 771
  &.wi-small-lightwide       { width: @tcol-wi-small + @tcol-wi-lightwide ; }
773 772
  // PENDENT: noch genauer anschauen, sollte eigentlich nur für horizontale Tabellen vorgesehen sein
774
  &.wi-small-wide            { width: @tcol-wi-small + @tcol-wi-wide + ( @diff-input-select )  ; }  
775
  //&.wi-small-wide            { width: 460px ; }  
773
  &.wi-small-wide            { width: @tcol-wi-small + @tcol-wi-wide + ( @diff-input-select )  ; }
774
  //&.wi-small-wide            { width: 460px ; }
776 775
  &.wi-small-wider           { width: @tcol-wi-small + @tcol-wi-wider ; }
777 776
  &.wi-small-verywide        { width: @tcol-wi-small + @tcol-wi-verywide ; }
778 777

  
......
789 788
  &.wi-normal-normal      { width: @tcol-wi-normal + @tcol-wi-normal ; }
790 789
  &.wi-normal-lightwide   { width: @tcol-wi-normal + @tcol-wi-lightwide ; }
791 790
  &.wi-normal-wide        { width: @tcol-wi-normal + @tcol-wi-wide ; }
792
  &.wi-normal-wider       { width: @tcol-wi-normal + @tcol-wi-wider ; } 
793
  &.wi-normal-verywide    { width: @tcol-wi-normal + @tcol-wi-verywide ; } 
791
  &.wi-normal-wider       { width: @tcol-wi-normal + @tcol-wi-wider ; }
792
  &.wi-normal-verywide    { width: @tcol-wi-normal + @tcol-wi-verywide ; }
794 793

  
795
  &.wi-lightwide-small       { width: @tcol-wi-lightwide + @tcol-wi-small ; } 
796
  &.wi-lightwide-mediumsmall { width: @tcol-wi-lightwide + @tcol-wi-mediumsmall ; } 
797
  &.wi-lightwide-normal      { width: @tcol-wi-lightwide + @tcol-wi-normal ; } 
798
  &.wi-lightwide-lightwide   { width: @tcol-wi-lightwide + @tcol-wi-lightwide ; } 
799
  &.wi-lightwide-wide        { width: @tcol-wi-lightwide + @tcol-wi-wide ; } 
800
  &.wi-lightwide-wider       { width: @tcol-wi-lightwide + @tcol-wi-wider ; } 
801
  &.wi-lightwide-verywide    { width: @tcol-wi-lightwide + @tcol-wi-verywide ; } 
794
  &.wi-lightwide-small       { width: @tcol-wi-lightwide + @tcol-wi-small ; }
795
  &.wi-lightwide-mediumsmall { width: @tcol-wi-lightwide + @tcol-wi-mediumsmall ; }
796
  &.wi-lightwide-normal      { width: @tcol-wi-lightwide + @tcol-wi-normal ; }
797
  &.wi-lightwide-lightwide   { width: @tcol-wi-lightwide + @tcol-wi-lightwide ; }
798
  &.wi-lightwide-wide        { width: @tcol-wi-lightwide + @tcol-wi-wide ; }
799
  &.wi-lightwide-wider       { width: @tcol-wi-lightwide + @tcol-wi-wider ; }
800
  &.wi-lightwide-verywide    { width: @tcol-wi-lightwide + @tcol-wi-verywide ; }
802 801

  
803 802

  
804 803

  
......
808 807
  //  --------------------------------------
809 808

  
810 809
  td > a,
811
  th > a{
812
    display: block;
810
  th > a {
811
    display: block ;
813 812
  }
814 813

  
815 814

  
......
818 817
  //  HEADINGS (within TD & TH)
819 818
  //  --------------------------------------
820 819

  
821
  td {
820
  td,
821
  th {
822 822
    h3,
823 823
    h4 {
824 824
      margin: 0 !important ;
825
      padding: 0;
825
      padding: 0.8em 0 0.2em 0 !important ;
826 826
    }
827
  h4 {
828
      font-weight: normal;
827
    h4 {
828
        //font-weight: normal ;
829 829
    }
830 830
  }
831 831

  
......
836 836
  //  SUB-TOTALS
837 837
  //  --------------------------------------
838 838

  
839
  tr{
839
  tr {
840 840

  
841 841
    //  PENDENT: ggf. OBSOLETE
842
    &.total-sub{
843
      height: 2.0em;
844

  
845
      td{
846
        border-top: 1px solid #ccc ;
847
        border-bottom: 2px solid #999 ;
848
        font-weight: bold;
849
        color: #666 ;
842
    &.total-sub {
843
      height: 2.0em ;
844

  
845
      td {
846
        border-top: 1px solid @table-border-color ;
847
        border-bottom: 2px solid @table-border-color ;
848
        font-weight: bold ;
849
        color: @t-cell-text-color ;
850 850
      }
851 851
    }
852 852

  
853 853
  } //  /tr
854 854

  
855

  
856

  
857
  //  --------------------------------------
858
  //  TABLE CLASS TEST
859
  //  --------------------------------------
860
  //  Use this class for reviewing your Table HTML
861

  
862
  &.test,
863
  &.test-plain {
864
    //border: 1px @table-border-color solid ;
865
    //background-color: #BFD2AD ;
866

  
867
    th {
868
      background-color: #B3B3B3 ;
869
      color: @t-cell-text-color ;
870
      font-weight: normal ;
871

  
872
      &.caption {
873
        background-color: #B3B3B3 ;
874
      }
875
    }
876
    td {
877
      background-color: #CFCDD2 ;
878

  
879
      &.longdesc,
880
      &.longdescription,
881
      &.long-desc,
882
      &.long-description {
883
        border: 1px solid green !important ;
884
      }
885
    }
886

  
887
    table {
888
      border: 1px #0000FF solid ;
889
      border-collapse: collapse ;
890

  
891
      td, th {
892
        border: 1px #C20D18 dotted !important ;
893
      }
894
    }
895

  
896
  } // /.test
897

  
898
  &.test {
899
    //border: 1px @table-border-color solid ;
900
    //background-color: #BFD2AD ;
901

  
902
    th {
903
      border: 1px @gray-mediumdark solid !important ;
904
      background-color: #B3B3B3 ;
905
      color: #000 ;
906
      font-weight: normal ;
907

  
908
      &.caption {
909
        background-color: @table-caption-bg ;
910
        //border: 1px solid red !important ;
911
      }
912
    }
913
    td {
914
      border: 1px #000 solid ;
915
      background-color: #CFCDD2 ;
916

  
917
      &.longdesc,
918
      &.longdescription,
919
      &.long-desc,
920
      &.long-description {
921
        border: 1px solid green !important ;
922
      }
923
    }
924

  
925
    table {
926
      border: 2px #0000FF solid ;
927
      border-collapse: collapse ;
928

  
929
      td, th {
930
        border: 1px #C20D18 dotted !important ;
931
      }
932
    }
933

  
934
  } // /.test
935

  
936

  
937

  
855 938
}
856 939
//  /table
857 940

  
......
881 964
  &.wi-small-normal            { width: @tcol-wi-small-normal ; }
882 965
  &.wi-small-lightwide         { width: @tcol-wi-small-lightwide ; }
883 966
  // PENDENT: noch genauer anschauen, sollte eigentlich nur für horizontale Tabellen vorgesehen sein
884
  &.wi-small-wide              { width: ( @tcol-wi-small-wide )  ; }  
885
  //&.wi-small-wide            { width: 460px ; }  
967
  &.wi-small-wide              { width: ( @tcol-wi-small-wide )  ; }
968
  //&.wi-small-wide            { width: 460px ; }
886 969
  &.wi-small-wider             { width: @tcol-wi-small-wider ; }
887 970
  &.wi-small-verywide          { width: @tcol-wi-small-verywide ; }
888 971

  
......
899 982
  &.wi-normal-normal           { width: @tcol-wi-normal-normal ; }
900 983
  &.wi-normal-lightwide        { width: @tcol-wi-normal-lightwide ; }
901 984
  &.wi-normal-wide             { width: @tcol-wi-normal-wide ; }
902
  &.wi-normal-wider            { width: @tcol-wi-normal-wider ; } 
903
  &.wi-normal-verywide         { width: @tcol-wi-normal-verywide ; } 
985
  &.wi-normal-wider            { width: @tcol-wi-normal-wider ; }
986
  &.wi-normal-verywide         { width: @tcol-wi-normal-verywide ; }
904 987

  
905
  &.wi-lightwide-small         { width: @tcol-wi-lightwide-small ; } 
906
  &.wi-lightwide-mediumsmall   { width: @tcol-wi-lightwide-mediumsmall ; } 
907
  &.wi-lightwide-normal        { width: @tcol-wi-lightwide-normal ; } 
908
  &.wi-lightwide-lightwide     { width: @tcol-wi-lightwide-lightwide ; } 
909
  &.wi-lightwide-wide          { width: @tcol-wi-lightwide-wide ; } 
910
  &.wi-lightwide-wider         { width: @tcol-wi-lightwide-wider ; } 
911
  &.wi-lightwide-verywide      { width: @tcol-wi-lightwide-verywide ; } 
988
  &.wi-lightwide-small         { width: @tcol-wi-lightwide-small ; }
989
  &.wi-lightwide-mediumsmall   { width: @tcol-wi-lightwide-mediumsmall ; }
990
  &.wi-lightwide-normal        { width: @tcol-wi-lightwide-normal ; }
991
  &.wi-lightwide-lightwide     { width: @tcol-wi-lightwide-lightwide ; }
992
  &.wi-lightwide-wide          { width: @tcol-wi-lightwide-wide ; }
993
  &.wi-lightwide-wider         { width: @tcol-wi-lightwide-wider ; }
994
  &.wi-lightwide-verywide      { width: @tcol-wi-lightwide-verywide ; }
912 995

  
913 996
}
914 997

  
......
928 1011

  
929 1012
div.wrapper,
930 1013
div.cols {
931
  table.tbl-list{
932
    border-left: 1px solid @gray !important ;
933
    border-right: 1px solid @gray ;
1014
  table.tbl-list tr {
1015
    border-left: 1px solid @table-border-color ;
1016
    border-right: 1px solid @table-border-color ;
934 1017
  }
935 1018
}
936 1019

  
937 1020

  
938 1021

  
939 1022

  
940
//  --------------------------------------
941
//  TABLES in Requirement Specs
942
//  --------------------------------------
943

  
944
div.function-block * table.tbl-horizontal td{
945
  font-size: 66% !important;
946
}
947

  
948

  
949

  
950

  
951 1023

  
952
//  --------------------------------------
953
//  TABLES build with DIVS
954
//  --------------------------------------
955 1024

  
956
div.table {
957
  margin-bottom: 1.0em ;
958
  &.col {
959
    float: left;
960
    margin-right: 2.0em;
961
  }
962 1025

  
963
  div.caption {
964
    clear: left ;
965
    display: block;
966
    font-weight: bold;
967
    color: grey ;
968
  }
969
  div.field {
970
    clear: left ; 
971
    display: block ;
972
    overflow: hidden ;
973
    // PENDENT: ueberpruefen wegen cke-Editor-Konflikte
974
    span.label{
975
      display: block ;
976
      float: left ;
977
      width: @wi-normal ;
978
    }
979
    span.value{
980
      display: block ;
981
      float: left ;
982
      width: @wi-normal ;
983
    }
984
  }
1026
span.sort {
1027
  display: inline-block ;
1028
  height: 100% ;
985 1029
}
986

  
987

  
988
//  --------------------------------------
989
//  TABLES with PARAGRAPHS or DIVs for Checkboxes
990
//  --------------------------------------
991
// PENDENT: siehe auch form-additions
992
div.list {
993
  font-size: 10pt ;
994
  color: black ;
995
  // A column with a list
996
  &.col {
997
    float: left ;
998
    margin-right: 2.6em !important;
999
    width: auto;
1000
    min-width: 140px;
1001
    max-width: 180px;
1002
  }
1003
  // List Title
1004
  h4 {
1030
span.sort_symbol {
1031
  display: inline-block ;
1032
  width: 10px ;
1033
  padding: 0 ;
1034
  margin: 0 ;
1035
  a {
1036
    display: block ;
1037
    width: 8px ;
1038
    height: 8px ;
1039
    font-size: 7pt ;
1040
    padding: 0 0 3px 0 ;
1005 1041
    margin: 0 ;
1006
    padding: 1.2em 0 0.2em 0.4em ;
1007
    font-size: 10pt !important;
1008
    font-style: italic;
1009
  }
1010
  // List Elements
1011
  &>p,
1012
  &>div {
1013
    padding: 0.2em 0 0.2em 0 !important;
1014
    margin: 0 !important;
1015
    white-space: normal;
1016

  
1017
    &>input[type="checkbox"],
1018
    &>input[type="radio"] {
1019
      padding: 0 ;
1020
      margin: 0.3em 0.3em 0 0 ;
1021
      float: left; 
1022
    }
1023
    label{
1024
      width: 82% ; 
1025
      float: left ;
1026
    }
1027
  }
1028
  &>p{
1029
    //margin: 0 0 1.2em 0 !important;
1030
    overflow: hidden;
1031
  }
1032
  // Special Element but same like above (see Custom Vars)
1033
  &>input[type="checkbox"] {}
1034
  &>label { width: 82%; }
1035
  
1036
  div{ clear: left }
1037
}
1038

  
1039

  
1040
// --------------------------------------
1041
// FLOAT-CELLS TABLE
1042
// --------------------------------------
1043
// Table with left-floating cell
1044

  
1045
div.float-cells-table{
1046
  display: block ;
1047
  width: 100% ;
1048
  overflow: hidden;
1049
  font-size: 80% ;
1050

  
1051
  div.caption{
1052
    float: left;
1053
    display: block;
1054
    width: auto:
1055
    padding: 0 2.0em 0 0;
1056
    margin: 0;
1057
     background-color: #6FC;
1058

  
1059
  }
1060
  div.cells{
1061
    float: left;
1062
    display: block;
1063
    overflow: hidden;
1064
    width: 100%;
1065
     background-color: #F66;
1066

  
1067
    div.cell{
1068
      float: left;
1069
      padding: 0 2.0em 0 0;
1070
      border-right: 1px #fff solid;
1071
      background-color: #FC6;
1072
    }
1073
  }
1074
}
1075

  
1076

  
1077

  
1078
div.list-table-with-separate-total-table {
1079

  
1080
  div.full-width{
1081
    padding-bottom: 0 ;
1082
    margin-bottom: 0 ;
1083
    
1084
    .tbl-list{
1085
      margin-bottom: 0;
1086
    }
1087
    
1088
  }
1089

  
1090
  // Total-Tabelle
1091
  // Separater Block mit Table ohne Body, nur Footer für Totals
1092
  div.list-total{
1093
    width: 100%;
1094
    margin: 0 ; 
1095
    padding: 0;
1096
    overflow: hidden;
1097
  
1098
    table.footer-only{
1099
      &.right{ float: right; }
1100
      margin: 0 ; 
1101
      padding: 0;
1042
    text-align: center ;
1043
    clear: both ;
1044
    float: none ;
1045
    vertical-align: top ;
1046
    &.ascending {
1047
      border-top:    1px @table-border-color solid ;
1048
      border-right:  1px @table-border-color solid ;
1049
      border-left:   1px @table-border-color solid ;
1102 1050
    }
1103
  
1104
    div.after-item{  }
1105
  }
1106

  
1107
}
1108

  
1109

  
1110
.floating-boxes {
1111
  display: table ;
1112
  margin: 0.4em 0 0.8em 0 ;
1113
  
1114
  .floating-box {
1115
    display: table-cell ;
1116
    float: left ;
1117
    font-size: @font-size-smaller ;
1118
    height: 1.9em ;
1119
    vertical-align: middle;
1120
    padding: 0 2.0em 0 0 ;
1121
    .button, button{
1122
      margin: 0 ; 
1051
    &.descending {
1052
      border-right:  1px @table-border-color solid ;
1053
      border-bottom: 1px @table-border-color solid ;
1054
      border-left:   1px @table-border-color solid ;
1123 1055
    }
1124
    label,
1125
    span.label{ 
1126
      width: auto;
1127
      font-size: @font-size-smaller ;
1128
      display: inline-block;
1129
      height: 160%;
1130
      color: #666;
1056
    &.active {
1057
       background-color: #000000 ;
1058
       color: #ffffff ;
1131 1059
    }
1132
    input[type="checkbox"]{ margin: 0 0.4em 0 0 ; }
1133
    select { margin: -0.3em 0 0 0; }
1134 1060
  }
1135 1061
}
1136 1062

  
......
1138 1064

  
1139 1065

  
1140 1066

  
1141
//  --------------------------------------
1142
//  Medienabfragen und Beruecksichtigungen Plattformen
1143
//  --------------------------------------
1144
//  Handheld Hochformat width: 320px
1145
@media screen and (max-device-width: 479px) {
1146

  
1147
}
1148
//  Handheld Querformat width: 480px
1149
@media screen and (min-device-width: 480px) and (max-device-width: 767px) {
1150

  
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff