Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
Merge f9f0560 into 78fb380
Browse files Browse the repository at this point in the history
  • Loading branch information
gemfarmer committed May 16, 2016
2 parents 78fb380 + f9f0560 commit 87e41f6
Show file tree
Hide file tree
Showing 27 changed files with 638 additions and 178 deletions.
253 changes: 253 additions & 0 deletions .scss-lint.yml
@@ -0,0 +1,253 @@
# Default application configuration that all configurations inherit from.

scss_files: "**/*.scss"
plugin_directories: ['.scss-linters']

# List of gem names to load custom linters from (make sure they are already
# installed)
plugin_gems: []

# Default severity of all linters.
severity: warning

linters:
BangFormat:
enabled: true
space_before_bang: true
space_after_bang: false

BemDepth:
enabled: false
max_elements: 1

BorderZero:
enabled: true
convention: zero # or `none`

ChainedClasses:
enabled: false

ColorKeyword:
enabled: true

ColorVariable:
enabled: true

Comment:
enabled: true
style: silent

DebugStatement:
enabled: true

DeclarationOrder:
enabled: true

DisableLinterReason:
enabled: false

DuplicateProperty:
enabled: true

ElsePlacement:
enabled: true
style: same_line # or 'new_line'

EmptyLineBetweenBlocks:
enabled: true
ignore_single_line_blocks: true

EmptyRule:
enabled: true

ExtendDirective:
enabled: false

FinalNewline:
enabled: true
present: true

HexLength:
enabled: true
style: short # or 'long'

HexNotation:
enabled: true
style: lowercase # or 'uppercase'

HexValidation:
enabled: true

IdSelector:
enabled: true

ImportantRule:
enabled: true

ImportPath:
enabled: true
leading_underscore: false
filename_extension: false

Indentation:
enabled: true
allow_non_nested_indentation: false
character: space # or 'tab'
width: 2

LeadingZero:
enabled: true
style: exclude_zero # or 'include_zero'

MergeableSelector:
enabled: true
force_nesting: false

NameFormat:
enabled: true
allow_leading_underscore: true
convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern

NestingDepth:
enabled: true
max_depth: 3
ignore_parent_selectors: false

PlaceholderInExtend:
enabled: true

PrivateNamingConvention:
enabled: false
prefix: _

PropertyCount:
enabled: false
include_nested: false
max_properties: 10

PropertySortOrder:
enabled: true
ignore_unspecified: false
min_properties: 2
separate_groups: false

PropertySpelling:
enabled: true
extra_properties: []
disabled_properties: []

PropertyUnits:
enabled: true
global: [
'ch', 'em', 'ex', 'rem', # Font-relative lengths
'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q', # Absolute lengths
'vh', 'vw', 'vmin', 'vmax', # Viewport-percentage lengths
'deg', 'grad', 'rad', 'turn', # Angle
'ms', 's', # Duration
'Hz', 'kHz', # Frequency
'dpi', 'dpcm', 'dppx', # Resolution
'%'] # Other
properties: {}

PseudoElement:
enabled: true

QualifyingElement:
enabled: true
allow_element_with_attribute: false
allow_element_with_class: false
allow_element_with_id: false

SelectorDepth:
enabled: true
max_depth: 3

SelectorFormat:
enabled: true
convention: hyphenated_lowercase # or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern

Shorthand:
enabled: true
allowed_shorthands: [1, 2, 3]

SingleLinePerProperty:
enabled: true
allow_single_line_rule_sets: true

SingleLinePerSelector:
enabled: true

SpaceAfterComma:
enabled: true
style: one_space # or 'no_space', or 'at_least_one_space'

SpaceAfterPropertyColon:
enabled: true
style: one_space # or 'no_space', or 'at_least_one_space', or 'aligned'

SpaceAfterPropertyName:
enabled: true

SpaceAfterVariableColon:
enabled: false
style: one_space # or 'no_space', 'at_least_one_space' or 'one_space_or_newline'

SpaceAfterVariableName:
enabled: true

SpaceAroundOperator:
enabled: true
style: one_space # or 'at_least_one_space', or 'no_space'

SpaceBeforeBrace:
enabled: true
style: space # or 'new_line'
allow_single_line_padding: false

SpaceBetweenParens:
enabled: true
spaces: 0

StringQuotes:
enabled: true
style: single_quotes # or double_quotes

TrailingSemicolon:
enabled: true

TrailingWhitespace:
enabled: true

TrailingZero:
enabled: false

TransitionAll:
enabled: false

UnnecessaryMantissa:
enabled: true

UnnecessaryParentReference:
enabled: true

UrlFormat:
enabled: true

UrlQuotes:
enabled: true

VariableForProperty:
enabled: false
properties: []

VendorPrefix:
enabled: false
identifier_list: base
additional_identifiers: []
excluded_identifiers: []

ZeroUnit:
enabled: true

Compass::*:
enabled: false
11 changes: 10 additions & 1 deletion app/assets/stylesheets/_uswds-grid-overrides.scss
Expand Up @@ -7,7 +7,7 @@ $large-screen: 768px;
$huge-screen: 900px;
$jumbo-screen: 1240px;

$huge: new-breakpoint(min-width $jumbo-screen 12);
$jumbo: new-breakpoint(min-width $jumbo-screen 12);
$huge: new-breakpoint(min-width $huge-screen 12);
$large: new-breakpoint(min-width $large-screen 12);
$medium: new-breakpoint(min-width $medium-screen 6);
Expand All @@ -34,3 +34,12 @@ $small: new-breakpoint(min-width $small-screen 1);
.usa-grid-top-padding {
padding-top: 1.25em;
}


.usa-grid {
padding: 0 1.5rem;

@include media($small-screen) {
padding: 0 3rem;
}
}
19 changes: 0 additions & 19 deletions app/assets/stylesheets/_uswds-overrides.scss
Expand Up @@ -34,25 +34,6 @@
vertical-align: middle;
}

.usa-footer-secondary_section {
background-color: $primary-darkest;
}


.usa-footer-secondary_section a {
color: $color-white;
line-height: 1.8;

&:visited {
color: $color-white;
}
}

.usa-footer-secondary_section h2 {
margin-bottom: 0px;
color: white;
}

.usa-button-primary-alt {
color: white;
}
Expand Down
6 changes: 5 additions & 1 deletion app/assets/stylesheets/blocks/_auction-detail.scss
Expand Up @@ -2,6 +2,7 @@
.auction-detail-panel {
border: 1px solid #ccc;
border-radius: $border-radius;
margin-bottom: $base-padding-large;

.auction-info {
margin-top: 2rem;
Expand All @@ -15,7 +16,6 @@
}

.auction-more-info {

background-color: $primary-darkest;
padding: 2rem;

Expand All @@ -40,6 +40,10 @@
}
}

.auction-detail-bid {
padding-bottom: $base-padding;
}


.auction-label-expiring {
background-color: $color-gold !important;
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/blocks/_auction.scss
Expand Up @@ -45,6 +45,10 @@ textarea#auction_description {
font-weight: $font-light;
margin-bottom: $site-margins;

&:last-of-type {
margin-bottom: $base-padding-large;
}

.issue-label {
margin-top: 0.75rem;
}
Expand Down

0 comments on commit 87e41f6

Please sign in to comment.