diff options
Diffstat (limited to 'assets/sass')
-rw-r--r-- | assets/sass/_config.scss | 5 | ||||
-rw-r--r-- | assets/sass/alaveteli-org.scss | 497 |
2 files changed, 500 insertions, 2 deletions
diff --git a/assets/sass/_config.scss b/assets/sass/_config.scss index 291dee888..7e665163f 100644 --- a/assets/sass/_config.scss +++ b/assets/sass/_config.scss @@ -1,4 +1,5 @@ $logo_path: "../img/alaveteli-logo.svg"; $logo_height: 60px; -$logo_width: 320px; -$colour_brand: #93278F; /* Alaveteli's purple */ +$logo_width: 140px; +$colour_brand: #a94ca6; /* Alaveteli's purple */ + diff --git a/assets/sass/alaveteli-org.scss b/assets/sass/alaveteli-org.scss new file mode 100644 index 000000000..e41a1c53f --- /dev/null +++ b/assets/sass/alaveteli-org.scss @@ -0,0 +1,497 @@ +@import '../../theme/sass/variables'; +@import '../../theme/sass/mixins'; +@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.1); + border-color: rgba(0,0,0,0.1); + } + } +} + +%grid-unit { + display: inline-block; + vertical-align: top; +} + + +.grid-row { + @include clearfix; +} + +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; + } +} +.nav-position { + @media (min-width: 47.5em) { + position: absolute; + top: 0.6em; + left: 180px; + } + @media (min-width: $large-screen) { + left: 240px; + top: 0.5em; + } +} + +.site-nav { + ul { + margin-top: 0; + margin-bottom: 0; + @extend .unstyled-list; + } + li { + @media (min-width: 47.5em) { + display: inline-block; + } + } + a { + color: #fff; + margin-right: 0.33em; + display: block; + padding: 0.33em; + border-bottom: 1px solid rgba(255,255,255,0.1); + @media (min-width: 47.5em) { + display: inline-block; + border-bottom: none; + } + @media (min-width: $large-screen) { + font-size: 1.125em; + margin-right: 0.66em; + } + } +} + +/*! responsive-nav.js 1.0.32 by @viljamis */ + +.js .nav-collapse { + clip: rect(0 0 0 0); + max-height: 0; + position: absolute; + display: block; + overflow: hidden; + zoom: 1; +} + +.nav-collapse.opened { + max-height: 9999px; +} + +.disable-pointer-events { + pointer-events: none !important; +} + +.nav-toggle { + -webkit-tap-highlight-color: rgba(0,0,0,0); + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; + position: absolute; + top: 0.1em; + right: 5em; + @media (min-width: $medium-screen) { + right: 10em; + } + display: inline-block; + padding: 0.3em 0.75em; + border: 1px solid rgba(255,255,255,0.1); + border-radius: 5px; + color: #fff; + font-size: 0.875em; +} + +@media screen and (min-width: 47.5em) { + .js .nav-collapse { + position: relative; + } + .js .nav-collapse.closed { + max-height: none; + } + .nav-toggle { + display: none; + } +} + + +.hero { + @extend %dark-section; + @extend %full-width-section; + background-color: darken($colour_brand, 5%); + 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; + text-shadow: 0px 2px 1px rgba(0,0,0,0.3); + @media (min-width: $large-screen) { + font-size: 4em; + } + } + 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%; + margin-right: 0; + @media (min-width: $large-screen) { + width: 47%; + margin-right: 3%; + } +} + +.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; + padding-bottom: 1em; + border-top: 1px solid #e4e3dd; + padding-top: 1.2em; } + +.about__intro { + @extend %full-width-section; + background-color: darken($colour_brand, 5%); + margin-bottom: 4em; + h1 { + font-weight: 600; + color: #fff; + text-shadow: 0px 2px 1px rgba(0,0,0,0.3); + margin-bottom: 0.25em; + @media (min-width: $large-screen) { + font-size: 4em; + } + } + a { + color: #fff; + border-bottom: 1px dotted rgba(255,255,255,0.3); + &:hover, + &:active, + &:focus { + border-color: rgba(255,255,255,0.6); + background-color: darken($colour_brand, 10%); + text-decoration: none; + } + } + p { + @media (min-width: $mediumish-screen) { + font-size: 1.25em; + } + color: #fff; + } +} + +.about__column { + @media (min-width: $mediumish-screen) { + @include grid-column--one-of-two; + padding: 0 3%; + } + +} + +.content-in-columns { + margin-bottom: 1.5em; + border-top: 3px dashed $colour_background; + padding-top: 1.5em; + &:first-of-type { + border-top: none; + padding-top: 0; + } +} + +.stamp-graphic { + position: absolute; + width: 24%; + right: 2em; + -webkit-transform: rotate(9deg); + -moz-transform: rotate(9deg); + -o-transform: rotate(9deg); + transform: rotate(9deg); + @media (min-width: 45.4375em) { + top: 20em; + } + @media (min-width: 50.6875em) { + top: 19em; + } + @media (min-width: 66.875em) { + top: 9em; + } +} + +.about__intro p { + + @media (min-width: 50.6875em) { + max-width: 27em; + } + @media (min-width: 66.875em) { + max-width: 34em; + } +} |