Initial HTML refactor

This commit is contained in:
Luke Barratt 2014-04-06 15:14:03 +01:00
parent 47fbfe6c01
commit 09a5612c7f
144 changed files with 1030 additions and 4197 deletions

View file

@ -24,11 +24,13 @@ gem 'country_code_select', '~> 1.0.1'
gem 'rmagick', '~> 2.13.2', require: false
gem 'sprockets', '~> 2.2.1'
gem 'tinymce-rails', '~> 3.5.9'
gem 'jquery-rails', '~> 2.0.2'
gem 'sass-rails', '~> 3.2.6'
gem 'coffee-rails', '~> 3.2.2'
gem 'jquery-rails', '~> 2.0.2'
gem 'tinymce-rails', '~> 3.5.9'
gem 'sass', '~> 3.3.4'
gem 'sass-rails', '~> 3.2.6'
gem 'font-awesome-rails', '~> 4.0.3.1'
gem 'bourbon', '~> 3.1.8'
gem 'neat', '~> 1.6.0'
gem 'bitters', '~> 0.9.3'

View file

@ -111,6 +111,8 @@ GEM
multipart-post (>= 1.2, < 3)
ffi (1.9.3)
ffi (1.9.3-x86-mingw32)
font-awesome-rails (4.0.3.1)
railties (>= 3.2, < 5.0)
gruff (0.3.6)
hike (1.2.3)
i18n (0.6.9)
@ -219,7 +221,7 @@ GEM
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slop (3.4.7)
slop (3.5.0)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
@ -234,7 +236,7 @@ GEM
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
thor (0.18.1)
thor (0.19.1)
tilt (1.4.1)
timecop (0.7.1)
tins (1.0.1)
@ -285,6 +287,7 @@ DEPENDENCIES
exceptional (~> 2.0.33)
factory_girl_rails (~> 4.4.1)
faraday (~> 0.9.0)
font-awesome-rails (~> 4.0.3.1)
gruff (~> 0.3.6)
jquery-rails (~> 2.0.2)
kgio (~> 2.9.2)
@ -300,6 +303,7 @@ DEPENDENCIES
rmagick (~> 2.13.2)
rspec-rails (~> 2.14.1)
sanitize (~> 2.1.0)
sass (~> 3.3.4)
sass-rails (~> 3.2.6)
selenium-webdriver (~> 2.41.0)
simplecov (~> 0.7.1)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 96 KiB

View file

@ -0,0 +1,93 @@
/*
Neat Overrides
*/
@import "neat-helpers";
$column: 90px;
$gutter: 30px;
$grid-columns: 12;
$max-width: em(1180);
/*
Neat Breakpoints
*/
$medium-screen: em(640);
$large-screen: em(860);
$medium-screen-up: new-breakpoint(min-width $medium-screen 4);
$large-screen-up: new-breakpoint(min-width $large-screen 8);
/*
Typography
*/
$open-sans: "Open Sans", sans-serif;
$monserrat: "Montserrat", sans-serif;
$sans-serif: $open-sans;
$base-font-family: $sans-serif;
$header-font-family: $monserrat;
/*
Sizes
*/
$base-font-size: 1em;
$base-line-height: $base-font-size * 1.5;
$base-border-radius: em(3);
/*
Colours
*/
$blue: #6a5a8c;
$dark-gray: #232323;
$medium-gray: #999;
$light-gray: #DDD;
$light-red: #FBE3E4;
$light-yellow: #FFF6BF;
$light-green: #E6EFC2;
$base-body-color: white;
$base-font-color: $dark-gray;
$base-accent-color: $blue;
$base-link-color: $base-accent-color;
$hover-link-color: darken($base-accent-color, 15);
$base-border-color: $light-gray;
$error-color: $light-red;
$notice-color: $light-yellow;
$success-color: $light-green;
$background-primary: #232323;
$background-secondary: #ece9e1;
$background-tertiary: #e2dfd8;
$text-primary: #232323;
$text-secondary: #888888;
$text-tertiary: #666666;
$link-primary: #285258;
$navbar-primary: #232323;
$navbar-secondary: #5a9aa8;
$navbar-border: #2e2e2e;
$navbar-text: white;
$flash-text: white;
$flash-notice: #5a9aa8;
$flash-success: #1f7f5c;
$flash-warning: #de8650;
$flash-error: #e56c69;
$input-primary: white;
$input-secondary: #5a9aa8;
$input-text: #232323;
$input-border-width: 3px;
$input-padding: 11px;
$button-primary: #5a9aa8;
$button-secondary: #1f7f5c;
$button-text: white;

View file

@ -1 +1,35 @@
@import "scss/all";
/*
Libraries & Configuration
*/
@import "bourbon";
@import "variables";
@import "neat";
@import "font-awesome";
/*
Mixins
*/
@import "mixins/buttons";
@import "mixins/flashes";
/*
Components
*/
@import "components/lists";
@import "components/tables";
@import "components/forms";
@import "components/flashes";
@import "components/comments";
/*
Layout
*/
@import "layout/typography";
@import "layout/header";
@import "layout/navigation";
@import "layout/body";
@import "layout/footer";

View file

@ -0,0 +1,66 @@
.comment {
$comment-gutter: 1.4em;
$comment-image-padding: .7em;
$comment-image-width: 4em;
$comment-color: $base-font-color;
$comment-background: lighten($base-accent-color, 15);
$comment-detail-color: transparentize($comment-color, .5);
$comment-image-vert-alignment: top;
display: table;
width: 100%;
margin-bottom: $base-line-height;
padding-bottom: 1em;
border-bottom: 1px solid transparentize($comment-color, .9);
.comment-image,
.comment-content {
display: table-cell;
vertical-align: $comment-image-vert-alignment;
}
.comment-image {
padding-right: $comment-gutter;
> img {
width: $comment-image-width;
height: auto;
border-radius: $base-border-radius;
padding: $comment-image-padding;
background: $comment-background;
display: block;
max-width: none;
}
.comment-reverse-order & {
padding-right: 0;
padding-left: 10px;
}
}
.comment-content {
width: 100%;
position: relative;
h1 {
font-size: 1em;
margin-bottom: .5em;
}
p {
margin-bottom: .5em;
}
p.comment-detail {
font-style: italic;
font-size: .9em;
color: $comment-detail-color;
}
.controls {
position: absolute;
top: 0;
right: 0;
}
}
}

View file

@ -0,0 +1,30 @@
/*
Flash Messages
*/
#flash {
@include span-columns(12);
margin-bottom: 20px;
#flash_notice {
@include flash;
}
#flash_success {
@include flash($flash-success);
&:before {
content: "\f00c";
}
}
#flash_error {
@include flash($flash-error);
&:before {
content: "\f00d";
}
}
#flash_warning,
#flash_alert {
@include flash($flash-warning);
&:before {
content: "\f071";
}
}
}

View file

@ -0,0 +1,81 @@
/*
Forms
*/
form {
&.small {
@include span-columns(6);
}
&.medium {
@include span-columns(9);
}
&.large {
@include span-columns(12);
}
@include span-columns(12);
margin-bottom: 20px;
> .field_with_errors:first-child,
> label {
@include span-columns(3);
padding: 11px 0;
line-height: 16px;
}
> .field_with_errors {
input {
border: $input-border-width solid $flash-error;
&:hover,
&:focus {
border-color: $flash-error;
}
&:focus {
color: $input-text;
}
}
}
input {
@include span-columns(9);
background-color: $input-primary;
color: $input-text;
font-size: 16px;
padding: $input-padding;
height: 44px;
border: none;
&:hover {
border: $input-border-width solid lighten($input-secondary, 20%);
padding: $input-padding ($input-padding - $input-border-width);
}
&:focus {
border: $input-border-width solid $input-secondary;
padding: $input-padding ($input-padding - $input-border-width);
color: $input-secondary;
outline: none;
background: transparent;
}
}
.controls {
@include span-columns(9);
@include shift(3);
margin-bottom: 20px;
input {
@include button($button-secondary);
margin-bottom: 0;
outline: none;
}
}
}

View file

@ -0,0 +1,18 @@
/* Variables */
@import "variables";
/* Mixins */
@import "extends/buttons";
@import "extends/flashes";
/* Components */
@import "components/flashes";
@import "components/comments";
@import "components/tables";
/* Layout */
@import "typography";
@import "header";
@import "navigation";
@import "body";
@import "footer";

View file

@ -0,0 +1,33 @@
body {
margin: 0;
padding: 0;
background: #046;
}
%container-padded {
padding: 0 em(20);
}
.wrapper {
@include outer-container;
}
#content {
@extend %container-padded;
}
#content,
#forums {
@include span-columns(12);
background: #F3F3FB;
padding-top: em(20);
}
#main {
@include span-columns(9);
}
#sidebar {
@include span-columns(3);
@include omega();
}

View file

@ -1,5 +1,5 @@
.footer {
$footer-background: desaturate(darken($base-accent-color, 20), 30);
$footer-background: $dark-gray;
$footer-color: white;
$footer-link-color: transparentize($footer-color, .6);
$footer-disclaimer-color: transparentize($footer-color, .6);
@ -8,22 +8,13 @@
padding: $base-line-height*2 $gutter;
width: 100%;
.footer-logo {
text-align: center;
margin-bottom: 2em;
img {
height: 3em;
}
}
.wrapper {
@extend %container-padded;
}
.footer-links {
@include clearfix;
margin-bottom: $base-line-height;
@include media($medium-screen) {
@include shift(3);
}
}
ul {
@ -31,7 +22,7 @@
@include media($medium-screen) {
@include span-columns(3);
@include omega(3n);
@include omega(4n);
@include clearfix;
}
}

View file

@ -0,0 +1,131 @@
nav.top {
$navigation-background: $dark-gray;
$navigation-color: transparentize(white, 0.3);
$navigation-color-hover: white;
$navigation-height: 40px;
background-color: $navigation-background;
border-bottom: 1px solid darken($navigation-background, 10);
font-family: $monserrat;
height: $navigation-height;
width: 100%;
z-index: 999;
.menu-wrapper {
@include outer-container;
@extend %container-padded;
position: relative;
z-index: 9999;
}
.navigation-menu-button {
color: $navigation-color;
cursor: pointer;
display: block;
float: right;
font-family: $monserrat;
font-weight: 700;
line-height: $navigation-height;
margin: 0;
padding-right: 1em;
text-transform: uppercase;
@include media ($large-screen) {
display: none;
}
&:hover {
color: $navigation-color-hover;
}
}
.nav {
@include media ($large-screen) {
float: left;
}
}
#navigation-menu {
@include span-columns(12);
.gathers {
@include span-columns(6);
}
.pages {
@include span-columns(6);
@include omega;
text-align: right;
li:last-child {
padding-right: 0;
}
}
}
#navigation-menu ul {
-webkit-transform-style: preserve-3d; // stop webkit flicker
display: none;
margin: 0 auto;
overflow: hidden;
padding: 0;
width: 100%;
z-index: 9999;
@include media ($large-screen) {
display: inline-block;
margin: 0;
padding: 0;
}
}
ul li {
background: $navigation-background;
display: block;
line-height: $navigation-height;
overflow: hidden;
padding-right: .8em;
text-align: right;
width: 100%;
z-index: 9999;
@include media ($large-screen) {
background: transparent;
display: inline;
line-height: $navigation-height;
padding-right: 2em;
text-decoration: none;
width: auto;
}
a {
font-weight: 400;
color: $navigation-color;
&:hover {
color: $navigation-color-hover;
}
}
}
}
header .banner {
#logo {
@include span-columns(8);
min-height: 200px;
position: relative;
img {
width: 430px;
height: 200px;
position: absolute;
top: 5px;
left: 0;
z-index: 1;
}
}
#authentication {
@include span-columns(4);
}
}

View file

@ -0,0 +1,110 @@
/*
Navigation
*/
#menu {
font-family: "Montserrat", sans-serif;
background-color: $background-primary;
height: 60px;
max-height: 60px;
nav {
@include outer-container;
}
}
ul.navigation {
position: relative;
margin: 0;
padding: 0;
list-style: none;
background-color: $navbar-primary;
float: left;
> li {
float: left;
&:first-child {
a {
border-left: 1px solid $navbar-border;
}
}
.count {
background-color: #6a5a8c;
display: inline-block;
font-size: 14px;
color: white;
line-height: 14px;
padding: 5px 8px;
margin-left: 25px;
margin-top: -8px;
}
> a {
width: auto;
color: white;
height: 60px;
line-height: 16px;
padding: 22px;
float: left;
border-right: 1px solid $navbar-border;
&:hover,
&.active {
background-color: $navbar-secondary;
}
}
&.icon {
> a {
font-size: 24px;
line-height: 24px;
padding: 18px;
i {
width: 24px;
height: 24px;
}
}
}
&.dropdown {
ul {
display: none;
z-index: 10;
}
&:hover {
ul {
display: block;
position: absolute;
top: 60px;
left: 0;
width: 100%;
background-color: $navbar-secondary;
list-style: none;
padding: 0;
margin: 0;
li {
border-bottom: 1px solid lighten($navbar-secondary, 10%);
&:last-child {
border-bottom: none;
}
a {
display: block;
height: 60px;
line-height: 16px;
padding: 22px;
color: $navbar-text;
}
}
}
}
}
}
}

View file

@ -1,3 +1,10 @@
/*
Typography
*/
@import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700);
body {
color: $base-font-color;
font-family: $base-font-family;

View file

@ -0,0 +1,20 @@
/*
Buttons
*/
@mixin button($background: $button-primary, $text: $button-text) {
font-family: "Montserrat", sans-serif;
font-size: 16px;
background-color: $background;
color: $text;
height: 44px;
padding: 11px 22px;
float: left;
margin: 0 20px 20px 0;
border: 0;
text-transform: uppercase;
}
button {
@include button;
}

View file

@ -0,0 +1,31 @@
/*
Flash Messages
*/
@mixin flash($background: $flash-notice, $text: $flash-text) {
background-color: $background;
color: $text;
font-size: 16px;
line-height: 16px;
padding: 14px 14px 14px 54px;
position: relative;
&:before {
@include box-sizing(border-box);
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
font-size: 22px;
content: "\f05a";
background-color: darken($background, 10%);
display: block;
position: absolute;
top: 0;
left: 0;
float: left;
width: 44px;
height: 44px;
padding: 9px;
line-height: 26px;
text-align: center;
}
}

View file

@ -1,41 +0,0 @@
$text: #333333
$bg_box: #fbfbfb
$bg_sub: #fdfdfd
@mixin header
font-weight: bold
margin: 0
@mixin thin
padding: 0
margin: 0
@mixin rounded-corners
border: 1px solid #cecece
border-radius: 5px
@mixin shadow
-moz-box-shadow: 0 0 5px #cbcbcb
-webkit-box-shadow: 0 0 5px #cbcbcb
box-shadow: 0 0 5px #cbcbcb
@mixin shadow-10px
-moz-box-shadow: 0 0 10px #cbcbcb
-webkit-box-shadow: 0 0 10px #cbcbcb
box-shadow: 0 0 10px #cbcbcb
@mixin shadow-none
-moz-box-shadow: none
-webkit-box-shadow: none
box-shadow: none
@mixin shaded-top
padding: 5px 10px 0px 10px
border-radius: 5px 5px 0px 0px
background: url('/images/icons/article_head.png') repeat-x
color: #ffffff
@mixin box-sizing($box-model)
-webkit-box-sizing: $box-model
-moz-box-sizing: $box-model
box-sizing: $box-model

View file

@ -1,48 +0,0 @@
@import _mixins.sass
div
&#matches
min-height: 100px
&.article
@include rounded-corners
@include shadow
width: 100%
padding: 0px
margin-right: 0
margin-bottom: 20px
border: 1px solid #d7d7d7
background-color: $bg_box
&.articleLinks
height: 30px
&.article
> h1
@include shaded-top
@include box-sizing(border-box)
box-sizing: border-box
padding: 8px
margin: 0
width: 100%
height: 35px
font-size: 140%
h1 a
color: #ffffff
h4
margin: 0 3px 3px 5px
font-size: 90%
font-weight: bold
color: black
a
font-size: 90%
font-weight: bold
color: black
&:hover
color: #707070
div.content
padding: 5px 10px 10px 10px
div
margin: 5px 3px 0 3px
&.indented
margin: 2px 2px 2px 15px
&.article div.footer
margin: 0
padding: 10px

View file

@ -1,24 +0,0 @@
@mixin bracket-cell
border: 1px solid #D9D9D9
border-width: 1px 1px 1px 0
width: 110px
height: 14px
table.brackets
border-collapse: collapse
td
font-size: 11px
overflow: hidden
&.empty
width: 90px
height: 14px
&.team
@include bracket-cell
border-width: 1px 1px 1px 0
background-color: #fdfdfd
&.connector
@include bracket-cell
border-width: 0 1px 0 0
select
width: 100px

View file

@ -1,36 +0,0 @@
@import _mixins.sass
div
&.commentNew
width: 340px
height: 300px
&.comments
width: 410px
&.commentHidden
top: auto
position: fixed
visibility: hidden
display: none
&.commentBox
margin: 5px auto 30px auto
width: 400px
h5
@include shadow
width: 400px
height: 15px
padding: 2px 5px 1px 5px
background: url('/images/icons/article_head.png') repeat
color: white
font-size: 11px
a
color: black
&:hover
color: #d4d4d4
div
padding: 5px
width: 400px
background-color: $bg_sub
overflow-x: hidden
blockquote.commentQuote:first-line
font-weight: bold

View file

@ -1,30 +0,0 @@
@import "_mixins"
div.fieldWithErrors
display: inline-block
margin: 0
padding: 0
color: red
#errorExplanation
@include box-sizing(border-box)
width: 100%
margin-bottom: 20px
padding: 7px 7px 7px 7px
background-color: #f0f0f0
h2
margin: -7px
padding: 5px
background-color: #c00
color: #fff
text-align: left
font-weight: bold
font-size: 12px
width: auto
p
padding: 5px
visibility: hidden
color: #333
ul li
font-size: 12px
list-style: url('/images/icons/list-black.gif')

View file

@ -1,18 +0,0 @@
/**
* Flash messages
*/
div
&.loginMsg, &.flashMsg
padding: 5px
font-weight: bold
&.loginOk
color: green
&.loginFail
color: red
&.flashMsg
background-color: green
color: white
margin-bottom: 20px
&.flashError
background-color: red

View file

@ -1,109 +0,0 @@
@import _mixins.sass
div
&#indexForums
position: relative
z-index: 1000
width: 940px
padding-bottom: 5px
margin: 0 auto 0 auto
&.forums
width: 100%
margin-left: auto
margin-right: auto
> div.category
width: 100%
margin-left: auto
margin-right: auto
padding: 0px
margin: 5px
> table.body
width: 100%
margin: 0 auto 0 auto
padding: 0
border: 1px solid #d8e4eb
border-collapse: collapse
th
margin: 0
padding: 3px
border: 1px solid #d8e4eb
background: #cde7f2 repeat-x url('/images/forums/forum_gradient2.png')
vertical-align: middle
font-size: 13px
text-align: left
&.header
padding: 5px 5px 5px 3px
background: url('/images/forums/forum_gradient.jpg') repeat-x center #2a536d
color: #f7fafd
font-size: 14px
font-weight: bold
text-align: left
td
padding: 0px 4px 2px 8px
border: 1px solid #d8e4eb
height: 38px
background-color: #f9fafb
vertical-align: middle
text-align: left
&.forum
height: 48px
&.bullet
background: url('/images/forums/forum_icon_read.png') no-repeat center #f9fafb
width: 38px
height: 36px
&.hl
background: url('/images/forums/forum_icon_unread.png') no-repeat center #f9fafb
table
&#topic
border: 1px solid #d8e4eb
border-collapse: collapse
width: 100%
&#topic>thead>tr>th, &#topic>tbody>tr>td, &#topic>tbody>tr>th, &#topic>tfoot>tr>th
border: 1px solid #d8e4eb
background-color: #f9fafb
padding: 5px
&#topic>thead>tr>th, &#topic>tfoot>tr>th
background: url('/images/forums/forum_gradient.jpg') repeat-x center #2a536d
color: #f7fafd
font-size: 14px
font-weight: bold
&#topic>thead>tr>th a, &#topic>tfoot>tr>th a
color: #e3f0fd
font-weight: bold
&#topic
th.seperator
height: 5px
padding: 0
background: url('/images/forums/forum_gradient.jpg') repeat-x center #2a536d
font-size: 11px
td.avatar
width: 160px
vertical-align: top
th.header
background: url('/images/forums/forum_gradient2.png') repeat-x #cde7f2
height: 10px
font-size: 11px
td
&.actions
font-weight: bold
&.signature
font-size: 10px
&.text
vertical-align: top
padding-top: 2px
tr#reply
display: none
blockquote
padding: 5px
fieldset
margin: 3px 5px 3px 5px
padding: 3px 5px 5px 13px
display: block
border: 1px solid #ccc
background-color: #fbfdff
blockquote
border: 0
padding: 3px 2px 2px 2px
margin: 0

View file

@ -1,31 +0,0 @@
@import "_mixins"
div
&#gatherInfo
margin: 20px 0 0 0
table td
vertical-align: top
&.gatherLeftBox
@include box-sizing(border-box)
width: 230px
height: 320px
margin: 10px 10px 10px 0
&.gatherMiddleBox, &.gatherRightBox
@include box-sizing(border-box)
width: 225px
height: 320px
&.gatherMiddleBox
margin: 10px 10px 10px 0
&.gatherRightBox
margin: 10px 0 10px 0
&#gatherStatus
margin: 0 0 5px 0
table
&#gatherVotes
border-collapse: collapse
&.gatherVotes td
overflow: hidden
margin: 0px
padding: 1px 0px 0px 1px

View file

@ -1,204 +0,0 @@
@import _mixins.sass
html, body
padding: 0
margin: 0
height: 100%
background: repeat url('/images/index/index_pattern.png')
color: $text
font-family: Verdana, Arial, sans-serif
font-size: 11px
h1
width: 100%
height: 25px
font-size: 20px
h2
@include header
padding: 8px 0 3px 0
font-size: 16px
h3
@include header
padding: 3px 0 3px 0px
font-size: 13px
h4
@include header
padding: 0 0 3px 0
font-size: 11px
h5
@include header
padding: 0 0 3px 0
font-size: 9px
div, form
@thin
p
margin: 0
padding: 3px 2px 3px 2px
img
margin: 0
padding: 3px
border: 0
a
color: #2f79ab
text-decoration: none
&:visited
color: #2f79ab
text-decoration: none
&:hover
color: #6890ab
text-decoration: none
&[name]
color: black
&:hover
text-decoration: none
ol
margin: 0
ul
margin: 0
padding: 0 2px 5px 10px
li
margin: 0 0 0 10px
list-style-type: square
ol li
margin: 0 0 0 10px
blockquote
@include rounded-corners
margin: 3px 5px 3px 7px
padding: 3px 3px 3px 13px
display: block
border: 1px solid #ccc
background-color: #fcfcfc
@mixin input-general
@include shadow-10px
@include rounded-corners
margin-top: 3px
background-color: #f7f7f7
color: #3a3a3a
input
margin: 2px
padding: 2px 3px 2px 3px
&[type=text], &[type=password]
@include input-general
&[type=text]:focus
@include input-general
border: 1px solid #ce6f6f
&[type=submit]
@include input-general
@include rounded-corners
padding: 0px 5px 2px 5px
background-color: #f7f7f7
&:hover
cursor: pointer
border: 1px solid #dddbdb
&:disabled
background-color: #f7f7f7
.clear
clear: both
.minitext
font-size: 80%
.center
text-align: center
.centered
display: block
margin-right: auto
margin-left: auto
.box
@include shadow
@include rounded-corners
background: url('/images/icons/article_background.png') no-repeat $bg_box
margin: 4px
padding: 10px 10px 10px 15px
color: #3a3a3a
overflow-x: hidden
h2:first-of-type
@include shaded-top
margin: -10px auto 10px -18px
width: 110%
padding-top: 5px
padding-bottom: 5px
font-size: 140%
> a
color: #fff
.nbox
margin: 4px
padding: 10px 10px 10px 15px
overflow-x: hidden
.sub
@include shadow-none
border: 0
background: none
margin: 5px
padding: 5px
.left
display: inline-block
left: 0
float: left
.right
display: inline-block
right: 0
float: right
.big
width: 70%
.big2
width: 62%
.small
width: 18%
.small2
width: 30%
.equal
width: 48%
.wide
@include box-sizing(border-box)
width: 100%
.wide2
width: 100%
.bold
font-weight: bold
.hidden
visibility: hidden
.green
color: green
.yellow
color: #ceb006
.red
color: #ff0000 !important
span.description
color: #5c5c5c

View file

@ -1,218 +0,0 @@
@import _mixins.sass
div
&#indexContainer
min-height: 100%
position: relative
background: repeat-x url('/images/index/index_bg.png')
padding-bottom: 30px
&#indexMain
position: relative
margin: 0 auto 0 auto
width: 1200px
padding-bottom: 20px
&#logo
width: 480px
height: 353px
position: absolute
top: 5px
z-index: 1
background: image-url('logo.png') left -85px no-repeat
&#indexBanner
width: 100%
height: 194px
position: relative
&#indexLinks
position: relative
z-index: 1000
width: 850px
height: 25px
padding-top: 3px
margin-left: 250px
color: #ffffff
text-align: right
span.gather
color: #CC6600
> a
color: #ffffff
&:hover
color: #d5d5d5
span
color: #cc0000
> a
color: #cc0000
&#indexLogin
height: 45px
margin: 5px auto auto 710px
font-size: 10px
color: #ffffff
div
&.logged
text-align: center
font-size: 11px
&.button
width: 75px
height: 18px
padding-top: 5px
margin: 10px 1px 0px 2px
background-image: url('/images/icons/button.png')
font-size: 12px
font-weight: bold
float: left
&:hover
background-image: url('/images/icons/button_hl.png')
a
color: #ffffff
td#links
text-align: right
input
&[type=text], &[type=password]
width: 100px
&[type=submit]
@include shadow
height: 21px
border: 1px solid #cecece
background-color: #f7f7f7
color: #3a3a3a
cursor: pointer
&#indexMenu
margin-top: 8px
margin-left: 500px
height: 33px
div
width: 143px
height: 33px
color: #ffffff
float: left
&.contests
background-image: url('/images/index/menu_contests.png')
&:hover
background-image: url('/images/index/menu_contests_shaded.png')
cursor: pointer
&.gather
margin-left: 5px
background-image: url('/images/index/menu_gather.png')
&:hover
background-image: url('/images/index/menu_gather_shaded.png')
cursor: pointer
&.material
margin-left: 5px
background-image: url('/images/index/menu_material.png')
&:hover
background-image: url('/images/index/menu_material_shaded.png')
cursor: pointer
&.forums
margin-left: 5px
background-image: url('/images/index/menu_forums.png')
&:hover
background-image: url('/images/index/menu_forums_shaded.png')
cursor: pointer
&#indexItems div
display: none
position: absolute
left: 495px
margin-top: 6px
width: 143px
text-align: right
font-size: 13px
&.gather
left: 645px
&.material
left: 795px
&.forums
left: 943px
a
color: #ffffff
&:hover
color: #d6d5d5
&#indexMainarea
position: relative
z-index: 1000
padding: 10px 100px 10px 100px
&#indexContent
width: 700px
margin-top: 15px
margin-left: 15px
margin-right: 20px
float: left
padding: 0
&#indexRight
padding-top: 15px
float: left
&.indexBox
@include rounded-corners
@include shadow
width: 250px
padding-bottom: 10px
margin-bottom: 15px
background-color: $bg_box
div
&.header
@include shaded-top
margin: 0
padding-top: 5px
height: 25px
font-size: 14px
font-weight: bold
&.separator
@include shaded-top
border-radius: 0px
margin: 0
padding-top: 5px
height: 20px
font-size: 12px
font-weight: normal
&.body
width: 100%
text-align: left
&.content
margin: 0
padding: 6px 5px 0 10px
font-size: 10px
h3
margin: 0 2px 2px 2px
padding-top: 7px
font-size: 10px
ol, li
padding: 1px 2px 2px 0px
list-style-type: none
div.movie
padding-left: 10px
width: 110px
text-align: center
&#index-calendar
padding-bottom: 0
.widget-content-wrapper
padding-bottom: 10px
max-height: 400px
overflow-x: hidden
overflow-y: scroll
&#indexPosts
padding: 5px
&#indexFooter
position: absolute
width: 100%
height: 20px
bottom: 0
padding-top: 5px
background: url('/images/index/index_footer.png') repeat-x center #2a536d
text-align: center
font-size: 80%
color: #fff
a
font-weight: bold
color: #fff
text-transform: uppercase

View file

@ -1,40 +0,0 @@
div
&#roundEvents
margin: 0 auto 0 auto
width: 530px
&#roundTimeline
background-color: black
background-image: url('/images/icons/round_timeline.gif')
background-repeat: repeat-y
width: 5px
height: 100px
margin-top: 0
float: left
&#roundAliens, &#roundMarines
float: left
width: 250px
background-color: black
&.roundEvent
height: 15px
width: 100px
padding: 0 2px 0 2px
font-size: 8px
text-align: center
overflow: visible
white-space: nowrap
vertical-align: middle
background: black
&.roundFrag
span
display: inline-block
padding-top: 2px
vertical-align: top
img
padding: 0 1px 0 1px
margin: 0
&#roundAliens div.roundEvent
color: #fdbf31
text-align: right
&#roundMarines div.roundEvent
color: #0080c0
text-align: left

View file

@ -1,29 +0,0 @@
div#shoutbox
width: 150px
padding: 2px
margin: 2px
overflow-y: hidden
overflow-x: hidden
input
&#shoutbox_text
width: 150px
&.counter
width: 25px !important
border: 0
background: transparent
div
&.shoutmsgBox
margin: 5px 0
height: 150px
overflow-y: scroll
&.shoutmsg
display: block
padding-left: 5px
font-size: 90%
text-indent: -5px
a
&.shoutmsgDel, &[data-method="delete"]
color: red

View file

@ -1,72 +0,0 @@
div
&#matchesTab div.tabs
min-height: 100px
&#indexPoll
font-size: 80%
margin-left: 10px
&#pollOptions
img
padding-top: 5px
span
vertical-align: top
&#userFinder
padding: 8px 8px 0 8px
margin: 10px
&.userDataBox
min-height: 220px
td
&#userNavi
vertical-align: top
padding: 5px
&#userData
padding-left: 15px
padding-top: 20px
vertical-align: top
width: 550px
div
&.userFields
margin-left: 10px
display: block
&#userAvatar
display: inline-block
margin-left: 13px
width: 150px
&#userPopup
visibility: hidden
position: absolute
width: 150px
height: 180px
font-size: 80%
&#userInfo h4
margin: 1px auto 1px auto
display: block
padding: 0
&#serverLog
width: 560px
height: 200px
padding: 3px
border: 2px inset #e6e6e6
overflow-y: scroll
overflow-x: hidden
pre
&.command
display: block
background-color: #eaffef
font-weight: bold
&.response
display: block
background-color: #fbfdff
&#stream
width: 800px
img.bar
table#movie td
padding-left: 15px
padding-right: 15px
min-width: 166px
div.article > h1.sender
background: #8a2d27

View file

@ -1,36 +0,0 @@
@import _mixins.sass
table
&.data
@include shadow
width: 100%
margin: 5px 3px 8px 3px
border-collapse: collapse
background-color: #fafafa
text-align: left
border: 1px solid #cecece
th
color: white
background-image: url('/images/icons/article_head.png')
background-repeat: repeat-x
a
color: white
tr
&.odd
background-color: #b0d1e8
&.even
background-color: #FFFFFF
td, th
padding: 2px 5px 2px 5px
tr
&.red
background-color: #FFC0CB
color: black
&.green
background-color: #bfffbf
color: black
&.split
width: 100%
th
text-align: right
width: 50%

View file

@ -1,37 +0,0 @@
@import _mixins.sass
ul.tabs
padding-bottom: 4px
padding-left: 20px
li
margin: 0 2px 0 0
float: left
list-style-type: none
list-style-image: none
a
@include shadow-10px
display: block
float: left
height: 18px
padding-top: 5px
padding: 5px 10px 0px 10px
-webkit-border-top-left-radius: 5px
-webkit-border-top-right-radius: 5px
-moz-border-radius-topleft: 5px
-moz-border-radius-topright: 5px
border-top-left-radius: 5px
border-top-right-radius: 5px
background-color: #255278
font-weight: bold
text-decoration: none
text-align: center
color: #ffffff
&:hover
background-color: #0e5490
&.active
cursor: default
background-color: #891a06
div.tabs
margin: 5px
margin-top: 19px

View file

@ -1,4 +0,0 @@
@import "bourbon/bourbon";
@import "bitters/bitters";
@import "neat/neat";
@import "layout/all";

View file

@ -1,16 +0,0 @@
// Neat Settings -- uncomment if using Neat
///////////////////////////////////////////////////////////////////////////////
@import "neat-helpers"; // or "neat/neat-helpers" when not in Rails
@import "grid-settings";
// Bitters
///////////////////////////////////////////////////////////////////////////////
@import "variables";
@import "extends/base";
@import "mixins/base";
@import "typography";
@import "forms";
@import "tables";
@import "lists";
@import "flashes";

View file

@ -1,11 +0,0 @@
%flash-error {
@include flash($error-color);
}
%flash-notice {
@include flash($notice-color);
}
%flash-success {
@include flash($success-color);
}

View file

@ -1,95 +0,0 @@
$form-border-color: $base-border-color;
$form-border-color-hover: darken($base-border-color, 10);
$form-border-color-focus: $base-accent-color;
$form-border-radius: $base-border-radius;
$form-box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.06);
$form-box-shadow-focus: $form-box-shadow, 0 0 5px rgba(darken($form-border-color-focus, 5), 0.7);
$form-font-size: $base-font-size;
$form-font-family: $base-font-family;
fieldset {
background: lighten($base-border-color, 10);
border: 1px solid $base-border-color;
margin: 0 0 ($base-line-height / 2) 0;
padding: $base-line-height;
}
input,
label,
select {
display: block;
font-family: $form-font-family;
font-size: $form-font-size;
}
label {
font-weight: bold;
margin-bottom: $base-line-height / 4;
&.required:after {
content: "*";
}
abbr {
display: none;
}
}
textarea,
#{$all-text-inputs},
select[multiple=multiple] {
@include box-sizing(border-box);
@include transition(border-color);
background-color: white;
border-radius: $form-border-radius;
border: 1px solid $form-border-color;
box-shadow: $form-box-shadow;
font-family: $form-font-family;
font-size: $form-font-size;
margin-bottom: $base-line-height / 2;
padding: ($base-line-height / 3) ($base-line-height / 3);
width: 100%;
&:hover {
border-color: $form-border-color-hover;
}
&:focus {
border-color: $form-border-color-focus;
box-shadow: $form-box-shadow-focus;
outline: none;
}
}
textarea {
resize: vertical;
}
input[type="search"] {
@include appearance(none);
}
input[type="checkbox"], input[type="radio"] {
display: inline;
margin-right: $base-line-height / 4;
}
input[type="file"] {
width: 100%;
}
select {
width: auto;
max-width: 100%;
margin-bottom: $base-line-height;
}
button,
input[type="submit"] {
@extend %button;
@include appearance(none);
cursor: pointer;
user-select: none;
vertical-align: middle;
white-space: nowrap;
}

View file

@ -1,14 +0,0 @@
// Neat Overrides
///////////////////////////////////////////////////////////////////////////////
// $column: 90px;
// $gutter: 30px;
// $grid-columns: 12;
// $max-width: em(1088);
// Neat Breakpoints
///////////////////////////////////////////////////////////////////////////////
$medium-screen: em(640);
$large-screen: em(860);
$medium-screen-up: new-breakpoint(min-width $medium-screen 4);
$large-screen-up: new-breakpoint(min-width $large-screen 8);

View file

@ -1,43 +0,0 @@
// Typography
///////////////////////////////////////////////////////////////////////////////
$sans-serif: $helvetica;
$serif: $georgia;
$base-font-family: $sans-serif;
$header-font-family: $base-font-family;
// Sizes
///////////////////////////////////////////////////////////////////////////////
$base-font-size: 1em;
$base-line-height: $base-font-size * 1.5;
$base-border-radius: em(3);
// Colors
///////////////////////////////////////////////////////////////////////////////
$blue: #477DCA;
$dark-gray: #333;
$medium-gray: #999;
$light-gray: #DDD;
$light-red: #FBE3E4;
$light-yellow: #FFF6BF;
$light-green: #E6EFC2;
// Body Color
$base-body-color: white;
// Font Colors
$base-font-color: $dark-gray;
$base-accent-color: $blue;
// Text Link Colors
$base-link-color: $base-accent-color;
$hover-link-color: darken($base-accent-color, 15);
// Border color
$base-border-color: $light-gray;
// Flash Colors
$error-color: $light-red;
$notice-color: $light-yellow;
$success-color: $light-green;

View file

@ -1 +0,0 @@
@import "button";

View file

@ -1,7 +0,0 @@
%button {
@include button(simple, $base-accent-color);
-webkit-font-smoothing: antialiased;
font-size: $base-font-size;
font-weight: bold;
line-height: 1em;
}

View file

@ -1 +0,0 @@
@import "flash";

View file

@ -1,15 +0,0 @@
@mixin flash($color) {
background: $color;
color: darken($color, 60);
font-weight: bold;
margin-bottom: $base-line-height / 2;
padding: $base-line-height / 2;
a {
color: darken($color, 70);
&:hover {
color: darken($color, 90);
}
}
}

View file

@ -1,13 +0,0 @@
//************************************************************************//
// These mixins/functions are deprecated
// They will be removed in the next MAJOR version release
//************************************************************************//
@mixin box-shadow ($shadows...) {
@include prefixer(box-shadow, $shadows, spec);
@warn "box-shadow is deprecated and will be removed in the next major version release";
}
@mixin background-size ($lengths...) {
@include prefixer(background-size, $lengths, spec);
@warn "background-size is deprecated and will be removed in the next major version release";
}

View file

@ -1,59 +0,0 @@
// Custom Helpers
@import "helpers/deprecated-webkit-gradient";
@import "helpers/gradient-positions-parser";
@import "helpers/linear-positions-parser";
@import "helpers/radial-arg-parser";
@import "helpers/radial-positions-parser";
@import "helpers/render-gradients";
@import "helpers/shape-size-stripper";
// Custom Functions
@import "functions/compact";
@import "functions/flex-grid";
@import "functions/grid-width";
@import "functions/linear-gradient";
@import "functions/modular-scale";
@import "functions/px-to-em";
@import "functions/radial-gradient";
@import "functions/tint-shade";
@import "functions/transition-property-name";
// CSS3 Mixins
@import "css3/animation";
@import "css3/appearance";
@import "css3/backface-visibility";
@import "css3/background";
@import "css3/background-image";
@import "css3/border-image";
@import "css3/border-radius";
@import "css3/box-sizing";
@import "css3/columns";
@import "css3/flex-box";
@import "css3/font-face";
@import "css3/hidpi-media-query";
@import "css3/image-rendering";
@import "css3/inline-block";
@import "css3/keyframes";
@import "css3/linear-gradient";
@import "css3/perspective";
@import "css3/radial-gradient";
@import "css3/transform";
@import "css3/transition";
@import "css3/user-select";
@import "css3/placeholder";
// Addons & other mixins
@import "addons/button";
@import "addons/clearfix";
@import "addons/font-family";
@import "addons/hide-text";
@import "addons/html5-input-types";
@import "addons/position";
@import "addons/prefixer";
@import "addons/retina-image";
@import "addons/size";
@import "addons/timing-functions";
@import "addons/triangle";
// Soon to be deprecated Mixins
@import "bourbon-deprecated-upcoming";

View file

@ -1,273 +0,0 @@
@mixin button ($style: simple, $base-color: #4294f0) {
@if type-of($style) == color {
$base-color: $style;
$style: simple;
}
// Grayscale button
@if $base-color == grayscale($base-color) {
@if $style == simple {
@include simple($base-color, $grayscale: true);
}
@else if $style == shiny {
@include shiny($base-color, $grayscale: true);
}
@else if $style == pill {
@include pill($base-color, $grayscale: true);
}
}
// Colored button
@else {
@if $style == simple {
@include simple($base-color);
}
@else if $style == shiny {
@include shiny($base-color);
}
@else if $style == pill {
@include pill($base-color);
}
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
// Simple Button
//************************************************************************//
@mixin simple($base-color, $grayscale: false) {
$color: hsl(0, 0, 100%);
$border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
$inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
$stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
$text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
@if lightness($base-color) > 70% {
$color: hsl(0, 0, 20%);
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
}
@if $grayscale == true {
$border: grayscale($border);
$inset-shadow: grayscale($inset-shadow);
$stop-gradient: grayscale($stop-gradient);
$text-shadow: grayscale($text-shadow);
}
border: 1px solid $border;
border-radius: 3px;
box-shadow: inset 0 1px 0 0 $inset-shadow;
color: $color;
display: inline-block;
font-size: 11px;
font-weight: bold;
@include linear-gradient ($base-color, $stop-gradient);
padding: 7px 18px;
text-decoration: none;
text-shadow: 0 1px 0 $text-shadow;
background-clip: padding-box;
&:hover:not(:disabled) {
$base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
$inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
$stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
@if $grayscale == true {
$base-color-hover: grayscale($base-color-hover);
$inset-shadow-hover: grayscale($inset-shadow-hover);
$stop-gradient-hover: grayscale($stop-gradient-hover);
}
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
cursor: pointer;
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
}
&:active:not(:disabled) {
$border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
$inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
@if $grayscale == true {
$border-active: grayscale($border-active);
$inset-shadow-active: grayscale($inset-shadow-active);
}
border: 1px solid $border-active;
box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active, 0 1px 1px 0 #eee;
}
}
// Shiny Button
//************************************************************************//
@mixin shiny($base-color, $grayscale: false) {
$color: hsl(0, 0, 100%);
$border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81);
$border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122);
$fourth-stop: adjust-color($base-color, $red: -79, $green: -70, $blue: -46);
$inset-shadow: adjust-color($base-color, $red: 37, $green: 29, $blue: 12);
$second-stop: adjust-color($base-color, $red: -56, $green: -50, $blue: -33);
$text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114);
$third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48);
@if lightness($base-color) > 70% {
$color: hsl(0, 0, 20%);
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
}
@if $grayscale == true {
$border: grayscale($border);
$border-bottom: grayscale($border-bottom);
$fourth-stop: grayscale($fourth-stop);
$inset-shadow: grayscale($inset-shadow);
$second-stop: grayscale($second-stop);
$text-shadow: grayscale($text-shadow);
$third-stop: grayscale($third-stop);
}
border: 1px solid $border;
border-bottom: 1px solid $border-bottom;
border-radius: 5px;
box-shadow: inset 0 1px 0 0 $inset-shadow;
color: $color;
display: inline-block;
font-size: 14px;
font-weight: bold;
@include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
padding: 8px 20px;
text-align: center;
text-decoration: none;
text-shadow: 0 -1px 1px $text-shadow;
&:hover:not(:disabled) {
$first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
$second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
$third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66);
$fourth-stop-hover: adjust-color($base-color, $red: -86, $green: -80, $blue: -63);
@if $grayscale == true {
$first-stop-hover: grayscale($first-stop-hover);
$second-stop-hover: grayscale($second-stop-hover);
$third-stop-hover: grayscale($third-stop-hover);
$fourth-stop-hover: grayscale($fourth-stop-hover);
}
cursor: pointer;
@include linear-gradient(top, $first-stop-hover 0%,
$second-stop-hover 50%,
$third-stop-hover 50%,
$fourth-stop-hover 100%);
}
&:active:not(:disabled) {
$inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
@if $grayscale == true {
$inset-shadow-active: grayscale($inset-shadow-active);
}
box-shadow: inset 0 0 20px 0 $inset-shadow-active, 0 1px 0 #fff;
}
}
// Pill Button
//************************************************************************//
@mixin pill($base-color, $grayscale: false) {
$color: hsl(0, 0, 100%);
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%);
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%);
$border-top: adjust-color($base-color, $hue: -1, $saturation: -30%, $lightness: -15%);
$inset-shadow: adjust-color($base-color, $hue: -1, $saturation: -1%, $lightness: 7%);
$stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%);
$text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%);
@if lightness($base-color) > 70% {
$color: hsl(0, 0, 20%);
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
}
@if $grayscale == true {
$border-bottom: grayscale($border-bottom);
$border-sides: grayscale($border-sides);
$border-top: grayscale($border-top);
$inset-shadow: grayscale($inset-shadow);
$stop-gradient: grayscale($stop-gradient);
$text-shadow: grayscale($text-shadow);
}
border: 1px solid $border-top;
border-color: $border-top $border-sides $border-bottom;
border-radius: 16px;
box-shadow: inset 0 1px 0 0 $inset-shadow, 0 1px 2px 0 #b3b3b3;
color: $color;
display: inline-block;
font-size: 11px;
font-weight: normal;
line-height: 1;
@include linear-gradient ($base-color, $stop-gradient);
padding: 5px 16px;
text-align: center;
text-decoration: none;
text-shadow: 0 -1px 1px $text-shadow;
background-clip: padding-box;
&:hover:not(:disabled) {
$base-color-hover: adjust-color($base-color, $lightness: -4.5%);
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%);
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%);
$border-top: adjust-color($base-color, $hue: -1, $saturation: -17%, $lightness: -21%);
$inset-shadow-hover: adjust-color($base-color, $saturation: -1%, $lightness: 3%);
$stop-gradient-hover: adjust-color($base-color, $hue: 8, $saturation: -4%, $lightness: -15.5%);
$text-shadow-hover: adjust-color($base-color, $hue: 5, $saturation: -5%, $lightness: -22%);
@if $grayscale == true {
$base-color-hover: grayscale($base-color-hover);
$border-bottom: grayscale($border-bottom);
$border-sides: grayscale($border-sides);
$border-top: grayscale($border-top);
$inset-shadow-hover: grayscale($inset-shadow-hover);
$stop-gradient-hover: grayscale($stop-gradient-hover);
$text-shadow-hover: grayscale($text-shadow-hover);
}
border: 1px solid $border-top;
border-color: $border-top $border-sides $border-bottom;
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
cursor: pointer;
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
text-shadow: 0 -1px 1px $text-shadow-hover;
background-clip: padding-box;
}
&:active:not(:disabled) {
$active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
$border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
$border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
$inset-shadow-active: adjust-color($base-color, $hue: 9, $saturation: 2%, $lightness: -21.5%);
$text-shadow-active: adjust-color($base-color, $hue: 5, $saturation: -12%, $lightness: -21.5%);
@if $grayscale == true {
$active-color: grayscale($active-color);
$border-active: grayscale($border-active);
$border-bottom-active: grayscale($border-bottom-active);
$inset-shadow-active: grayscale($inset-shadow-active);
$text-shadow-active: grayscale($text-shadow-active);
}
background: $active-color;
border: 1px solid $border-active;
border-bottom: 1px solid $border-bottom-active;
box-shadow: inset 0 0 6px 3px $inset-shadow-active, 0 1px 0 0 #fff;
text-shadow: 0 -1px 1px $text-shadow-active;
}
}

View file

@ -1,29 +0,0 @@
// Micro clearfix provides an easy way to contain floats without adding additional markup
//
// Example usage:
//
// // Contain all floats within .wrapper
// .wrapper {
// @include clearfix;
// .content,
// .sidebar {
// float : left;
// }
// }
@mixin clearfix {
*zoom: 1;
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
// Acknowledgements
// Micro clearfix: [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/)

View file

@ -1,5 +0,0 @@
$georgia: Georgia, Cambria, "Times New Roman", Times, serif;
$helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
$lucida-grande: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
$monospace: "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
$verdana: Verdana, Geneva, sans-serif;

View file

@ -1,5 +0,0 @@
@mixin hide-text {
color: transparent;
font: 0/0 a;
text-shadow: none;
}

View file

@ -1,56 +0,0 @@
//************************************************************************//
// Generate a variable ($all-text-inputs) with a list of all html5
// input types that have a text-based input, excluding textarea.
// http://diveintohtml5.org/forms.html
//************************************************************************//
$inputs-list: 'input[type="email"]',
'input[type="number"]',
'input[type="password"]',
'input[type="search"]',
'input[type="tel"]',
'input[type="text"]',
'input[type="url"]',
// Webkit & Gecko may change the display of these in the future
'input[type="color"]',
'input[type="date"]',
'input[type="datetime"]',
'input[type="datetime-local"]',
'input[type="month"]',
'input[type="time"]',
'input[type="week"]';
$unquoted-inputs-list: ();
@each $input-type in $inputs-list {
$unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma);
}
$all-text-inputs: $unquoted-inputs-list;
// Hover Pseudo-class
//************************************************************************//
$all-text-inputs-hover: ();
@each $input-type in $unquoted-inputs-list {
$input-type-hover: $input-type + ":hover";
$all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma);
}
// Focus Pseudo-class
//************************************************************************//
$all-text-inputs-focus: ();
@each $input-type in $unquoted-inputs-list {
$input-type-focus: $input-type + ":focus";
$all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma);
}
// You must use interpolation on the variable:
// #{$all-text-inputs}
// #{$all-text-inputs-hover}
// #{$all-text-inputs-focus}
// Example
//************************************************************************//
// #{$all-text-inputs}, textarea {
// border: 1px solid red;
// }

View file

@ -1,42 +0,0 @@
@mixin position ($position: relative, $coordinates: 0 0 0 0) {
@if type-of($position) == list {
$coordinates: $position;
$position: relative;
}
$top: nth($coordinates, 1);
$right: nth($coordinates, 2);
$bottom: nth($coordinates, 3);
$left: nth($coordinates, 4);
position: $position;
@if $top == auto {
top: $top;
}
@else if not(unitless($top)) {
top: $top;
}
@if $right == auto {
right: $right;
}
@else if not(unitless($right)) {
right: $right;
}
@if $bottom == auto {
bottom: $bottom;
}
@else if not(unitless($bottom)) {
bottom: $bottom;
}
@if $left == auto {
left: $left;
}
@else if not(unitless($left)) {
left: $left;
}
}

View file

@ -1,49 +0,0 @@
//************************************************************************//
// Example: @include prefixer(border-radius, $radii, webkit ms spec);
//************************************************************************//
$prefix-for-webkit: true !default;
$prefix-for-mozilla: true !default;
$prefix-for-microsoft: true !default;
$prefix-for-opera: true !default;
$prefix-for-spec: true !default; // required for keyframe mixin
@mixin prefixer ($property, $value, $prefixes) {
@each $prefix in $prefixes {
@if $prefix == webkit {
@if $prefix-for-webkit {
-webkit-#{$property}: $value;
}
}
@else if $prefix == moz {
@if $prefix-for-mozilla {
-moz-#{$property}: $value;
}
}
@else if $prefix == ms {
@if $prefix-for-microsoft {
-ms-#{$property}: $value;
}
}
@else if $prefix == o {
@if $prefix-for-opera {
-o-#{$property}: $value;
}
}
@else if $prefix == spec {
@if $prefix-for-spec {
#{$property}: $value;
}
}
@else {
@warn "Unrecognized prefix: #{$prefix}";
}
}
}
@mixin disable-prefix-for-all() {
$prefix-for-webkit: false;
$prefix-for-mozilla: false;
$prefix-for-microsoft: false;
$prefix-for-opera: false;
$prefix-for-spec: false;
}

View file

@ -1,32 +0,0 @@
@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $asset-pipeline: false) {
@if $asset-pipeline {
background-image: image-url("#{$filename}.#{$extension}");
}
@else {
background-image: url("#{$filename}.#{$extension}");
}
@include hidpi {
@if $asset-pipeline {
@if $retina-filename {
background-image: image-url("#{$retina-filename}.#{$extension}");
}
@else {
background-image: image-url("#{$filename}@2x.#{$extension}");
}
}
@else {
@if $retina-filename {
background-image: url("#{$retina-filename}.#{$extension}");
}
@else {
background-image: url("#{$filename}@2x.#{$extension}");
}
}
background-size: $background-size;
}
}

View file

@ -1,44 +0,0 @@
@mixin size($size) {
@if length($size) == 1 {
@if $size == auto {
width: $size;
height: $size;
}
@else if unitless($size) {
width: $size + px;
height: $size + px;
}
@else if not(unitless($size)) {
width: $size;
height: $size;
}
}
// Width x Height
@if length($size) == 2 {
$width: nth($size, 1);
$height: nth($size, 2);
@if $width == auto {
width: $width;
}
@else if not(unitless($width)) {
width: $width;
}
@else if unitless($width) {
width: $width + px;
}
@if $height == auto {
height: $height;
}
@else if not(unitless($height)) {
height: $height;
}
@else if unitless($height) {
height: $height + px;
}
}
}

View file

@ -1,32 +0,0 @@
// CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie)
// Timing functions are the same as demo'ed here: http://jqueryui.com/demos/effect/easing.html
// EASE IN
$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
$ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
$ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
$ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
$ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
$ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
$ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335);
$ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045);
// EASE OUT
$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
$ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
$ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
$ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
$ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
$ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
$ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000);
$ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275);
// EASE IN OUT
$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
$ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
$ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
$ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
$ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
$ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550);

View file

@ -1,45 +0,0 @@
@mixin triangle ($size, $color, $direction) {
height: 0;
width: 0;
@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
border-color: transparent;
border-style: solid;
border-width: $size / 2;
@if $direction == up {
border-bottom-color: $color;
} @else if $direction == right {
border-left-color: $color;
} @else if $direction == down {
border-top-color: $color;
} @else if $direction == left {
border-right-color: $color;
}
}
@else if ($direction == up-right) or ($direction == up-left) {
border-top: $size solid $color;
@if $direction == up-right {
border-left: $size solid transparent;
} @else if $direction == up-left {
border-right: $size solid transparent;
}
}
@else if ($direction == down-right) or ($direction == down-left) {
border-bottom: $size solid $color;
@if $direction == down-right {
border-left: $size solid transparent;
} @else if $direction == down-left {
border-right: $size solid transparent;
}
}
}

View file

@ -1,52 +0,0 @@
// http://www.w3.org/TR/css3-animations/#the-animation-name-property-
// Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
// Official animation shorthand property.
@mixin animation ($animations...) {
@include prefixer(animation, $animations, webkit moz spec);
}
// Individual Animation Properties
@mixin animation-name ($names...) {
@include prefixer(animation-name, $names, webkit moz spec);
}
@mixin animation-duration ($times...) {
@include prefixer(animation-duration, $times, webkit moz spec);
}
@mixin animation-timing-function ($motions...) {
// ease | linear | ease-in | ease-out | ease-in-out
@include prefixer(animation-timing-function, $motions, webkit moz spec);
}
@mixin animation-iteration-count ($values...) {
// infinite | <number>
@include prefixer(animation-iteration-count, $values, webkit moz spec);
}
@mixin animation-direction ($directions...) {
// normal | alternate
@include prefixer(animation-direction, $directions, webkit moz spec);
}
@mixin animation-play-state ($states...) {
// running | paused
@include prefixer(animation-play-state, $states, webkit moz spec);
}
@mixin animation-delay ($times...) {
@include prefixer(animation-delay, $times, webkit moz spec);
}
@mixin animation-fill-mode ($modes...) {
// none | forwards | backwards | both
@include prefixer(animation-fill-mode, $modes, webkit moz spec);
}

View file

@ -1,3 +0,0 @@
@mixin appearance ($value) {
@include prefixer(appearance, $value, webkit moz ms o spec);
}

View file

@ -1,6 +0,0 @@
//************************************************************************//
// Backface-visibility mixin
//************************************************************************//
@mixin backface-visibility($visibility) {
@include prefixer(backface-visibility, $visibility, webkit spec);
}

View file

@ -1,48 +0,0 @@
//************************************************************************//
// Background-image property for adding multiple background images with
// gradients, or for stringing multiple gradients together.
//************************************************************************//
@mixin background-image($images...) {
background-image: _add-prefix($images, webkit);
background-image: _add-prefix($images);
}
@function _add-prefix($images, $vendor: false) {
$images-prefixed: ();
$gradient-positions: false;
@for $i from 1 through length($images) {
$type: type-of(nth($images, $i)); // Get type of variable - List or String
// If variable is a list - Gradient
@if $type == list {
$gradient-type: nth(nth($images, $i), 1); // linear or radial
$gradient-pos: null;
$gradient-args: null;
@if ($gradient-type == linear) or ($gradient-type == radial) {
$gradient-pos: nth(nth($images, $i), 2); // Get gradient position
$gradient-args: nth(nth($images, $i), 3); // Get actual gradient (red, blue)
}
@else {
$gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue)
}
$gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
$gradient: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
$images-prefixed: append($images-prefixed, $gradient, comma);
}
// If variable is a string - Image
@else if $type == string {
$images-prefixed: join($images-prefixed, nth($images, $i), comma);
}
}
@return $images-prefixed;
}
//Examples:
//@include background-image(linear-gradient(top, orange, red));
//@include background-image(radial-gradient(50% 50%, cover circle, orange, red));
//@include background-image(url("/images/a.png"), linear-gradient(orange, red));
//@include background-image(url("image.png"), linear-gradient(orange, red), url("image.png"));
//@include background-image(linear-gradient(hsla(0, 100%, 100%, 0.25) 0%, hsla(0, 100%, 100%, 0.08) 50%, transparent 50%), linear-gradient(orange, red));

View file

@ -1,103 +0,0 @@
//************************************************************************//
// Background property for adding multiple backgrounds using shorthand
// notation.
//************************************************************************//
@mixin background(
$background-1 , $background-2: false,
$background-3: false, $background-4: false,
$background-5: false, $background-6: false,
$background-7: false, $background-8: false,
$background-9: false, $background-10: false,
$fallback: false
) {
$backgrounds: compact($background-1, $background-2,
$background-3, $background-4,
$background-5, $background-6,
$background-7, $background-8,
$background-9, $background-10);
$fallback-color: false;
@if (type-of($fallback) == color) or ($fallback == "transparent") {
$fallback-color: $fallback;
}
@else {
$fallback-color: _extract-background-color($backgrounds);
}
@if $fallback-color {
background-color: $fallback-color;
}
background: _background-add-prefix($backgrounds, webkit);
background: _background-add-prefix($backgrounds);
}
@function _extract-background-color($backgrounds) {
$final-bg-layer: nth($backgrounds, length($backgrounds));
@if type-of($final-bg-layer) == list {
@for $i from 1 through length($final-bg-layer) {
$value: nth($final-bg-layer, $i);
@if type-of($value) == color {
@return $value;
}
}
}
@return false;
}
@function _background-add-prefix($backgrounds, $vendor: false) {
$backgrounds-prefixed: ();
@for $i from 1 through length($backgrounds) {
$shorthand: nth($backgrounds, $i); // Get member for current index
$type: type-of($shorthand); // Get type of variable - List (gradient) or String (image)
// If shorthand is a list (gradient)
@if $type == list {
$first-member: nth($shorthand, 1); // Get first member of shorthand
// Linear Gradient
@if index(linear radial, nth($first-member, 1)) {
$gradient-type: nth($first-member, 1); // linear || radial
$gradient-args: false;
$gradient-positions: false;
$shorthand-start: false;
@if type-of($first-member) == list { // Linear gradient plus additional shorthand values - lg(red,orange)repeat,...
$gradient-positions: nth($first-member, 2);
$gradient-args: nth($first-member, 3);
$shorthand-start: 2;
}
@else { // Linear gradient only - lg(red,orange),...
$gradient-positions: nth($shorthand, 2);
$gradient-args: nth($shorthand, 3); // Get gradient (red, blue)
}
$gradient-positions: _gradient-positions-parser($gradient-type, $gradient-positions);
$gradient: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
// Append any additional shorthand args to gradient
@if $shorthand-start {
@for $j from $shorthand-start through length($shorthand) {
$gradient: join($gradient, nth($shorthand, $j), space);
}
}
$backgrounds-prefixed: append($backgrounds-prefixed, $gradient, comma);
}
// Image with additional properties
@else {
$backgrounds-prefixed: append($backgrounds-prefixed, $shorthand, comma);
}
}
// If shorthand is a simple string (color or image)
@else if $type == string {
$backgrounds-prefixed: join($backgrounds-prefixed, $shorthand, comma);
}
}
@return $backgrounds-prefixed;
}
//Examples:
//@include background(linear-gradient(top, orange, red));
//@include background(radial-gradient(circle at 40% 40%, orange, red));
//@include background(url("/images/a.png") no-repeat, linear-gradient(orange, red));
//@include background(url("image.png") center center, linear-gradient(orange, red), url("image.png"));

View file

@ -1,55 +0,0 @@
@mixin border-image($images) {
-webkit-border-image: _border-add-prefix($images, webkit);
-moz-border-image: _border-add-prefix($images, moz);
-o-border-image: _border-add-prefix($images, o);
border-image: _border-add-prefix($images);
}
@function _border-add-prefix($images, $vendor: false) {
$border-image: null;
$images-type: type-of(nth($images, 1));
$first-var: nth(nth($images, 1), 1); // Get type of Gradient (Linear || radial)
// If input is a gradient
@if $images-type == string {
@if ($first-var == "linear") or ($first-var == "radial") {
$gradient-type: nth($images, 1); // Get type of gradient (linear || radial)
$gradient-pos: nth($images, 2); // Get gradient position
$gradient-args: nth($images, 3); // Get actual gradient (red, blue)
$gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
$border-image: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
}
// If input is a URL
@else {
$border-image: $images;
}
}
// If input is gradient or url + additional args
@else if $images-type == list {
$type: type-of(nth($images, 1)); // Get type of variable - List or String
// If variable is a list - Gradient
@if $type == list {
$gradient: nth($images, 1);
$gradient-type: nth($gradient, 1); // Get type of gradient (linear || radial)
$gradient-pos: nth($gradient, 2); // Get gradient position
$gradient-args: nth($gradient, 3); // Get actual gradient (red, blue)
$gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
$border-image: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
@for $i from 2 through length($images) {
$border-image: append($border-image, nth($images, $i));
}
}
}
@return $border-image;
}
//Examples:
// @include border-image(url("image.png"));
// @include border-image(url("image.png") 20 stretch);
// @include border-image(linear-gradient(45deg, orange, yellow));
// @include border-image(linear-gradient(45deg, orange, yellow) stretch);
// @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round);
// @include border-image(radial-gradient(top, cover, orange, yellow, orange));

View file

@ -1,22 +0,0 @@
//************************************************************************//
// Shorthand Border-radius mixins
//************************************************************************//
@mixin border-top-radius($radii) {
@include prefixer(border-top-left-radius, $radii, spec);
@include prefixer(border-top-right-radius, $radii, spec);
}
@mixin border-bottom-radius($radii) {
@include prefixer(border-bottom-left-radius, $radii, spec);
@include prefixer(border-bottom-right-radius, $radii, spec);
}
@mixin border-left-radius($radii) {
@include prefixer(border-top-left-radius, $radii, spec);
@include prefixer(border-bottom-left-radius, $radii, spec);
}
@mixin border-right-radius($radii) {
@include prefixer(border-top-right-radius, $radii, spec);
@include prefixer(border-bottom-right-radius, $radii, spec);
}

View file

@ -1,4 +0,0 @@
@mixin box-sizing ($box) {
// content-box | border-box | inherit
@include prefixer(box-sizing, $box, webkit moz spec);
}

View file

@ -1,47 +0,0 @@
@mixin columns($arg: auto) {
// <column-count> || <column-width>
@include prefixer(columns, $arg, webkit moz spec);
}
@mixin column-count($int: auto) {
// auto || integer
@include prefixer(column-count, $int, webkit moz spec);
}
@mixin column-gap($length: normal) {
// normal || length
@include prefixer(column-gap, $length, webkit moz spec);
}
@mixin column-fill($arg: auto) {
// auto || length
@include prefixer(columns-fill, $arg, webkit moz spec);
}
@mixin column-rule($arg) {
// <border-width> || <border-style> || <color>
@include prefixer(column-rule, $arg, webkit moz spec);
}
@mixin column-rule-color($color) {
@include prefixer(column-rule-color, $color, webkit moz spec);
}
@mixin column-rule-style($style: none) {
// none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid
@include prefixer(column-rule-style, $style, webkit moz spec);
}
@mixin column-rule-width ($width: none) {
@include prefixer(column-rule-width, $width, webkit moz spec);
}
@mixin column-span($arg: none) {
// none || all
@include prefixer(column-span, $arg, webkit moz spec);
}
@mixin column-width($length: auto) {
// auto || length
@include prefixer(column-width, $length, webkit moz spec);
}

View file

@ -1,52 +0,0 @@
// CSS3 Flexible Box Model and property defaults
// Custom shorthand notation for flexbox
@mixin box($orient: inline-axis, $pack: start, $align: stretch) {
@include display-box;
@include box-orient($orient);
@include box-pack($pack);
@include box-align($align);
}
@mixin display-box {
display: -webkit-box;
display: -moz-box;
display: box;
}
@mixin box-orient($orient: inline-axis) {
// horizontal|vertical|inline-axis|block-axis|inherit
@include prefixer(box-orient, $orient, webkit moz spec);
}
@mixin box-pack($pack: start) {
// start|end|center|justify
@include prefixer(box-pack, $pack, webkit moz spec);
}
@mixin box-align($align: stretch) {
// start|end|center|baseline|stretch
@include prefixer(box-align, $align, webkit moz spec);
}
@mixin box-direction($direction: normal) {
// normal|reverse|inherit
@include prefixer(box-direction, $direction, webkit moz spec);
}
@mixin box-lines($lines: single) {
// single|multiple
@include prefixer(box-lines, $lines, webkit moz spec);
}
@mixin box-ordinal-group($int: 1) {
@include prefixer(box-ordinal-group, $int, webkit moz spec);
}
@mixin box-flex($value: 0.0) {
@include prefixer(box-flex, $value, webkit moz spec);
}
@mixin box-flex-group($int: 1) {
@include prefixer(box-flex-group, $int, webkit moz spec);
}

View file

@ -1,23 +0,0 @@
// Order of the includes matters, and it is: normal, bold, italic, bold+italic.
@mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: false ) {
@font-face {
font-family: $font-family;
font-weight: $weight;
font-style: $style;
@if $asset-pipeline == true {
src: font-url('#{$file-path}.eot');
src: font-url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
font-url('#{$file-path}.woff') format('woff'),
font-url('#{$file-path}.ttf') format('truetype'),
font-url('#{$file-path}.svg##{$font-family}') format('svg');
} @else {
src: url('#{$file-path}.eot');
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
url('#{$file-path}.woff') format('woff'),
url('#{$file-path}.ttf') format('truetype'),
url('#{$file-path}.svg##{$font-family}') format('svg');
}
}
}

View file

@ -1,10 +0,0 @@
// HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
@mixin hidpi($ratio: 1.3) {
@media only screen and (-webkit-min-device-pixel-ratio: $ratio),
only screen and (min--moz-device-pixel-ratio: $ratio),
only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
only screen and (min-resolution: #{round($ratio*96)}dpi),
only screen and (min-resolution: #{$ratio}dppx) {
@content;
}
}

View file

@ -1,13 +0,0 @@
@mixin image-rendering ($mode:optimizeQuality) {
@if ($mode == optimize-contrast) {
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
}
@else {
image-rendering: $mode;
}
}

View file

@ -1,8 +0,0 @@
// Legacy support for inline-block in IE7 (maybe IE6)
@mixin inline-block {
display: inline-block;
vertical-align: baseline;
zoom: 1;
*display: inline;
*vertical-align: auto;
}

View file

@ -1,43 +0,0 @@
// Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content
@mixin keyframes($name) {
$original-prefix-for-webkit: $prefix-for-webkit;
$original-prefix-for-mozilla: $prefix-for-mozilla;
$original-prefix-for-microsoft: $prefix-for-microsoft;
$original-prefix-for-opera: $prefix-for-opera;
$original-prefix-for-spec: $prefix-for-spec;
@if $original-prefix-for-webkit {
@include disable-prefix-for-all();
$prefix-for-webkit: true;
@-webkit-keyframes #{$name} {
@content;
}
}
@if $original-prefix-for-mozilla {
@include disable-prefix-for-all();
$prefix-for-mozilla: true;
@-moz-keyframes #{$name} {
@content;
}
}
@if $original-prefix-for-opera {
@include disable-prefix-for-all();
$prefix-for-opera: true;
@-o-keyframes #{$name} {
@content;
}
}
@if $original-prefix-for-spec {
@include disable-prefix-for-all();
$prefix-for-spec: true;
@keyframes #{$name} {
@content;
}
}
$prefix-for-webkit: $original-prefix-for-webkit;
$prefix-for-mozilla: $original-prefix-for-mozilla;
$prefix-for-microsoft: $original-prefix-for-microsoft;
$prefix-for-opera: $original-prefix-for-opera;
$prefix-for-spec: $original-prefix-for-spec;
}

View file

@ -1,41 +0,0 @@
@mixin linear-gradient($pos, $G1, $G2: false,
$G3: false, $G4: false,
$G5: false, $G6: false,
$G7: false, $G8: false,
$G9: false, $G10: false,
$deprecated-pos1: left top,
$deprecated-pos2: left bottom,
$fallback: false) {
// Detect what type of value exists in $pos
$pos-type: type-of(nth($pos, 1));
$pos-spec: null;
$pos-degree: null;
// If $pos is missing from mixin, reassign vars and add default position
@if ($pos-type == color) or (nth($pos, 1) == "transparent") {
$G10: $G9; $G9: $G8; $G8: $G7; $G7: $G6; $G6: $G5;
$G5: $G4; $G4: $G3; $G3: $G2; $G2: $G1; $G1: $pos;
$pos: null;
}
@if $pos {
$positions: _linear-positions-parser($pos);
$pos-degree: nth($positions, 1);
$pos-spec: nth($positions, 2);
}
$full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
// Set $G1 as the default fallback color
$fallback-color: nth($G1, 1);
// If $fallback is a color use that color as the fallback color
@if (type-of($fallback) == color) or ($fallback == "transparent") {
$fallback-color: $fallback;
}
background-color: $fallback-color;
background-image: _deprecated-webkit-gradient(linear, $deprecated-pos1, $deprecated-pos2, $full); // Safari <= 5.0
background-image: -webkit-linear-gradient($pos-degree $full); // Safari 5.1+, Chrome
background-image: unquote("linear-gradient(#{$pos-spec}#{$full})");
}

View file

@ -1,8 +0,0 @@
@mixin perspective($depth: none) {
// none | <length>
@include prefixer(perspective, $depth, webkit moz spec);
}
@mixin perspective-origin($value: 50% 50%) {
@include prefixer(perspective-origin, $value, webkit moz spec);
}

View file

@ -1,29 +0,0 @@
$placeholders: '-webkit-input-placeholder',
'-moz-placeholder',
'-ms-input-placeholder';
@mixin placeholder {
@each $placeholder in $placeholders {
@if $placeholder == "-webkit-input-placeholder" {
&::#{$placeholder} {
@content;
}
}
@else if $placeholder == "-moz-placeholder" {
// FF 18-
&:#{$placeholder} {
@content;
}
// FF 19+
&::#{$placeholder} {
@content;
}
}
@else {
&:#{$placeholder} {
@content;
}
}
}
}

View file

@ -1,44 +0,0 @@
// Requires Sass 3.1+
@mixin radial-gradient($G1, $G2,
$G3: false, $G4: false,
$G5: false, $G6: false,
$G7: false, $G8: false,
$G9: false, $G10: false,
$pos: null,
$shape-size: null,
$deprecated-pos1: center center,
$deprecated-pos2: center center,
$deprecated-radius1: 0,
$deprecated-radius2: 460,
$fallback: false) {
$data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
$G1: nth($data, 1);
$G2: nth($data, 2);
$pos: nth($data, 3);
$shape-size: nth($data, 4);
$full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
// Strip deprecated cover/contain for spec
$shape-size-spec: _shape-size-stripper($shape-size);
// Set $G1 as the default fallback color
$first-color: nth($full, 1);
$fallback-color: nth($first-color, 1);
@if (type-of($fallback) == color) or ($fallback == "transparent") {
$fallback-color: $fallback;
}
// Add Commas and spaces
$shape-size: if($shape-size, '#{$shape-size}, ', null);
$pos: if($pos, '#{$pos}, ', null);
$pos-spec: if($pos, 'at #{$pos}', null);
$shape-size-spec: if(($shape-size-spec != ' ') and ($pos == null), '#{$shape-size-spec}, ', '#{$shape-size-spec} ');
background-color: $fallback-color;
background-image: _deprecated-webkit-gradient(radial, $deprecated-pos1, $deprecated-pos2, $full, $deprecated-radius1, $deprecated-radius2); // Safari <= 5.0 && IOS 4
background-image: -webkit-radial-gradient(unquote(#{$pos}#{$shape-size}#{$full}));
background-image: unquote("radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full})");
}

View file

@ -1,15 +0,0 @@
@mixin transform($property: none) {
// none | <transform-function>
@include prefixer(transform, $property, webkit moz ms o spec);
}
@mixin transform-origin($axes: 50%) {
// x-axis - left | center | right | length | %
// y-axis - top | center | bottom | length | %
// z-axis - length
@include prefixer(transform-origin, $axes, webkit moz ms o spec);
}
@mixin transform-style ($style: flat) {
@include prefixer(transform-style, $style, webkit moz ms o spec);
}

View file

@ -1,34 +0,0 @@
// Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
// Example: @include transition (all, 2.0s, ease-in-out);
// @include transition ((opacity, width), (1.0s, 2.0s), ease-in, (0, 2s));
// @include transition ($property:(opacity, width), $delay: (1.5s, 2.5s));
@mixin transition ($properties...) {
@if length($properties) >= 1 {
@include prefixer(transition, $properties, webkit moz spec);
}
@else {
$properties: all 0.15s ease-out 0;
@include prefixer(transition, $properties, webkit moz spec);
}
}
@mixin transition-property ($properties...) {
-webkit-transition-property: transition-property-names($properties, 'webkit');
-moz-transition-property: transition-property-names($properties, 'moz');
transition-property: transition-property-names($properties, false);
}
@mixin transition-duration ($times...) {
@include prefixer(transition-duration, $times, webkit moz spec);
}
@mixin transition-timing-function ($motions...) {
// ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
@include prefixer(transition-timing-function, $motions, webkit moz spec);
}
@mixin transition-delay ($times...) {
@include prefixer(transition-delay, $times, webkit moz spec);
}

View file

@ -1,3 +0,0 @@
@mixin user-select($arg: none) {
@include prefixer(user-select, $arg, webkit moz ms spec);
}

View file

@ -1,11 +0,0 @@
// Remove `false` values from a list
@function compact($vars...) {
$list: ();
@each $var in $vars {
@if $var {
$list: append($list, $var, comma);
}
}
@return $list;
}

View file

@ -1,39 +0,0 @@
// Flexible grid
@function flex-grid($columns, $container-columns: $fg-max-columns) {
$width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
$container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
@return percentage($width / $container-width);
}
// Flexible gutter
@function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
$container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
@return percentage($gutter / $container-width);
}
// The $fg-column, $fg-gutter and $fg-max-columns variables must be defined in your base stylesheet to properly use the flex-grid function.
// This function takes the fluid grid equation (target / context = result) and uses columns to help define each.
//
// The calculation presumes that your column structure will be missing the last gutter:
//
// -- column -- gutter -- column -- gutter -- column
//
// $fg-column: 60px; // Column Width
// $fg-gutter: 25px; // Gutter Width
// $fg-max-columns: 12; // Total Columns For Main Container
//
// div {
// width: flex-grid(4); // returns (315px / 995px) = 31.65829%;
// margin-left: flex-gutter(); // returns (25px / 995px) = 2.51256%;
//
// p {
// width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%;
// float: left;
// margin: flex-gutter(4); // returns (25px / 315px) = 7.936508%;
// }
//
// blockquote {
// float: left;
// width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%;
// }
// }

View file

@ -1,13 +0,0 @@
@function grid-width($n) {
@return $n * $gw-column + ($n - 1) * $gw-gutter;
}
// The $gw-column and $gw-gutter variables must be defined in your base stylesheet to properly use the grid-width function.
//
// $gw-column: 100px; // Column Width
// $gw-gutter: 40px; // Gutter Width
//
// div {
// width: grid-width(4); // returns 520px;
// margin-left: $gw-gutter; // returns 40px;
// }

View file

@ -1,13 +0,0 @@
@function linear-gradient($pos, $gradients...) {
$type: linear;
$pos-type: type-of(nth($pos, 1));
// if $pos doesn't exist, fix $gradient
@if ($pos-type == color) or (nth($pos, 1) == "transparent") {
$gradients: zip($pos $gradients);
$pos: false;
}
$type-gradient: $type, $pos, $gradients;
@return $type-gradient;
}

View file

@ -1,40 +0,0 @@
@function modular-scale($value, $increment, $ratio) {
@if $increment > 0 {
@for $i from 1 through $increment {
$value: ($value * $ratio);
}
}
@if $increment < 0 {
$increment: abs($increment);
@for $i from 1 through $increment {
$value: ($value / $ratio);
}
}
@return $value;
}
// div {
// Increment Up GR with positive value
// font-size: modular-scale(14px, 1, 1.618); // returns: 22.652px
//
// Increment Down GR with negative value
// font-size: modular-scale(14px, -1, 1.618); // returns: 8.653px
//
// Can be used with ceil(round up) or floor(round down)
// font-size: floor( modular-scale(14px, 1, 1.618) ); // returns: 22px
// font-size: ceil( modular-scale(14px, 1, 1.618) ); // returns: 23px
// }
//
// modularscale.com
@function golden-ratio($value, $increment) {
@return modular-scale($value, $increment, 1.618)
}
// div {
// font-size: golden-ratio(14px, 1); // returns: 22.652px
// }
//
// goldenratiocalculator.com

View file

@ -1,8 +0,0 @@
// Convert pixels to ems
// eg. for a relational value of 12px write em(12) when the parent is 16px
// if the parent is another value say 24px write em(12, 24)
@function em($pxval, $base: 16) {
@return ($pxval / $base) * 1em;
}

View file

@ -1,23 +0,0 @@
// This function is required and used by the background-image mixin.
@function radial-gradient($G1, $G2,
$G3: false, $G4: false,
$G5: false, $G6: false,
$G7: false, $G8: false,
$G9: false, $G10: false,
$pos: null,
$shape-size: null) {
$data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
$G1: nth($data, 1);
$G2: nth($data, 2);
$pos: nth($data, 3);
$shape-size: nth($data, 4);
$type: radial;
$gradient: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
$type-gradient: $type, $shape-size $pos, $gradient;
@return $type-gradient;
}

View file

@ -1,9 +0,0 @@
// Add percentage of white to a color
@function tint($color, $percent){
@return mix(white, $color, $percent);
}
// Add percentage of black to a color
@function shade($color, $percent){
@return mix(black, $color, $percent);
}

View file

@ -1,22 +0,0 @@
// Return vendor-prefixed property names if appropriate
// Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
//************************************************************************//
@function transition-property-names($props, $vendor: false) {
$new-props: ();
@each $prop in $props {
$new-props: append($new-props, transition-property-name($prop, $vendor), comma);
}
@return $new-props;
}
@function transition-property-name($prop, $vendor: false) {
// put other properties that need to be prefixed here aswell
@if $vendor and $prop == transform {
@return unquote('-'+$vendor+'-'+$prop);
}
@else {
@return $prop;
}
}

View file

@ -1,39 +0,0 @@
// Render Deprecated Webkit Gradient - Linear || Radial
//************************************************************************//
@function _deprecated-webkit-gradient($type,
$deprecated-pos1, $deprecated-pos2,
$full,
$deprecated-radius1: false, $deprecated-radius2: false) {
$gradient-list: ();
$gradient: false;
$full-length: length($full);
$percentage: false;
$gradient-type: $type;
@for $i from 1 through $full-length {
$gradient: nth($full, $i);
@if length($gradient) == 2 {
$color-stop: color-stop(nth($gradient, 2), nth($gradient, 1));
$gradient-list: join($gradient-list, $color-stop, comma);
}
@else if $gradient != null {
@if $i == $full-length {
$percentage: 100%;
}
@else {
$percentage: ($i - 1) * (100 / ($full-length - 1)) + "%";
}
$color-stop: color-stop(unquote($percentage), $gradient);
$gradient-list: join($gradient-list, $color-stop, comma);
}
}
@if $type == radial {
$gradient: -webkit-gradient(radial, $deprecated-pos1, $deprecated-radius1, $deprecated-pos2, $deprecated-radius2, $gradient-list);
}
@else if $type == linear {
$gradient: -webkit-gradient(linear, $deprecated-pos1, $deprecated-pos2, $gradient-list);
}
@return $gradient;
}

View file

@ -1,13 +0,0 @@
@function _gradient-positions-parser($gradient-type, $gradient-positions) {
@if $gradient-positions
and ($gradient-type == linear)
and (type-of($gradient-positions) != color) {
$gradient-positions: _linear-positions-parser($gradient-positions);
}
@else if $gradient-positions
and ($gradient-type == radial)
and (type-of($gradient-positions) != color) {
$gradient-positions: _radial-positions-parser($gradient-positions);
}
@return $gradient-positions;
}

View file

@ -1,61 +0,0 @@
@function _linear-positions-parser($pos) {
$type: type-of(nth($pos, 1));
$spec: null;
$degree: null;
$side: null;
$corner: null;
$length: length($pos);
// Parse Side and corner positions
@if ($length > 1) {
@if nth($pos, 1) == "to" { // Newer syntax
$side: nth($pos, 2);
@if $length == 2 { // eg. to top
// Swap for backwards compatability
$degree: _position-flipper(nth($pos, 2));
}
@else if $length == 3 { // eg. to top left
$corner: nth($pos, 3);
}
}
@else if $length == 2 { // Older syntax ("top left")
$side: _position-flipper(nth($pos, 1));
$corner: _position-flipper(nth($pos, 2));
}
@if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") {
$degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
}
@else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") {
$degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
}
@else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") {
$degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
}
@else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") {
$degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
}
$spec: to $side $corner;
}
@else if $length == 1 {
// Swap for backwards compatability
@if $type == string {
$degree: $pos;
$spec: to _position-flipper($pos);
}
@else {
$degree: -270 - $pos; //rotate the gradient opposite from spec
$spec: $pos;
}
}
$degree: unquote($degree + ",");
$spec: unquote($spec + ",");
@return $degree $spec;
}
@function _position-flipper($pos) {
@return if($pos == left, right, null)
if($pos == right, left, null)
if($pos == top, bottom, null)
if($pos == bottom, top, null);
}

View file

@ -1,69 +0,0 @@
@function _radial-arg-parser($G1, $G2, $pos, $shape-size) {
@each $value in $G1, $G2 {
$first-val: nth($value, 1);
$pos-type: type-of($first-val);
$spec-at-index: null;
// Determine if spec was passed to mixin
@if type-of($value) == list {
$spec-at-index: if(index($value, at), index($value, at), false);
}
@if $spec-at-index {
@if $spec-at-index > 1 {
@for $i from 1 through ($spec-at-index - 1) {
$shape-size: $shape-size nth($value, $i);
}
@for $i from ($spec-at-index + 1) through length($value) {
$pos: $pos nth($value, $i);
}
}
@else if $spec-at-index == 1 {
@for $i from ($spec-at-index + 1) through length($value) {
$pos: $pos nth($value, $i);
}
}
$G1: false;
}
// If not spec calculate correct values
@else {
@if ($pos-type != color) or ($first-val != "transparent") {
@if ($pos-type == number)
or ($first-val == "center")
or ($first-val == "top")
or ($first-val == "right")
or ($first-val == "bottom")
or ($first-val == "left") {
$pos: $value;
@if $pos == $G1 {
$G1: false;
}
}
@else if
($first-val == "ellipse")
or ($first-val == "circle")
or ($first-val == "closest-side")
or ($first-val == "closest-corner")
or ($first-val == "farthest-side")
or ($first-val == "farthest-corner")
or ($first-val == "contain")
or ($first-val == "cover") {
$shape-size: $value;
@if $value == $G1 {
$G1: false;
}
@else if $value == $G2 {
$G2: false;
}
}
}
}
}
@return $G1, $G2, $pos, $shape-size;
}

View file

@ -1,18 +0,0 @@
@function _radial-positions-parser($gradient-pos) {
$shape-size: nth($gradient-pos, 1);
$pos: nth($gradient-pos, 2);
$shape-size-spec: _shape-size-stripper($shape-size);
$pre-spec: unquote(if($pos, "#{$pos}, ", null))
unquote(if($shape-size, "#{$shape-size},", null));
$pos-spec: if($pos, "at #{$pos}", null);
$spec: "#{$shape-size-spec} #{$pos-spec}";
// Add comma
@if ($spec != ' ') {
$spec: "#{$spec},"
}
@return $pre-spec $spec;
}

View file

@ -1,26 +0,0 @@
// User for linear and radial gradients within background-image or border-image properties
@function _render-gradients($gradient-positions, $gradients, $gradient-type, $vendor: false) {
$pre-spec: null;
$spec: null;
$vendor-gradients: null;
@if $gradient-type == linear {
@if $gradient-positions {
$pre-spec: nth($gradient-positions, 1);
$spec: nth($gradient-positions, 2);
}
}
@else if $gradient-type == radial {
$pre-spec: nth($gradient-positions, 1);
$spec: nth($gradient-positions, 2);
}
@if $vendor {
$vendor-gradients: -#{$vendor}-#{$gradient-type}-gradient(#{$pre-spec} $gradients);
}
@else if $vendor == false {
$vendor-gradients: "#{$gradient-type}-gradient(#{$spec} #{$gradients})";
$vendor-gradients: unquote($vendor-gradients);
}
@return $vendor-gradients;
}

View file

@ -1,10 +0,0 @@
@function _shape-size-stripper($shape-size) {
$shape-size-spec: null;
@each $value in $shape-size {
@if ($value == "cover") or ($value == "contain") {
$value: null;
}
$shape-size-spec: "#{$shape-size-spec} #{$value}";
}
@return $shape-size-spec;
}

View file

@ -1,3 +0,0 @@
@import "body";
@import "header";
@import "footer";

View file

@ -1,4 +0,0 @@
body {
margin: 0;
padding: 0;
}

View file

@ -1,168 +0,0 @@
header.navigation {
$navigation-background: $dark-gray;
$navigation-color: transparentize(white, 0.3);
$navigation-color-hover: white;
$navigation-height: 60px;
$navigation-nav-button-background: $base-accent-color;
$navigation-nav-button-background-hover: lighten($navigation-background, 10);
$navigation-nav-button-border: 1px solid lighten($navigation-nav-button-background, 20);
$navigation-search-background: lighten($navigation-background, 5);
$navigation-search-border: 1px solid darken($navigation-background, 5);
background-color: $navigation-background;
border-bottom: 1px solid darken($navigation-background, 10);
font-family: $sans-serif;
height: $navigation-height;
width: 100%;
z-index: 999;
.menu-wrapper {
@include outer-container;
position: relative;
z-index: 9999;
}
.logo {
float: left;
max-height: $navigation-height;
padding-left: 1em;
padding-right: 2em;
img {
max-height: $navigation-height;
padding: .8em 0;
}
}
.navigation-menu-button {
color: $navigation-color;
cursor: pointer;
display: block;
float: right;
font-family: $sans-serif;
font-weight: 700;
line-height: $navigation-height;
margin: 0;
padding-right: 1em;
text-transform: uppercase;
@include media ($large-screen) {
display: none;
}
&:hover {
color: $navigation-color-hover;
}
}
.nav {
@include media ($large-screen) {
float: left;
}
}
ul#navigation-menu {
clear: both;
-webkit-transform-style: preserve-3d; // stop webkit flicker
display: none;
margin: 0 auto;
overflow: hidden;
padding: 0;
width: 100%;
z-index: 9999;
@include media ($large-screen) {
display: inline;
margin: 0;
padding: 0;
}
}
ul li {
background: $navigation-background;
display: block;
line-height: $navigation-height;
overflow: hidden;
padding-right: .8em;
text-align: right;
width: 100%;
z-index: 9999;
@include media ($large-screen) {
background: transparent;
display: inline;
line-height: $navigation-height;
padding-right: 2em;
text-decoration: none;
width: auto;
}
a {
font-weight: 400;
color: $navigation-color;
&:hover {
color: $navigation-color-hover;
}
}
}
.sign-up {
@include media ($large-screen) {
@include position(absolute, 0px 0px 0 0);
padding-right: 1em;
a {
@include transition (all 0.2s ease-in-out);
background: $navigation-nav-button-background;
border-radius: $base-border-radius;
color: white;
font-size: .8em;
font-weight: 800;
padding: .6em 1em;
text-transform: uppercase;
&:hover {
background: lighten($navigation-nav-button-background, 10);
}
}
}
}
li.navigation-search-bar {
display: none;
@include media($large-screen) {
@include position(absolute, 0px 76px 0 0);
display: inline-block;
line-height: 0 !important;
padding: 13px 30px; // this to get around Firefox/Opera line-height "bug"
}
}
.search-bar {
$search-bar-border-color: $base-border-color;
$search-bar-border: 1px solid $search-bar-border-color;
$search-bar-background: lighten($search-bar-border-color, 10);
width: 19em;
position: relative;
display: inline-block;
input {
@include box-sizing(border-box);
display: block;
}
input[type=text] {
background: $navigation-search-background;
border: $navigation-search-border;
padding: .6em .8em;
font-size: .9em;
font-style: italic;
color: $navigation-color;
border-radius: $base-border-radius * 2;
margin: 0;
}
}
}

View file

@ -1,7 +0,0 @@
// Functions
@import "functions/private";
@import "functions/new-breakpoint";
// Settings
@import "settings/grid";
@import "settings/visual-grid";

View file

@ -1,21 +0,0 @@
// Bourbon Neat 1.6.0.pre
// MIT Licensed
// Copyright (c) 2012-2013 thoughtbot, inc.
// Helpers
@import "neat-helpers";
// Grid
@import "grid/private";
@import "grid/reset";
@import "grid/grid";
@import "grid/omega";
@import "grid/outer-container";
@import "grid/span-columns";
@import "grid/row";
@import "grid/shift";
@import "grid/pad";
@import "grid/fill-parent";
@import "grid/media";
@import "grid/to-deprecate";
@import "grid/visual-grid";

Some files were not shown because too many files have changed in this diff Show more