Lint everything but color literals

This commit is contained in:
Ray Schamp 2015-09-24 19:27:50 -04:00
parent c3bc59fee2
commit fd546296c2
16 changed files with 287 additions and 236 deletions

View file

@ -1,15 +1,21 @@
rules:
final-newline: 2
hex-notation: 2
indentation:
- 2
-
size: 4
property-sort-order:
nesting-depth:
- 1
-
max-depth: 4
no-css-comments: 0
no-ids: 0
property-sort-order:
- 2
-
order: concentric
quotes:
- 2
-
style: double
no-css-comments: 0

View file

@ -29,14 +29,14 @@
margin: 0;
padding: 0;
font-size: 0.9rem;
white-space: nowrap;
font-size: .9rem;
overflow-x: hidden;
}
.stamp {
color: #999;
font-size: 0.65rem;
font-size: .65rem;
}
}
}

View file

@ -1,23 +1,22 @@
.box {
display: inline-block;
width: 100%;
border: 1px solid #e0e0e0;
border-radius: 10px 10px 0 0;
box-shadow: 0 2px 3px rgba(34, 25, 25, 0.3);
box-shadow: 0 2px 3px rgba(34, 25, 25, .3);
width: 100%;
.box-header {
display: block;
margin: 0;
height: 20px;
padding: 8px 20px;
clear: both;
overflow: hidden;
background-color: #efefef;
border-radius: 10px 10px 0 0;
margin: 0;
border-top: 1px solid white;
border-bottom: 1px solid #ccc;
border-radius: 10px 10px 0 0;
background-color: #efefef;
padding: 8px 20px;
height: 20px;
overflow: hidden;
h4 {
display: inline-block;
@ -32,15 +31,14 @@
margin: 1px 0 0 0;
padding: 0;
font-size: 0.85rem;
font-size: .85rem;
}
}
.box-content {
display: block;
padding: 8px 20px;
clear: both;
background-color: white;
padding: 8px 20px;
}
}

View file

@ -9,17 +9,18 @@
padding: 0 $button-offset - 20px;
}
.slick-next, .slick-prev {
.slick-next,
.slick-prev {
margin-top: -$icon-size/2;
width: $icon-size;
height: $icon-size;
margin-top: -$icon-size/2;
&:before {
font-size: $icon-size;
color: #ddd;
font-size: $icon-size;
}
&.slick-disabled:before{
&.slick-disabled:before {
opacity: 1;
}
}

View file

@ -1,22 +1,22 @@
#footer {
display: block;
background-color: #ececec;
padding: 10px 0;
color: #666;
background-color: #ececec;
.lists {
display: flex;
text-align: center;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
text-align: center;
dl {
display: inline-block;
width: 130pt;
font-size: 0.85rem;
text-align: left;
vertical-align: top;
text-align: left;
font-size: .85rem;
}
dt {
@ -30,14 +30,14 @@
margin: 5px 0;
}
}
.copyright {
display: block;
width: 100%;
text-align: center;
p {
font-size: 0.7rem;
font-size: .7rem;
}
}
}

View file

@ -1,27 +1,27 @@
.button {
display: inline-block;
font-size: .8rem;
padding: .75em 1em;
margin: .5em 0;
background-color: #24a3ec;
color: white;
font-weight: bold;
border: 0;
border-radius: 5px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
box-shadow: px 1px 1px rgba(0, 0, 0, .25);
background-color: #24a3ec;
cursor: pointer;
border: none;
padding: .75em 1em;
color: white;
font-size: .8rem;
font-weight: bold;
&.white {
border-top: 1px inset rgba(0, 0, 0, .1);
background-color: white;
border-top: 1px inset rgba(0, 0, 0, 0.1);
color: #24a3ec;
}
&:hover {
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
box-shadow: 0 2px 2px rgba(0, 0, 0, .25);
}
&:active {
box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.25);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
}

View file

@ -1,25 +1,25 @@
.input {
color:black;
border-radius: 5px;
border: 1px solid rgba(0, 0, 0, 0.1);
font-size: .8rem;
padding: .75em 1em;
transition: all 1s ease;
margin: .5em 0;
border: 1px solid rgba(0, 0, 0, .1);
border-radius: 5px;
background-color: #f7f7f7;
transition:all 1s ease;
padding: .75em 1em;
color: black;
font-size: .8rem;
&:focus {
transition: all 1s ease;
outline: none;
border: 1px solid rgba(0, 0, 0, .1);
background-color: #d3eaf8;
outline:none;
border: 1px solid rgba(0, 0, 0, 0.1);
transition:all 1s ease;
}
&.fail {
border: 1px solid #eab012;
background-color: #fff7df;
}
&.pass {
border: 1px solid #55db58;
background-color: #eafdea;

View file

@ -1,18 +1,18 @@
.intro {
display: flex;
margin-top: 20px;
margin-bottom: 20px;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-content: flex-start;
margin-top: 20px;
margin-bottom: 20px;
.content {
display: inline-block;
width: calc(66% - 20px);
h1 {
color: #F9A739;
color: #f9a739;
font-weight: 400;
}
}
@ -21,12 +21,13 @@
position: relative;
clear: both;
overflow: hidden;
&:after {
display: block;
visibility: hidden;
content: " ";
clear: both;
visibility: hidden;
height: 0;
content: " ";
}
}
@ -37,13 +38,15 @@
height: 136px;
overflow: hidden;
.costume, .circle, .text {
.costume,
.circle,
.text {
position: absolute;
}
.costume {
z-index: 2;
left: 0;
z-index: 2;
}
.costume-2 {
@ -59,49 +62,83 @@
}
.circle {
z-index: 0;
border-radius: 50%;
display: block;
width: 112px;
height: 112px;
box-shadow: 0px 0px 5px #fff;
top: 15px;
left: 43px;
z-index: 0;
border-radius: 50%;
box-shadow: 0 0 5px #fff;
width: 112px;
height: 112px;
}
$text-bg-color: #F1F3F4;
.text {
$text-bg-color: #f1f3f4;
left: 35px;
z-index: 1;
border: 2px solid $text-bg-color;
background-color: $text-bg-color;
padding-right: 10px;
padding-left: 40px;
white-space: nowrap;
font-size: 12px;
font-weight: 700;
left: 35px;
padding-left: 40px;
padding-right: 10px;
white-space: nowrap;
background-color: $text-bg-color;
border: 2px solid $text-bg-color;
}
.subtext {
border: 0;
background-color: transparent;
font-weight: 400;
text-shadow: 0;
font-size: 12px;
text-shadow: none;
border: none;
font-weight: 400;
}
$sprite-1-bgcolor: #9c0;
$sprite-2-bgcolor: #c2479d;
$sprite-3-bgcolor: #199ed7;
&.sprite-1 .circle {
background-color: $sprite-1-bgcolor;
}
&.sprite-2 .circle {
background-color: $sprite-2-bgcolor;
}
&.sprite-3 .circle {
background-color: $sprite-3-bgcolor;
}
&:hover.sprite-1 .circle {
box-shadow: 0 0 10px 2px $sprite-1-bgcolor;
}
&:hover.sprite-2 .circle {
box-shadow: 0 0 10px 2px $sprite-2-bgcolor;
}
&:hover.sprite-3 .circle {
box-shadow: 0 0 10px 2px $sprite-3-bgcolor;
}
&.sprite-1 .text {
top: 60px;
left: 50px;
color: $sprite-1-bgcolor;
}
&.sprite-2 .text {
top: 77px;
left: 50px;
color: $sprite-2-bgcolor;
}
&.sprite-3 .text {
top: 37px;
left: 45px;
color: $sprite-3-bgcolor;
}
$sprite-1-bgcolor: #9C0;
$sprite-2-bgcolor: #C2479D;
$sprite-3-bgcolor: #199ED7;
&.sprite-1 .circle { background-color: $sprite-1-bgcolor; }
&.sprite-2 .circle { background-color: $sprite-2-bgcolor; }
&.sprite-3 .circle { background-color: $sprite-3-bgcolor; }
&:hover.sprite-1 .circle { box-shadow: 0 0 10px 2px $sprite-1-bgcolor; }
&:hover.sprite-2 .circle { box-shadow: 0 0 10px 2px $sprite-2-bgcolor; }
&:hover.sprite-3 .circle { box-shadow: 0 0 10px 2px $sprite-3-bgcolor; }
&.sprite-1 .text { color: $sprite-1-bgcolor; top: 60px; left: 50px; }
&.sprite-2 .text { color: $sprite-2-bgcolor; top: 77px; left: 50px; }
&.sprite-3 .text { color: $sprite-3-bgcolor; top: 37px; left: 45px; }
&.sprite-3 .subtext {
top: 63px;
left: 60px;
@ -110,93 +147,95 @@
}
.description {
font-size: 17px;
margin-top: 10px;
font-size: 17px;
}
.project-count {
color: hsl(318, 50%, 52%);
font-weight: 700;
font-size: 18px;
font-weight: 700;
}
.links {
font-size: 12px;
margin-top: 20px;
font-size: 12px;
a {
border-right: 1px solid #000;
padding: 0 5px;
&:last-child { border-right: 0; }
&:first-child { padding-left: 0; }
}
}
.video {
display: inline-block;
height: 208px;
width: 34%;
position: relative;
padding: 10px;
border: 1px solid #eee;
border-radius: 5px;
background-color: #f7f7f7;
text-align: center;
box-shadow: 0 2px 3px;
background-color: #f7f7f7;
padding: 10px;
width: 34%;
height: 208px;
text-align: center;
}
.play-button {
border-radius: 20px;
display: block;
top: calc(50% - 25px);
left: calc(50% - 35px);
opacity: .8;
border: 5px solid #ccc;
border-radius: 20px;
background-color: #666;
width: 70px;
height: 50px;
left: calc(50% - 35px);
top: calc(50% - 25px);
background-color: #666;
border: 5px solid #ccc;
opacity: 0.8;
&, &:after {
&,
&:after {
position: absolute;
cursor: pointer;
margin: 0;
cursor: pointer;
padding: 0;
}
&:after {
top: 37px;
left: 28px;
margin-top: -30px;
border: solid transparent;
content: " ";
height: 0;
width: 0;
pointer-events: none;
border-width: 18px;
border-color: rgba(255, 255, 255, 0);
border-left-color: #fff;
border-width: 18px;
top: 37px;
margin-top: -30px;
width: 0;
height: 0;
content: " ";
pointer-events: none;
}
}
}
.video-modal {
$video-width: 570px;
$video-height: 357px;
$padding: 15px;
width: $video-width;
height: $video-height;
padding: $padding;
top: 50%;
right: auto;
bottom: auto;
left: 50%;
right: auto;
margin-left: -($video-width + $padding * 2)/2;
margin-top: -($video-height + $padding * 2)/2;
margin-left: -($video-width + $padding * 2)/2;
padding: $padding;
width: $video-width;
height: $video-height;
iframe {
border: 0;
width: $video-width;
height: $video-height;
border: 0;
}
}

View file

@ -1,6 +1,6 @@
.login {
padding: 10px;
label {
padding-top: 5px;
font-weight: bold;
@ -9,12 +9,12 @@
.submit-button {
margin-top: 5px;
}
a {
margin-top: 15px;
}
a:hover {
background-color: transparent !important;
background-color: transparent;
}
}

View file

@ -1,28 +1,30 @@
/* Copied from the un-styleable react-modal */
.ReactModal__Overlay {
background-color: rgba(0, 0, 0, 0.75);
z-index: 100;
background-color: rgba(0, 0, 0, .75);
}
.ReactModal__Content {
position: absolute;
top: 40px;
left: 40px;
right: 40px;
bottom: 40px;
left: 40px;
outline: none;
border-radius: 6px;
background: #fff;
padding: 20px;
overflow: visible;
-webkit-overflow-scrolling: touch;
border-radius: 6px;
outline: none;
padding: 20px;
}
@media (max-width: 768px) {
.ReactModal__Content {
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
left: 10px;
padding: 10px;
}
}
@ -30,20 +32,21 @@
.modal-close {
$modal-close-size: 20px;
position: absolute;
right: 0;
top: 0;
border-radius: $modal-close-size/2;
border: 2px solid #ddd;
background-color: #666;
color: #fff;
width: $modal-close-size;
height: $modal-close-size;
right: 0;
margin-top: -$modal-close-size/2;
margin-right: -$modal-close-size/2;
border: 2px solid #ddd;
border-radius: $modal-close-size/2;
background-color: #666;
cursor: pointer;
width: $modal-close-size;
height: $modal-close-size;
text-align: center;
line-height: $modal-close-size;
color: #fff;
font-size: $modal-close-size;
cursor: pointer;
&:before {
content: "x";
}

View file

@ -1,3 +1,3 @@
$base-background-color: #2aa3ef;
$active-background-color: rgba(0, 0, 0, 0.1);
$active-background-color: rgba(0, 0, 0, .1);
$border-color: rgb(20, 154, 203);

View file

@ -1,47 +1,47 @@
@import "colors";
.dropdown {
display: none;
position: absolute;
right: 0;
border: 1px solid $active-background-color;
border-radius: 0 0 5px 5px;
background-color: $base-background-color;
padding: 10px;
min-width: 160px;
max-width: 260px;
background-color: $base-background-color;
overflow: visible;
border-radius: 0 0 5px 5px;
padding: 10px;
color: white;
font-size: .8125rem;
font-weight: normal;
font-size: 0.8125rem;
border: 1px solid $active-background-color;
display: none;
&.open {
display: block;
}
a {
color: white;
background-color: transparent;
color: white;
}
input {
// 100% minus border and padding
width: calc(100% - 30px);
margin-bottom: 12px;
width: calc(100% - 30px);
}
label {
display: block;
margin-bottom: 5px;
margin-bottom: 5px;
}
> li {
display: block;
line-height: 30px;
&.divider {
border-top: 1px solid #149acb;
margin-top: 10px;
border-top: 1px solid #149acb;
}
a {
@ -60,22 +60,24 @@
margin-top: $arrow-border-width;
border-radius: 5px;
overflow: visible;
&:before {
position: absolute;
display: block;
position: absolute;
top: -$arrow-border-width/2;
right: 10%;
height: $arrow-border-width;
width: $arrow-border-width;
content: "";
transform: rotate(45deg);
background-color: $base-background-color;
border-top: 1px solid $active-background-color;
border-left: 1px solid $active-background-color;
border-radius: 5px;
background-color: $base-background-color;
width: $arrow-border-width;
height: $arrow-border-width;
content: "";
}
}
}

View file

@ -1,54 +1,56 @@
@import "colors";
#navigation {
position: fixed;
z-index: 10;
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 10;
background-color: $base-background-color;
width: 100%;
/* NOTE: Height should match offset settings in main.scss file */
height: 50px;
.inner > ul {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
height: 50px;
margin: 0;
padding: 0;
height: 50px;
list-style: none;
flex-wrap: nowrap;
flex-direction: row;
justify-content: flex-start;
> li {
display: inline-block;
align-self: flex-start;
position: relative;
float: left;
height: 100%;
position: relative;
align-self: flex-start;
}
.logo {
margin-right: 10px;
a {
display: block;
width: 81px;
height: 50px;
margin: 0px 6px 0 0;
transition: .15s ease all;
margin: 0 6px 0 0;
border: 0;
border: none;
background-image: url("/images/logo_sm.png");
background-repeat: no-repeat;
background-position: center center;
background-size: 95%;
transition: .15s ease all;
width: 81px;
height: 50px;
&:hover {
background-size: 100%;
transition: .15s ease all;
background-size: 100%;
}
}
}
@ -56,13 +58,13 @@
.link {
> a {
display: block;
padding: 17px 15px 0 15px;
height: 33px;
padding: 17px 15px 0px 15px;
color: white;
text-decoration: none;
font-size: 0.85rem;
white-space: nowrap;
color: white;
font-size: .85rem;
font-weight: bold;
}
@ -72,10 +74,10 @@
}
.search {
flex-grow: 3;
border-right: none;
margin: 0 20px;
border-right: 0;
color: white;
margin:0px 20px;
flex-grow: 3;
form {
margin: 0;
@ -83,44 +85,43 @@
input {
display: inline-block;
height: 14px;
margin-top: 5px;
outline: none;
border: none;
border: 0;
background-color: $active-background-color;
margin-top:5px;
height: 14px;
}
input[type=submit] {
position: absolute;
width: 40px;
height: 40px;
background-color: transparent;
background-image: url("/images/nav-search-glass.png");
background-size: 14px 14px;
background-repeat: no-repeat;
background-position: center center;
background-size: 14px 14px;
width: 40px;
height: 40px;
}
input[type=text] {
transition: .15s ease background-color;
padding: 0;
padding-right: 10px;
padding-left: 40px;
width: calc(100% - 50px);
height: 40px;
padding: 0;
color: white;
padding-left: 40px;
padding-right:10px;
font-size: 0.85em;
transition: .15s ease background-color;
font-size: .85em;
&::placeholder {
color:rgba(255, 255, 255, 0.75);
color: rgba(255, 255, 255, .75);
}
&:focus {
background-color: rgba(0, 0, 0, 0.2);
transition: .15s ease background-color;
background-color: rgba(0, 0, 0, .2);
}
}
@ -130,29 +131,27 @@
}
.right {
align-self: flex-end;
float: right;
margin-left: auto;
align-self: flex-end;
a:hover {
background-color: $active-background-color;
}
}
.messages, .mystuff {
.messages,
.mystuff {
> a {
background-repeat: no-repeat;
background-position: center center;
padding-left: 10px;
background-size: 45%;
padding-right: 10px;
padding-left: 10px;
width: 30px;
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
background-size: 45%;
background-repeat: no-repeat;
background-position: center center;
width: 30px;
}
> a:hover {
@ -181,39 +180,38 @@
padding-top: 11px;
padding-bottom: 6px;
}
> a {
font-size: .8125rem;
font-weight: normal;
font-size: 0.8125rem;
.avatar {
margin-right: 5px;
border-radius: 3px;
width: 24px;
height: 24px;
margin-right: 5px;
vertical-align: middle;
border-radius: 3px;
}
&:after {
width: 20px;
height: 20px;
content: " ";
display: inline-block;
vertical-align: middle;
margin-left: 5px;
background-image: url("/images/dropdown.png");
background-size: 50%;
background-repeat: no-repeat;
background-position: center center;
margin-left: 5px;
background-size: 50%;
width: 20px;
height: 20px;
vertical-align: middle;
content: " ";
}
}
.dropdown {
width: 100%;
padding: 0;
padding-top: 5px;
width: 100%;
}
}
}

View file

@ -9,10 +9,10 @@
li {
display: block;
min-height: 53px;
clear: both;
margin: 0;
padding: 12px 0;
clear: both;
min-height: 53px;
a {
display: block;
@ -33,7 +33,7 @@
display: block;
color: #1aa0d8;
font-size: 0.85rem;
font-size: .85rem;
}
p {
@ -42,7 +42,7 @@
padding: 0;
color: #322f31;
font-size: 0.85rem;
font-size: .85rem;
}
}

View file

@ -18,16 +18,16 @@
.thumbnail-title {
margin-bottom: 1px;
text-overflow: ellipsis;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 800;
font-size: .9230em;
font-weight: 800;
}
.thumbnail-extra {
font-size: .8462em;
color: #666;
font-size: .8462em;
}
}

View file

@ -1,39 +1,43 @@
/* Tags */
html, body {
html,
body {
display: block;
margin: 0;
padding: 0;
color: #322f31;
background-color: #fdfdfd;
padding: 0;
color: #322f31;
font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
}
/* Typography */
h1, h2, h3, h4 {
h1,
h2,
h3,
h4 {
margin: 0;
padding: 0;
border: 0;
padding: 0;
color: #554747;
font-weight: 700;
}
h1 {
font-size: 1.625rem;
line-height: 2.125rem;
font-size: 1.625rem;
}
h4 {
font-size: 1.0rem;
line-height: 1.1rem;
font-size: 1.0rem;
}
/* Links */
a:link, a:visited, a:active {
color: #1aa0d8;
a:link,
a:visited,
a:active {
text-decoration: none;
color: #1aa0d8;
}
a:hover {
@ -42,14 +46,14 @@ a:hover {
/* Classes */
.inner {
width: 942px;
margin: 0 auto;
width: 942px;
}
#view {
min-height: 768px;
padding: 20px 0;
/* NOTE: Margin should match height in navigation.scss */
margin-top: 50px;
padding: 20px 0;
min-height: 768px;
}