Visual Design Considerations
Fonts and Styles
1p {
2 font-family: "ProximaNovaSoft-Regular", Calibri,
3 "Gill Sans", "Gill Sans MT", Candara, Segoe, "Segoe UI",
4 Arial, sans-serif;
5}1<style>
2 html, body, p {
3 font-family: "ProximaNovaSoft-Regular", Calibri,
4 "Gill Sans", "Gill Sans MT", Candara, Segoe,
5 "Segoe UI", Arial, sans-serif;
6 font-size: 110%;
7 }
8 input { font-size: 95%; }
9</style>HTML Markup
If your organization’s Visualforce pages match the full Salesforce site’s look and feel, it’s probably by using the Salesforce header, sidebar, styling, and <apex:pageBlock> and child components. Don’t explicitly disable these elements, by setting <apex:page showHeader="false" standardStylesheets="false" ...>; Salesforce1 automatically disables these elements when the page runs inside it.
However, you might want to reconsider using <apex:pageBlock> and child components, because they explicitly match the full Salesforce site look and feel, and even with standard stylesheets turned off, the markup they generate carries over into Salesforce1. This makes your markup more complex, and it’s harder to apply styling that matches Salesforce1.
Instead, use simple, static HTML markup, or the markup required by your chosen Mobile Toolkit. Sample markup is included the next section.
Responsive Design
1/* Default CSS: 2 columns */
2.content-block {
3 width: 50%;
4 float: left;
5}1/* CSS phone */
2@media screen and (max-width: 767px) {
3 .content-block {
4 width: 100%;
5 float: none;
6 }
7}1<!-- HTML for two blocks of content -->
2<!-- On a phone they live underneath each other -->
3<!-- On bigger screens they live next to each other -->
4
5<div class="content-block">
6 top on the phone, left on big screens
7</div>
8
9<div class="content-block">
10 bottom on the phone, right on big screens
11</div>