1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-07-01 06:02:12 +02:00

lint lint

This commit is contained in:
Matthias Kretschmann 2017-05-31 18:43:00 +02:00
parent f1139ff2b4
commit 03b01a57fa
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
10 changed files with 87 additions and 96 deletions

View File

@ -1,7 +1,3 @@
.section--blog {
}
.article {
@include color-overlay;
@include transition;

View File

@ -16,35 +16,6 @@
text-align: center;
}
.header-link {
box-shadow: none;
transition-timing-function: $timing-bounce;
display: inline-block;
padding: 0 .25rem;
opacity: 0;
transform: translate3d(20px, 0, 0) scale(0);
&,
.header-icon {
@extend .transition;
}
&:hover,
&:focus {
background: none;
.header-icon {
color: lighten($brand-primary, 10%);
}
}
.header-icon {
font-style: normal;
font-size: 2rem;
color: $brand-primary;
}
}
&:hover {
.header-link {
opacity: 1;
@ -52,4 +23,33 @@
}
}
}
.header-link {
box-shadow: none;
transition-timing-function: $timing-bounce;
display: inline-block;
padding: 0 .25rem;
opacity: 0;
transform: translate3d(20px, 0, 0) scale(0);
&,
.header-icon {
@extend .transition;
}
&:hover,
&:focus {
background: none;
.header-icon {
color: lighten($brand-primary, 10%);
}
}
.header-icon {
font-style: normal;
font-size: 2rem;
color: $brand-primary;
}
}
}

View File

@ -73,6 +73,40 @@
}
}
// the active state
&:focus ~ .form-label,
&:valid:not(.is-empty) ~ .form-label,
&:invalid:not(.is-empty) ~ .form-label,
//&.parsley-error ~ .form-label,
&.parsley-success ~ .form-label {
transform: translate3d(0, -($spacer + $input-padding-x), 0) scale(.7);
color: $input-border-focus;
}
//
// Form Validation States
//
// Success style
&:valid:not(.is-empty):not(select),
&.parsley-success {
&,
&:focus {
border-color: $brand-success;
}
}
// Error style
&:invalid:not(.is-empty),
&.parsley-error {
&,
&:focus {
border-color: $brand-danger;
color: $brand-danger;
}
}
.background--photo & {
border-bottom-color: rgba(#fff, .5);
}
@ -124,18 +158,6 @@
}
}
.form-control {
// the active state
&:focus ~ .form-label,
&:valid:not(.is-empty) ~ .form-label,
&:invalid:not(.is-empty) ~ .form-label,
//&.parsley-error ~ .form-label,
&.parsley-success ~ .form-label {
transform: translate3d(0, -($spacer + $input-padding-x), 0) scale(.7);
color: $input-border-focus;
}
}
//
// Form groups
@ -215,9 +237,8 @@ select.form-control {
margin-right: .25rem;
// reset styling, then style
-webkit-appearance: button;
appearance: button;
background: none;
width: 1.3rem;
height: 1.3rem;
border-radius: $border-radius;
@ -279,32 +300,6 @@ input[type='checkbox'] {
}
//
// Form Validation States
//
.form-control {
// Success style
&:valid:not(.is-empty):not(select),
&.parsley-success {
&,
&:focus {
border-color: $brand-success;
}
}
// Error style
&:invalid:not(.is-empty),
&.parsley-error {
&,
&:focus {
border-color: $brand-danger;
color: $brand-danger;
}
}
}
//
// Error messages
//

View File

@ -31,7 +31,7 @@
font-size: 0;
> .btn {
margin-top: 0 !important;
margin-top: 0;
}
}

View File

@ -62,7 +62,7 @@
position: relative;
top: -3px;
&::before {
&:before {
content: '';
position: absolute;
left: $spacer / 3;

View File

@ -32,7 +32,7 @@
.form-label,
.form-control {
color: $gray-dark !important;
color: $gray-dark;
}
.form-control-feedback {

View File

@ -1,6 +1,7 @@
// https://github.com/richleland/pygments-css/blob/master/zenburn.css
/* stylelint-disable */
.highlight pre {
color: #fdce93;
background-color: $code-bg;
@ -290,3 +291,5 @@
.highlight .il {
color: #8cd0d3;
}
/* stylelint-enable */

View File

@ -33,6 +33,10 @@
}
// output by Kramdown
/* stylelint-disable selector-no-id */
#markdown-toc {
@extend .toc;
}
/* stylelint-enable */

View File

@ -94,7 +94,8 @@ a {
//
// Headings
//
// scss-lint:disable SingleLinePerSelector
/* stylelint-disable selector-list-comma-newline-after */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
font-family: $headings-font-family;
@ -139,24 +140,14 @@ h6, .h6 {
}
}
h1,
.h1 { font-size: $font-size-h1; }
h2,
.h2 { font-size: $font-size-h2; }
h3,
.h3 { font-size: $font-size-h3; }
h4,
.h4 { font-size: $font-size-h4; }
h5,
.h5 { font-size: $font-size-h5; }
h6,
.h6 { font-size: $font-size-h6; }
h1, .h1 { font-size: $font-size-h1; }
h2, .h2 { font-size: $font-size-h2; }
h3, .h3 { font-size: $font-size-h3; }
h4, .h4 { font-size: $font-size-h4; }
h5, .h5 { font-size: $font-size-h5; }
h6, .h6 { font-size: $font-size-h6; }
/* stylelint-enable */
//
// Body text
@ -198,13 +189,11 @@ em,
}
// Alignment
// scss-lint:disable SpaceBeforeBrace
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }
// scss-lint:enable SpaceBeforeBrace
.lead {
@include text-lead;

View File

@ -4,6 +4,8 @@
// bigchaindb.com
//
/* stylelint-disable declaration-no-important */
.invisible {
visibility: hidden !important;
}
@ -12,6 +14,8 @@
display: none !important;
}
/* stylelint-enable */
.text-hide {
font: '0/0' a;
color: transparent;