Revision 7a31a8f2
Von Hans P. Schlaepfer vor etwa 5 Jahren hinzugefügt
css/less/custom.less | ||
---|---|---|
1 |
/* ------------------------------------------------------------- */ |
|
2 |
/* CUSTOM LESS STUFF (custom.less) */ |
|
3 |
/* ------------------------------------------------------------- */ |
|
4 |
|
|
1 | 5 |
// ---------------------------------------------------------------------------- |
2 | 6 |
// |
3 | 7 |
// CUSTOM LESS STUFF (ONLY FOR OVERRIDES OF THE STANDARD-KIVITENDO-STUFF) |
... | ... | |
31 | 35 |
// This is just an exemple |
32 | 36 |
// Do run "lessc style.less ../style.css" in your terminal session with cursor on the folder /css/less |
33 | 37 |
|
34 |
/* Custom overrides */ |
|
35 |
|
|
36 |
/* |
|
37 |
table.tbl-horizontal { |
|
38 |
display: table ; |
|
39 |
background-color: #ccc; |
|
40 |
border-bottom: 12px #ccc solid ; |
|
41 |
border-top-left-radius: 0 ; |
|
42 |
border-top-right-radius: 0 ; |
|
43 |
border-bottom-left-radius: 6px ; |
|
44 |
border-bottom-right-radius: 6px ; |
|
45 |
|
|
46 |
& > caption{ |
|
47 |
color: #ffffff !important; |
|
48 |
background-color: @gray-mediumdark; |
|
49 |
padding-left: 0.8em; |
|
50 |
border-top-left-radius: 6px ; |
|
51 |
border-top-right-radius: 6px ; |
|
52 |
//margin: -24px -12px 0.6em -12px ; |
|
53 |
& > a, & > a:link, & > a:visited { decoration: none; color: #fff !important; } |
|
54 |
} |
|
55 |
th{ padding-left: 0.3em; } |
|
56 |
td{ padding-right: 0.3em; } |
|
57 |
tbody { border-top: 8px #ccc solid; } |
|
58 |
&.checkered { |
|
59 |
tbody { border-top: none ; } |
|
60 |
border-bottom: none; |
|
61 |
} |
|
62 |
tbody > tr > td:first-child, |
|
63 |
tbody > tr > th:first-child, |
|
64 |
thead > tr > th:first-child{ |
|
65 |
padding-left: 1.0em ; |
|
66 |
} |
|
67 |
tbody > tr:first-child { |
|
68 |
& > th { padding-top: 0.5em ; } |
|
69 |
& > td { padding-top: 0.5em ; } |
|
70 |
} |
|
71 |
th.caption{ |
|
72 |
color: #fff !important; |
|
73 |
background-color: @gray-mediumdark; |
|
74 |
padding: 0.4em 0 0.3em 0.8em; |
|
75 |
border-top: 6px solid #ccc; |
|
76 |
border-bottom: 8px solid #ccc; |
|
77 |
margin-bottom: 0.6em ; |
|
78 |
//margin: -24px -12px 0.6em -18px ; |
|
79 |
} |
|
80 |
} |
|
81 |
|
|
82 |
.col{ |
|
83 |
padding-bottom: 0.4em ; |
|
84 |
|
|
85 |
& > table.tbl-horizontal { |
|
86 |
margin-right: 0 !important; |
|
87 |
//border-top-left-radius: 0 ; |
|
88 |
//border-top-right-radius: 0 ; |
|
89 |
border-radius: 0 ; |
|
90 |
padding-bottom: 0 ; |
|
91 |
|
|
92 |
caption{ |
|
93 |
border-top-left-radius: 0 ; |
|
94 |
border-top-right-radius: 0 ; |
|
95 |
} |
|
96 |
} |
|
97 |
& > table.tbl-horizontal:first-child{ |
|
98 |
border-top-left-radius: 0 ; |
|
99 |
border-top-right-radius: 0 ; |
|
100 |
border-bottom-left-radius: 0 ; |
|
101 |
border-bottom-right-radius: 0 ; |
|
102 |
margin-bottom: 0 ; |
|
103 |
caption{ |
|
104 |
border-top-left-radius: 6px ; |
|
105 |
border-top-right-radius: 6px ; |
|
106 |
} |
|
107 |
} |
|
108 |
& > table.tbl-horizontal:last-child{ |
|
109 |
border-bottom-left-radius: 6px ; |
|
110 |
border-bottom-right-radius: 6px ; |
|
111 |
margin-bottom: 0 ; |
|
112 |
} |
|
113 |
} |
|
114 |
|
|
115 |
.cke_editable{ |
|
116 |
margin-left: 0.0em !important; |
|
117 |
} |
|
118 |
*/ |
|
38 |
// Custom overrides |
|
39 |
|
|
40 |
|
|
41 |
// -------------------------------------- |
|
42 |
// DISABLE CAPTIONS IN HORIZONTAL TABLES |
|
43 |
// -------------------------------------- |
|
44 |
// Captions are good. It is a nice guidance thru Kivitendo and captions also force |
|
45 |
// programmers |
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
//table.tbl-horizontal { |
|
50 |
// caption, |
|
51 |
// th.caption, |
|
52 |
// td.caption{ |
|
53 |
// display: none ; // instead of: table-caption |
|
54 |
// } |
|
55 |
//} |
|
56 |
// |
|
57 |
//div.wrapper.bordered { |
|
58 |
// padding: 0.6em 0 0.2em 0.4em; |
|
59 |
// |
|
60 |
// &::before{ |
|
61 |
// content: "Detail Information"; //instead of caption in toggled wrapper |
|
62 |
// z-index: 9000 ; |
|
63 |
// } |
|
64 |
// .tbl-horizontal{ display: none ; } |
|
65 |
// .toggles { margin-top: -3px; } |
|
66 |
// .toggles.max { |
|
67 |
// width: 100%; |
|
68 |
// z-index: 9001 ; |
|
69 |
// margin-top: -17px; |
|
70 |
// text-align: right; |
|
71 |
// display: block; |
|
72 |
// margin-right: 10px; |
|
73 |
// a.toggle.max{ |
|
74 |
// width: 100%; |
|
75 |
// background-position: right center; |
|
76 |
// } |
|
77 |
// } |
|
78 |
//} |
|
79 |
// /DISABLE CAPTIONS IN HORIZONTAL TABLES |
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
//table.tbl-horizontal { |
|
85 |
// display: table ; |
|
86 |
// background-color: #ccc; |
|
87 |
// border-bottom: 12px #ccc solid ; |
|
88 |
// border-top-left-radius: 0 ; |
|
89 |
// border-top-right-radius: 0 ; |
|
90 |
// border-bottom-left-radius: @controlpanel-radius ; |
|
91 |
// border-bottom-right-radius: @controlpanel-radius ; |
|
92 |
// |
|
93 |
// & > caption{ |
|
94 |
// color: #ffffff !important; |
|
95 |
// background-color: @gray-dark; |
|
96 |
// padding-left: 0.8em; |
|
97 |
// border-top-left-radius: @controlpanel-radius ; |
|
98 |
// border-top-right-radius: @controlpanel-radius ; |
|
99 |
// //margin: -24px -12px 0.6em -12px ; |
|
100 |
// & > a, & > a:link, & > a:visited { decoration: none; color: #fff !important; } |
|
101 |
// } |
|
102 |
// th{ padding-left: 0.3em; } |
|
103 |
// td{ padding-right: 0.3em; } |
|
104 |
// tbody { border-top: 8px #ccc solid; } |
|
105 |
// &.checkered { |
|
106 |
// tbody { border-top: none ; } |
|
107 |
// border-bottom: none; |
|
108 |
// } |
|
109 |
// tbody > tr > td:first-child, |
|
110 |
// tbody > tr > th:first-child, |
|
111 |
// thead > tr > th:first-child{ |
|
112 |
// padding-left: 1.0em ; |
|
113 |
// } |
|
114 |
// tbody > tr:first-child { |
|
115 |
// & > th { padding-top: 0.5em ; } |
|
116 |
// & > td { padding-top: 0.5em ; } |
|
117 |
// } |
|
118 |
// th.caption{ |
|
119 |
// color: #fff !important; |
|
120 |
// background-color: @gray-dark; |
|
121 |
// padding: 0.4em 0 0.3em 0.8em; |
|
122 |
// border-top: 6px solid #ccc; |
|
123 |
// border-bottom: 8px solid #ccc; |
|
124 |
// margin-bottom: 0.6em ; |
|
125 |
// //margin: -24px -12px 0.6em -18px ; |
|
126 |
// } |
|
127 |
//} |
|
128 |
// |
|
129 |
//.col{ |
|
130 |
// padding-bottom: 0.4em ; |
|
131 |
// |
|
132 |
// & > table.tbl-horizontal { |
|
133 |
// margin-right: 0 !important; |
|
134 |
// //border-top-left-radius: 0 ; |
|
135 |
// //border-top-right-radius: 0 ; |
|
136 |
// border-radius: 0 ; |
|
137 |
// padding-bottom: 0 ; |
|
138 |
// |
|
139 |
// caption{ |
|
140 |
// border-top-left-radius: 0 ; |
|
141 |
// border-top-right-radius: 0 ; |
|
142 |
// } |
|
143 |
// } |
|
144 |
// & > table.tbl-horizontal:first-child{ |
|
145 |
// border-top-left-radius: 0 ; |
|
146 |
// border-top-right-radius: 0 ; |
|
147 |
// border-bottom-left-radius: 0 ; |
|
148 |
// border-bottom-right-radius: 0 ; |
|
149 |
// margin-bottom: 0 ; |
|
150 |
// caption{ |
|
151 |
// border-top-left-radius: @controlpanel-radius ; |
|
152 |
// border-top-right-radius: @controlpanel-radius ; |
|
153 |
// } |
|
154 |
// } |
|
155 |
// & > table.tbl-horizontal:last-child{ |
|
156 |
// border-bottom-left-radius: @controlpanel-radius ; |
|
157 |
// border-bottom-right-radius: @controlpanel-radius ; |
|
158 |
// margin-bottom: 0 ; |
|
159 |
// } |
|
160 |
//} |
|
161 |
// |
|
162 |
//.cke_editable{ |
|
163 |
// margin-left: 0.0em !important; |
|
164 |
//} |
|
165 |
|
|
166 |
|
|
119 | 167 |
|
168 |
// -------------------------------------- |
|
169 |
// Centered Aligned Tables |
|
170 |
// -------------------------------------- |
|
171 |
// Do everybody a favor: do not activate it |
|
120 | 172 |
|
173 |
//table.tbl-list{ |
|
174 |
// margin: 0 auto 1.0em auto; |
|
175 |
//} |
Auch abrufbar als: Unified diff
css/less -> Geaenderte & Neue Less-Dateien