Commit a6004e78 authored by Robert Knight's avatar Robert Knight

Auto-format .scss files using Prettier

Make `yarn format` and `yarn checkformatting` handle .scss files as well
as JS files, so we can get the benefits of consistent, automated
formatting for our SASS/CSS.
parent a284417b
...@@ -150,8 +150,8 @@ ...@@ -150,8 +150,8 @@
"scripts": { "scripts": {
"build": "cross-env NODE_ENV=production gulp build", "build": "cross-env NODE_ENV=production gulp build",
"lint": "eslint .", "lint": "eslint .",
"checkformatting": "prettier --check '**/*.js'", "checkformatting": "prettier --check '**/*.{js,scss}'",
"format": "prettier --list-different --write '**/*.js'", "format": "prettier --list-different --write '**/*.{js,scss}'",
"test": "gulp test", "test": "gulp test",
"report-coverage": "codecov -f coverage/coverage-final.json", "report-coverage": "codecov -f coverage/coverage-final.json",
"version": "make clean build/manifest.json", "version": "make clean build/manifest.json",
......
...@@ -3,7 +3,6 @@ $adder-transition-duration: 80ms; ...@@ -3,7 +3,6 @@ $adder-transition-duration: 80ms;
// Main class for the root element of the "adder" toolbar that appears when the // Main class for the root element of the "adder" toolbar that appears when the
// user makes a text selection. // user makes a text selection.
.annotator-adder { .annotator-adder {
// Reset all inherited properties to their initial values. This prevents CSS // Reset all inherited properties to their initial values. This prevents CSS
// property values from the host page being inherited by elements of the // property values from the host page being inherited by elements of the
// Adder, even when using Shadow DOM. // Adder, even when using Shadow DOM.
...@@ -18,7 +17,7 @@ $adder-transition-duration: 80ms; ...@@ -18,7 +17,7 @@ $adder-transition-duration: 80ms;
direction: ltr; direction: ltr;
position: absolute; position: absolute;
background: $white; background: $white;
border: 1px solid rgba(0,0,0,0.20); border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 4px; border-radius: 4px;
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.25); box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.25);
...@@ -28,27 +27,41 @@ $adder-transition-duration: 80ms; ...@@ -28,27 +27,41 @@ $adder-transition-duration: 80ms;
} }
@keyframes adder-fade-in { @keyframes adder-fade-in {
0% { opacity: 0.05; } 0% {
20% { opacity: 0.7; } opacity: 0.05;
100% { opacity: 1.0; } }
20% {
opacity: 0.7;
}
100% {
opacity: 1;
}
} }
@keyframes adder-pop-up { @keyframes adder-pop-up {
from { transform: scale(0.8) translateY(10px); } from {
to { transform: scale(1.0) translateY(0px); } transform: scale(0.8) translateY(10px);
}
to {
transform: scale(1) translateY(0px);
}
} }
@keyframes adder-pop-down { @keyframes adder-pop-down {
from { transform: scale(0.8) translateY(-10px); } from {
to { transform: scale(1.0) translateY(0px); } transform: scale(0.8) translateY(-10px);
}
to {
transform: scale(1) translateY(0px);
}
} }
@mixin adder-arrow($rotation) { @mixin adder-arrow($rotation) {
transform: rotate($rotation); transform: rotate($rotation);
background: $white; background: $white;
border-bottom: 1px solid rgba(0,0,0,0.20); border-bottom: 1px solid rgba(0, 0, 0, 0.2);
border-right: 1px solid rgba(0,0,0,0.20); border-right: 1px solid rgba(0, 0, 0, 0.2);
content: ""; content: '';
display: block; display: block;
height: 6px; height: 6px;
left: 0; left: 0;
......
...@@ -98,7 +98,8 @@ $base-font-size: 14px; ...@@ -98,7 +98,8 @@ $base-font-size: 14px;
height: 100%; height: 100%;
} }
ul, li { ul,
li {
box-sizing: border-box; box-sizing: border-box;
list-style: none; list-style: none;
@include reset-box-model; @include reset-box-model;
...@@ -106,7 +107,7 @@ $base-font-size: 14px; ...@@ -106,7 +107,7 @@ $base-font-size: 14px;
} }
.annotator-frame-button { .annotator-frame-button {
transition: background-color .25s .25s; transition: background-color 0.25s 0.25s;
@include smallshadow; @include smallshadow;
background: $white; background: $white;
border: solid 1px $gray-lighter; border: solid 1px $gray-lighter;
...@@ -120,11 +121,12 @@ $base-font-size: 14px; ...@@ -120,11 +121,12 @@ $base-font-size: 14px;
margin-bottom: 5px; margin-bottom: 5px;
&:active { &:active {
transition: background-color .25s; transition: background-color 0.25s;
background-color: $gray-light; background-color: $gray-light;
} }
&:focus, &:hover { &:focus,
&:hover {
outline: 0; outline: 0;
color: $text-color; color: $text-color;
} }
...@@ -202,7 +204,7 @@ $base-font-size: 14px; ...@@ -202,7 +204,7 @@ $base-font-size: 14px;
@media screen and (min-width: 37.5em) { @media screen and (min-width: 37.5em) {
.annotator-frame { .annotator-frame {
transition: margin-left .15s cubic-bezier(.55, 0, .2, .8); transition: margin-left 0.15s cubic-bezier(0.55, 0, 0.2, 0.8);
width: 428px; width: 428px;
margin-left: -428px; margin-left: -428px;
} }
......
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
margin: 0 auto; margin: 0 auto;
} }
&:before, &:after { &:before,
&:after {
content: ''; content: '';
right: 100%; right: 100%;
top: 50%; top: 50%;
...@@ -61,11 +62,13 @@ ...@@ -61,11 +62,13 @@
margin-top: -7px; margin-top: -7px;
} }
&.lower, &.upper { &.lower,
&.upper {
@include smallshadow; @include smallshadow;
z-index: 1; z-index: 1;
&:before, &:after { &:before,
&:after {
left: 50%; left: 50%;
bottom: 100%; bottom: 100%;
right: auto; right: auto;
...@@ -77,7 +80,8 @@ ...@@ -77,7 +80,8 @@
&.upper { &.upper {
border-radius: 2px 2px 4px 4px; border-radius: 2px 2px 4px 4px;
&:before, &:after { &:before,
&:after {
top: auto; top: auto;
bottom: 100%; bottom: 100%;
} }
...@@ -98,7 +102,8 @@ ...@@ -98,7 +102,8 @@
&.lower { &.lower {
border-radius: 4px 4px 2px 2px; border-radius: 4px 4px 2px 2px;
&:before, &:after { &:before,
&:after {
bottom: auto; bottom: auto;
top: 100%; top: 100%;
} }
......
@import "../variables"; @import '../variables';
// In order for our highlights to be visible we need to use solid colors. // In order for our highlights to be visible we need to use solid colors.
#viewer.has-transparent-text-layer .textLayer { #viewer.has-transparent-text-layer .textLayer {
opacity: 1; opacity: 1;
::selection { background: rgba(0, 0, 255, .2); } ::selection {
::-moz-selection { background: rgba(0 , 0 , 255, .2); } background: rgba(0, 0, 255, 0.2);
}
::-moz-selection {
background: rgba(0, 0, 255, 0.2);
}
} }
// When using search funcionality of PDF.js the matches should highlight the content but not cover it. Fix for #648 // When using search funcionality of PDF.js the matches should highlight the content but not cover it. Fix for #648
......
@import "./variables"; @import './variables';
@import "./util"; @import './util';
/* Style input placeholders */ /* Style input placeholders */
@mixin placeholder { @mixin placeholder {
&.placeholder { @content; } &.placeholder {
&:placeholder { @content; } @content;
&::placeholder { @content; } }
&:placeholder {
@content;
}
&::placeholder {
@content;
}
} }
/* Shadow mixins */ /* Shadow mixins */
@mixin smallshadow($a: 0, $b: 1px, $c: .1) { @mixin smallshadow($a: 0, $b: 1px, $c: 0.1) {
box-shadow: $a $b 1px hsla(0, 0%, 0%, $c); box-shadow: $a $b 1px hsla(0, 0%, 0%, $c);
} }
......
// Common form styles. // Common form styles.
@import "mixins/forms"; @import 'mixins/forms';
.form-field { .form-field {
@include pie-clearfix; @include pie-clearfix;
clear: both; clear: both;
margin-bottom: .75em; margin-bottom: 0.75em;
} }
.form-description { .form-description {
...@@ -20,13 +20,14 @@ ...@@ -20,13 +20,14 @@
.form-label { .form-label {
cursor: pointer; cursor: pointer;
font-weight: bold; font-weight: bold;
margin-bottom: .4em; margin-bottom: 0.4em;
} }
.form-input { .form-input {
@include form-input; @include form-input;
&:focus, &.js-focus { &:focus,
&.js-focus {
@include form-input-focus; @include form-input-focus;
} }
} }
...@@ -39,7 +40,9 @@ ...@@ -39,7 +40,9 @@
.form-field-error { .form-field-error {
.form-input { .form-input {
&, &:focus, &.js-focus { &,
&:focus,
&.js-focus {
@include form-input-error; @include form-input-error;
} }
} }
...@@ -53,13 +56,13 @@ ...@@ -53,13 +56,13 @@
position: relative; position: relative;
display: none; display: none;
background: $error-color; background: $error-color;
margin-top: .75em; margin-top: 0.75em;
padding: .25em .75em; padding: 0.25em 0.75em;
float: left; float: left;
border-radius: 2px; border-radius: 2px;
.form-error { .form-error {
font-size: .833em; font-size: 0.833em;
color: white; color: white;
} }
...@@ -67,7 +70,7 @@ ...@@ -67,7 +70,7 @@
bottom: 100%; bottom: 100%;
left: 50%; left: 50%;
border: solid transparent; border: solid transparent;
content: " "; content: ' ';
height: 0; height: 0;
width: 0; width: 0;
position: absolute; position: absolute;
...@@ -85,11 +88,11 @@ ...@@ -85,11 +88,11 @@
.form-actions { .form-actions {
@include pie-clearfix; @include pie-clearfix;
margin-top: .75em; margin-top: 0.75em;
} }
.form-actions-message { .form-actions-message {
font-size: .833em; font-size: 0.833em;
float: left; float: left;
margin-top: 1em; margin-top: 1em;
} }
...@@ -99,7 +102,7 @@ ...@@ -99,7 +102,7 @@
float: right; float: right;
> * { > * {
margin-left: .75em; margin-left: 0.75em;
&:first-child { &:first-child {
margin-left: 0; margin-left: 0;
} }
...@@ -109,20 +112,27 @@ ...@@ -109,20 +112,27 @@
.btn { .btn {
@include btn; @include btn;
&:hover, &:focus, &:active, &:hover,
&.js-hover, &.js-focus, &.js-active { &:focus,
&:active,
&.js-hover,
&.js-focus,
&.js-active {
@include btn-hover; @include btn-hover;
} }
&:focus, &.js-focus { &:focus,
&.js-focus {
@include focus-outline; @include focus-outline;
} }
&:active, &.js-active { &:active,
&.js-active {
@include btn-active; @include btn-active;
} }
&[disabled], &.js-disabled { &[disabled],
&.js-disabled {
@include btn-disabled; @include btn-disabled;
} }
} }
...@@ -130,21 +140,35 @@ ...@@ -130,21 +140,35 @@
.btn-clean { .btn-clean {
border: none; border: none;
&, &:focus, &:hover, &:active, &[disabled], &,
&.js-hover, &.js-focus, &.js-active, &.js-disabled { &:focus,
&:hover,
&:active,
&[disabled],
&.js-hover,
&.js-focus,
&.js-active,
&.js-disabled {
box-shadow: none; box-shadow: none;
background: none; background: none;
} }
&:focus, &:hover, &:active, &.js-hover, &.js-focus, &.js-active { &:focus,
&:hover,
&:active,
&.js-hover,
&.js-focus,
&.js-active {
color: $link-color; color: $link-color;
} }
&:active, &.js-active { &:active,
&.js-active {
color: $link-color-hover; color: $link-color-hover;
} }
&[disabled], &.js-disabled { &[disabled],
&.js-disabled {
color: $text-color; color: $text-color;
} }
} }
...@@ -162,7 +186,7 @@ ...@@ -162,7 +186,7 @@
.btn-message { .btn-message {
font-style: italic; font-style: italic;
color: $gray-light; color: $gray-light;
margin-right: .5em; margin-right: 0.5em;
position: absolute; position: absolute;
right: 100%; right: 100%;
top: 0; top: 0;
...@@ -173,7 +197,7 @@ ...@@ -173,7 +197,7 @@
display: inline-block; display: inline-block;
background: $success-color; background: $success-color;
border-radius: 50%; border-radius: 50%;
color: #FFF; color: #fff;
padding: 2px; padding: 2px;
} }
...@@ -192,19 +216,19 @@ ...@@ -192,19 +216,19 @@
right: auto; right: auto;
} }
[status-button-state=success] .btn-message-success, [status-button-state='success'] .btn-message-success,
[status-button-state=loading] .btn-message-loading { [status-button-state='loading'] .btn-message-loading {
left: auto; left: auto;
top: 0; top: 0;
right: 100%; right: 100%;
} }
[status-button-state] .btn-message-text { [status-button-state] .btn-message-text {
transition: opacity .2s .6s ease-in; transition: opacity 0.2s 0.6s ease-in;
opacity: 0; opacity: 0;
} }
[status-button-state=success] .btn-message-success .btn-message-text { [status-button-state='success'] .btn-message-success .btn-message-text {
opacity: 1; opacity: 1;
} }
...@@ -212,7 +236,7 @@ ...@@ -212,7 +236,7 @@
transform: scale(0); transform: scale(0);
} }
[status-button-state=success] .btn-message-success .btn-message-icon { [status-button-state='success'] .btn-message-success .btn-message-icon {
transition: transform .15s 0 cubic-bezier(0, 1.8, 1, 1.8); transition: transform 0.15s 0 cubic-bezier(0, 1.8, 1, 1.8);
transform: scale(1); transform: scale(1);
} }
@import "../base"; @import '../base';
// See http://compass-style.org/reference/compass/utilities/general/clearfix/#mixin-pie-clearfix // See http://compass-style.org/reference/compass/utilities/general/clearfix/#mixin-pie-clearfix
@mixin pie-clearfix { @mixin pie-clearfix {
&:after { &:after {
content: ""; content: '';
display: table; display: table;
clear: both; clear: both;
} }
} }
@mixin focus-outline { @mixin focus-outline {
border-color: #51A7E8; border-color: #51a7e8;
box-shadow: 0px 1px 2px rgba(0, 0, 0, .075) inset, 0px 0px 5px rgba(81, 167, 232, .5); box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.075) inset,
0px 0px 5px rgba(81, 167, 232, 0.5);
} }
@mixin form-input { @mixin form-input {
@include font-normal; @include font-normal;
border: 1px solid $gray-lighter; border: 1px solid $gray-lighter;
border-radius: 2px; border-radius: 2px;
padding: .5em .75em; padding: 0.5em 0.75em;
font-weight: normal; font-weight: normal;
color: $gray; color: $gray;
background-color: #FAFAFA; background-color: #fafafa;
} }
@mixin form-input-focus { @mixin form-input-focus {
outline: none; outline: none;
background-color: #FFF; background-color: #fff;
@include focus-outline; @include focus-outline;
@include placeholder { @include placeholder {
...@@ -45,20 +46,20 @@ ...@@ -45,20 +46,20 @@
} }
@mixin btn { @mixin btn {
box-shadow: 0 1px 0 rgba(0, 0, 0, .15); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
background: linear-gradient($button-background-gradient); background: linear-gradient($button-background-gradient);
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
color: $button-text-color; 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 $gray-light; border: 1px solid $gray-light;
padding: .5em .9em; padding: 0.5em 0.9em;
} }
@mixin btn-hover { @mixin btn-hover {
box-shadow: 0 1px 0 rgba(0, 0, 0, .05); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
outline: none; outline: none;
color: $button-text-color; color: $button-text-color;
background: $button-background-start; background: $button-background-start;
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
} }
@mixin btn-active { @mixin btn-active {
box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
background: $button-background-end; background: $button-background-end;
color: #424242; color: #424242;
border-color: #bababa; border-color: #bababa;
...@@ -75,18 +76,17 @@ ...@@ -75,18 +76,17 @@
@mixin btn-disabled { @mixin btn-disabled {
box-shadow: none; box-shadow: none;
cursor: default; cursor: default;
background: #F0F0F0; background: #f0f0f0;
border-color: #CECECE; border-color: #cecece;
color: $gray-light; color: $gray-light;
} }
// Tint and shade functions from // Tint and shade functions from
// https://css-tricks.com/snippets/sass/tint-shade-functions // https://css-tricks.com/snippets/sass/tint-shade-functions
@function tint($color, $percent){ @function tint($color, $percent) {
@return mix(white, $color, $percent); @return mix(white, $color, $percent);
} }
@function shade($color, $percent){ @function shade($color, $percent) {
@return mix(black, $color, $percent); @return mix(black, $color, $percent);
} }
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
// } // }
// } // }
@mixin icons { @mixin icons {
[class^="h-icon-"], [class*=" h-icon-"] { [class^='h-icon-'],
[class*=' h-icon-'] {
@content; @content;
} }
} }
...@@ -12,21 +12,86 @@ ...@@ -12,21 +12,86 @@
// Adapted from http://compass-style.org/reference/compass/reset/utilities/#mixin-nested-reset // Adapted from http://compass-style.org/reference/compass/reset/utilities/#mixin-nested-reset
@mixin nested-reset { @mixin nested-reset {
div, span, applet, object, iframe, div,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, span,
a, abbr, acronym, address, big, cite, code, applet,
del, dfn, em, img, ins, kbd, q, s, samp, object,
small, strike, strong, sub, sup, tt, var, iframe,
b, u, i, center, h1,
dl, dt, dd, ol, ul, li, h2,
fieldset, form, label, legend, h3,
table, caption, tbody, tfoot, thead, tr, th, td, h4,
article, aside, canvas, details, embed, h5,
figure, figcaption, footer, header, hgroup, h6,
menu, nav, output, ruby, section, summary, p,
time, mark, audio, video { blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
@include reset-box-model; @include reset-box-model;
@include reset-font; @include reset-font;
} }
} }
...@@ -6,30 +6,42 @@ $break-desktop: 1024px !default; ...@@ -6,30 +6,42 @@ $break-desktop: 1024px !default;
@mixin respond-to($media) { @mixin respond-to($media) {
@if type-of($media) == 'string' { @if type-of($media) == 'string' {
@if $media == 'handhelds' { @if $media == 'handhelds' {
@media only screen and (max-width: $break-wide-handheld) { @content; } @media only screen and (max-width: $break-wide-handheld) {
@content;
}
} @else if $media == 'wide-handhelds' {
@media only screen and (min-width: $break-wide-handheld + 1) and (max-width: $break-tablet) {
@content;
}
} @else if $media == 'tablets' {
@media only screen and (min-width: $break-tablet + 1) and (max-width: $break-desktop) {
@content;
}
} @else if $media == 'desktops' {
@media only screen and (min-width: $break-desktop + 1) {
@content;
}
} }
@else if $media == 'wide-handhelds' { } @else if type-of($media) == 'list' {
@media only screen and (min-width: $break-wide-handheld + 1) and (max-width: $break-tablet) { @content; }
}
@else if $media == 'tablets' {
@media only screen and (min-width: $break-tablet + 1) and (max-width: $break-desktop) { @content; }
}
@else if $media == 'desktops' {
@media only screen and (min-width: $break-desktop + 1) { @content; }
}
}
@else if type-of($media) == 'list' {
@if index($media, 'handhelds') { @if index($media, 'handhelds') {
@media only screen and (max-width: $break-wide-handheld) { @content; } @media only screen and (max-width: $break-wide-handheld) {
@content;
}
} }
@if index($media, 'wide-handhelds') { @if index($media, 'wide-handhelds') {
@media only screen and (min-width: $break-wide-handheld + 1) and (max-width: $break-tablet) { @content; } @media only screen and (min-width: $break-wide-handheld + 1) and (max-width: $break-tablet) {
@content;
}
} }
@if index($media, 'tablets') { @if index($media, 'tablets') {
@media only screen and (min-width: $break-tablet + -1) and (max-width: $break-desktop){ @content; } @media only screen and (min-width: $break-tablet + -1) and (max-width: $break-desktop) {
@content;
}
} }
@if index($media, 'desktops') { @if index($media, 'desktops') {
@media only screen and (min-width: $break-desktop + 1) { @content; } @media only screen and (min-width: $break-desktop + 1) {
@content;
}
} }
} }
} }
......
...@@ -20,14 +20,19 @@ body { ...@@ -20,14 +20,19 @@ body {
margin: 0; margin: 0;
} }
sub, sup { sub,
sup {
font-size: 75%; font-size: 75%;
line-height: 0; line-height: 0;
position: relative; position: relative;
} }
sup {top: -.5em;} sup {
sub {bottom: -.25em;} top: -0.5em;
}
sub {
bottom: -0.25em;
}
pre { pre {
white-space: pre; white-space: pre;
...@@ -35,39 +40,53 @@ pre { ...@@ -35,39 +40,53 @@ pre {
word-wrap: break-word; word-wrap: break-word;
} }
b, strong {font-weight: bold;} b,
abbr[title] {border-bottom: 1px dotted;} strong {
font-weight: bold;
}
abbr[title] {
border-bottom: 1px dotted;
}
a img, img { a img,
img {
-ms-interpolation-mode: bicubic; -ms-interpolation-mode: bicubic;
} }
input, textarea, button, select { input,
textarea,
button,
select {
@include reset-font; @include reset-font;
line-height: normal; line-height: normal;
margin: 0; margin: 0;
} }
button, button,
html input[type="button"], html input[type='button'],
input[type="reset"], input[type='reset'],
input[type="submit"] { input[type='submit'] {
cursor: pointer; cursor: pointer;
-webkit-appearance: button; -webkit-appearance: button;
} }
textarea {overflow: auto;} textarea {
overflow: auto;
}
img::selection, img::selection,
img::-moz-selection { img::-moz-selection {
background: transparent; background: transparent;
} }
ul, ol, li { ul,
ol,
li {
@include reset-box-model; @include reset-box-model;
} }
ul, ol { ul,
ol {
list-style: none; list-style: none;
} }
......
...@@ -18,7 +18,9 @@ p { ...@@ -18,7 +18,9 @@ p {
} }
} }
em { font-style: italic; } em {
font-style: italic;
}
html { html {
font-size: $base-font-size; font-size: $base-font-size;
...@@ -36,13 +38,13 @@ html { ...@@ -36,13 +38,13 @@ html {
float: right; float: right;
} }
//CLOSER//////////////////////////////// //CLOSER////////////////////////////////
.close { .close {
cursor: pointer; cursor: pointer;
float: right; float: right;
opacity: .6; opacity: 0.6;
&:active, &:hover { &:active,
&:hover {
opacity: 1; opacity: 1;
} }
} }
...@@ -56,7 +58,10 @@ html { ...@@ -56,7 +58,10 @@ html {
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
select, textarea, input, button { select,
textarea,
input,
button {
display: block; display: block;
// margin-top: .75em; // margin-top: .75em;
} }
...@@ -119,9 +124,10 @@ html { ...@@ -119,9 +124,10 @@ html {
} }
// These psuedo-elements add the speech bubble tail / triangle. // These psuedo-elements add the speech bubble tail / triangle.
&:before, &:after { &:before,
&:after {
// http://www.red-team-design.com/css-diagonal-borders-still-not-rendering-properly-on-firefox // http://www.red-team-design.com/css-diagonal-borders-still-not-rendering-properly-on-firefox
transform: scale(.9999); transform: scale(0.9999);
border-color: rgba(0, 0, 0, 0); border-color: rgba(0, 0, 0, 0);
border-style: solid; border-style: solid;
...@@ -151,7 +157,8 @@ html { ...@@ -151,7 +157,8 @@ html {
text-align: right; text-align: right;
// Align the tail // Align the tail
&:before, &:after { &:before,
&:after {
left: auto; left: auto;
right: 0; right: 0;
} }
...@@ -161,7 +168,8 @@ html { ...@@ -161,7 +168,8 @@ html {
// the menu itself has to be aligned by the user // the menu itself has to be aligned by the user
&.pull-center { &.pull-center {
// Align the tail // Align the tail
&:before, &:after { &:before,
&:after {
left: auto; left: auto;
right: 50%; right: 50%;
} }
...@@ -171,7 +179,8 @@ html { ...@@ -171,7 +179,8 @@ html {
// This is used for cases where a separate element is used // This is used for cases where a separate element is used
// as the indicator // as the indicator
&.pull-none { &.pull-none {
&:before, &:after { &:before,
&:after {
display: none; display: none;
} }
} }
...@@ -207,7 +216,7 @@ html { ...@@ -207,7 +216,7 @@ html {
border-bottom: $arrow-size solid $gray-lighter; border-bottom: $arrow-size solid $gray-lighter;
position: absolute; position: absolute;
right: 0px; right: 0px;
bottom: - $bottom-offset; bottom: -$bottom-offset;
z-index: 3; z-index: 3;
...@@ -220,7 +229,7 @@ html { ...@@ -220,7 +229,7 @@ html {
border-left: $arrow-size solid transparent; border-left: $arrow-size solid transparent;
border-right: $arrow-size solid transparent; border-right: $arrow-size solid transparent;
border-bottom: $arrow-size solid white; border-bottom: $arrow-size solid white;
content: ""; content: '';
position: absolute; position: absolute;
left: 0 - $arrow-size; left: 0 - $arrow-size;
top: 1px; top: 1px;
...@@ -248,7 +257,7 @@ html { ...@@ -248,7 +257,7 @@ html {
} }
// Row in a dropdown menu // Row in a dropdown menu
.dropdown-menu__row--no-border{ .dropdown-menu__row--no-border {
border: none; border: none;
} }
...@@ -275,7 +284,7 @@ html { ...@@ -275,7 +284,7 @@ html {
//TABS//////////////////////////////// //TABS////////////////////////////////
.nav-tabs { .nav-tabs {
margin-bottom: .7em; margin-bottom: 0.7em;
& > li { & > li {
display: inline-block; display: inline-block;
...@@ -287,17 +296,16 @@ html { ...@@ -287,17 +296,16 @@ html {
color: $gray-dark; color: $gray-dark;
cursor: pointer; cursor: pointer;
border-bottom: 3px solid transparent; border-bottom: 3px solid transparent;
padding-left: .153em; padding-left: 0.153em;
padding-right: .153em; padding-right: 0.153em;
padding-bottom: .076em; padding-bottom: 0.076em;
} }
&:active a { &:active a {
position: relative; position: relative;
top: .076em; top: 0.076em;
} }
&.active:active a { &.active:active a {
top: 0; top: 0;
} }
...@@ -307,8 +315,8 @@ html { ...@@ -307,8 +315,8 @@ html {
} }
&:before { &:before {
content: "/"; content: '/';
margin: 0 .75em; margin: 0 0.75em;
} }
&:first-child:before { &:first-child:before {
......
...@@ -15,15 +15,16 @@ ...@@ -15,15 +15,16 @@
width: 200px; width: 200px;
font-size: $body1-font-size; font-size: $body1-font-size;
cursor: default; cursor: default;
box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.15); box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
// Styling for the dialog box tail pointing down at the // Styling for the dialog box tail pointing down at the
// 'Share' button // 'Share' button
&:after, &:before { &:after,
&:before {
top: 100%; top: 100%;
right: 10px; right: 10px;
border: solid transparent; border: solid transparent;
content: " "; content: ' ';
height: 0; height: 0;
width: 0; width: 0;
position: absolute; position: absolute;
......
@import "../../mixins/icons"; @import '../../mixins/icons';
// Highlight quote of annotation whenever its thread is hovered // Highlight quote of annotation whenever its thread is hovered
.thread-list__card:hover .annotation-quote { .thread-list__card:hover .annotation-quote {
...@@ -118,7 +118,10 @@ ...@@ -118,7 +118,10 @@
height: 60px; height: 60px;
background: repeating-linear-gradient( background: repeating-linear-gradient(
to bottom, to bottom,
$grey-2, $grey-2 15px, white 15px, white 20px $grey-2,
$grey-2 15px,
white 15px,
white 20px
); );
} }
...@@ -232,13 +235,14 @@ ...@@ -232,13 +235,14 @@
margin: 0; margin: 0;
} }
.annotation-body, .annotation-footer { .annotation-body,
.annotation-footer {
display: none; display: none;
} }
.annotation-collapsed-replies { .annotation-collapsed-replies {
display: inline; display: inline;
margin-left: .25em; margin-left: 0.25em;
} }
} }
......
...@@ -78,7 +78,6 @@ ...@@ -78,7 +78,6 @@
line-height: $height; line-height: $height;
text-align: center; text-align: center;
& > div { & > div {
transform: scaleY(0.7); transform: scaleY(0.7);
} }
......
@at-root { @at-root {
$expand-duration: .15s; $expand-duration: 0.15s;
// the truncated body of the <excerpt> // the truncated body of the <excerpt>
.excerpt { .excerpt {
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
font-weight: normal; font-weight: normal;
} }
// a shadow displayed at the bottom of an <excerpt>s with inline controls // a shadow displayed at the bottom of an <excerpt>s with inline controls
// disabled, which provides a hint that the excerpt is collapsed // disabled, which provides a hint that the excerpt is collapsed
// ------------- // -------------
...@@ -53,8 +52,12 @@ ...@@ -53,8 +52,12 @@
right: $shadow-h-offset; right: $shadow-h-offset;
bottom: 0; bottom: 0;
height: 40px; height: 40px;
background-image: linear-gradient(to bottom, background-image: linear-gradient(
transparent 50%, rgba(0,0,0,0.08) 95%, rgba(0,0,0,0.13) 100%); to bottom,
transparent 50%,
rgba(0, 0, 0, 0.08) 95%,
rgba(0, 0, 0, 0.13) 100%
);
transition: opacity $expand-duration linear; transition: opacity $expand-duration linear;
} }
......
.help-panel { .help-panel {
@include font-normal; @include font-normal;
background: $grey-3; background: $grey-3;
margin-bottom: .72em; margin-bottom: 0.72em;
padding: $layout-h-margin; padding: $layout-h-margin;
border-radius: 2px; border-radius: 2px;
} }
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
} }
.help-panel-content { .help-panel-content {
margin-top: 10px; margin-top: 10px;
margin-bottom: 15px; margin-bottom: 15px;
} }
.help-panel-content__link { .help-panel-content__link {
......
//MARKDOWN EDITOR ////////////////////////// //MARKDOWN EDITOR //////////////////////////
.markdown-preview { .markdown-preview {
overflow: auto; overflow: auto;
border: .1em solid $gray-lighter; border: 0.1em solid $gray-lighter;
background-color: $gray-lightest; background-color: $gray-lightest;
min-height: 120px; min-height: 120px;
padding-left: 0.9em; padding-left: 0.9em;
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
.markdown-tools { .markdown-tools {
background-color: $white; background-color: $white;
border-top: .1em solid #D3D3D3; border-top: 0.1em solid #d3d3d3;
border-left: .1em solid #D3D3D3; border-left: 0.1em solid #d3d3d3;
border-right: .1em solid #D3D3D3; border-right: 0.1em solid #d3d3d3;
border-radius: .15em .15em 0 0; border-radius: 0.15em 0.15em 0 0;
width: 100%; width: 100%;
margin-bottom: -.1em; margin-bottom: -0.1em;
padding: .7em .7em .7em .5em; padding: 0.7em 0.7em 0.7em 0.5em;
user-select: none; user-select: none;
&.disable { &.disable {
...@@ -26,12 +26,17 @@ ...@@ -26,12 +26,17 @@
} }
} }
.markdown-tools-button {padding: .4em;} .markdown-tools-button {
padding: 0.4em;
}
.markdown-tools-button, .markdown-tools-toggle, .markdown-tools-badge { .markdown-tools-button,
.markdown-tools-toggle,
.markdown-tools-badge {
color: $gray; color: $gray;
&:hover, &:focus { &:hover,
&:focus {
color: black; color: black;
} }
} }
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
// overlaps the content's border. The effect is that the menu's border is a // overlaps the content's border. The effect is that the menu's border is a
// rounded rect with a notch at the top. // rounded rect with a notch at the top.
position: absolute; position: absolute;
top: calc(100% - 2px); // nb. Adjust this if changing the <svg> size. top: calc(100% - 2px); // nb. Adjust this if changing the <svg> size.
right: 0; right: 0;
z-index: 1; z-index: 1;
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
// See https://github.com/hypothesis/h/issues/2654 // See https://github.com/hypothesis/h/issues/2654
max-width: 0.1px; max-width: 0.1px;
transition: max-width .3s ease-out, padding-left .3s ease-out; transition: max-width 0.3s ease-out, padding-left 0.3s ease-out;
&:disabled { &:disabled {
background: none; background: none;
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
// Expand the search input when focused (triggered by clicking // Expand the search input when focused (triggered by clicking
// on the search icon) or when `is-expanded` is applied. // on the search icon) or when `is-expanded` is applied.
&:focus,&.is-expanded { &:focus,
&.is-expanded {
max-width: 150px; max-width: 150px;
padding-left: 6px; padding-left: 6px;
} }
......
.selection-tabs { .selection-tabs {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
color: $grey-5; color: $grey-5;
......
...@@ -47,10 +47,10 @@ ...@@ -47,10 +47,10 @@
} }
.sidebar-tutorial__list-item::before { .sidebar-tutorial__list-item::before {
content: counter(sidebar-tutorial__list) "."; content: counter(sidebar-tutorial__list) '.';
display: table-cell; /* aha! */ display: table-cell; /* aha! */
text-align: right; text-align: right;
padding-right: .3em; padding-right: 0.3em;
color: $gray-light; color: $gray-light;
} }
......
...@@ -8,11 +8,13 @@ ...@@ -8,11 +8,13 @@
$container-width: 1em; $container-width: 1em;
$container-height: $container-width; $container-height: $container-width;
$part-width: .1em; $part-width: 0.1em;
$part-height: 3 * $part-width; $part-height: 3 * $part-width;
@keyframes spin { @keyframes spin {
to { transform: rotate(1turn); } to {
transform: rotate(1turn);
}
} }
// Container which centers the spinner vertically. // Container which centers the spinner vertically.
...@@ -71,11 +73,11 @@ $part-height: 3 * $part-width; ...@@ -71,11 +73,11 @@ $part-height: 3 * $part-width;
} }
.spinner > span > span:before { .spinner > span > span:before {
transform: rotate(-120deg); transform: rotate(-120deg);
background: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.3);
} }
.spinner > span > span:after { .spinner > span > span:after {
transform: rotate(-150deg); transform: rotate(-150deg);
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
} }
// Styles for the ngTagsInput plugin. // Styles for the ngTagsInput plugin.
// http://mbenford.github.io/ngTagsInput/gettingstarted // http://mbenford.github.io/ngTagsInput/gettingstarted
@import "../../mixins/forms"; @import '../../mixins/forms';
@import "../../variables"; @import '../../variables';
tags-input { tags-input {
.host { .host {
...@@ -20,7 +20,7 @@ tags-input { ...@@ -20,7 +20,7 @@ tags-input {
// Input // Input
.input { .input {
float: left; float: left;
padding: .1333em 0; padding: 0.1333em 0;
outline: none; outline: none;
border: none !important; border: none !important;
background: none; background: none;
...@@ -34,17 +34,17 @@ tags-input { ...@@ -34,17 +34,17 @@ tags-input {
} }
.tag-list { .tag-list {
margin-top: -.33em; // Absorb the first row of margin-top on the tags. margin-top: -0.33em; // Absorb the first row of margin-top on the tags.
float: left; float: left;
} }
.tag-item { .tag-item {
float: left; float: left;
position: relative; position: relative;
padding: .0769em 1.307em .0769em .538em; padding: 0.0769em 1.307em 0.0769em 0.538em;
margin-top: .384em; margin-top: 0.384em;
margin-right: .384em; margin-right: 0.384em;
font-size: .866em; font-size: 0.866em;
color: $button-text-color; color: $button-text-color;
border: 1px solid $gray-lighter; border: 1px solid $gray-lighter;
border-radius: 2px; border-radius: 2px;
...@@ -61,7 +61,7 @@ tags-input { ...@@ -61,7 +61,7 @@ tags-input {
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
width: .9412em; width: 0.9412em;
font-size: 1.3077em; font-size: 1.3077em;
font-weight: bold; font-weight: bold;
line-height: 1; line-height: 1;
...@@ -73,31 +73,32 @@ tags-input { ...@@ -73,31 +73,32 @@ tags-input {
} }
.tags-read-only { .tags-read-only {
font-size: .8461em; font-size: 0.8461em;
margin: .4545em 0; margin: 0.4545em 0;
.tag-list { .tag-list {
@include pie-clearfix; @include pie-clearfix;
// Margin between bottom of ascent of annotation body and // Margin between bottom of ascent of annotation body and
// top of tags list should be ~15px // top of tags list should be ~15px
margin-top: -$layout-h-margin + 10px ; margin-top: -$layout-h-margin + 10px;
// Margin between top of x-height of annotation footer // Margin between top of x-height of annotation footer
// labels and bottom of tags list should be ~15px // labels and bottom of tags list should be ~15px
margin-bottom: $layout-h-margin - 10px ; margin-bottom: $layout-h-margin - 10px;
.tag-item { .tag-item {
float: left; float: left;
margin-right: .4545em; margin-right: 0.4545em;
a { a {
text-decoration: none; text-decoration: none;
border: 1px solid $gray-lighter; border: 1px solid $gray-lighter;
border-radius: 2px; border-radius: 2px;
padding: 0 .4545em .1818em; padding: 0 0.4545em 0.1818em;
color: $gray-light; color: $gray-light;
background: $gray-lightest; background: $gray-lightest;
&:hover, &:focus { &:hover,
&:focus {
color: $link-color-hover; color: $link-color-hover;
} }
} }
...@@ -106,14 +107,14 @@ tags-input { ...@@ -106,14 +107,14 @@ tags-input {
} }
tags-input .autocomplete { tags-input .autocomplete {
margin-top: .3em; margin-top: 0.3em;
position: absolute; position: absolute;
padding: .3em 0; padding: 0.3em 0;
z-index: 999; z-index: 999;
width: 100%; width: 100%;
background-color: white; background-color: white;
border: thin solid rgba(0, 0, 0, 0.2); border: thin solid rgba(0, 0, 0, 0.2);
box-shadow: 0 .3em .6em rgba(0, 0, 0, 0.2); box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.2);
.suggestion-list { .suggestion-list {
margin: 0; margin: 0;
...@@ -122,7 +123,7 @@ tags-input .autocomplete { ...@@ -122,7 +123,7 @@ tags-input .autocomplete {
} }
.suggestion-item { .suggestion-item {
padding: .3em .6em; padding: 0.3em 0.6em;
cursor: pointer; cursor: pointer;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
...@@ -131,12 +132,12 @@ tags-input .autocomplete { ...@@ -131,12 +132,12 @@ tags-input .autocomplete {
color: black; color: black;
background-color: white; background-color: white;
em { em {
font-family: $sans-font-family; font-family: $sans-font-family;
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
color: black; color: black;
background-color: white; background-color: white;
} }
&.selected { &.selected {
......
.thread-list { .thread-list {
& > * { & > * {
// Default spacing between items in the annotation card list // Default spacing between items in the annotation card list
margin-bottom: .72em; margin-bottom: 0.72em;
} }
} }
.thread-list__card { .thread-list__card {
box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.10); box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.1);
border-radius: 2px; border-radius: 2px;
cursor: pointer; cursor: pointer;
padding: $layout-h-margin; padding: $layout-h-margin;
...@@ -34,6 +34,6 @@ ...@@ -34,6 +34,6 @@
.thread-list__separator--theme-clean { .thread-list__separator--theme-clean {
border: 0; border: 0;
border-top: 1px solid #E1E1E1; border-top: 1px solid #e1e1e1;
margin: -8px 15px 10px 15px; margin: -8px 15px 10px 15px;
} }
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
@mixin tooltip-arrow($rotation) { @mixin tooltip-arrow($rotation) {
transform: rotate($rotation); transform: rotate($rotation);
background: $grey-7; background: $grey-7;
border-bottom: 1px solid rgba(0,0,0,0.20); border-bottom: 1px solid rgba(0, 0, 0, 0.2);
border-right: 1px solid rgba(0,0,0,0.20); border-right: 1px solid rgba(0, 0, 0, 0.2);
content: ""; content: '';
display: block; display: block;
height: 6px; height: 6px;
left: 0; left: 0;
...@@ -40,14 +40,14 @@ ...@@ -40,14 +40,14 @@
// Variant for tooltips above the target that point down at it // Variant for tooltips above the target that point down at it
.tooltip--down:before { .tooltip--down:before {
@include tooltip-arrow(45deg); @include tooltip-arrow(45deg);
content: ""; content: '';
top: calc(100% - 5px); top: calc(100% - 5px);
} }
// Variant for tooltips below the target that point up at it // Variant for tooltips below the target that point up at it
.tooltip--up:before { .tooltip--up:before {
@include tooltip-arrow(225deg); @include tooltip-arrow(225deg);
content: ""; content: '';
top: -3px; top: -3px;
} }
......
...@@ -4,7 +4,8 @@ a { ...@@ -4,7 +4,8 @@ a {
text-decoration: none; text-decoration: none;
} }
a:active, a:focus { a:active,
a:focus {
text-decoration: none; text-decoration: none;
} }
...@@ -18,4 +19,6 @@ ol { ...@@ -18,4 +19,6 @@ ol {
padding-left: 3em; padding-left: 3em;
} }
svg { -webkit-tap-highlight-color: rgba(255, 255, 255, 0); } svg {
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}
...@@ -2,11 +2,27 @@ ...@@ -2,11 +2,27 @@
// Reset the line-height in case any parent elements have set it. // Reset the line-height in case any parent elements have set it.
line-height: normal; line-height: normal;
h1, h2, h3, h4, h5, h6, p, ol, ul, img, pre, blockquote { h1,
margin: .618em 0; h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
img,
pre,
blockquote {
margin: 0.618em 0;
} }
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $sans-font-family; font-family: $sans-font-family;
} }
...@@ -15,40 +31,42 @@ ...@@ -15,40 +31,42 @@
h1 { h1 {
font-size: 2.618em; font-size: 2.618em;
font-weight: bold; font-weight: bold;
margin: .2327em 0; margin: 0.2327em 0;
} }
h2 { h2 {
font-size: 1.991em; font-size: 1.991em;
font-weight: bold; font-weight: bold;
margin: .309em 0; margin: 0.309em 0;
} }
h3 { h3 {
font-size: 1.991em; font-size: 1.991em;
margin: .309em 0; margin: 0.309em 0;
} }
h4 { h4 {
font-size: 1.618em; font-size: 1.618em;
margin: .3803em 0; margin: 0.3803em 0;
} }
h5 { h5 {
font-size: 1.231em; font-size: 1.231em;
margin: .4944em 0; margin: 0.4944em 0;
} }
h6 { h6 {
font-size: 1.231em; font-size: 1.231em;
margin: .4944em 0; margin: 0.4944em 0;
} }
ol, ul { ol,
ul {
list-style-position: inside; list-style-position: inside;
padding-left: 0; padding-left: 0;
ol, ul { ol,
ul {
padding-left: 1em; padding-left: 1em;
} }
} }
...@@ -61,17 +79,19 @@ ...@@ -61,17 +79,19 @@
list-style-type: disc; list-style-type: disc;
} }
ol, ul { ol,
ul {
ul { ul {
list-style-type: circle; list-style-type: circle;
} }
} }
li { li {
margin-bottom: .291em; margin-bottom: 0.291em;
} }
li, p { li,
p {
line-height: 1.3; line-height: 1.3;
} }
...@@ -96,18 +116,24 @@ ...@@ -96,18 +116,24 @@
padding: 0 1em; padding: 0 1em;
margin: 1em 0; margin: 1em 0;
p, ol, ul, img, pre, blockquote { p,
margin: .7063em 0; ol,
ul,
img,
pre,
blockquote {
margin: 0.7063em 0;
} }
p, li { p,
li {
line-height: 1.5; line-height: 1.5;
} }
} }
code { code {
font-family: $mono-font-family; font-family: $mono-font-family;
font-size: .875em; font-size: 0.875em;
color: black; color: black;
} }
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
$white: #fff !default; $white: #fff !default;
$black: #000 !default; $black: #000 !default;
// Grays // Grays
// --------------------- // ---------------------
$gray: #777 !default; $gray: #777 !default;
...@@ -13,14 +12,13 @@ $gray-light: #969696 !default; ...@@ -13,14 +12,13 @@ $gray-light: #969696 !default;
$gray-lighter: #d3d3d3 !default; $gray-lighter: #d3d3d3 !default;
$gray-lightest: #f9f9f9 !default; $gray-lightest: #f9f9f9 !default;
$color-mine-shaft: #3A3A3A; $color-mine-shaft: #3a3a3a;
$color-dove-gray: #626262; $color-dove-gray: #626262;
$color-gray: #818181; $color-gray: #818181;
$color-silver-chalice: #a6a6a6; $color-silver-chalice: #a6a6a6;
$color-silver: #bbb; $color-silver: #bbb;
$color-seashell: #f1f1f1; $color-seashell: #f1f1f1;
// Colors // Colors
// --------------------- // ---------------------
$color-cardinal: #bd1c2b; $color-cardinal: #bd1c2b;
...@@ -29,77 +27,83 @@ $brand-color: #bd1c2b !default; ...@@ -29,77 +27,83 @@ $brand-color: #bd1c2b !default;
$button-text-color: $gray-dark !default; $button-text-color: $gray-dark !default;
$button-background-start: $white !default; $button-background-start: $white !default;
$button-background-end: #f0f0f0 !default; $button-background-end: #f0f0f0 !default;
$button-background-gradient: to bottom, $button-background-start, $button-background-end !default; $button-background-gradient: to bottom, $button-background-start,
$button-background-end !default;
$error-color: #f0480c !default; $error-color: #f0480c !default;
$success-color: #1cbd41 !default; $success-color: #1cbd41 !default;
// Variables for the new color palette // Variables for the new color palette
// ------------------------------------ // ------------------------------------
$grey-1: #F2F2F2; $grey-1: #f2f2f2;
$grey-2: #ECECEC; $grey-2: #ececec;
$grey-3: #DBDBDB; $grey-3: #dbdbdb;
$grey-4: #A6A6A6; $grey-4: #a6a6a6;
$grey-5: #7A7A7A; $grey-5: #7a7a7a;
$grey-6: #3F3F3F; $grey-6: #3f3f3f;
$grey-7: #202020; $grey-7: #202020;
$brand: #BD1C2B; $brand: #bd1c2b;
$highlight: #58CEF4; $highlight: #58cef4;
@function color-weight($c, $n: 500) { @function color-weight($c, $n: 500) {
@if $n == 50 { @if $n == 50 {
@return tint($c, 85%); @return tint($c, 85%);
} @if $n == 100 { }
@if $n == 100 {
@return tint($c, 70%); @return tint($c, 70%);
} @if $n == 200 { }
@if $n == 200 {
@return tint($c, 50%); @return tint($c, 50%);
} @if $n == 300 { }
@if $n == 300 {
@return tint($c, 30%); @return tint($c, 30%);
} @if $n == 400 { }
@if $n == 400 {
@return tint($c, 15%); @return tint($c, 15%);
} @if $n == 500 { }
@if $n == 500 {
@return $c; @return $c;
} @if $n == 600 { }
@if $n == 600 {
@return shade($c, 15%); @return shade($c, 15%);
} @if $n == 700 { }
@if $n == 700 {
@return shade($c, 30%); @return shade($c, 30%);
} @if $n == 800 { }
@if $n == 800 {
@return shade($c, 50%); @return shade($c, 50%);
} @if $n == 900 { }
@if $n == 900 {
@return shade($c, 85%); @return shade($c, 85%);
} }
} }
// Scaffolding // Scaffolding
// ------------------------- // -------------------------
$body-background: $white !default; $body-background: $white !default;
$text-color: $gray-dark !default; $text-color: $gray-dark !default;
// Links // Links
// ------------------------- // -------------------------
$link-color: $brand-color !default; $link-color: $brand-color !default;
$link-color-hover: color-weight($brand-color, 700) !default; $link-color-hover: color-weight($brand-color, 700) !default;
// Typography // Typography
// ------------------------- // -------------------------
$sans-font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif !default; $sans-font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
$mono-font-family: Open Sans Mono, Menlo, DejaVu Sans Mono, monospace !default; sans-serif !default;
$mono-font-family: Open Sans Mono, Menlo, DejaVu Sans Mono, monospace !default;
$base-font-size: 16px !default; $base-font-size: 16px !default;
$base-line-height: 20px !default; $base-line-height: 20px !default;
$body1-font-size: 12px; $body1-font-size: 12px;
$body1-line-height: 1.4em; $body1-line-height: 1.4em;
$body2-font-size: 14px; $body2-font-size: 14px;
$title-font-weight: bold; $title-font-weight: bold;
$normal-font-size: 13px; $normal-font-size: 13px;
$normal-line-height: 17px; $normal-line-height: 17px;
...@@ -107,17 +111,14 @@ $normal-line-height: 17px; ...@@ -107,17 +111,14 @@ $normal-line-height: 17px;
$small-font-size: 11px; $small-font-size: 11px;
$small-line-height: 12px; $small-line-height: 12px;
// Layout margins // Layout margins
// ------------------------- // -------------------------
$layout-h-margin: 15px; $layout-h-margin: 15px;
// Z-Index Scale // Z-Index Scale
// ------------------------- // -------------------------
$zindex-tooltip: 20; $zindex-tooltip: 20;
// Other Variables // Other Variables
// ------------------------- // -------------------------
$bucket-bar-width: 22px; $bucket-bar-width: 22px;
......
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