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/print.less
1
/* ------------------------------------------------------------- */
2
/* PRINT (print.less)                                            */
3
/* ------------------------------------------------------------- */
4

  
5

  
1 6
// ----------------------------------------------------------------------------
2 7
//
3 8
// PRINT
......
14 19
// MEDIA: Print
15 20
// --------------------------------------
16 21

  
17
// PENDENT: Druckversion erstellen
18
// PENDENT: noch erweitern
22
// PENDENT: Druckversion erstellen, noch erweitern
23

  
24
@print-size: 0.8 ;
25
@width-size: 0.6 ;
19 26

  
20 27
@media print {
28

  
29
	body{ margin-left: 1.4em ; }
30

  
31
	// Do not print following areas
21 32
  #menuv3,
22 33
  #html-menu,
23 34
  #frame-header,
24 35
  #main_menu_div,
25 36
  #js-header,
26
  body>#layout-split-left {
37
  body>#layout-split-left,
38
  #tree-column,
39
  ul.ui-tabs-nav,
40
  div.layout-actionbar,
41
  .control-panel {
27 42
    display: none;
28 43
  }
44
  
45
  // Layout adjustments
29 46
  body>#layout-split-right{
30 47
    margin-left: 0;
31 48
  }
32 49
  //#content.html-menu { margin-left: 0; }
33
}
50
  
51
  
52
  #content {
53

  
54
		// Typography
55
		td, p, div, span, input, textarea, select, option {
56
			//font-size: round( ( @font-size-smaller * @print-size ) ) !important ;		
57
			font-size: round( ( 9pt * @print-size ) , 0 ) !important ;		
58
		}
59

  
60
//  	font-size: 80% !important ;
61
  	padding: 1.0em 0 0 0 !important ;
62
  	margin: 0 ;
63
  	
64
		& > h1 {
65
				color: @gray-verydark ;
66
				padding: 0 0 0 0 ;
67
				top: 0 ;
68
				position: absolute ;
69
		}  
70

  
71
		wrapper{
72
			margin: 0.4em 1em 1em 1.2em;
73
			padding: 0 0 0.4em 0;
74
		}
75

  
76
		caption,
77
		th.caption,
78
		td.caption{
79

  
80
			font-size :  round( (@table-caption-size * @print-size) , 0 ) ;
81
			font-weight: bold;
82
			padding:     0.1em 0 0.1em 0.2em;
83
			margin: 0.1em 0 0.1em 0 ;
84

  
85
		
86
		}
87

  
88
		.tbl-horizontal {
89
      tbody {
90
        tr {
91
          //background-color: @table-bg-accent ;
92
          //th { background-color: #fff ; }
93
          td, th {
94
            border-color: 	@table-border-color ;
95
            border-width: 	0.3pt !important;
96
            border-style: 	solid ;
97
            padding: 				0.3em 0.6em ;
98
          }
99
				th, span.label { font-size: round( ( @font-size-verysmall * @print-size ) )!important }
100
        }
101
      } // /tbody
102
		}
103
		
104
		
105
		.tbl-list {
106
			margin-top: 1.2em ;
107
			width: 98% !important ;
108
			thead  {
109
				display: table-header-group ;
110
				overflow: hidden ;
111
				tr th{
112
					font-size: 70% ;
113
				}
114
			}
115
			tbody tr {
116
				&:nth-child(odd)  { background-color: none; }			
117
				&:nth-child(even) { background-color: none; }			
118
				border-bottom: 1px #000 solid !important; 
119
				td { 
120
					border-bottom: 1px #000 solid !important; 
121
					vertical-align: top !important ;
122
				}
123
			}
124
		}
125

  
126
			// -----------------------
127
			//  width of columns (dimensions)
128
			// -----------------------
129
			col {
130
				&.wi-smallest    { width: round( (@tcol-wi-smallest * @width-size ) , 0     )!important ; }
131
				&.wi-verysmall   { width: round( (@tcol-wi-verysmall * @width-size ) , 0    )!important ; }
132
				&.wi-small       { width: round( (@tcol-wi-small * @width-size ) , 0        )!important ; }
133
				&.wi-mediumsmall { width: round( (@tcol-wi-mediumsmall * @width-size ) , 0  )!important ; }
134
				&.wi-normal      { width: round( (@tcol-wi-normal * @width-size ) , 0       )!important ; }
135
				&.wi-lightwide   { width: round( (@tcol-wi-lightwide * @width-size ) , 0    )!important ; }
136
				&.wi-wide        { width: round( (@tcol-wi-wide * @width-size ) , 0         )!important ; }
137
				&.wi-wider       { width: round( (@tcol-wi-wider * @width-size ) , 0        )!important ; }
138
				&.wi-verywide    { width: round( (@tcol-wi-verywide * @width-size ) , 0     )!important ; }
139
			}
140

  
141
		
142
		
143
		
144
				
145
		
146
		
147
		
148
		input[type="text"], 
149
		input[type="customer"], 
150
		input.numeric,
151
		textarea, 
152
		select, 
153
		span.data,
154
		select,
155
		textarea {
156
			width: auto !important;
157
			appearance: none;
158
			-webkit-appearance: none;
159
			-moz-appearance: none; 
160
			border: none;
161
			color: #000 !important ;
162
			background-color: none !important; 
163
			background: none !important;
164
			/* rest needed for Firefox: */
165
			overflow:hidden;
166
			//width: 120%;/* needed for Firefox???: */
167
		}
168
		
169
//		input[type="text"]{
170
//			appearance: none;
171
//			-webkit-appearance: none;
172
//			-moz-appearance: none; 
173
//			border: none;			
174
//		}
175
		
176
		textarea{ 
177
			height: auto !important ;
178
			min-height: 3.6em ;
179
			overflow-y: auto !important;
180
			min-width: 16em ;
181
			//max-width: 22em ;
182
			width: 100% !important;
183
			padding: 0 ;
184
			resize: vertical;
185
		}
186
		table.tbl-list td {
187
			textarea 	{ min-height: 4.2em !important; }		
188
			input 		{ padding-left: 0 !important; }		
189
		}
190
		span.data{
191
			width: auto;
192
			border: none ;
193
		}
194
		input.wi-date{ align: left !important; padding: 0 !important; }
195
		select{ 
196
			padding: 0 0 0.4em 0.2em !important; 
197
		}
198
		
199
		div.cke_editable{ 
200
			min-height: 1.8em  !important;
201
			height: auto !important;
202
			border: none;
203
			overflow: hidden !important;
204
		}
205
		
206
		
207
		a.button-image,
208
		a.button,
209
		input[type="button"],
210
		input.neutral,
211
		td img {
212
			display: none ;
213
		}
214

  
215
		input, select{
216
			&.wi-smallest 		{ width: ( round( ( @input-wi-smallest * @width-size ) , 0 ) )!important ; } ;
217
			&.wi-verysmall 		{ width: ( round( ( @input-wi-verysmall * @width-size ) , 0 ) )!important ; } ;
218
			&.wi-small 				{ width: ( round( ( @input-wi-small * @width-size ) , 0 ) )!important ; } ;
219
			&.wi-mediumsmall 	{ width: ( round( ( @input-wi-mediumsmall * @width-size ) , 0 ) )!important ; } ;
220
			&.wi-normal 			{ width: ( round( ( @input-wi-normal * @width-size ) , 0 ) )!important ; } ;
221
			&.wi-lightwide 		{ width: ( round( ( @input-wi-lightwide * @width-size ) , 0 ) )!important ; } ;
222
			&.wi-wide 				{ width: ( round( ( @input-wi-wide * @width-size ) , 0 ) )!important ; } ; // min-width
223
			&.wi-wider 				{ width: ( round( ( @input-wi-wider * @width-size ) , 0 ) )!important ; } ; // min-width
224
			&.wi-verywide 		{ width: ( round( ( @input-wi-verywide * @width-size ) , 0 ) )!important ; } ; // min-width
225
		}
226

  
227
		
228
		
229
		
230
  } // /#content
231
} // /@media print
232

  

Auch abrufbar als: Unified diff