Commit b7861a7c authored by Jake Hartnell's avatar Jake Hartnell

Merge pull request #1351 from hypothesis/scss-variables

Convert SCSS variables into hyphen case
parents 9f9b4ab9 8ee90b8e
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
body { body {
@extend .noise; @extend .noise;
font-family: $sansFontFamily; font-family: $sans-font-family;
word-wrap: break-word; word-wrap: break-word;
} }
...@@ -96,8 +96,8 @@ ol { ...@@ -96,8 +96,8 @@ ol {
.sheet { .sheet {
@include border-radius(2px); @include border-radius(2px);
border: solid 1px $grayLighter; border: solid 1px $gray-lighter;
font-family: $sansFontFamily; font-family: $sans-font-family;
margin-bottom: .72em; margin-bottom: .72em;
position: relative; position: relative;
...@@ -115,7 +115,7 @@ ol { ...@@ -115,7 +115,7 @@ ol {
font-weight: bold; font-weight: bold;
font-size: 1.1em; font-size: 1.1em;
&:hover { &:hover {
color: $linkColorHover; color: $link-color-hover;
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
...@@ -129,7 +129,7 @@ ol { ...@@ -129,7 +129,7 @@ ol {
.dropdown-toggle { .dropdown-toggle {
.provider { .provider {
color: $grayLight; color: $gray-light;
display: none; display: none;
} }
&:hover { &:hover {
......
@import 'compass/css3'; @import 'compass/css3';
$white: #fff !default; $white: #fff !default;
$black: #000 !default; $black: #000 !default;
// GRAYS // GRAYS
$gray: #777 !default; $gray: #777 !default;
$grayDark: darken($gray, 12%) !default; $gray-dark: #585858;
$grayDarker: darken($gray, 36%) !default; $gray-light: #969696 !default;
$grayLight: lighten($gray, 12%) !default; $gray-lighter: #d3d3d3 !default;
$grayLighter: lighten($gray, 36%) !default; $gray-lightest: #f9f9f9 !default;
$grayLightest: #f9f9f9 !default;
//COLORS //COLORS
$hypothered: #bd1c2b !default; $hypothered: #bd1c2b !default;
$hypothered-desat: #bd5862 !default; $hypothered-desat: #bd5862 !default;
$inputBorder: $grayLight !default;
$inputDisabledBackground: $grayLight !default;
$inputBackground: white !default;
// Accent colors $error-red: $hypothered-desat !default;
// ------------------------- $error-red-light: #e0b0b0 !default;
$blue: #049cdb !default; $error-red-lightest: #fff1f3 !default;
$blueDark: #0064cd !default;
$green: #46a546 !default; $focus-yellow: #fffbeb !default;
$red: #9d261d !default; $focus-yellow-dark: #ece3c5 !default;
$yellow: #ffc40d !default; $focus-yellow-darker: #cbbb95 !default;
$orange: #f89406 !default;
$pink: #c3325f !default; $button-text-color: $gray-dark !default;
$purple: #7a43b6 !default; $button-background-start: $white !default;
$button-background-end: #f0f0f0 !default;
$button-background-gradient: top, $button-background-start, $button-background-end !default;
$success-green: #76B800 !default;
// Scaffolding // Scaffolding
// ------------------------- // -------------------------
$bodyBackground: $white !default; $body-background: $white !default;
$textColor: $grayDark !default; $text-color: $gray-dark !default;
//LINKS //LINKS
$linkColor: $hypothered-desat !default; $link-color: $hypothered-desat !default;
$linkColorHover: $hypothered !default; $link-color-hover: $hypothered !default;
// Typography // Typography
// ------------------------- // -------------------------
$sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default; $sans-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
$serifFontFamily: Georgia, "Times New Roman", Times, serif !default; $serif-font-family: Georgia, "Times New Roman", Times, serif !default;
$monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace !default; $mono-font-family: Monaco, Menlo, Consolas, "Courier New", monospace !default;
$baseFontSize: 16px !default; $base-font-size: 16px !default;
$baseFontFamily: $sansFontFamily !default; $base-font-family: $sans-font-family !default;
$baseLineHeight: 20px !default; $base-line-height: 20px !default;
$altFontFamily: $serifFontFamily !default; $alt-font-family: $serif-font-family !default;
$headingsFontFamily: inherit !default; $headings-font-family: inherit !default;
$headingsFontWeight: bold !default; $headings-color: inherit !default;
$headingsColor: inherit !default;
//STANCE COLORS //STANCE COLORS
$positive: #3aab39; $positive: #3aab39;
...@@ -60,8 +58,8 @@ $negative: #d11c2b; ...@@ -60,8 +58,8 @@ $negative: #d11c2b;
$neutral: #0171ba; $neutral: #0171ba;
//OTHER VARIABLES //OTHER VARIABLES
$highlightColor: rgba(201, 215, 241, .5); $highlight-color: rgba(201, 215, 241, .5);
$highlightModeColor: rgba(255, 255, 60, .5); $highlight-mode-color: rgba(255, 255, 60, .5);
$thread-padding: 1em; $thread-padding: 1em;
$threadexp-width: .72em; $threadexp-width: .72em;
$score-width: 40px; $score-width: 40px;
...@@ -86,7 +84,7 @@ $input-border-radius: 2px; ...@@ -86,7 +84,7 @@ $input-border-radius: 2px;
@mixin plainform { @mixin plainform {
color: $gray; color: $gray;
background-color: white; background-color: white;
border: 1px solid $grayLighter; border: 1px solid $gray-lighter;
border-radius: .2em; border-radius: .2em;
font-family: "Source Sans Pro", "Open Sans", sans-serif; font-family: "Source Sans Pro", "Open Sans", sans-serif;
font-size: 1em; font-size: 1em;
...@@ -94,16 +92,13 @@ $input-border-radius: 2px; ...@@ -94,16 +92,13 @@ $input-border-radius: 2px;
&:focus, &.js-focus { &:focus, &.js-focus {
outline: 0; outline: 0;
border: 1px solid $gray; border: 1px solid $gray;
@include box-shadow( inset 1px 1px 6px -1px $grayLighter); @include box-shadow( inset 1px 1px 6px -1px $gray-lighter);
} }
&:disabled { &:disabled {
background-color: $grayLightest; background-color: $gray-lightest;
} }
&.ng-dirty.ng-invalid { &.ng-dirty.ng-invalid {
border: 1px solid $red; border: 1px solid $error-red-light;
}
&.ng-valid {
border: 1px solid $green;
} }
} }
...@@ -121,8 +116,8 @@ $input-border-radius: 2px; ...@@ -121,8 +116,8 @@ $input-border-radius: 2px;
position: relative; position: relative;
text-decoration: none; text-decoration: none;
text-shadow: 0 1px 2px rgba(255, 255, 255, .9); text-shadow: 0 1px 2px rgba(255, 255, 255, .9);
color: $grayDark; color: $gray-dark;
border-color: $grayLight $grayLight $gray; border-color: $gray-light $gray-light $gray;
&:hover, &:focus, &:active, &.js-focus, &.js-hover, &.js-active { &:hover, &:focus, &:active, &.js-focus, &.js-hover, &.js-active {
@include background-image( @include background-image(
...@@ -140,14 +135,14 @@ $input-border-radius: 2px; ...@@ -140,14 +135,14 @@ $input-border-radius: 2px;
@include box-shadow( @include box-shadow(
inset 0 .15em .25em rgba(0, 0, 0, .15), inset 0 .15em .25em rgba(0, 0, 0, .15),
0 .05em .1em rgba(0, 0, 0, .0)); 0 .05em .1em rgba(0, 0, 0, .0));
border-color: $grayLight $grayLight $gray; border-color: $gray-light $gray-light $gray;
top: 1px; top: 1px;
} }
&:disabled { &:disabled {
color: $grayLight; color: $gray-light;
border-color: $grayLighter; border-color: $gray-lighter;
background: $grayLightest; background: $gray-lightest;
cursor: default; cursor: default;
} }
} }
...@@ -176,7 +171,7 @@ $input-border-radius: 2px; ...@@ -176,7 +171,7 @@ $input-border-radius: 2px;
@include border-radius(.1em); @include border-radius(.1em);
@include box-shadow(inset 2px 1px 1px hsla(0, 0%, 0%, .1)); @include box-shadow(inset 2px 1px 1px hsla(0, 0%, 0%, .1));
@include single-transition(opacity, .2s); @include single-transition(opacity, .2s);
font-family: $sansFontFamily; font-family: $sans-font-family;
line-height: 29px; line-height: 29px;
opacity: 0; opacity: 0;
position: relative; position: relative;
......
...@@ -8,26 +8,23 @@ ...@@ -8,26 +8,23 @@
@import 'yui_grid'; @import 'yui_grid';
$baseFontSize: 16px; $base-font-size: 16px;
$baseLineHeight: 26px; $base-line-height: 26px;
$sansFontFamily: "Source Sans Pro", $sansFontFamily; $sans-font-family: "Source Sans Pro", $sans-font-family;
$serifFontFamily: "Merriweather", $serifFontFamily; $serif-font-family: "Merriweather", $serif-font-family;
$headingsColor: $textColor; $headings-color: $text-color;
//ELEMENT STYLES//////////////////////////////// //ELEMENT STYLES////////////////////////////////
a { a {
color: $linkColor; color: $link-color;
&:hover { color: $linkColorHover; } &:hover { color: $link-color-hover; }
text-decoration: none; text-decoration: none;
} }
body { body {
background-color: $bodyBackground; background-color: $body-background;
color: $textColor; color: $text-color;
// FIXME
// font-smoothing: antialiased;
// -webkit-font-smoothing: antialiased;
line-height: 1.4; line-height: 1.4;
} }
...@@ -44,8 +41,8 @@ p { ...@@ -44,8 +41,8 @@ p {
em { font-style: italic; } em { font-style: italic; }
html { html {
font-size: $baseFontSize / 16px * 1em; font-size: $base-font-size / 16px * 1em;
line-height: $baseLineHeight / 16px * 1em; line-height: $base-line-height / 16px * 1em;
@include yui_grid(); @include yui_grid();
...@@ -67,8 +64,8 @@ html { ...@@ -67,8 +64,8 @@ html {
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-family: $sansFontFamily; font-family: $sans-font-family;
color: $headingsColor; color: $headings-color;
} }
h1 { h1 {
...@@ -116,11 +113,11 @@ h6 { ...@@ -116,11 +113,11 @@ h6 {
text-decoration: underline; text-decoration: underline;
border: none; border: none;
cursor: pointer; cursor: pointer;
color: $linkColor; color: $link-color;
position: static; position: static;
&:hover, &:focus, &.js-focus, &.js-hover { &:hover, &:focus, &.js-focus, &.js-hover {
color: $linkColorHover; color: $link-color-hover;
} }
} }
...@@ -194,7 +191,7 @@ h6 { ...@@ -194,7 +191,7 @@ h6 {
} }
.more, .less { .more, .less {
font-size: .9em; font-size: .9em;
font-family: $sansFontFamily; font-family: $sans-font-family;
display: block; display: block;
text-align: right; text-align: right;
} }
...@@ -202,13 +199,13 @@ h6 { ...@@ -202,13 +199,13 @@ h6 {
blockquote { blockquote {
color: $gray; color: $gray;
font-family: $serifFontFamily; font-family: $serif-font-family;
font-size: 1em; font-size: 1em;
margin-bottom: 1em; margin-bottom: 1em;
padding: 0 .8em; padding: 0 .8em;
&:before, &:after { &:before, &:after {
color: $grayLighter; color: $gray-lighter;
font-family: "h"; font-family: "h";
position: absolute; position: absolute;
} }
...@@ -252,7 +249,7 @@ blockquote { ...@@ -252,7 +249,7 @@ blockquote {
.dropdown-menu { .dropdown-menu {
@include rotateX(90deg); @include rotateX(90deg);
background: $white; background: $white;
border: solid 1px $grayLighter; border: solid 1px $gray-lighter;
margin-top: .8em; margin-top: .8em;
top: 100%; top: 100%;
float: left; float: left;
...@@ -282,10 +279,10 @@ blockquote { ...@@ -282,10 +279,10 @@ blockquote {
} }
&.inactive { &.inactive {
font-weight: 400; font-weight: 400;
color: $grayLighter; color: $gray-lighter;
cursor: default; cursor: default;
&:hover { &:hover {
color: $grayLighter; color: $gray-lighter;
} }
& * { & * {
cursor: default; cursor: default;
...@@ -293,7 +290,7 @@ blockquote { ...@@ -293,7 +290,7 @@ blockquote {
} }
& + li { & + li {
border-top: dotted 1px $grayLighter; border-top: dotted 1px $gray-lighter;
} }
} }
...@@ -317,7 +314,7 @@ blockquote { ...@@ -317,7 +314,7 @@ blockquote {
} }
&:before { &:before {
border-bottom-color: $grayLighter; border-bottom-color: $gray-lighter;
top: -7px; top: -7px;
} }
...@@ -360,8 +357,8 @@ blockquote { ...@@ -360,8 +357,8 @@ blockquote {
//TABS//////////////////////////////// //TABS////////////////////////////////
.nav-tabs { .nav-tabs {
background-color: $bodyBackground; background-color: $body-background;
border: 1px none $grayLighter; border: 1px none $gray-lighter;
border-bottom-style: solid; border-bottom-style: solid;
padding: 1em; padding: 1em;
...@@ -370,9 +367,9 @@ blockquote { ...@@ -370,9 +367,9 @@ blockquote {
line-height: 1; line-height: 1;
a { a {
font-family: $sansFontFamily; font-family: $sans-font-family;
font-weight: bold; font-weight: bold;
color: $grayDark; color: $gray-dark;
cursor: pointer; cursor: pointer;
} }
...@@ -411,7 +408,7 @@ blockquote { ...@@ -411,7 +408,7 @@ blockquote {
.paper { .paper {
@include border-radius(2px); @include border-radius(2px);
background: $white; background: $white;
border: solid 1px $grayLighter; border: solid 1px $gray-lighter;
} }
...@@ -419,25 +416,25 @@ blockquote { ...@@ -419,25 +416,25 @@ blockquote {
//This is for everything that is formatted as an annotation. //This is for everything that is formatted as an annotation.
.annotation { .annotation {
@include pie-clearfix; @include pie-clearfix;
font-family: $sansFontFamily; font-family: $sans-font-family;
position: relative; position: relative;
&:hover fuzzytime a, &:hover .reply-count { &:hover fuzzytime a, &:hover .reply-count {
color: $linkColor; color: $link-color;
} }
fuzzytime { fuzzytime {
margin: 0 .4em; margin: 0 .4em;
a { a {
color: $textColor; color: $text-color;
&:hover { color: $linkColorHover; } &:hover { color: $link-color-hover; }
&:focus { outline: 0; } &:focus { outline: 0; }
} }
} }
.reply-count { .reply-count {
color: $textColor; color: $text-color;
&:hover { color: $linkColorHover; } &:hover { color: $link-color-hover; }
&:focus { outline: 0; } &:focus { outline: 0; }
} }
...@@ -445,7 +442,7 @@ blockquote { ...@@ -445,7 +442,7 @@ blockquote {
font-weight: bold; font-weight: bold;
font-size: 1.1em; font-size: 1.1em;
&:hover { &:hover {
color: $linkColorHover; color: $link-color-hover;
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
...@@ -501,7 +498,7 @@ blockquote { ...@@ -501,7 +498,7 @@ blockquote {
.annotation-displayer { .annotation-displayer {
.user { .user {
&:hover { &:hover {
color: $linkColorHover; color: $link-color-hover;
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
...@@ -526,13 +523,13 @@ blockquote { ...@@ -526,13 +523,13 @@ blockquote {
.load-more { .load-more {
@include pie-clearfix; @include pie-clearfix;
font-family: $sansFontFamily; font-family: $sans-font-family;
font-weight:bold; font-weight:bold;
font-size: .8em; font-size: .8em;
} }
.thread { .thread {
border-left: 1px dotted $grayLight; border-left: 1px dotted $gray-light;
height: 100%; height: 100%;
padding: 0; padding: 0;
padding-left: $thread-padding; padding-left: $thread-padding;
...@@ -585,7 +582,7 @@ blockquote { ...@@ -585,7 +582,7 @@ blockquote {
display: block !important; display: block !important;
&:hover { &:hover {
background-color: $grayLightest; background-color: $gray-lightest;
} }
& > ul { & > ul {
...@@ -678,24 +675,24 @@ blockquote { ...@@ -678,24 +675,24 @@ blockquote {
} }
.card-emphasis { .card-emphasis {
@include box-shadow(6px 6px 8px -2px $grayLight); @include box-shadow(6px 6px 8px -2px $gray-light);
} }
} }
//SEARCH HIGHLIGHTS//////////////////////////////// //SEARCH HIGHLIGHTS////////////////////////////////
.search-hl-active { .search-hl-active {
background: $highlightColor; background: $highlight-color;
box-shadow:3px 3px 4px -1px #999999; box-shadow:3px 3px 4px -1px #999999;
&::-moz-selection { &::-moz-selection {
background: $highlightColor; background: $highlight-color;
box-shadow:3px 3px 4px #999999; box-shadow:3px 3px 4px #999999;
} }
&::-moz-selection, &::-moz-window-inactive, &::window-inactive { &::-moz-selection, &::-moz-window-inactive, &::window-inactive {
background: $highlightColor; background: $highlight-color;
box-shadow:3px 3px 4px #999999; box-shadow:3px 3px 4px #999999;
} }
&::selection, &::selection:window-inactive { &::selection, &::selection:window-inactive {
background: $highlightColor; background: $highlight-color;
box-shadow:3px 3px 4px #999999; box-shadow:3px 3px 4px #999999;
} }
} }
...@@ -822,9 +819,9 @@ pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; } ...@@ -822,9 +819,9 @@ pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; }
@include smallshadow(0); @include smallshadow(0);
border-bottom-right-radius: 24px 72px; border-bottom-right-radius: 24px 72px;
border-bottom-left-radius: 24px 72px; border-bottom-left-radius: 24px 72px;
font-family: $sansFontFamily; font-family: $sans-font-family;
background: $white; background: $white;
border: solid 1px $grayLighter; border: solid 1px $gray-lighter;
padding: 0 10px; padding: 0 10px;
margin: 0 3px; margin: 0 3px;
display: inline-block; display: inline-block;
......
...@@ -10,28 +10,6 @@ ...@@ -10,28 +10,6 @@
margin-bottom: 1em; margin-bottom: 1em;
} }
%form-input-error-state {
&, &:focus, &.js-focus {
color: #b4777a;
border-color: #f5adb7;
background-color: #fff1f3;
}
@include placeholder {
color: #e0b0b0;
}
}
.form-field-error {
.form-input {
@extend %form-input-error-state;
}
.form-error-list {
display: block;
}
}
.form-input, .form-input,
.form-label { .form-label {
width: 100%; width: 100%;
...@@ -48,24 +26,24 @@ ...@@ -48,24 +26,24 @@
.form-hint { .form-hint {
font-size: 12px; font-size: 12px;
margin-left: 5px; margin-left: 5px;
color: #949292; color: $gray-light;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
.form-required, .form-required[title] { .form-required, .form-required[title] {
cursor: help; cursor: help;
color: #949292; color: $gray-light;
border-bottom: none; border-bottom: none;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
.form-input { .form-input {
border: 1px solid #d8ddde; border: 1px solid $gray-lighter;
border-radius: 2px; border-radius: 2px;
padding: 7px 10px; padding: 7px 10px;
font-weight: normal; font-weight: normal;
font-size: 15px; font-size: 15px;
color: #797979; color: $gray;
@include placeholder { @include placeholder {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
...@@ -73,16 +51,34 @@ ...@@ -73,16 +51,34 @@
&:focus, &.js-focus { &:focus, &.js-focus {
outline: none; outline: none;
color: #7b776a; border-color: $focus-yellow-dark;
border-color: #ece3c5; background-color: $focus-yellow;
background-color: #fffbeb;
@include placeholder { @include placeholder {
color: #cbbb95; color: $focus-yellow-darker;
} }
} }
} }
.form-field-error {
.form-input {
&, &:focus, &.js-focus {
color: $error-red;
border-color: $error-red-light;
background-color: $error-red-lightest;
}
@include placeholder {
color: $error-red-light;
}
}
.form-error-list {
display: block;
}
}
.form-select { .form-select {
display: block; display: block;
} }
...@@ -98,7 +94,7 @@ ...@@ -98,7 +94,7 @@
.form-error { .form-error {
font-size: 13px; font-size: 13px;
line-height: 1.5; line-height: 1.5;
color: #b4777a; color: $error-red;
} }
.form-checkbox-item { .form-checkbox-item {
...@@ -163,13 +159,13 @@ ...@@ -163,13 +159,13 @@
} }
.btn { .btn {
@include background(linear-gradient(top, #fff, #f0f0f0)); @include background(linear-gradient($button-background-gradient...));
@include box-shadow(0 1px 0 rgba(0, 0, 0, 0.15)); @include box-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
display: inline-block; display: inline-block;
font-size: 13px; font-size: 13px;
font-weight: bold; font-weight: bold;
color: #585858; color: $button-text-color;
text-shadow: 0 1px 0 #FFF; text-shadow: 0 1px 0 #FFF;
border-radius: 2px; border-radius: 2px;
border: 1px solid #ACACAC; border: 1px solid #ACACAC;
...@@ -178,14 +174,14 @@ ...@@ -178,14 +174,14 @@
&:focus, &:hover, &:active, &.js-hover, &.js-focus, &.js-active { &:focus, &:hover, &:active, &.js-hover, &.js-focus, &.js-active {
@include box-shadow(0 1px 0 rgba(0, 0, 0, 0.05)); @include box-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
outline: none; outline: none;
color: #585858; color: $button-text-color;
background: #fff; background: $button-background-start;
border-color: #bababa; border-color: #bababa;
} }
&:active, &.js-active { &:active, &.js-active {
@include box-shadow(inset 0 1px 0 rgba(0, 0, 0, 0.1)); @include box-shadow(inset 0 1px 0 rgba(0, 0, 0, 0.1));
background: #F0F0F0; background: $button-background-end;
color: #424242; color: #424242;
border-color: #bababa; border-color: #bababa;
} }
...@@ -195,7 +191,7 @@ ...@@ -195,7 +191,7 @@
cursor: default; cursor: default;
background: #F0F0F0; background: #F0F0F0;
border-color: #CECECE; border-color: #CECECE;
color: #999; color: $gray-light;
} }
} }
...@@ -209,11 +205,11 @@ ...@@ -209,11 +205,11 @@
} }
&:focus, &:hover, &:active, &.js-hover, &.js-focus, &.js-active { &:focus, &:hover, &:active, &.js-hover, &.js-focus, &.js-active {
color: $linkColor; color: $link-color;
} }
&:active, &.js-active { &:active, &.js-active {
color: $linkColorHover; color: $link-color-hover;
} }
} }
...@@ -237,7 +233,7 @@ ...@@ -237,7 +233,7 @@
.btn-message { .btn-message {
font-size: 13px; font-size: 13px;
font-style: italic; font-style: italic;
color: #999; color: $gray-light;
margin-right: 6px; margin-right: 6px;
position: absolute; position: absolute;
right: 100%; right: 100%;
...@@ -250,7 +246,7 @@ ...@@ -250,7 +246,7 @@
display: inline-block; display: inline-block;
position: relative; position: relative;
top: 0px; top: 0px;
background: #76B800; background: $success-green;
border-radius: 50%; border-radius: 50%;
color: #FFF; color: #FFF;
font-size: 12px; font-size: 12px;
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
@import 'compass/layout/stretching'; @import 'compass/layout/stretching';
@import 'compass/reset/utilities'; @import 'compass/reset/utilities';
$baseFontSize: 14px; $base-font-size: 14px;
//ADDER//////////////////////////////// //ADDER////////////////////////////////
.annotator-adder { .annotator-adder {
$border: $gray; $border: $gray;
$hoverborder: $grayDark; $hoverborder: $gray-dark;
@include box-sizing(border-box); @include box-sizing(border-box);
height: 40px; height: 40px;
margin-left: -20px; margin-left: -20px;
...@@ -56,7 +56,7 @@ $baseFontSize: 14px; ...@@ -56,7 +56,7 @@ $baseFontSize: 14px;
} }
&:hover { &:hover {
@include box-shadow(1px 1px 6px -2px $grayLight); @include box-shadow(1px 1px 6px -2px $gray-light);
border-color: $hoverborder; border-color: $hoverborder;
&:before { &:before {
...@@ -79,7 +79,7 @@ $baseFontSize: 14px; ...@@ -79,7 +79,7 @@ $baseFontSize: 14px;
svg { svg {
@include stretch-y; @include stretch-y;
background: hsla(0, 0, 0, .1); background: hsla(0, 0, 0, .1);
border-left: solid 1px $grayLighter; border-left: solid 1px $gray-lighter;
height: 100%; height: 100%;
left: 18px; left: 18px;
width: $heatmap-width; width: $heatmap-width;
...@@ -112,9 +112,9 @@ $baseFontSize: 14px; ...@@ -112,9 +112,9 @@ $baseFontSize: 14px;
@include reset-box-model; @include reset-box-model;
@include reset-font; @include reset-font;
background: none; background: none;
color: $textColor; color: $text-color;
font-weight: bold; font-weight: bold;
font-family: $sansFontFamily; font-family: $sans-font-family;
font-size: 11px; font-size: 11px;
line-height: 20px; line-height: 20px;
left: 5px; left: 5px;
...@@ -203,24 +203,24 @@ $baseFontSize: 14px; ...@@ -203,24 +203,24 @@ $baseFontSize: 14px;
//HIGHLIGHTS//////////////////////////////// //HIGHLIGHTS////////////////////////////////
.annotator-highlights-always-on .annotator-hl, .annotator-highlights-always-on .annotator-hl,
.annotator-hl-active, .annotator-hl-temporary, .annotator-hl-focused { .annotator-hl-active, .annotator-hl-temporary, .annotator-hl-focused {
background: $highlightColor; background: $highlight-color;
box-shadow:3px 3px 4px -1px #999999; box-shadow:3px 3px 4px -1px #999999;
&::-moz-selection { &::-moz-selection {
background: $highlightColor; background: $highlight-color;
box-shadow:3px 3px 4px #999999; box-shadow:3px 3px 4px #999999;
} }
&::-moz-selection, &::-moz-window-inactive, &::window-inactive { &::-moz-selection, &::-moz-window-inactive, &::window-inactive {
background: $highlightColor; background: $highlight-color;
box-shadow:3px 3px 4px #999999; box-shadow:3px 3px 4px #999999;
} }
&::selection, &::selection:window-inactive { &::selection, &::selection:window-inactive {
background: $highlightColor; background: $highlight-color;
box-shadow:3px 3px 4px #999999; box-shadow:3px 3px 4px #999999;
} }
} }
.annotator-highlights-always-on .annotator-hl { .annotator-highlights-always-on .annotator-hl {
background: $highlightModeColor; background: $highlight-mode-color;
} }
.annotator-highlights-always-on .annotator-hl-active, .annotator-highlights-always-on .annotator-hl-active,
...@@ -233,8 +233,8 @@ $baseFontSize: 14px; ...@@ -233,8 +233,8 @@ $baseFontSize: 14px;
@include reset-box-model; @include reset-box-model;
@include user-select(none); @include user-select(none);
@extend .noise; @extend .noise;
font-size: $baseFontSize; font-size: $base-font-size;
line-height: $baseLineHeight; line-height: $base-line-height;
height: 100%; height: 100%;
position: fixed; position: fixed;
top: 0; top: 0;
...@@ -311,7 +311,7 @@ $baseFontSize: 14px; ...@@ -311,7 +311,7 @@ $baseFontSize: 14px;
@include transition-delay(0); @include transition-delay(0);
@include transition-timing-function(cubic-bezier(0, .55, .1, 1)); @include transition-timing-function(cubic-bezier(0, .55, .1, 1));
background: $white; background: $white;
border: solid 1px $grayLighter; border: solid 1px $gray-lighter;
left: 0; left: 0;
margin-bottom: 5px; margin-bottom: 5px;
overflow: hidden; overflow: hidden;
...@@ -333,7 +333,7 @@ $baseFontSize: 14px; ...@@ -333,7 +333,7 @@ $baseFontSize: 14px;
z-index: 1; z-index: 1;
a, a:hover, a:active, a:visited, a:link, a:link:hover { a, a:hover, a:active, a:visited, a:link, a:link:hover {
color: $linkColor; color: $link-color;
} }
} }
...@@ -350,19 +350,19 @@ $baseFontSize: 14px; ...@@ -350,19 +350,19 @@ $baseFontSize: 14px;
text-decoration: none; text-decoration: none;
text-shadow: text-shadow:
0 0 2px $grayLightest, 0 0 2px $gray-lightest,
0 0 0 $gray; 0 0 0 $gray;
&:focus { outline: 0; } &:focus { outline: 0; }
&:hover { color: $linkColorHover; } &:hover { color: $link-color-hover; }
&.icon-comment { &.icon-comment {
text-shadow: text-shadow:
0 0 2px $grayLightest, 0 0 2px $gray-lightest,
0 0 0 $gray; 0 0 0 $gray;
&:hover { &:hover {
color: fade-out($grayLightest, .9); color: fade-out($gray-lightest, .9);
} }
} }
} }
...@@ -371,7 +371,7 @@ $baseFontSize: 14px; ...@@ -371,7 +371,7 @@ $baseFontSize: 14px;
// Toolbar notification counter // Toolbar notification counter
.annotator-notification-counter { .annotator-notification-counter {
font-family: $sansFontFamily; font-family: $sans-font-family;
pointer-events: none; pointer-events: none;
position: absolute; position: absolute;
margin-left: 11px; margin-left: 11px;
......
...@@ -20,7 +20,7 @@ body { ...@@ -20,7 +20,7 @@ body {
.topbar { .topbar {
background: $white; background: $white;
border: solid 1px $grayLighter; border: solid 1px $gray-lighter;
border-style: solid none; border-style: solid none;
height: 30px; height: 30px;
line-height: 28px; line-height: 28px;
...@@ -54,7 +54,7 @@ body { ...@@ -54,7 +54,7 @@ body {
&.pull-right { &.pull-right {
display: inline-block; display: inline-block;
font-family: $sansFontFamily; font-family: $sans-font-family;
} }
& > * { margin: 0 .72em; } & > * { margin: 0 .72em; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment