﻿
@media screen and (max-width:400px) and (max-height:740px){
	body { background:silver;}
  .idLoginRegistImg {display:none}
	#idFrameLoginRegist, #idFramePW {
		padding:10px; 
		display:flex; flex-direction:column; align-items:center;
	}
}

/*
Screen resolution detection with Javascript
You can get the outer window size with window.outerWidth and window.outerHeight.
You can get the inner window size with window.innerWidth and window.innerHeight.
With IE you can get it with document.body.clientWidth and document.body.clientHeight.
You can get the screen window position with window.screenLeft and window.screenTop.

For example:
<script>
alert(window.outerWidth+' x '+window.outerHeight);
</script>
*/
/*
Nicht vergessen im HEAD: 
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
***
handy samsung hat portait 320 x 589, landscape 657 x 240
handy MIUI hat portrait 393 x 736, landscape 792 x 303
Tablett Samsung hat portrait 800 x 1112, landscape 1280 x 632
***
Listing 1: Formale Grammatik der Media Queries
 Media_Query: [[only | not]? <Medientyp> [ and <Ausdruck> ]*]
  | <Ausdruck> [ and <Ausdruck> ]* 
Ausdruck: ( <Merkmal> [: <Wert>]? ) 
 Medientyp: all | aural | braille | handheld | print |
  projection | screen | tty | tv | embossed 
 Merkmal: width | min-width | max-width
  | height | min-height | max-height
  | device-width | min-device-width | max-device-width
  | device-height | min-device-height | max-device-height
  | aspect-ratio | min-aspect-ratio | max-aspect-ratio
  | device-aspect-ratio | min-device-aspect-ratio | max-device-aspect-ratio
  | color | min-color | max-color
  | color-index | min-color-index | max-color-index
  | monochrome | min-monochrome | max-monochrome
  | resolution | min-resolution | max-resolution
  | scan | grid 
*/

/* resolution (min-resolution / max-resolution) 
-Aufl. des Gerätes, nicht des Viewports */
/*
 @media (max-width: 450px) {     
	 #idImgCodingMail {display:none}
	 #idBoxEncryptFile {display:none}
}
@media only screen and (min-width: 768px) {
	.MarginArround {
		margin-left:10%; margin-right:10%;
	}   
}
@media only screen and (max-width: 400px) {
	.MarginArround {
		margin-left:0%; margin-right:0%;
	} 
}	
and (max-aspect-ratio: 4/8) // .. betr. max. n-px

 // Extra small devices (phones, 600px and down) 
@media only screen and (max-width: 600px) {
 body {background: red;}
}

// Small devices (portrait tablets and large phones, 600px and up) 
@media only screen and (min-width: 600px) {
 body {background: green;}
}

// Medium devices (landscape tablets, 768px and up) 
@media only screen and (min-width: 768px) {
 body {background: blue;}
} 

// Large devices (laptops/desktops, 992px and up) 
@media only screen and (min-width: 992px) {
 body {background: orange;}
} 

// Extra large devices (large laptops and desktops, 1200px and up) 
@media only screen and (min-width: 1200px) {
 body {background: pink;}
}
*/

