1 /* ------------------------------------------------------------- */
2 /* tables (tables.less) */
3 /* ------------------------------------------------------------- */
5 //----------------------------------------------------------------------------
9 //----------------------------------------------------------------------------
10 // description: for all kind of tables in #content
16 // - Headings (within TD & TH)
17 // - Links (within TD & TH)
18 // - Images within cells
19 // - Description & labels within cells
27 // - headings (print style)
29 // - dimensions for table colums (col)
35 // - dimensions (classes) for tables
40 // - tables in requirement specs
42 // - list with paragraphs
43 //----------------------------------------------------------------------------
47 // ----------------------------------------------------------------------------
51 // ----------------------------------------------------------------------------
54 //font-size: @font-size-base ;
59 //--------------------------------------
61 //--------------------------------------
66 //font-size: @font-size-smaller ;
70 // -----------------------
72 // -----------------------
73 &.right { text-align: right !important ; }
74 &.center { text-align: center !important ;
75 input { float: none !important ; }
77 &.numeric { text-align: right !important ; }
78 &.numeric-centered { text-align: center !important ; }
79 &.date { text-align: right !important ; }
80 // PENDENT: wo eingesetzt
81 &.button { text-align: center !important ; }
82 &.img { text-align: center !important ; }
83 &.top { vertical-align: top !important ; }
84 // see also div.longdesc in main.css
85 // PENDENT: mixin und variablen erstellen
92 color: @t-cell-label-text ;
94 &.highlight { background-color: @t-row-zebra-bg-highlight ; }
95 div.numeric { text-align: right !important ; }
97 // -----------------------
98 // Headings (within TD & TH)
99 // -----------------------
100 // PENDENT: ueberpruefen
103 margin: 0 !important ;
104 padding: 0.8em 0 0.2em 0 !important ;
107 // -----------------------
108 // Links (within TD & TH)
109 // -----------------------
110 &> a { display: block ; }
112 // -----------------------
113 // Images Within Cells
114 // -----------------------
117 vertical-align: top ;
120 &+img { float: left ; }
122 &~img { float: right ; }
131 // -----------------------
132 // Description & Labels Within Cells
133 // -----------------------
140 & + div.description { margin-top: 0.4em ; }
144 // simulates th in horizontal tables
147 padding: 0 0 0.5em 0 ;
148 color: @t-cell-th-text-color ;
155 margin: 0.6em 0 0 0 !important ;
156 &[type="checkbox"]{ padding: 0.6em 0.6em 0 0 ;}
163 margin-bottom: 0.4em ;
164 padding: 0.3em 0.3em 0 0 !important ;
168 // -----------------------
169 // Form Element Within Cells
170 // -----------------------
172 // if a .below class follows directly after a td/th
174 margin: 0 !important;
185 // PENDENT: anschauen! vor allem button customer information -> Lieferadresse
186 margin: 0.3em 0 0 0 ;
191 margin: -0.14em -0.0em ;
198 //--------------------------------------
199 // TH (TABLE HEADER CELLS)
200 //--------------------------------------
202 white-space: normal !important ;
203 // Header text vertically centered
205 vertical-align: middle;
209 //--------------------------------------
211 //--------------------------------------
213 color: @t-cell-text-color;
217 //--------------------------------------
219 //--------------------------------------
221 // if header-cell is in the same row as a caption-header-cell (th.caption)
222 &.header-caption th {
223 vertical-align: bottom ;
226 // standard separator is below
228 padding-bottom: 3.0em ;
232 padding-bottom: 3.0em ;
237 padding-top : 3.0em ;
238 padding-bottom: 0 ; // override .separator
243 // -----------------------
245 // -----------------------
246 // PENDENT: ggf. obsolete
251 border-top: 1px solid @table-border-color ;
252 border-bottom: 2px solid @table-border-color ;
254 color: @t-cell-text-color ;
259 border-top: 1px solid @table-border-color ;
260 border-bottom: 2px solid @table-border-color ;
262 color: @t-cell-text-color ;
266 border-top: 1px solid @table-border-color ;
267 border-bottom: 2px solid @table-border-color ;
269 color: @t-cell-text-color ;
272 // -----------------------
273 // HEADINGS (alternativ version [print style])
274 // -----------------------
275 // PENDENT: ueberpruefen
278 border-top: 1px @table-border-color solid ;
286 //--------------------------------------
288 //--------------------------------------
290 // this must be placed here
291 // otherwise th.caption will be overridden if placed above
294 .mx-h3-caption ; // mixin
295 white-space: nowrap ;
296 // addition with smaller font-size
297 small { font-size : @font-size-small ; }
302 //--------------------------------------
304 //--------------------------------------
307 .mx-thead-th ; // mixin
311 vertical-align: middle ;
320 //--------------------------------------
322 //--------------------------------------
326 // common cells within tbody
333 //--------------------------------------
335 //--------------------------------------
340 vertical-align: middle ;
341 border-bottom: @table-border-color 2px solid ;
343 padding-top: 0.6em !important;
344 padding-bottom: 0.6em !important;
348 color: @t-cell-foot-text ;
351 font-weight: normal ;
352 color: @t-cell-foot-text ;
354 // if more than one row in tfoot first row has other properties
357 th { border-top: @table-border-color 2px solid ; }
359 // sometimes last row of a table with some links or buttons under a designated row
361 border: none !important ;
364 border: none !important ;
368 // this is just for expecption (eg. form in price-rules)
372 border: none !important ;
374 th, td { border-top: 1px solid @table-border-color !important ; }
378 border: none !important ;
386 //--------------------------------------
388 //--------------------------------------
393 // only for background-color and width
394 // PENDENT: funktioniert text-ausrichtung?
396 &.right { text-align: right ; }
397 &.center { text-align: center ; }
398 &.long-desc { font-size: 70% ; }
400 // -----------------------
401 // width of columns (dimensions)
402 // -----------------------
403 &.wi-smallest { width: (@tcol-wi-smallest ) ; }
404 &.wi-verysmall { width: (@tcol-wi-verysmall ) ; }
405 &.wi-small { width: (@tcol-wi-small ) ; }
406 &.wi-mediumsmall { width: (@tcol-wi-mediumsmall ) ; }
407 &.wi-normal { width: (@tcol-wi-normal ) ; }
408 &.wi-lightwide { width: (@tcol-wi-lightwide ) ; }
409 &.wi-wide { width: (@tcol-wi-wide ) ; }
410 &.wi-wider { width: (@tcol-wi-wider ) ; }
411 &.wi-verywide { width: (@tcol-wi-verywide ) ; }
420 //--------------------------------------
421 // STANDARD KIVITENDO TABLES
422 //--------------------------------------
428 margin-bottom: 0.6em ;
429 border-collapse: collapse ;
434 //padding: 0.3em 0.3em 0.6em 0.3em ;
435 padding: 0.3em 0.3em 0.6em 0 ;
444 //--------------------------------------
446 //--------------------------------------
454 padding-right: 0.2em ;
455 padding-bottom: 0.2em ;
456 padding-left: 0.3em ;
458 // adjust form elements in this table type
459 &>input[type="checkbox"],
460 &>input[type="radio"] {
461 margin: 0 0.3em 0.2em 0 !important ;
465 margin: -0.3em 1px 0 0 ;
466 // if there are further form elements within a table cell separated with a linebreak br
467 &.addition { margin-top: 0.3em !important ; }
470 // in some cases labels can be placed within the same cell as the form element
471 // best is to have it above the element
472 // PENDENT: plazierung in less-dateien, ggf. ueberfluessig
477 margin-top: -0.5em ; // pendent: ansehen
478 //height: 1.8em ; // pendent: besser loesen, gefaellt mir nicht
485 // form labels within table cells
487 //color: @t-cell-th-text-color ;
489 //padding-top: 0.3em;
495 color: @t-cell-th-text-color ;
496 //vertical-align: top ;
504 // 2nd to x column with plain data
505 // no form elements inside the cell
506 //color: @t-cell-data-text;
508 //padding: 0.4363em 0.3em 0.4363em @padding-databoxes-left ;
514 &.wi-smallest { width: (@input-wi-smallest ) ; }
515 &.wi-verysmall { width: (@input-wi-verysmall ) ; }
516 &.wi-small { width: (@input-wi-small ) ; }
517 &.wi-mediumsmall { width: (@input-wi-mediumsmall ) ; }
518 &.wi-normal { width: (@input-wi-normal ) ; }
519 &.wi-lightwide { width: (@input-wi-lightwide ) ; }
520 &.wi-wide { width: (@input-wi-wide ) ; }
521 &.wi-wider { width: (@input-wi-wider ) !important ; }
522 &.wi-verywide { width: (@input-wi-verywide ) ; }
526 //padding: 0.1em 0.3em 0.1em @padding-databoxes-left ;
531 color: @t-cell-th-text-color ;
532 padding: 0 0.3em 0.5em 0 !important ;
536 margin: 0 !important ;
537 padding: 0.3em 0 0 0 ;
539 display: inline-block ;
540 vertical-align: middle ;
543 input[type="button"],
547 margin: 0 0.3em 0 0 !important ;
551 // special select-element
552 &.customer_vendor_picker {
553 padding: 0 !important ;
554 margin: 0 !important ;
555 display: inline-block ;
558 margin: -0.3em 0 0 0 ;
560 // area input element
562 padding: 0 !important ;
563 margin: -0.3em 1px 0 0 !important ;
567 &>div.data { padding: 0.1363em 0 ; }
568 // pendent: braucht es das?
569 // pendent: span nicht td
571 display: inline-block ;
575 padding: 0 !important ;
582 &>span.wi-small-wide { margin: 0 24px 0 0 ; display: block ; }
585 // exception: thead in horizontal table
588 // padding: 0.5em 0.4em 0.5em 0.3em ;
589 // font-weight: normal ;
590 // font-size: @h3-size ;
591 // color: @base-heading-color ;
598 // pendent: klasse .zebra hier wahrscheinlich kaum eingsetzt
602 background-color: @t-row-zebra-bg-odd ;
603 th { background-color: @t-row-zebra-bg-odd ; }
606 background-color: @t-row-zebra-bg-even ;
607 th { background-color: @t-row-zebra-bg-even ; }
612 // checkered (bordered) table
614 border-collapse: collapse ;
617 background-color: @table-bg-accent ;
618 //th { background-color: #fff ; }
620 border-color: @table-border-color ;
622 border-style: solid ;
623 padding: 0.3em 0.6em ;
629 //PENDENT: ueberpruefen
631 th.caption { padding-top: 1.2em ; padding-bottom: 0.6em ; }
634 } // /.tbl-horizontal
640 //--------------------------------------
642 //--------------------------------------
648 display: inline-block !important ;
656 //--------------------------------------
657 // TABLE LIST (VERTICAL)
658 //--------------------------------------
659 // table with zebra effect
660 // this table has at least a thead and a tbody
661 // optional a tfoot for totals
663 border-spacing: 1px ;
664 border-collapse: collapse ;
665 margin: 0 0 1.0em 0 ;
667 & > caption { margin: 0.1em 0 0.0em 0 ; }
670 padding: 0.2em 0.4em ;
671 white-space: normal ;
672 vertical-align: middle ;
677 // space left from window border
678 & > thead > tr th:first-child,
679 & > tbody > tr th:first-child,
680 & > tfoot > tr td:first-child {
681 padding-left: 0.8em !important ;
685 display: table-header-group;
690 .mx-thead-th ; // mixin
691 &.nowrap { white-space: nowrap !important ; }
697 color: @t-cell-head-text-accent ;
698 text-decoration: underline ;
701 color: @t-cell-head-text-accent ;
702 text-decoration: underline ;
706 color: @t-cell-head-text-accent ;
707 text-decoration: underline ;
711 color: @t-cell-head-text-accent ;
712 //text-decoration: none ;
714 //color: @t-cell-head-text-accent ;
715 text-decoration: underline ;
721 tr th a { display: inline ; }
726 border-bottom: @table-border-color 1px solid ;
727 display: table-row-group;
730 tr:nth-child(odd) { background-color: @t-row-zebra-bg-odd ; }
731 tr:nth-child(even) { background-color: @t-row-zebra-bg-even ; }
733 tr:nth-child(odd).listrow_ok { background-color: @base-ok-bg ; }
734 tr:nth-child(even).listrow_ok { background-color: @base-ok-bg-lighter ; }
736 tr:nth-child(odd).listrow_error { background-color: @base-error-bg ; }
737 tr:nth-child(even).listrow_error { background-color: @base-error-bg-lighter ; }
739 // using a darker color variant here because the light one is almost invisible
740 tr:nth-child(odd).listrow_info { background-color: @base-info-bg-darker ; }
741 tr:nth-child(even).listrow_info { background-color: @base-info-bg-dark ; }
743 tr:nth-child(odd).listrow_warning { background-color: @base-warning-bg ; }
744 tr:nth-child(even).listrow_warning { background-color: @base-warning-bg-lighter ; }
746 // pendent: funktioniert nicht
747 & > tr:last-child > td {
748 border-bottom: 1px @table-border-color solid !important ;
749 //padding-left: 0.8em !important;
751 tr:hover { background-color: @t-row-zebra-bg-hover ; }
753 // zebra effect using manually set classes (overrides automatic from above)
754 tr.listrow0 { background-color: @t-row-zebra-bg-odd !important ; }
755 tr.listrow1 { background-color: @t-row-zebra-bg-even !important ; }
756 tr.listrow_ok0 { background-color: @base-ok-bg !important ; }
757 tr.listrow_ok1 { background-color: @base-ok-bg-lighter !important ; }
758 tr.listrow_error0 { background-color: @base-error-bg !important ; }
759 tr.listrow_error1 { background-color: @base-error-bg-lighter !important ; }
760 // using a darker color variant here because the light one is almost invisible
761 tr.listrow_info0 { background-color: @base-info-bg-darker !important ; }
762 tr.listrow_info1 { background-color: @base-info-bg-dark !important ; }
763 tr.listrow_warning0 { background-color: @base-warning-bg !important ; }
764 tr.listrow_warning1 { background-color: @base-warning-bg-lighter !important ; }
767 color: @table-list-zebra-text-color ;
772 display: table-footer-group;
786 //--------------------------------------
788 //--------------------------------------
789 // simple table without zebra effect
795 font-size: 120% !important ;
797 padding: 0.6em 0 0.2em 0;
803 td { padding: 3px 0.3em 4px 0.3em !important ; }
807 .mx-thead-th ; // mixin
813 td { padding: 0.3em inherit 0.3em 0.3em ; }
819 caption { padding-left: 0 ; }
821 padding: 0.1em 7px 0.1em 1px ;
827 border-bottom: 1px @table-border-color solid ;
830 vertical-align: middle !important ;
840 border-top: 1px @table-border-color solid !important ;
841 border-bottom: 1px @table-border-color solid ;
846 th { border-bottom: 1px @table-border-color solid ; }
854 //--------------------------------------
856 //--------------------------------------
858 // table within div-dialogs
862 background-color: @gray-verylight ;
865 color: @t-cell-head-text ;
866 font-size: @font-size-base ;
867 vertical-align: top ;
872 //--------------------------------------
873 // CLEAR-TABLE WITH NO FLOATING
874 //--------------------------------------
882 //--------------------------------------
884 //--------------------------------------
885 // use this class for reviewing your table html
891 background-color: #b3b3b3 ;
892 color: @t-cell-text-color ;
893 font-weight: normal ;
896 background-color: #b3b3b3 ;
900 background-color: #cfcdd2 ;
906 border: 1px solid green !important ;
911 border: 1px #0000ff solid ;
912 border-collapse: collapse ;
915 border: 1px #c20d18 dotted !important ;
922 //border: 1px @table-border-color solid ;
923 //background-color: #bfd2ad ;
926 border: 1px @gray-dark solid !important ;
927 background-color: #b3b3b3 ;
929 font-weight: normal ;
932 background-color: @table-caption-bg ;
933 //border: 1px solid red !important ;
937 border: 1px #000 solid ;
938 background-color: #cfcdd2 ;
944 border: 1px solid green !important ;
949 border: 2px #0000ff solid ;
950 border-collapse: collapse ;
953 border: 1px #c20d18 dotted !important ;
965 //--------------------------------------
966 // TABLE & COLS DIMENSIONS
967 //--------------------------------------
972 &.wi-smallest { width: @tcol-wi-smallest ; }
973 &.wi-verysmall { width: @tcol-wi-verysmall ; }
974 &.wi-small { width: @tcol-wi-small ; }
975 &.wi-mediumsmall { width: @tcol-wi-mediumsmall ; }
976 &.wi-normal { width: @tcol-wi-normal ; }
977 &.wi-lightwide { width: @tcol-wi-lightwide ; }
978 &.wi-wide { width: @tcol-wi-wide ; }
979 &.wi-wider { width: @tcol-wi-wider ; }
980 &.wi-verywide { width: @tcol-wi-verywide ; }
982 &.wi-small-small { width: @tcol-wi-small + @tcol-wi-small ; }
983 &.wi-small-mediumsmall { width: @tcol-wi-small + @tcol-wi-mediumsmall ; }
984 &.wi-small-normal { width: @tcol-wi-small + @tcol-wi-normal ; }
985 &.wi-small-lightwide { width: @tcol-wi-small + @tcol-wi-lightwide ; }
986 // pendent: noch genauer anschauen, sollte eigentlich nur für horizontale tabellen vorgesehen sein
987 &.wi-small-wide { width: @tcol-wi-small + @tcol-wi-wide + ( @diff-input-select ) ; }
988 //&.wi-small-wide { width: 460px ; }
989 &.wi-small-wider { width: @tcol-wi-small + @tcol-wi-wider ; }
990 &.wi-small-verywide { width: @tcol-wi-small + @tcol-wi-verywide ; }
992 &.wi-mediumsmall-small { width: @tcol-wi-mediumsmall + @tcol-wi-lightwide ; }
993 &.wi-mediumsmall-mediumsmall { width: @tcol-wi-mediumsmall + @tcol-wi-mediumsmall ; }
994 &.wi-mediumsmall-normal { width: @tcol-wi-mediumsmall + @tcol-wi-normal ; }
995 &.wi-mediumsmall-lightwide { width: @tcol-wi-mediumsmall + @tcol-wi-lightwide ; }
996 &.wi-mediumsmall-wide { width: @tcol-wi-mediumsmall + @tcol-wi-wide ; }
997 &.wi-mediumsmall-wider { width: @tcol-wi-mediumsmall + @tcol-wi-wider ; }
998 &.wi-mediumsmall-verywide { width: @tcol-wi-mediumsmall + @tcol-wi-verywide ; }
1000 &.wi-normal-small { width: @tcol-wi-normal + @tcol-wi-small ; }
1001 &.wi-normal-mediumsmall { width: @tcol-wi-normal + @tcol-wi-mediumsmall ; }
1002 &.wi-normal-normal { width: @tcol-wi-normal + @tcol-wi-normal ; }
1003 &.wi-normal-lightwide { width: @tcol-wi-normal + @tcol-wi-lightwide ; }
1004 &.wi-normal-wide { width: @tcol-wi-normal + @tcol-wi-wide ; }
1005 &.wi-normal-wider { width: @tcol-wi-normal + @tcol-wi-wider ; }
1006 &.wi-normal-verywide { width: @tcol-wi-normal + @tcol-wi-verywide ; }
1008 &.wi-lightwide-small { width: @tcol-wi-lightwide + @tcol-wi-small ; }
1009 &.wi-lightwide-mediumsmall { width: @tcol-wi-lightwide + @tcol-wi-mediumsmall ; }
1010 &.wi-lightwide-normal { width: @tcol-wi-lightwide + @tcol-wi-normal ; }
1011 &.wi-lightwide-lightwide { width: @tcol-wi-lightwide + @tcol-wi-lightwide ; }
1012 &.wi-lightwide-wide { width: @tcol-wi-lightwide + @tcol-wi-wide ; }
1013 &.wi-lightwide-wider { width: @tcol-wi-lightwide + @tcol-wi-wider ; }
1014 &.wi-lightwide-verywide { width: @tcol-wi-lightwide + @tcol-wi-verywide ; }
1021 &.wi-full { width: 100% ; }
1023 // moderate width with padding on the right side
1030 // PENDENT: vielleicht in pixeln angeben, statt in ems (siehe tbl-plain)
1031 padding-left: 0.6em ;
1032 padding-right: 1.2em ;
1039 //--------------------------------------
1040 // LIST-TABLES IN WRAPPERS
1041 //--------------------------------------
1042 // creates a border on the left & right side of the table
1046 border-left: 1px solid @table-border-color ;
1047 border-right: 1px solid @table-border-color ;
1051 //--------------------------------------
1052 // LIST-TABLES NOT IN WRAPPERS
1053 //--------------------------------------
1054 #content .ui-tabs-panel > table.tbl-list caption {
1055 //margin-left: @margin-from-panel-left - 0.2em ;
1056 margin-left: 0.3em ;
1059 .ui-tabs-panel > table.tbl-list caption {
1060 //margin-left: @margin-from-panel-left - 0.2em ;
1061 margin-left: 0.3em ;
1064 & > table.tbl-plain,
1065 & > table.tbl-list-plain {
1071 // --------------------------------------
1073 // --------------------------------------
1076 display: inline-block ;
1078 vertical-align: top;
1082 display: inline-block ;
1085 margin: 0 10px 0 0 ;
1091 padding: 0 0 3px 0 ;
1093 text-align: center ;
1096 vertical-align: top ;
1098 border-top: 1px @table-border-color solid ;
1099 border-right: 1px @table-border-color solid ;
1100 border-left: 1px @table-border-color solid ;
1103 border-right: 1px @table-border-color solid ;
1104 border-bottom: 1px @table-border-color solid ;
1105 border-left: 1px @table-border-color solid ;
1108 //background-color: #000000 ;
1113 color: @base-light ;
1122 //--------------------------------------
1123 // SPECIFIX TABLES (#REPORT_TABLE)
1124 //--------------------------------------
1126 table#report_table_id.tbl-list {
1127 & > tbody > tr > td { vertical-align: top ; }
1132 // Benutzerdefinierte Tabellen-Angaben
1133 // Diese uebersteuern alle Anweisungen aus tables.less
1134 // Es dürfen nur Tabellen mit Zusatzklassen oder mit IDs uebersteuert werden.
1135 // Uebersteuern Sie nur wenige, bestehende Elemente, um ein einheitliches
1136 // Design zu gewaehrleisten
1137 // Diese Datei wird am Schluss von tables.less includiert.
1141 // Zusatzklasse zur Tabelle (Beispiel)
1143 // Autor: hanspeter.schlaepfer@revamp-it.ch
1144 &.meine-tabellen-klasse {
1148 // Tabelle mit spezieller ID (Beispiel)
1150 // Autor: hanspeter.schlaepfer@revamp-it.ch
1151 &#meine-spezielle-tabelle {
1156 // Tabelle mit Konten-Uebersicht (Kontoplan)
1157 // Betreff: Kontoplan
1158 // Autor: hanspeter.schlaepfer@revamp-it.ch
1162 text-align: right !important;
1165 font-size: @font-size-large;
1166 border-top: 1px #999 solid;
1177 // PENDENT: genauer anschauen
1180 border-collapse: collapse;
1185 // background set via jquery
1200 .guv_row_background {
1205 background-color: #ffc9c9;