This commit is contained in:
Godwin
2014-07-05 10:27:49 -06:00
parent 930aa130d6
commit f66f456cc4
36 changed files with 901 additions and 242 deletions
+13 -4
View File
@@ -10,16 +10,25 @@
*
*/
// Fonts and other external imports
@import url(http://fonts.googleapis.com/css?family=Fjalla+One);
@import url(http://fonts.googleapis.com/css?family=Cantarell:400,700,400italic,700italic);
@font-face {
font-family: 'alte_haas_groteskbold';
src: url('/assets/ahg.eot');
src: url('/assets/ahg.eot?#iefix') format('embedded-opentype'),
url('/assets/ahg.woff') format('woff'),
url('/assets/ahg.ttf') format('truetype'),
url('/assets/ahg.svg#alte_haas_groteskbold') format('svg');
font-weight: normal;
font-style: normal;
}
// Libraries
@import "compass";
@import "foundation_and_overrides";
// Local settings (also edit foundation_and_overrides.scss to modify global variables)
@import "sass/mixins";
@import "sass/layout";
@import "sass/typography";
@import "sass/base";
#mfPreviewBarShow, #mfPreviewBar { display: none; }
@@ -37,8 +37,8 @@
// We use these to control header font styles
//$header-font-family: 'ff-ernestine-web-pro', sans-serif;//join("Open Sans", $body-font-family);
$header-font-family: 'freight-sans-pro', sans-serif;//join("Open Sans", $body-font-family);
$header-font-weight: 800;
$header-font-family: 'Alte Haas Grotesk', sans-serif;//join("Open Sans", $body-font-family);
$header-font-weight: bold;
// $header-font-style: normal;
// $header-font-color: #222;
// $header-line-height: 1.4;
@@ -46,23 +46,25 @@ $header-font-weight: 800;
// $header-bottom-margin: .5rem;
// $header-text-rendering: optimizeLegibility;
$color-1: #053E8D; // blue
$color-2: #94A427; // green
$color-4: #F4921B; // dark-orange
$color-3: #F4A71C; // light orange
$color-5: #DC3637; // red
$color-1: #00ACEE; // blue
$color-2: #A0C700; // green
$color-3: #F11845; // pink
$color-4: #FFCC00; // yellow
$color-5: #D3BE9B; // beige
$organization-color: $color-2; // red
$conference-color: $color-1;
$organization-color: $color-2;
$article-color: $color-3;
//$white: #EEEEE0;
$white: #FFFFF0;
$black: #333;
$white: #FFF;
$black: #393939;
$gray: #E1E1E1;
// We use these to control various global styles
$body-bg: $black;
$body-bg: $white;
$body-font-color: $black;
$body-font-family: 'freight-micro-pro', Helvetica, Arial, sans-serif;
$body-font-family: 'Scotch Micro', serif;
// $body-font-weight: normal;
// $body-font-style: normal;
@@ -78,8 +80,8 @@ $primary-color: $color-1;
$secondary-color: $color-2;
$alert-color: $color-4;
$success-color: $color-2;
$warning-color: $color-5;
$info-color: $color-3;
$warning-color: $color-3;
$info-color: $color-5;
// We use these to make sure border radius matches unless we want it different.
// $global-radius: 3px;
@@ -227,8 +229,8 @@ $align-block-grid-to-grid: true;
// We use these to build padding for buttons.
// $button-tny: rem-calc(10);
$button-sml: 0.25rem;
// $button-med: rem-calc(16);
// $button-lrg: rem-calc(18);
$button-med: 1.3333rem;
$button-lrg: 2rem;
// We use this to control the display property.
// $button-display: inline-block;
@@ -236,24 +238,25 @@ $button-sml: 0.25rem;
// We use these to control button text styles.
$button-font-family: $header-font-family;
$button-font-color: $primary-color;
$button-font-color: $white;
$button-font-color-alt: $secondary-color;
// $button-font-tny: rem-calc(11);
// $button-font-sml: rem-calc(13);
// $button-font-med: rem-calc(16);
// $button-font-lrg: rem-calc(20);
// $button-font-weight: normal;
// $button-font-align: center;
$button-font-weight: bold;
$button-font-align: center;
// We use these to control various hover effects.
// $button-function-factor: 5%;
// We use these to control button border styles.
$button-border-width: 1px;
$button-border-width: 0.15em;
$button-border-style: solid;
$button-border-color: transparent;
// We use this to set the default radius used throughout the core.
$button-radius: 1.5em;
$button-radius: 0;
// $button-round: $global-rounded;
// We use this to set default opacity for disabled buttons.
+185 -17
View File
@@ -4,11 +4,194 @@
*/
html, #footer .container {
background-color: $primary-color
html {
background-color: $white
}
body {
background-color: $primary-color;
}
#main-nav {
background-color: $white;
width: 100%;
display: table;
font-size: 0.6667em;
font-size: 2.4vw;
p {
display: none;
}
.button {
width: 29%;
margin: 0;
&.logo {
background-color: $white;
width: 13%;
border: 0;
padding: 0;
vertical-align: top;
.logo {
width: auto;
height: 2.4em;
}
.logo-text {
display: none;
}
&:hover {
background-color: transparent;
color: $black;
}
}
}
@include breakpoint(medium) {
display: block;
min-height: 100%;
float: left;
width: 25%;
padding: 2.5%;
font-size: 1em;
.button, p {
display: block;
}
p {
font-size: 0.9em;
}
.button {
width: auto;
margin: 0 0 1.25rem;
&.logo {
width: 100%;
margin-bottom: 2em;
.logo {
float: left;
width: 40%;
height: auto;
margin-right: 10%;
}
.logo-text {
display: block;
width: 50%;
}
}
}
}
}
main {
min-height: 100%;
//overflow: auto;
background-color: $primary-color;
}
#banner {
position: relative;
padding-bottom: 4em;
background-size: cover;
background-position: center 66.6667%;
color: $white;
background-color: rgba($conference-color, 0.33);
background-blend-mode: overlay;
overflow: hidden;
@include text-shadow(0 0 0.5em $black);
h1, h2 {
color: inherit;
}
.no-blend-modes & {
&:before {
content: '';
display: block;
position: absolute;
background-color: inherit;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
}
&:after {
content: '';
display: block;
position: absolute;
//background-color: inherit;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
@include background-image(linear-gradient(top, rgba(0,0,0,0) 50%, darken($primary-color, 25) 100%));
mix-blend-mode: multiply;
}
.row {
height: 50%;
z-index: 2;
position: relative;
}
.button {
width: 75%;
color: inherit;
border-color: inherit;
background-color: rgba(darken($article-color, 0), 0.33);
padding: 0.75em 1em;
@include text-shadow(none);
&:hover {
background-color: $article-color;
color: $white;
border-color: transparent;
}
}
@include breakpoint(medium) {
min-height: 40em;
height: 100%;
height: 100vh;
}
}
.align-bottom {
display: -webkit-flexbox;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-align: flex-end;
-ms-flex-align: flex-end;
-webkit-align-items: flex-end;
align-items: flex-end;
}
.centered {
text-align: center;
}
#footnotes_debug {
display: none;
}
#footer {
min-height: 5em;
background-color: inherit;
}
/*body {
height: auto;
}
@@ -27,18 +210,6 @@ main {
.no-banner & {
//border-top: 0.25em solid $primary-color;
}
/*.no-banner &:before {
content: '///////////////';
color: #CCC;
font-weight: 100;
font-family: $header-font-family;
letter-spacing: 0.33333em;
font-size: 1em;
text-align: center;
display: block;
font-style: italic;
}*/
}
$body-background-color: $white;
@@ -397,7 +568,4 @@ table {
}
}
/*[class*="block-grid-"] {
margin: 0;
}
*/
+11
View File
@@ -0,0 +1,11 @@
@mixin breakpoint($query) {
@if $query == small {
@media #{$small-only} { @content; }
} @else if $query == medium {
@media #{$medium-up} { @content; }
} @else if $query == large {
@media #{$large-up} { @content; }
} @else {
@media #{$query} { @content; }
}
}
+33 -38
View File
@@ -4,46 +4,11 @@
*/
$translate-me-bgcolor: rgba(255, 0, 0, 0.25) !default;
$translate-me-outline-color: rgba(255, 0, 0, 0.5) !default;
.translate-me {
cursor: url(translate_cursor-32.png) 8 31, auto;
&.untranslated {
background-color: $translate-me-bgcolor;
@include opacity(0.5);
}
&:hover,
&.selected {
@include opacity(1);
outline: 2px solid $translate-me-outline-color;
outline-offset: 0;
outline-style: dashed;
}
&.preview {
background-color: inherit;
outline-style: solid;
-webkit-animation: preview-translation 2s infinite;
}
}
@-webkit-keyframes preview-translation {
0% {
outline-color: rgba(0, 255, 0, 1);
}
50% {
outline-color: rgba(0, 255, 0, 0);
}
100% {
outline-color: rgba(0, 255, 0, 1);
}
}
//$translate-me-bgcolor: rgba(255, 0, 0, 0.25) !default;
//$translate-me-outline-color: rgba(255, 0, 0, 0.5) !default;
.button, button, input[type="file"] {
background-color: rgba($white, 0.5);
border-radius: 1.5em;
/*background-color: rgba($white, 0.5);
color: $primary-color;
border: 1px solid;
padding: 0.75em 1.5em;
@@ -52,6 +17,36 @@ $translate-me-outline-color: rgba(255, 0, 0, 0.5) !default;
&:hover {
color: #FFF;
}*/
background-color: $primary-color;
color: $white;
font-weight: bold;
//font-family: $header-font-family;
font-size: 1.333em;
border: 0.15em solid transparent;
padding: 0.5em 1em;
&.organization, &.secondary {
background-color: $organization-color;
}
&.article {
background-color: $article-color;
}
&:hover {
color: $primary-color;
border: 0.15em solid;
background-color: transparent;
&.organization {
color: $organization-color;
}
&.article {
color: $article-color;
}
}
}