Is there was a way for a field type to detect if it is being instantiated for the inline editor or even the live preview? I am working on some responsive UI's to make Google Maps for Craft work optimally on all screen sizes, but current smaller screens are posing a problem. Obviously media queries are being used, but was also wondering if I could easily detect where the field type was being instantiated and then I could possible add additional classes to my field type wrapper.
You could check if the whole request is Live Preview using
You would do that with JS, at least this is how it is done to the core fields (see MatrixInput.js line 152 ff.).
Just check for the container width of your field and then swap your classes / do your responsive design magic.