- @import "base"
- body
- +base-font-family
- background: fixed #151515 url(/assets/bg-map-dotted.png) no-repeat 50% 0
- font-size: $base-font-size
- // Base classes to extend
- .dark
- color: #8a8a8a
- a
- color: #8a8a8a
- &:hover
- color: lighten(#8a8a8a,10)
- =layout-nav-hover($color:$pure-blue,$opacity:1.0)
- +border-top-radius(6px)
- background: rgba($color,$opacity)
- color: #fff
- // -----------------------------------------------------------------
- // Layout header
- // -----------------------------------------------------------------
- // The Layout's header styles
- .top-bar
- +helvetica-font-stack
- @extend .white-translucent
- border-bottom: 1px solid $white-translucent
- .contrained
- $line-height: 50px
- @extend .grid-container
- position: relative
- p
- @extend .grid-full
- color: $grey
- font-size: 13px
- font-weight: 100
- line-height: $line-height
- margin-bottom: 0
- .sessions-nav
- position: absolute
- top: 0
- right: 0
- ul
- li
- position: relative
- color: $grey
- display: inline-block
- line-height: $line-height
- margin-right: 8px
- &:first-of-type
- padding-right: 22px
- &:after
- content: "or"
- font-size: 13px
- position: absolute
- right: 0
- &:last-of-type
- margin-right: 0
- a
- +button($border-size: 1px, $color: #000, $color-1: #ffdd25, $color-2: #ffad04, $font-size: 12px, $padding: 3px 8px)
- #header-main
- @extend .grid-container
- +helvetica-font-stack
- padding: 30px 0
- .logo
- @extend .grid-prefix-1
- @extend .grid-2
- @extend .grid-suffix-1
- img
- margin: 0 auto
- width: 135px
- .tagline
- @extend .grid-7
- @extend .grid-suffix-1
- color: #fff
- h1
- font-size: 30px
- font-weight: 400
- line-height: 1
- margin-bottom: 20px
- sup
- font-weight: normal
- font-size: 12px
- position: relative
- top: -14px
- left: 1px
- h2
- font-size: 18px
- font-weight: 100
- line-height: 1.5
- body > header
- @extend .grid-container
- +background-image(linear-gradient(rgba(#000101,.0), rgba(#000101,.5) 70%))
- +box-shadow(rgba(#000,.5) 0 0 10px)
- border-bottom: 5px solid $pure-blue
- & > section:first-of-type
- @extend .grid-2
- img
- display: block
- margin: 10px auto
- width: 70px
- // Main nav
- & > nav
- @extend .grid-7
- position: relative
- @extend .PFCentroSerifPro-Regular
- font-size: 16px
- line-height: 36px
- height: 92px
- ul
- position: absolute
- bottom: 0
- left: 0
- +legacy-pie-clearfix
- li, a
- +float-left
- a
- color: $pure-blue
- display: block
- padding: 0 10px
- text-decoration: none
- &:hover
- +layout-nav-hover(#fff,.1)
- li.highlighted a
- +layout-nav-hover
- // User profile
- & > section:last-of-type
- $user-avatar-width: 50px
- @extend .grid-3
- +pie-clearfix
- padding-top: 10px
- padding-bottom: 10px
- .user-avatar
- +box-sizing(border-box)
- background: #fff
- +float-left
- padding: 2px
- width: $user-avatar-width
- .user-profile-details
- color: #8a8a8a
- padding-left: $user-avatar-width + 10px
- .user-full-name, .user-impact
- @extend .PFCentroSerifPro-Regular
- .user-full-name
- color: #8a8a8a
- margin-bottom: 8px
- .user-impact
- color: $pure-yellow
- font-size: 16px
- margin-bottom: 10px
- .user-impact-count
- color: #fff
- ul
- font-size: 11px
- li
- position: relative
- display: inline-block
- padding-right: 10px
- &:after
- position: absolute
- right: 2px
- content: "\2219"
- &:last-of-type
- padding-right: 0
- &:after
- content: ""
- a
- +link-styles($color:$grey)
- // -----------------------------------------------------------------
- // Layout footer
- // -----------------------------------------------------------------
- // Usage: The layout's footer styles
- body > footer
- @extend .white-translucent
- border-top: 1px solid $white-translucent
- color: $grey
- margin-top: 30px
- padding: 20px 0
- a
- color: $pure-blue
- &.signup
- color: $pure-yellow
- .cite, .cya-links, .contact-links
- font-size: 11px
- ul.social-links, ul.social-links li
- display: inline-block
- height: 20px
- .social-links
- li
- margin-right: 10px
- a
- +sprite-background("/images/social-20.png", 20px, 20px)
- display: inline-block
- text-indent: -99999px
- width: 20px
- &.facebook
- +sprite-row(1, 20px)
- &.twitter
- +sprite-row(2, 20px)
- &.vimeo
- +sprite-row(3, 20px)
- &.rss
- +sprite-row(4, 20px)
- .cya-links, .contact-links
- +delimited-list(" |")
- color: $grey
- a
- color: inherit
- .cite, ul.cya-links, ul.contact-links
- display: block
- margin-top: 10px
- .link-lists
- header
- @extend .PFCentroSerifPro-Regular
- color: $light-grey
- font-size: 18px
- margin-bottom: 8px
- ul li
- font-size: 13px
- line-height: 1.5
- a:before
- content: "+ "
- ul.columned
- +pie-clearfix
- li
- +box-sizing(border-box)
- +float-left
- white-space: nowrap
- width: 50%
- // -----------------------------------------------------------------
- // Main container, role set to "main"
- // -----------------------------------------------------------------
- // Usage: Wraps the main content area of the site.
- [role="main"]
- @extend .grid-container
- // Homepage and page styles
- .core-message
- @extend .white-translucent
- @extend .three-cols
- & > section
- p:first-of-type
- font-weight: bold
- .extended-message
- @extend .grid-container
- @extend .content
- .marketing-users, .marketing-field-partners, .marketing-affiliates
- @extend .two-cols-left-padding
- @extend .white-translucent
- .featured-projects
- @extend .grid-container
- margin-top: 20px
- & > header
- @extend .grid-full
- h3
- +heading($font-size:22px)
- padding-bottom: 12px
- // -----------------------------------------------------------------
- // Typography test
- // -----------------------------------------------------------------
- // Usage: This is a simple typography test mixin
- .typography-test
- +typography-test
- padding: 50px 0
- // -----------------------------------------------------------------
- // Project Page
- // -----------------------------------------------------------------
- // Usage: Project Page styles
- section.projects
- color: #fff
- padding-top: 75px
- margin-bottom: 30px
- > header
- +box-sizing(border-box)
- @extend .grid-container
- position: relative
- padding: 20px 0
- h1, h2
- @extend .PFCentroSerifPro-Regular
- display: inline-block
- h1
- color: $pure-yellow
- font-size: 32px
- margin-right: 15px
- margin-left: 10px
- h2
- color: $light-grey
- font-size: 16px
- // Projects layout
- .project-index
- @extend .grid-container
- // Default
- .project-search-sidebar
- display: none
- .project-list
- @extend .grid-full
- &.grid .inner
- @extend .nested-grid-container
- .project-thumb
- @extend .grid-3
- // Search Filter
- &.search-filter
- .project-search-sidebar
- @extend .grid-3
- .project-list
- @extend .grid-9
- .project-search
- display: inline-block
- font-size: 12px
- form
- display: inline-block
- input
- +box-sizing(border)
- width: 200px
- a
- margin-left: 10px
- // Main breadcrumbs styles. They don't need to be
- // scoped to #project but they are for now
- .breadcrumbs
- color: $dark-grey
- display: block
- margin-left: 10px
- a
- color: inherit
- li
- position: relative
- display: inline-block
- margin-right: 20px
- &:after
- position: absolute
- right: -15px
- top: 0
- content: "/"
- &:last-of-type
- margin-right: 0
- &:after
- position: absolute
- right: 0
- top: 0
- content: ""
- // Social shares options built into the main layout
- .social-share
- position: absolute
- bottom: 10px
- right: 0
- +pie-clearfix
- li
- +float-left
- +border-radius(3px)
- background: rgba(#fff,.05)
- height: 48px
- margin-left: 5px
- width: 48px
- &:first-child:before
- @extend .PFCentroSerifPro-Regular
- color: $light-grey
- font-size: 16px
- position: absolute
- bottom: 14px
- left: -48px
- content: "Share"
- a
- +sprite-background("/images/social-48.png", 48px, 48px)
- display: inline-block
- text-indent: -99999px
- width: 48px
- &.facebook
- +sprite-row(1, 48px)
- &.twitter
- +sprite-row(2, 48px)
- // View switcher
- .view-switcher
- position: absolute
- bottom: 10px
- right: 0
- +pie-clearfix
- li
- +float-left
- +border-radius(3px)
- background: rgba(#fff,.05)
- height: 48px
- margin-left: 5px
- width: 48px
- &:first-child:before
- @extend .PFCentroSerifPro-Regular
- color: $light-grey
- font-size: 16px
- position: absolute
- bottom: 14px
- left: -100px
- content: "Change View"
- a
- +sprite-background("/images/switcher-48.png", 48px, 48px)
- display: inline-block
- text-indent: -99999px
- width: 48px
- &.map
- +sprite-row(1,48px)
- &:hover
- +sprite-row(2,48px)
- &.list
- +sprite-row(3,48px)
- &:hover
- +sprite-row(4,48px)
- &.grid
- +sprite-row(5,48px)
- &:hover
- +sprite-row(6,48px)
- // Project Show
- // Usage: Project show view
- .project-snapshot
- @extend .grid-container
- background: #fff
- padding: 10px 0
- .project-images-wrapper
- @extend .grid-7
- position: relative
- overflow: visible
- &:after
- position: absolute
- right: -40px
- top: -18px
- content: url(/images/shadow-vertical-350.png)
- height: 350px
- overflow: hidden
- width: 30px
- img
- display: none
- &:first-of-type
- display: block
- .project-funding
- @extend .grid-5
- color: $dark-grey
- padding-top: 20px
- h2
- +heading($color:#454545,$font-size:28px)
- text-align: center
- .project-funding-actions
- margin-top: 15px
- text-align: center
- li
- display: inline-block
- ul
- display: none
- a
- @extend .button
- .project-funding-progress
- background: url(/images/shadow-horizontal-300.png) no-repeat 50% 0
- margin-top: 20px
- padding-top: 20px
- .progress-meter
- margin: 0 auto
- width: 85%
- p
- margin-top: 5px
- text-align: center
- .project-social
- background: url(/images/shadow-horizontal-300.png) no-repeat 50% 0
- margin-top: 20px
- padding-top: 30px
- text-align: center
- a
- @extend .button
- .project-info
- position: relative
- background: #222
- margin-top: 20px
- h2
- +heading($font-size: 24px)
- border-bottom: 4px solid #151515
- font-size: 24px
- padding: 15px 10px
- .project-info-tabs
- position: absolute
- top: 10px
- right: 10px
- +clearfix
- li
- float: left
- &:first-of-type a
- +border-left-radius(5px)
- &:last-of-type a
- +border-right-radius(5px)
- a
- +text-shadow(rgba(#000,.5),1px, 1px, 1px)
- +background(linear-gradient(#888 50%, #666 52%))
- +box-shadow(rgba(#fff,.5) 0 0 2px inset)
- border: 1px solid #000
- color: #fff
- display: inline-block
- padding: 10px 20px
- &.pressed
- text-decoration: none
- +background(linear-gradient(#444 50%, #222 52%))
- +box-shadow(rgba(#ccc,.5) 0 0 2px inset)
- &:hover
- text-decoration: none
- +background(linear-gradient(#666 50%, #444 52%))
- +box-shadow(rgba(#ccc,.5) 0 0 2px inset)
- &:hover
- text-decoration: none
- +background(linear-gradient(#aaa 50%, #888 52%))
- +box-shadow(rgba(#fff,.5) 0 0 1px inset)
- h3
- +heading($color: $light-grey, $font-size: 18px)
- margin-bottom: 10px
- p
- color: $dark-grey
- font-size: 14px
- line-height: 1.5
- margin-bottom: 10px
- &:last-of-type
- margin-bottom: 0
- .project-tabbed
- @extend .grid-container
- padding: 20px 0
- .project-tab-summary
- // na
- .project-tab-updates
- display: none
- .project-summary
- @extend .grid-6
- .project-field-partners
- @extend .grid-3
- .project-region
- @extend .grid-3
- .project-video-updates
- @extend .grid-6
- .project-post-updates
- @extend .grid-4
- .project-archives
- @extend .grid-2
- .field-partner
- +clearfix
- font-size: 12px
- img
- +float-right
- h4
- font-size: 14px
- font-weight: bold
- margin-bottom: 10px
- dl
- margin-bottom: 10px
- dt
- color: $light-grey
- margin-bottom: 10px
- dd
- ul
- +clearfix
- li
- +float-left
- margin-right: 5px
- &:last-of-type a
- background: image-url("star-ratings-15.png") -15px top no-repeat
- &:hover
- background: image-url("star-ratings-15.png") left top no-repeat
- a
- background: image-url("star-ratings-15.png") left top no-repeat
- display: inline-block
- +squared(15px)
- text-indent: -99999px
- .other-projects
- margin-top: 30px
- ul
- +clearfix
- li
- +float-left
- margin-right: 7%
- margin-bottom: 7%
- width: 40%
- img
- display: block
- width: 100%
- a
- font-size: 12px
- // Project Thumb
- // Usage: Reusable part for the project "thumbs" view
- .project-thumb
- +border-radius(5px)
- background: #fff
- margin-bottom: 30px !important
- .project-details
- padding: 8px
- padding-bottom: 0
- img
- width: 100%
- margin-bottom: 10px
- h2
- +heading($color: #000, $font-size: 18px)
- p
- color: $dark-grey
- font-size: 12px
- line-height: 1.4
- &:first-of-type
- margin-top: 10px
- .project-location
- color: $darkest-grey
- font-size: 12px
- line-height: 1.4
- padding: 8px
- &:before
- content: "Location: "
- // Project actions
- // Usage: Action menus at the bottom of the project thumbs
- .project-actions
- border-top: 1px solid $light-grey
- +display-box
- width: 100%
- li
- +box-flex(2)
- &:last-of-type a
- border-right: none
- &:first-of-type a
- +border-bottom-left-radius(5px)
- &:last-of-type a
- +border-bottom-right-radius(5px)
- a
- +background(linear-gradient($lighter-grey,#fff 30%))
- border-right: 1px solid $lighter-grey
- color: $darkest-grey
- display: block
- font-size: 10px
- line-height: 34px
- text-align: center
- text-transform: uppercase
- &:hover
- background: #fff
- text-decoration: none
- // -----------------------------------------------------------------
- // Progress meter
- // -----------------------------------------------------------------
- // Usage: Shows the amount of funding on the project
- .progress-meter
- +box-sizing(border-box)
- cursor: default
- margin-top: 5px
- padding: 0 8px 4px 8px
- -webkit-user-select: none
- -khtml-user-select: none
- -moz-user-select: none
- -o-user-select: none
- user-select: none
- width: 100%
- .meter
- +border-radius(8px)
- +box-shadow(rgba(#000,.4) 0 0 3px)
- +box-sizing(border-box)
- background: #fff
- padding: 2px
- width: 100%
- .meter-bg
- +border-radius(8px)
- +background(linear-gradient(#000,#373737 85%))
- padding: 2px
- .progress
- +border-radius(5px)
- +background(linear-gradient(#ffdd25,#ffad04 75%))
- +transition-property(width)
- +transition-duration(1s)
- +transition-delay(.5s)
- +transition-timing-function(ease)
- color: #000
- font-weight: bold
- height: 25px
- line-height: 25px
- text-align: center
- max-width: 100%
- width: 0
- &.below-18
- position: relative
- color: #fff
- text-shadow: 1px 1px 0px rgba(0,0,0,.7)
- &:after
- position: absolute
- right: -35px
- &:after
- content: attr(data-complete)
- // -----------------------------------------------------------------
- // Project search
- // -----------------------------------------------------------------
- // Usage: Search sidebar in the project list
- .project-search-sidebar
- h2
- display: none
- .search-group
- +border-radius(8px)
- background: #fff
- background: rgba(#fff,0.05)
- margin-bottom: 6px
- padding: 12px
- h3
- @extend .PFCentroSerifPro-Regular
- color: $pure-yellow
- font-size: 18px
- ul
- margin-top: 5px
- li
- color: #c4c4c4
- display: block
- font-size: 12px
- line-height: 1.8
- // -----------------------------------------------------------------
- // Sessions forms
- // -----------------------------------------------------------------
- // Usage: Layout and styles for the various session related forms
- body.sessions, body.registrations
- > section
- @extend .grid-container
- background: #fff
- background: rgba(#fff,0.05)
- .sessions-form, .comms
- +box-sizing(border-box)
- padding: 30px
- .sessions-form
- +grid(8)
- padding-right: 0
- .comms
- +grid(4)
- padding-left: 0
- .comms
- @extend .dark
- h2
- @extend .PFCentroSerifPro-Regular
- color: #fff
- font-size: 20px
- margin-top: 40px
- margin-bottom: 20px
- &:first-of-type
- margin-top: 0
- p, li
- line-height: 1.5
- .trade-mark
- position: relative
- top: -7px
- left: 1px
- a
- +link-styles(#fff,darken(#fff,15))
- body.passwords
- > section
- @extend .grid-container
- background: #fff
- background: rgba(#fff,0.05)
- .sessions-form
- +grid(8)
- padding-top: 30px
- padding-bottom: 30px
- +grid-prefix(2)
- +grid-suffix(2)
- .comms
- display: none
- #error_explanation
- background: #fff
- background: rgba(#fff,0.05)
- border: 1px solid rgba(#fff,.1)
- padding: 15px
- h2
- color: #fff
- font-weight: bold
- margin-bottom: 12px
- ul
- list-style: disc
- padding-left: 15px
- li
- line-height: 1.5
- #flash
- .alert
- +opacity(1.0)
- background: rgba(red,.4)
- color: #fff
- font-size: 1.1em
- padding: 20px 40px