Components
Foundational styles form to create complex interface components.
2-1 Navs
Nav bars and links are components that serve as navigational aids, indicating the user's position or location within the site.
2-1.1 Section headings
Section headings are persistent within a given section at the top of the page and lead back to the section's landing page.
Below is a sample, generic section header; it's then followed by section-specific variants.
<div class="[modifier class]"> <header class="section-header"> <h3><a href="#">Section Heading</a></h3> </header> </div>
Economic Research heading style .economic-research
Banking heading style .banking
Education heading style .education
Community Development heading style .community-development
Cash heading style .cash
Our District heading style .federal-reserve-bank-of-san-francisco
2-1.2 Section links
Links to blog sections from home page.
<div class="page-template-home"> <div class="blog_container_outer"> <div class="blog_container_inner"> <div class="blog_container_inner_text"> <h1 class="blog_title"><a href="#">Sect. <span>Link</span></a></h1> </div> </div> </div> </div> <p class="cf"></p>
SF Fed blog link .blog_title
#unreserved link .stories_title
2-1.3 Sub-section links
Links to sub-sections found on certain landing pages, such as Community Development.
Below is a basic, unstyled sub-section link; it's then followed by section variants.
<h2 class="class [modifier class]"> <a href="#">Sub Section</a> </h2>
Blog link style .landing-section-title-blog
Publication link .landing-section-title
Data and Initiatives link .landing-section-title-data
2-1.4 Headcrumbs
Indicate the current page's location within a navigational crumb.
<header class="section-header"> <h4><a href="#">headcrumb</a></h4> </header>
2-2 Grid
Grid classes are grouped by screen width. There are three main screens: desktop (d), tablet (t), and mobile (m). Columns will stack and rearrange depending on the screen size.
2-2.1 Landing
Below is an example of the grid in two-column responsive landing pages.
m-all t-all d-8of12
m-all t-all d-4of12
<main class="m-all t-all d-all cf"> <article class="m-all t-all d-8of12 table-bordered"> <p class="aligncenter">m-all t-all d-8of12</p> </article> <article class="m-all t-all d-4of12 table-bordered"> <p class="aligncenter">m-all t-all d-4of12</p> </article> </main> <p class="cf"></p>
2-2.2 Offset
Align components using offset grid (indicated by grid classes that start with d-o, t-o, and m-o). The examples below are, in order, from the home and career pages.
m-all t-all d-8of12 d-o-2of12
m-all t-10of12 d-10of12 t-o-1of12 d-o-1of12
<main class="m-all t-all d-all cf table-bordered"> <div class="blog_container_outer m-all t-all d-all cf"> <div class="blog_container_inner m-all t-all d-8of12 d-o-2of12 table-bordered"> <p class="aligncenter">m-all t-all d-8of12 d-o-2of12</p> </div> </div> </main> <p class="cf"></p> <main class="m-all t-all d-all cf table-bordered"> <article class="m-all t-10of12 d-10of12 t-o-1of12 d-o-1of12 table-bordered"> <p class="aligncenter">m-all t-10of12 d-10of12 t-o-1of12 d-o-1of12</p> </article> </main> <p class="cf"></p>
2-2.3 Desktop or Landscape - 12 columns
Here, we show examples of combinations with the 12- and 2-columns grids. Other grids can be 3-, 4-, 5-, 6-, 7-, 8-, 9-, 10-, and 11-column, and their possible combinations. min-width for desktop is 1030 px.
Use "d" to indicate the desktop class for the grid.
d-1of12
d-1of12
d-1of12
d-1of12
d-1of12
d-1of12
d-1of12
d-1of12
d-1of12
d-1of12
d-1of12
d-1of12
d-3of12
d-3of12
d-3of12
d-3of12
d-4of12
d-4of12
d-4of12
d-6of12
d-6of12
d-8of12
d-4of12
d-all
<main class="m-all t-all d-all cf"> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> <article class="d-1of12 table-bordered"> <p class="aligncenter">d-1of12</p></article> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="d-3of12 table-bordered"> <p class="aligncenter">d-3of12</p></article> <article class="d-3of12 table-bordered"> <p class="aligncenter">d-3of12</p></article> <article class="d-3of12 table-bordered"> <p class="aligncenter">d-3of12</p></article> <article class="d-3of12 table-bordered"> <p class="aligncenter">d-3of12</p></article> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="d-4of12 table-bordered"> <p class="aligncenter">d-4of12</p></article> <article class="d-4of12 table-bordered"> <p class="aligncenter">d-4of12</p></article> <article class="d-4of12 table-bordered"> <p class="aligncenter">d-4of12</p></article> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="d-6of12 table-bordered"> <p class="aligncenter">d-6of12</p></article> <article class="d-6of12 table-bordered"> <p class="aligncenter">d-6of12</p></article> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="d-8of12 table-bordered"> <p class="aligncenter">d-8of12</p></article> <article class="d-4of12 table-bordered"> <p class="aligncenter">d-4of12</p></article> </main> <span class="cf"></span> <main class="d-all table-bordered"> <p class="aligncenter">d-all</p> </main> <p class="cf"></p>
2-2.4 Desktop or Landscape - 2 columns
Use "d" to indicate the desktop class for the grid.
d-all
d-1of2
d-1of2
<main class="d-all table-bordered"> <p class="aligncenter">d-all</p> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="d-1of2 table-bordered"> <p class="aligncenter">d-1of2</p></article> <article class="d-1of2 table-bordered"> <p class="aligncenter">d-1of2</p></article> </main> <p class="cf"></p>
2-2.5 Tablet - 8 columns
Tablet class has min-width: 768px and max-width: 1029px. Adjust window to appropriate size to see tablet grid.
Here, we use the 2- and 8 column grids as examples. Other grids can be 3-, 4-, 5-, 6-, 7-, 9-, 10-, 11-, and 12-column, and their possible combinations.
Use "t" to indicate the tablet class for the grid.
t-1of8
t-1of8
t-1of8
t-1of8
t-1of8
t-1of8
t-1of8
t-1of8
t-2of8
t-2of8
t-2of8
t-2of8
t-4of8
t-4of8
t-all
<main class="m-all t-all d-all cf"> <article class="t-1of8 table-bordered"> <p class="aligncenter">t-1of8</p></article> <article class="t-1of8 table-bordered"> <p class="aligncenter">t-1of8</p></article> <article class="t-1of8 table-bordered"> <p class="aligncenter">t-1of8</p></article> <article class="t-1of8 table-bordered"> <p class="aligncenter">t-1of8</p></article> <article class="t-1of8 table-bordered"> <p class="aligncenter">t-1of8</p></article> <article class="t-1of8 table-bordered"> <p class="aligncenter">t-1of8</p></article> <article class="t-1of8 table-bordered"> <p class="aligncenter">t-1of8</p></article> <article class="t-1of8 table-bordered"> <p class="aligncenter">t-1of8</p></article> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="t-2of8 table-bordered"> <p class="aligncenter">t-2of8</p></article> <article class="t-2of8 table-bordered"> <p class="aligncenter">t-2of8</p></article> <article class="t-2of8 table-bordered"> <p class="aligncenter">t-2of8</p></article> <article class="t-2of8 table-bordered"> <p class="aligncenter">t-2of8</p></article> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="t-4of8 table-bordered"> <p class="aligncenter">t-4of8</p></article> <article class="t-4of8 table-bordered"> <p class="aligncenter">t-4of8</p></article> </main> <span class="cf"></span> <main class="t-all table-bordered"> <p class="aligncenter">t-all</p> </main> <p class="cf"></p>
2-2.6 Tablet - 2 columns
Tablet class has min-width: 768px and max-width: 1029px. Adjust browser window to appropriate size to see tablet grid.
Use "t" to indicate the tablet class for the grid.
t-all
t-1of2
t-1of2
<main class="t-all table-bordered"> <p class="aligncenter">t-all</p> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="t-1of2 table-bordered"> <p class="aligncenter">t-1of2</p></article> <article class="t-1of2 table-bordered"> <p class="aligncenter">t-1of2</p></article> </main> <p class="cf"></p>
2-2.7 Mobile - 9 columns
Mobile class has max-width: 767 px. Adjust window to appropriate size to see mobile grid.
Here, we use the 2- and 9-column grids as examples. Other grids can be 3-, 4-, 5-, 6-, 7-, 8-, 10-, 11-, and 12-column, and their possible combinations.
Use "m" to indicate the tablet class for the grid.
m-1of9
m-1of9
m-1of9
m-1of9
m-1of9
m-1of9
m-1of9
m-1of9
m-1of9
m-3of9
m-3of9
m-3of9
m-6of9
m-3of9
m-all
<main class="m-all t-all d-all cf"> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> <article class="m-1of9 table-bordered"> <p class="aligncenter">m-1of9</p></article> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="m-3of9 table-bordered"> <p class="aligncenter">m-3of9</p></article> <article class="m-3of9 table-bordered"> <p class="aligncenter">m-3of9</p></article> <article class="m-3of9 table-bordered"> <p class="aligncenter">m-3of9</p></article> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="m-6of9 table-bordered"> <p class="aligncenter">m-6of9</p></article> <article class="m-3of9 table-bordered"> <p class="aligncenter">m-3of9</p></article> </main> <span class="cf"></span> <main class="m-all table-bordered"> <p class="aligncenter">m-all</p> </main> <p class="cf"></p>
2-2.8 Mobile - 2 columns
Mobile class has max-width: 767 px. Adjust browser window to appropriate size to see mobile grid.
Use "m" to indicate the mobile class for the grid.
m-all
m-1of2
m-1of2
<main class="m-all table-bordered"> <p class="aligncenter">m-all</p> </main> <span class="cf"></span> <main class="m-all t-all d-all cf"> <article class="m-1of2 table-bordered"> <p class="aligncenter">m-1of2</p></article> <article class="m-1of2 table-bordered"> <p class="aligncenter">m-1of2</p></article> </main> <p class="cf"></p>
2-2.9 Print grid
Grid to lay out printable pages, such as Boards of Directors. Use "p" to indicate the print grid class.
To see actual print layout, use print preview on your browser.
p-3of12
p-9of12
<div class="m-all t-all d-all"> <div class="p-3of12 table-bordered"> <p class="aligncenter">p-3of12</p> </div> <div class="p-9of12 table-bordered"> <p class="aligncenter">p-9of12</p> </div> </div> <p class="cf"></p>
2-3 Info Boxes
Boxes or containers for social, related, or cross-promo purposes.
2-3.1 Related boxes
Related info or "Did you know" promo boxes. Use the view-more
class to style special call-to-action link.
Below is a basic box; it's then followed by styled variants after the markup.
Heading
Use div and class to show appropriate background color and typography.
<div class="[modifier class] m-all t-all d-4of12"> <h3 class="">Heading</h3> <p>Use div and class to show appropriate background color and typography.</p> <p class="view-more"> <a href="/economic-research/management/">View More Related Info</a><br> </p> </div> <p class="cf"></p>
Main related box style .landing-did-you-know
Heading
Use div and class to show appropriate background color and typography.
Secondary or additional related box style .landing-additional
Heading
Use div and class to show appropriate background color and typography.
2-3.2 Events box
Special box on landing pages that announces upcoming events for the department.
<div class="landing-events m-all t-all d-4of12" style="background-color: #f6f5f4"> <img src="../assets/images/icon-event-calendar.png" width="40" height="44" alt="Upcoming Events" class="eventicon"><h3><a href="/community-development/events/">Upcoming Events</a></h3> <article> <p><span class="meta date">Date</span>, City, State</p> <h3 class="h2 event-title-landing"><a href="#">Event, Conference, or Forum</a></h3> </article> <p class="view-more"><a href="/community-development/events/">View all events</a></p> </div> <p class="cf"></p>
2-3.3 Social box
Transparent, borderless box that contains social media icons and links.
<div class="landing-follow-section desktop m-all t-all d-4of12"> <h3 class="landing-follow">Follow Us</h3> <a href="#" title="Follow us on Youtube" target="_blank" rel="noopener"><img src="../assets/images/icon-youtube.png" width="44" height="44" alt="Youtube"></a> <a href="#" title="Follow us on Facebook" target="_blank" rel="noopener"><img src="../assets/images/icon-facebook.png" width="44" height="44" alt="Facebook"></a> <a href="h#" title="Follow us on Twitter" target="_blank" rel="noopener"><img src="../assets/images/icon-twitter.png" width="44" height="44" alt="Twitter"></a> <a href="#" target="_blank" rel="noopener"><img src="../assets/images/icon-linkedin.png" width="44" height="44" alt="LinkedIn"></a> <a href="#" target="_blank" rel="noopener"><img border="0" src="../assets/images/icon-email.png" alt="Newsletter"></a> </div> <div class="landing-follow-section mobile m-all t-all d-4of12"> <h3 class="landing-follow">Follow Us</h3> <a href="#" title="Follow us on Youtube" target="_blank" rel="noopener"><img src="../assets/images/icon-youtube.png" width="44" height="44" alt="Youtube"></a> <a href="#" title="Follow us on Facebook" target="_blank" rel="noopener"><img src="../assets/images/icon-facebook.png" width="44" height="44" alt="Facebook"></a> <a href="#" title="Follow us on Twitter" target="_blank" rel="noopener"><img src="../assets/images/icon-twitter.png" width="44" height="44" alt="Twitter"></a> <a href="#" title="Follow us on LinkedIn" target="_blank" rel="noopener"><img src="../assets/images/icon-linkedin.png" width="44" height="44" alt="LinkedIn"></a> <a href="#" title="Sign up to receive our newsletter" target="_blank" rel="noopener"><img border="0" src="../assets/images/icon-email.png" alt="Newsletter"></a> </div> <p class="cf"></p>
2-4 Forms
Styles of forms used for data submission.
2-4.1 Search
Search box in main and section header. Search is persistent on desktop, appearing first as clickable magnifying glass icon in main, then after scroll, in section header.
<form class="search-form" action="/search/" id="search" method="get" style="display: block; position: relative; right: 0px;"> <input type="text" placeholder="Search SF Fed" id="s" name="q" class="field" value=""> </form>
2-4.2 Subscription
We use MailChimp form and styles.