/* CSS Written by Jes Gundy Threespot, Washington DC --- Ammended and appended by Andrew McCarthy https://andrevv.com/ --- Ported to Libsass by Michael Trythall https://lincolnloop.com/team/michael-trythall/ --- CSS rendered with Libsass 0.7.0 Altered for OpenSearch by AWS */ //------------------- Globals html { background: $accent-dark; } body { @include sans-serif; @include font-size(18); background: $background-darker; color: $text; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; .layout-secondary, [role="complementary"] { @include sans-serif; // reverse font style on sidebar and secondary areas } // don't activate mobile styles for larger screens @include respond-min(46.25rem) { min-width: 46.25rem; } } a { color: $text-link-alternate-darker; text-decoration: underline; -webkit-tap-highlight-color: transparent; &:visited { color: $text-visited; } &:active, &:focus, &:hover { color: $text-hover; } } ::selection { // Text Selection Colors background: $highlight; } ::-moz-selection { background: $highlight; } ol li, ul li { //list style margin-top: 10px; } dl { margin: 20px 0 10px; dt { @include sans-serif; font-weight: 400; } dd { margin: 0; padding: 0; &:last-of-type { margin-bottom: 0; } } &.glossary { dt { font-weight: 600; } } } h1, h2, h3, h4, h5, h6 { @include heading-sans-serif; font-weight: 700; a { text-decoration: none; @include link-alternate; } } h1 { @include font-size(28); color: $background-lightest; letter-spacing: -1px; line-height: 1.1; @include respond-min(46.25rem) { @include font-size(32); } .layout-secondary & { color: $text; } [role="main"] & { @include font-size(32); margin: 40px 0px 30px; color: $text; } [role="complementary"] & { @include font-size(28); } } h2 { @include font-size(24); [role="complementary"] &, .layout-secondary & { @include font-size(20); border-bottom: 1px solid $line; padding-bottom: 15px; margin-top: 30px; &:first-of-type { margin-top: inherit; } &:first-child { @include respond-min(46.25rem) { margin-top: 20px; } } .full-width & { @include font-size(24); } } [role="main"] & { margin-top: 20px; margin-bottom: 15px; } } h3 { @include font-size(20); font-weight: 700; color: $text; line-height: 1.2; margin: 35px 0 20px; [role="complementary"] &, .layout-secondary & { @include font-size(18); padding-bottom: 5px; margin-bottom: 5px; &:first-child { @include respond-min(46.25rem) { margin-top: 12px; } } } [role="complementary"] & { @include font-size(18); border-bottom: 1px solid $line; } } h4 { @include font-size(16); color: $text; line-height: 1.2; margin: 35px 0 20px; font-weight: 700; } tt, code, kbd, pre, samp { @include monospace; color: $accent-dark; font-size: 1em; } tt { font-weight: 700; } span.pre { @include monospace; } a.javadoc { @include monospace; font-size: 1.5rem; } a:hover, a:active, a:focus { tt { color: $text-hover; } } p { //increase top margin if first item in container [role="main"] > &:first-child { margin-top: 30px; } } ul { padding-left: 20px; } //------------------- Layout [role="main"] { //Main column. Left aligned by default. See /styleguide for explanation. background: $background-lightest; padding: 1px 10px 40px; @include respond-min(46.25rem) { min-height: 800px; border: 1px solid #ddd; float: right; margin: 0; padding-bottom: 80px; padding-left: 3%; padding-right: 3%; width: 60%; .mdzr-boxshadow & { border: none; box-shadow: 0px 0px 0 0 $background-lightest, 0px 0px 0 0 $background-lightest, 460px 0 0 0 $background-lightest, 1000px 0 0 0 $background-lightest, 0px 600px 0 0px $background-lightest, 460px 600px 0 0px $background-lightest; padding-left: 4%; padding-right: 0; width: 63%; } .sidebar-right & { float: left; .mdzr-boxshadow & { border: none; box-shadow: 0px 0px 0 0 $background-lightest, 0px 0px 0 0 $background-lightest, -460px 0 0 0 $background-lightest, -1000px 0 0 0 $background-lightest, 0px 600px 0 0px $background-lightest, -460px 600px 0 0px $background-lightest; padding-left: 0; width: 62%; padding-right: 4%; } } } .full-width & { border: none; box-shadow: none; float: none; margin: 0 auto; padding: 0 10px 40px; width: auto; @include respond-min(46.25rem) { max-width: 740px; padding: 20px 0 40px; width: calc(704/768) * 100%; } } .section { padding-bottom: 40px; border-bottom: 1px solid $line; &:last-of-type { padding-bottom: 0; border-bottom: 0; } dd { &.last-child { padding-bottom: 0; } } } } .full-width { // Single column, full width layout. See /styleguide for explanation. &.container { width: 100%; padding: 0; max-width: none; border-bottom: 1px solid #ddd; background: $background-lightest; } // High-level class denoting full-width layout @include clearfix; .mdzr-boxshadow & { border: none; } } [role="complementary"] { //Sidebar in column layouts, gray section in fullwidth layout padding: 0 10px 20px; @include font-size(15); @include respond-min(46.25rem) { float: right; margin: 10px 0 20px 0; margin-right: 3%; padding: 0 0 40px 0; width: 30%; .sidebar-right & { margin-left: 3%; margin-right: 0; } } span.form-controls { display: none; } .list-collapsing { margin-top: 0; border-bottom: 0; &.active { li { border-top: 0; } h2 { padding: 10px 40px 10px 0; font-size: 18px; border-bottom: 0; color: $attention; .collapsing-icon { font-size: 10px; } } } } } [role="secondary"] { margin: 0 10px; padding: 40px 0 60px; @include respond-min(46.25rem) { .full-width & { max-width: 700px; margin: 0 auto; } } } .layout-secondary { // Secondary (gray) content area on full-width pages padding: 20px 10px 50px; } .layout-tertiary { // Tertiary (white) content area on full-width pages background: $background-lightest; border-top: 1px solid #ddd; padding: 20px 10px 50px; .mdzr-boxshadow & { border: none; @include secondary-shadow-bottom; } } .container { @include respond-min(46.25rem) { margin: 0 auto; max-width: 1400px; padding: 0 calc(32/768) * 100%; } &.sidebar-right { .mdzr-boxshadow & { box-shadow: -1200px 0 0 0px $background-lightest; } } } .container--flex { display: flex; align-items: center; justify-content: space-between; } .container--flex--wrap--mobile { flex-wrap: wrap; @include respond-min(46.25rem) { flex-wrap: no-wrap; } } //------------------- Site Chrome (Header/Footer) [role="banner"] { // Includes global navigation, logo, and tagline at top of document @include clearfix; background: $accent-dark; overflow: hidden; margin: 0; padding: 10px 0 6px; position: relative; z-index: 0; .container { @include respond-min(46.25rem) { position: relative; } } .meta { @include font-size(13); color: $attention; font-weight: 700; width: auto; float: left; margin: 8px 0 0 10px; display: none; @include respond-min(1150px) { float: left; width: 200px; display: block; } } .logo { @include font-size(40); @include sans-serif; /*background: url(../img/logo-search.png) 0 0 no-repeat;*/ color: $background-lightest; display: block; float: left; font-weight: 700; margin: 10px; overflow: hidden; text-decoration: none; text-indent: 100%; width: 170px; height: 36px; position: relative; svg { position: absolute; top: 1px; left: 1px } .mdzr-svg & { // deliver svg logo if applicable /*background: url(../img/opensearch-logo-monochrome.svg) center center no-repeat;*/ } @include respond-min(46.25rem) { margin-left: 0; } } .menu-button { @include font-size(20); background: $accent-dark; border-radius: 23px; color: $background-lightest; cursor: pointer; display: block; float: right; height: 45px; line-height: 48px; margin: 4px 10px; text-align: center; text-decoration: none; width: 45px; @include respond-min(46.25rem) { display: none; } &:active { color: $attention; } span { @include visuallyhidden; } &.active { opacity: 0.5; } } .nav-menu-on { max-height: 0; overflow: hidden; -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; @include respond-min(46.25rem) { // turn off animations if on a desktop width max-height: none; -webkit-transition: none; transition: none; } &.active { max-height: 500px; } } [role="navigation"] { background: $accent-dark; width: 100%; @include respond-min(46.25rem) { width: auto; float: right; } ul { margin: 10px 0 0; padding: 0; @include respond-min(46.25rem) { margin: 0; } } li { @include sans-serif; @include font-size(13); display: block; font-weight: 700; line-height: 16px; text-align: left; text-transform: uppercase; margin: 0 10px; @include respond-min(46.25rem) { margin: 0; border: 0; float: left; text-align: left; } &.active a { color: $attention; } } a { color: $background-lightest; display: block; padding: 20px 0px; text-decoration: none; &:active, &:hover { color: $highlight; } } .nav-primary { @include respond-min(46.25rem) { position: absolute; right: 0; top: 45px; } } } } .header { // dark green bar containing the page title @include sans-serif; background: $accent-dark; margin: 0; padding: 11px 0px 8px; position: relative; h1 { margin: 0.4em 0; } p { @include serif; @include font-size(18); color: $background-lightest; left: -9999px; line-height: 1.5; padding: 0 0 10px; position: absolute; top: 0; max-width: 660px; @include respond-min(46.25rem) { position: static; } } } .copy-banner { // Large green callout at the top of the page background: $background-darkest; padding: 1px 10px; @include respond-min(46.25rem) { padding: 1px 0; } p, h1 { @include sans-serif; @include font-size(24); color: $core; font-weight: 300; line-height: 1.3; padding: 1px 0 6px; margin: .45em 0 .35em; em { font-style: normal; color: white; } @include respond-min(46.25rem) { @include font-size(32); margin: .35em 0 .35em; color: $highlight; padding: 1px 0 6px; } a { font-weight: 300; } a.cta, .cta { margin: 0; @include font-size(18); } } a.cta, .cta { margin: 15px 0; padding: 0.4em 1.5em 0.5em; background: $attention-light; background: none; border: 1px solid $highlight; color: $highlight; font-weight: 400; em { color: white; } &:hover { background: $white; color: $core; border-color: $white; em { color: $core; } } &.white { background: $white; color: $core; font-weight: 700; border: 0; &:hover { background: $background-lightest; } } } .homepage & { p { max-width: 700px; margin-left: auto; margin-right: auto; margin: 1em auto .5em; color: $text; @include font-size(36); &.small { color: $text-light; margin: 2em auto 1em; @include font-size(14); } em { color: $text; } } a.cta, .cta { display: inline-block; padding: 1em 50px 1.1em; margin-bottom: 40px; background: $attention; color: white; border: 0; } } .container { display: flex; flex-flow: column nowrap; align-items: flex-start; } @media (min-width: 46.25rem) { .container { flex-direction: row; align-items: center; } } } [role="alert"] { //Announcement banner above the footer. clear: both; background: $white; position: relative; box-shadow: 0 -2px 8px 0 rgba(0, 0, 0, 0.05); a { @include link-alternate; &.link-readmore { margin: 0; } } dl { margin: 0 10px; padding: 25px 0; @include clearfix; dt { i.icon { color: $core; margin-right: 8px; } } dd { float: left; width: 60%; margin-top: 0; @include sans-serif; } .link-readmore { margin-left: 10px; } } @include respond-min(46.25rem) { dt { float: left; width: 31%; padding-right: 2%; } dl { margin: 0; } } } [role="contentinfo"] { // Global Footer at bottom of page @include clearfix; @include sans-serif; position: relative; background: $attention; clear: both; margin-top: 0px; .container { overflow: hidden; } .subfooter { @include clearfix; padding: 0 10px; @include respond-min(46.25rem) { padding: 0; } .col { &:first-child { h2 { border-top: 0; } } @include respond-min(46.25rem) { float: left; margin-bottom: -999px; padding: 0 3% 999px 0; width: 23%; } &:first-child { margin-left: 0; padding-left: 0; } &.last-child { margin-right: 0; padding-right: 0; } } } h2 { @include font-size(16); border-top: 1px solid $line; color: $background-lightest; font-weight: 700; margin-top: 20px; padding: 30px 0 10px; @include respond-min(46.25rem) { border: none; margin-top: 0; } } ul { @include font-size(14); font-weight: 400; list-style: none; margin: 15px 0 0 0; padding: 0 0 30px; li { margin: 10px 0 0; padding: 0; } a { color: $white; text-decoration: none; &:hover, &:active, &:focus { text-decoration: underline; } } } .footer { background: $accent-dark; margin-top: 20px; padding: 10px 0 30px; color: $white; a, svg { color: $accent-light; } svg { float: left; height: 50px; padding-top: 40px; padding-right: 30px; } .copyright { float: left; @include font-size(12); margin: 20px 0 0 10px; @include respond-min(46.25rem) { max-width: 80%; padding-top: 30px; margin: 0; } } .logo { margin-right: 0; margin-top: 28px; .mdzr-svg & { background-position: left center; margin-right: 0; margin-top: 20px; } } } .logo { @include font-size(40); @include sans-serif; background: url(../img/logo-search.png) 0 0 no-repeat; color: $accent-dark; display: block; font-weight: 700; height: 50px; margin: 10px; overflow: hidden; text-decoration: none; text-indent: 100%; width: 142px; @include respond-min(46.25rem) { float: left; margin: 20px 90px 0 0; } .mdzr-svg & { background: url(../img/logo-search.svg) center center no-repeat; height: 39px; width: $logo_width; } } .thanks { @include font-size(12); color: $attention-dark; margin: 0; padding: 0; @include respond-min(46.25rem) { border: none; } li { @include clearfix; margin: 0; padding: 17px 10px 11px; display: block; clear: both; @include respond-min(46.25rem) { background: none; float: left; clear: none; padding: 0 3% 0 0; width: 30%; &.design { span.ampersand, a { display: inline-block; vertical-align: top; &.threespot { clear: both; } &.ampersand { position: relative; top: 6px; margin: 0 6px; line-height: 36px; } } } } span.ampersand { line-height: 24px; } } span { display: block; height: 24px; line-height: 36px; padding-right: 12px; white-space: nowrap; } a { display: block; height: 33px; overflow: hidden; text-indent: -200px; width: 94px; @include respond-min(46.25rem) { clear: both; margin-top: 5px; } &.rackspace { background: url(../img/logo-rackspace.png) no-repeat left center; .mdzr-svg & { background: url(../img/logo-rackspace.svg) no-repeat left center; } } &.threespot { background: url(../img/logo-threespot.png) no-repeat left center; .mdzr-svg & { background: url(../img/logo-threespot.svg) no-repeat left center; } } &.andrevv { background: url(../img/logo-andrevv.png) no-repeat left center; .mdzr-svg & { background: url(../img/logo-andrevv.svg) no-repeat left center; } } } } } //------------------- Recycleable Style Classes .backtotop { // Back to top link (in base.html after block body) @include link-alternate; @include sans-serif; @include font-size(14); display: block; font-weight: 700; margin: 10px 0; padding: 10px 0; text-align: center; text-transform: uppercase; @include respond-min(46.25rem) { display: none; } } .cta, a.cta { // Call To Action buttons @include sans-serif; -webkit-appearance: none; -moz-appearance: none; background: $text-link-alternate; border: none; border-radius: 5px; color: $background-lightest; display: block; -webkit-font-smoothing: subpixel-antialiased; -moz-osx-font-smoothing: auto; margin: 30px auto 0; padding: 1em 1.5em; text-align: center; text-decoration: none; @include respond-min(46.25rem) { margin: 20px auto; max-width: 400px; } em { color: $highlight; font-style: normal; } &:hover, &:focus { background-color: $text-link-alternate-lighter; } &:active { background: $text-link-alternate-darker; } [role="complementary"] & { @include font-size(16); + .link-readmore { display: block; text-align: center; @include respond-min(46.25rem) { margin-top: -10px; } } } &.outline { // Outline button for less-dominant CTA background: none; border: 1px solid $core; color: $core; font-weight: 400; &.inline { display: inline; margin-right: 1em; } em { color: $accent-dark; } &:hover { border-color: $text-link-alternate-lighter; color: $text-link-alternate-lighter; em { color: $text-link-alternate-lighter; } } &:active { border-color: $attention; color: $attention; em { color: $attention; } } } &.create-pr { display: inline-block; } } .link-alternate { // class render of the link-alternate mixin @include link-alternate; } .link-readmore { // Read More links. Should exist outside of

tag, and include the '›' arrow after the text. @include link-alternate; @include sans-serif; @include font-size(14); display: inline-block; margin: 5px 0 10px 0; &:after { content: " ›"; font-size: 1.2em; } &.back-link { &:after { content: ""; } &:before { content: "‹ "; font-size: 1.2em; } } font-weight: 700; text-transform: uppercase; [role="complementary"] & { @include font-size(12); } } .meta { // Re-usable meta class for alternate-style content. @include sans-serif; @include font-size(14); display: block; line-height: 1.3; margin: 25px 0 20px; a { @include link-alternate; } } .layout-2col { //two column layout module margin: 20px 0; @include respond-min(46.25rem) { @include clearfix; margin: 0; .col { float: left; width: 46%; margin: 0 4%; &:first-child { margin-left: 0; } &.last-child { margin-right: 0; } } .one-third { width: 29%; } .two-third { width: 62%; } } } .blue { // overide blue color class color: $core; } .label { // Label style associated with forms and other global elements. @include sans-serif; @include font-size(16); color: $text; display: block; font-weight: 700; margin: 20px 0 10px; text-transform: uppercase; &.form-controls { @include font-size(14); display: block; margin: 0; position: relative; text-align: left; span { cursor: pointer; &:hover, &:active, &:focus { color: $text-light; } } } } .callout-right { @include respond-min(46.25rem) { float: right; margin: 26px 0 0 35px; width: 33%; &.two-thirds { width: 60%; } } img { display: block; max-width: 100%; } } .callout-left { @include respond-min(46.25rem) { float: left; margin: 26px 35px 0 0; width: 33%; &.two-thirds { width: 60%; } } img { display: block; max-width: 100%; } } .codedump { background: $background-darker; border: 1px solid $line; padding: 10px; border-radius: 4px; @include sans-serif; @include font-size(14); line-height: 1.6em; } //------------------- List Modules .list-events { // reusable event list style class, for use in the sidebar. (See sidebar-news.html include.) @include sans-serif; list-style: none; margin: 0; padding: 0; li { @include font-size(18); border-top: 1px solid $line; display: block; line-height: 1.3; margin: 0; padding: 20px 0 0 30px; position: relative; i { @include font-size(16); color: $accent; display: block; left: 0; line-height: 20px; height: 30px; position: absolute; text-align: center; top: 20px; width: 24px; } &:first-child { border-top: 0; padding-top: 0; i { top: 0px; } } } .meta { @include sans-serif; @include font-size(14); display: block; margin-top: 10px; } a { @include link-alternate; } } .list-tags { // Tag list style with blue block links. (See sidebar-news.html include.) @include sans-serif; @include font-size(12); font-weight: 700; list-style: none; margin: 0; padding: 0; text-transform: uppercase; li { margin-top: 10px; } a { background: $accent; color: $white; display: inline-block; line-height: 1.2; margin: 0; padding: 8px 10px 5px; text-decoration: none; &:hover, &:active, &:focus { background-color: $attention; color: $background-lightest; } } } .list-news { // News article listing style. (See News & Events Page.) list-style: none; margin: 0; padding: 0; h2 { font-weight: 400; margin-bottom: 5px; } li { border-top: 1px solid $line; margin-top: 35px; padding-top: 10px; &:first-child { border: none; margin-top: 0; padding-top: 0; } &.unpublished, &.unpublished * { color: $text-light; } } .meta { margin-top: 10px; color: $text-light; a:link { color: $text-light; text-decoration: underline; } } } .list-case-study { // Three column list for Case Studies that switches to one column on mobile. (See Overview page.) @include clearfix; list-style: none; margin: 0; padding: 0 0 10px; p { @include font-size(14); margin: 10px 0 5px; } li { border-top: 1px solid $line; margin-top: 20px; padding-top: 20px; @include respond-min(1024px) { border: none; float: left; padding-right: 5%; padding-top: 0; width: 28%; &:nth-child(3) { &:after { clear: both; content: ""; display: block; margin-bottom: 30px; } } } } li > a { @include sans-serif; @include link-alternate; @include font-size(12); font-weight: 700; margin-top: 10px; text-transform: uppercase; &:after { content: " ›"; font-size: 1.2em; } } h3 { margin: 10px 0 20px; padding: 0; &.logo { text-indent: -1000%; overflow: hidden; } } // Logo List [title="Knight Foundation"] { background: url(../img/logo-knight.png) no-repeat bottom left; height: 25px; padding-top: 7px; width: 190px; .mdzr-svg & { background: url(../img/logo-knight.svg) no-repeat bottom left; } } [title="Mozilla"] { background: url(../img/logo-mozilla.png) no-repeat bottom left; height: 32px; width: 120px; .mdzr-svg & { background: url(../img/logo-mozilla.svg) no-repeat bottom left; } } [title="Disqus"] { background: url(../img/logo-disqus.png) no-repeat bottom left; height: 28px; padding-top: 4px; width: 140px; .mdzr-svg & { background: url(../img/logo-disqus.svg) no-repeat bottom left; } } &.single-col { li { margin-top: 0; margin-bottom: 30px; width: auto; p { @include font-size(18); margin-right: 40px; } h3 { margin-top: 20px; } } } } .case-study-logo { max-width: 50%; max-height: 70px; height: auto; margin: 40px 0 0; } .list-link-soup { @include sans-serif; @include clearfix; @include font-size(16); border-top: 1px solid $line; list-style: none; margin: 20px 0 0; padding: 20px 0 10px; li { float: left; margin: 10px 5% 0 0; width: 45%; @include respond-min(46.25rem) { margin-right: 3%; width: 30%; } } a { @include link-alternate; } [role="complementary"] & { li { float: none; } } } h2 + .list-link-soup { border-top: 0; } dl.list-features { h2 { margin: 0; } dt { @include font-size(24); border-top: 1px solid $line; padding-top: 25px; } dd p { margin-bottom: 0; padding: 0; } @include respond-min(46.25rem) { padding-bottom: 40px; dt { margin-top: 60px; padding: 20px 0 0 0; position: relative; &:first-child { margin-top: 20px; } &.even { padding-left: 0; padding-right: 0; i { left: auto !important; right: 0; } } } dd { padding-left: 0; &.even { padding-left: 0; padding-right: 0; } } i { @include font-size(120); display: block; height: 200px; left: 0; position: absolute; text-align: center; top: 60px; width: 200px; margin-right: 0; // Border Radius Enabled .mdzr-borderradius & { background: $attention; border-radius: 100px; color: $background-lightest; } // SVG Enabled .mdzr-svg & { background: url(../img/bg-features.svg) no-repeat center center; &.icon-bolt { background-position: -150px -269px; } &.icon-briefcase { background-position: -354px -7px; } &.icon-lock { background-position: -36px -96px; } &.icon-dashboard { background-position: -270px -9px; } &.icon-cogs { background-position: -334px -12px; } } // Border Radius, SVG, and Animation Enabled .mdzr-svg.mdzr-borderradius.mdzr-cssanimations & { -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; -webkit-transform: rotate(0.5turn); transform: rotate(0.5turn); &.inview { -webkit-transform: rotate(0turn); transform: rotate(0turn); } &.icon-bolt { background-position: 40px -369px; &.inview { background-position: -150px -269px; } } &.icon-briefcase { background-position: -494px 207px; &.inview { background-position: -354px -7px; } } &.icon-lock { background-position: 144px -206px; &.inview { background-position: -36px -96px; } } &.icon-dashboard { background-position: -360px 201px; &.inview { background-position: -270px -9px; } } &.icon-cogs { background-position: -500px -180px; &.inview { background-position: -334px -12px; } } } // Fixing opera svg-border-radius bug // http://stackoverflow.com/questions/11114636/opera-border-radius-svg-background-bug :-o-prefocus, & { background: $attention !important; -webkit-transition: none !important; transition: none !important; -webkit-transform: none !important; transform: none !important; } } } .homepage & { padding-bottom: 0; dl { padding-top: 0; } i { color: $white; margin-right: 10px; width: 40px; height: 40px; top: 10px; border-radius: 20px; background: $core; display: inline-block; text-align: center; @include font-size(24); .mdzr-svg.mdzr-borderradius.mdzr-cssanimations & { -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; -webkit-transform: rotate(0.5turn); transform: rotate(0.5turn); &.inview { -webkit-transform: rotate(0turn); transform: rotate(0turn); } } } @include respond-min(46.25rem) { dt { padding: 20px 0 0px 0; @include font-size(18); border-top: 0; margin-top: 0; } dd { padding: 0; min-height: 0; p { margin-top: 0; @include font-size(18); } } i { margin-right: 10px; width: 80px; height: 80px; top: 20px; border-radius: 40px; @include font-size(46); } } } } @include respond-min(46.25rem) { .list-collapsing-header { float: left; .section & h2 { margin: 40px 0 20px; } + .form-controls.label { margin: 50px 0 0; text-align: right; } } .form-controls.label { float: right; } } .list-collapsing { // reusable accordion style collapsing list, as seen on the Get Started Page. 'Expand/Collapse All' toggle is generated by the javascript. H2 is used for label, and 'collapsing-content' class is used to identify all content that should expand and collapse onclick. border-bottom: 1px solid $line; list-style: none; margin: 30px 0; padding: 0; clear: both; &.active { > li { border-top: 1px solid $line; margin: 0; padding: 0; &.active { h2 { .collapsing-icon { &:before { content: "\f068"; } } } } } h2 { @include font-size(18); cursor: pointer; margin: 0; padding: 18px 40px 18px 0; position: relative; &:hover, &:focus, &:active { color: $text-hover; outline: none; } .collapsing-icon { position: absolute; right: 0; top: 24px; &:before { content: "\f067"; } } &.bullet-icon { // H2 class for using icons as 'bullets' much like the layout of a list. When the line breaks, the text won't fold under the icon. See the community page for an example. padding-left: 1.5em; > i:first-child { position: absolute; top: 24px; left: 0; } } } .collapsing-content { overflow: hidden; max-height: 0px; -webkit-transition: all 0.5s ease-out; transition: all 0.5s ease-out; } li.active .collapsing-content { max-height: 1000px; overflow: auto; } } } .list-image { // list style for large, clickable images accompanied by text. (See Get Started Page.) list-style: none; margin: 0; padding: 0; li { border-top: 1px solid $line; margin-top: 20px; padding-top: 40px; @include respond-min(46.25rem) { @include clearfix; margin-top: 20px; padding-top: 40px; } &:first-child { border: none; padding-top: 0; } } a { text-decoration: none; &:hover, &:active, &:focus { color: $text-light; } &.link-readmore { margin: 0; } } img { display: block; margin: 0 auto 25px; max-width: 100%; } @include respond-min(46.25rem) { img { float: left; margin: 0 40px 0 0; max-width: 200px; max-height: 200px; } h2, h3, h4, p { padding-left: 240px; } h3 { margin-top: 10px; } } .layout-secondary &, [role="complementary"] & { img { float: left; max-width: 40%; max-height: 120px; margin: 0 20px 10px 0; } h2, h3, h4, p { padding-left: 0px; border: 0; } h3 { @include font-size(14); margin-top: 0; margin-bottom: 1em; padding-bottom: 0; @include sans-serif; font-weight: 700; } } } //-------------------Documentation styles #s-feed { @include sans-serif; } .list-outline { // Nested lists to house documentation outline. Meant for use in sidebar. (See Documentation Page.) @include font-size(16); line-height: 1.3; list-style: none; margin: 0; padding: 0; a { text-decoration: none; } > li > ul > li { margin-top: 12px; &:first-child { margin-top: 6px; } } > li > a { //top level text-transform: uppercase; font-weight: 700; @include link-alternate; } > li > ul { //second level list-style: none; @include font-size(12); padding: 5px 0 0 10px; > li > a { font-weight: 700; text-transform: uppercase; @include link-alternate; } } > li > ul > li ul { //third level & down @include font-size(14); padding: 0 0 0 20px; } } .section h2 { margin: 50px 0 30px; } .section h3 { margin: 40px 0 20px; } // Horizontal navigation links for documentation .browse-horizontal { @include sans-serif; @include font-size(14); @include clearfix; font-weight: 700; border-top: 1px solid $line; border-bottom: 1px solid $line; padding: 20px 0; margin-top: 2em; .left { float: left; .icon { margin-right: 4px; @include font-size(12); } } .right { float: right; .icon { margin-left: 4px; @include font-size(12); } } a { text-decoration: none; } } // Switcher for docs version and language #version-switcher { position: fixed; right: 15px; bottom: 15px; margin: 0; padding: 0; z-index: 1; pointer-events: none; list-style: none; .icon { margin-right: 4px; } ul { text-align: right; } } #doc-versions, #doc-languages, #faq-link { margin-top: 0.5em; margin-bottom: 0.5em; li { display: none; margin: 0 3px; @include sans-serif; color: $text; @include font-size(12); pointer-events: auto; &.current { display: inline-block; background: $white; padding: 8px 15px; border: 1px solid $line; border-radius: 4px; } &.current-link { display: inline-block; } a { display: inline-block; background: $white; color: $attention; text-decoration: none; font-weight: 700; padding: 8px 15px; border: 1px solid $line; border-radius: 4px; &:hover { color: $core; border: 1px solid $accent; } } } &:hover, .hover-on { pointer-events: auto; li { display: inline-block; } } } #dev-warning, #outdated-warning { position: absolute; top: 0; width: 100%; padding: 8px 20px 8px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; @include stripes; @include sans-serif; font-size: 14px; text-align: center; background-color: #ffe761; @include respond-min(46.25rem) { position: fixed; min-width: 46.25rem; } } #outdated-warning { background-color: $alert-light; color: $alert-dark; } .versionadded, .versionchanged, .versionmodified { @include sans-serif; font-weight: bold; margin-bottom: 20px; padding: 10px 13px; border: 1px solid $highlight; border-radius: 4px; p { font-weight: normal; margin-top: 0.3em; &:last-child { margin-bottom: 0; } } } .deprecated { @extend .versionchanged; .versionadded, .versionchanged, .versionmodified { border: none; padding: 0; margin-bottom: 0; display: block; } p { font-weight: normal; margin-top: 0; &:last-child { margin-bottom: 0; } } } dl.function, dl.class, dl.method, dl.classmethod, dl.staticmethod, dl.attribute, dl.exception { dt { font-weight: 700; } dd { padding-left: 1.4em; } } table.docutils td, table.docutils th { border-bottom: 1px solid $line; } .list-links { //Can be used globally to stack list items either with a