diff options
Diffstat (limited to 'assets/sass/alaveteli-org.scss')
-rw-r--r-- | assets/sass/alaveteli-org.scss | 310 |
1 files changed, 310 insertions, 0 deletions
diff --git a/assets/sass/alaveteli-org.scss b/assets/sass/alaveteli-org.scss index 1d15d6ce1..7f7d129fb 100644 --- a/assets/sass/alaveteli-org.scss +++ b/assets/sass/alaveteli-org.scss @@ -1,3 +1,313 @@ +@import '../../theme/sass/variables'; +@import 'config'; + +$high-dpi-screen: '-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi'; + + +%full-width-section { + padding: 2em 0; + @media (min-width: $mediumish-screen) { + padding: 3.5em 0; + } +} + +%dark-section { + background-color: $colour_black; + color: #fff; + .button { + color: #fff; + border-color: rgba(255,255,255,0.3); + width: 100%; + margin-bottom: 1em; + @media (min-width: $medium-screen) { + width: auto; + margin-bottom: 0; + } + &:hover, + &:active, + &:focus { + background-color: rgba(0,0,0,0.2); + border-color: rgba(0,0,0,0.1); + } + } +} + +%grid-unit { + display: inline-block; + vertical-align: top; +} + +h1, h2, h4, h5, h6 { + font-weight: 700; +} + +h3 { + font-weight: 600; +} + +.button { + display: inline-block; + padding: 0.4em 2.4em; + border: 1px solid $colour_borders; + vertical-align: middle; + border-radius: 7px; + text-align: center; + &:hover, + &:active, + &:focus { + background-color: #3a3a3a; + border-color: rgba(255,255,255,0.2); + text-decoration: none; + } +} + +.hero { + @extend %dark-section; + @extend %full-width-section; + background-color: darken($colour_brand, 5%); + background-size: cover; + background-position: center center; + background-repeat: no-repeat; + h1 { + display: inline-block; + font-weight: 600; + width: auto; + border-bottom: 1px solid rgba(255,255,255,0.2); + padding-bottom: 0.5em; + margin-bottom: 0.25em; + } + span { + opacity: 0.7; + display: block; + } + p { + font-size: 1.125em; + max-width: 25em; + } +} + +.action-buttons { + margin-top: 2em; + .button { + font-weight: 600; + margin-right: 1em; + } +} + +.what-is-alaveteli { + @extend %full-width-section; + border-bottom: 1px solid $colour_borders; + position: relative; +} + +.what-is-alaveteli__items-grid { + @media (min-width: $large-screen) { + width: 66.666%; + } +} + +.what-is-alaveteli__grid-unit { + @extend %grid-unit; + @media (min-width: $medium-screen) { + width: 46%; + margin-right: 4%; + } +} + +.what-is-alaveteli__item { + padding-left: 3.625em; + background-position: top left; + background-size: 50px 50px; + background-repeat: no-repeat; +} + +.what-is-alaveteli__item--foi { + background-image: url('../img/scales.svg'); +} + +.what-is-alaveteli__item--help { + background-image: url('../img/pointer.svg'); +} + +.what-is-alaveteli__item--published { + background-image: url('../img/binoculars.svg'); +} + +.what-is-alaveteli__item--open { + background-image: url('../img/open.svg'); +} + +.what-is-alaveteli__international-reach-position { + @media (min-width: $large-screen) { + width: 33.3333%; + position: absolute; + top: -13em; + right: 0; + } +} + +.what-is-alaveteli__international-reach { + background-color: $colour_background; + background-image: url('../img/worldmap.svg'); + background-position: center 1.5em; + background-repeat: no-repeat; + background-size: 280px 158px; + padding: 10em 1.25em 1em; + @media (min-width: $medium-screen) { + background-size: 360px 204px; + padding: 11.5em 2em 1em; + } + @media (min-width: $mediumish-screen) { + background-size: 360px 204px; + padding: 1em 2em 1em 22em; + background-position: left center; + } + @media (min-width: $large-screen) { + background-size: 360px 204px; + padding: 12.5em 2em 1em; + background-position: center 1.5em; + } + + .message { + font-size: 1.4em; + } + + strong { + color: $colour_brand; + } + + a { + color: $colour_dark_grey; + border-bottom: 1px dotted $colour_borders; + &:hover, + &:active, + &:focus { + text-decoration: none; + border-color: $colour_links; + color: $colour_links; + } + } +} + +.features { + @extend %full-width-section; +} + +.features__grid-unit { + @extend %grid-unit; + @media (min-width: $mediumish-screen) { + width: 48.5%; + &:nth-child(n) { + margin-right: 3%; + } + &:nth-child(2n) { + margin-right: 0; + } + } + @media (min-width: $large-screen) { + width: 22.75%; + &:nth-child(n) { + margin-right: 3%; + } + &:nth-child(4n) { + margin-right: 0; + } + } +} + +.features__grid-unit--wide { + @media (min-width: $mediumish-screen) { + width: 48.5%; + &:nth-child(n) { + margin-right: 3%; + } + &:last-child { + margin-right: 0; + } + } +} + +.features__item { + margin-top: 1em; + margin-bottom: 1em; +} + +.features__item--primary { + background-position: center top; + background-repeat: no-repeat; + + padding-top: 11.5em; + @media (min-width: $large-screen) { + background-position: left center; + padding: 1em 0; + h3, p { + padding-left: 53%; + } + } + + h3 { + font-size: 1.4em; + } +} + +.features__item--devices { + background-image: url('../img/devices.svg'); + background-size: 258px 188px; +} + +.features__item--messaging { + background-image: url('../img/signs.svg'); + background-size: 200px 166px; + @media (min-width: $large-screen) { + background-position: 3em center; + } +} + +.get-started { + @extend %dark-section; + @extend %full-width-section; +} + +.get-started__grid-unit { + @extend %grid-unit; + @media (min-width: $medium-screen) { + width: 48.5%; + margin-right: 3%; + &:last-child { + margin-right: 0; + } + } + @media (min-width: $large-screen) { + width: 23.5%; + margin-right: 3%; + &:last-child { + margin-right: 0; + } + } + +} + +.get-started__grid-unit--wide { + width: 100%; + @media (min-width: $large-screen) { + width: 47%; + } +} + +.get-started__item--primary { + p { + margin-top: 0; + font-size: 1.25em; + margin-bottom: 1.9em; + } +} + +.push-top { + @media (min-width: $large-screen) { + margin-top: 2.4em; + } +} + /* AlaveteliCon 2012 bios*/ .delegate-bio { clear: left; |