Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styleguide 2.0 #2365

Merged
merged 32 commits into from
Mar 27, 2017
Merged

Styleguide 2.0 #2365

merged 32 commits into from
Mar 27, 2017

Conversation

gemfarmer
Copy link
Contributor

@gemfarmer gemfarmer commented Mar 16, 2017

Fixes issue(s) #2242

CircleCI

😎 PREVIEW

Preview README for this branch

Changes proposed in this pull request:

  • shifts layout to fixed header and side nav
  • breaks styleguide on to multiple pages
  • addresses @jenniferthibault's critique
  • added new styleguide content:
    • introduction section
    • breadcrumb
    • right-aligned list
    • images and icons
    • blockquotes and pull quotes
    • blog images w/ and w/out captions
    • sticky subnavigation
    • technical notes on Jekyll
  • re-ordered the nav
  • removed unused plugins (namely author.rb)
  • refactored plugins
  • updated plugin README technical documentation

/cc @elainekamlley

}

.sliding-panel-close-styleguide {
@include media($medium-screen + $nav-width-extra) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line should be indented 2 spaces, but was indented 4 spaces

height: $icon-diameter;
width: $icon-diameter;

path {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

@@ -27,6 +27,8 @@ $color-bright: #00cfff; // $color-bright / $color-secondary
$color-medium: #046b99; // $color-medium / $color-primary
$color-dark: #1C304A; // $color-dark / $color-primary-dark
$color-base: #1F2E4A;
$color-black: #000000;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace

@@ -7,8 +7,11 @@ $(function (){

// Styleguide drawer
$('.menu-btn-styleguide, .sliding-panel-close-styleguide').on('click touchstart', function (e) {
console.log('click', $('.nav-mobile-styleguide').hasClass('is-visible'))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected console statement no-console
'$' is not defined no-undef

@jenniferthibault
Copy link

@gemfarmer when I try the preview link, every time I click an item from the side menu I get one of these:

screen shot 2017-03-20 at 1 31 15 pm

Am I missing a step?


var $anchors = $(anchors.join(','));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'$' is not defined no-undef

@@ -26,8 +27,11 @@ $(function (){
.replace(window.location.pathname, '');
});

var $anchors = $(anchors.join(','));
anchors = anchors.filter(function(anchor) {
return anchor[0] == '#';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected '===' and instead saw '==' eqeqeq

@@ -80,17 +80,17 @@ def frontmatter_regex
/\A(---\s*\n.*?\n?)^((---|\.\.\.)\s*$\n?)/m
end

def find_penned_authors
penned_authors = []
def find_published_authors

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Branch Condition size for find_published_authors is too high. [16.76/15]

@@ -2,7 +2,7 @@

module SiteData
class AuthorData
attr_reader :path, :basepath, :penned_authors, :site_post_paths, :all_authors, :excluded_authors
attr_reader :path, :basepath, :published_authors, :site_post_paths, :all_authors, :unpublished_authors

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [106/100]

@gemfarmer
Copy link
Contributor Author

@jenniferthibault You weren't missing anything! The links were broken on Federalist. They should be fixed now though!

}
@import 'nav';
@import 'sticky';
@import 'right-aligned-list'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declaration should be terminated by a semicolon

}
@import 'nav';
@import 'sticky';
@import 'right-aligned-list'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declaration should be terminated by a semicolon

@gemfarmer gemfarmer mentioned this pull request Mar 24, 2017
puts '---------------------'
puts "#{value} is a #{_type}"
puts '---------------------'
binding.pry

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove debugger entry point binding.pry.

@gemfarmer
Copy link
Contributor Author

@jenniferthibault @gboone @awfrancisco Looking for feedback on the latest style guide improvements!

👀 LOOK HERE 👀

@gemfarmer
Copy link
Contributor Author

Merging and closing this issue, but we are going to keep #2242 open for additional comments and criticism!


var $anchors = $(anchors.join(','));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'$' is not defined no-undef

@gemfarmer gemfarmer changed the title [WIP] Styleguide 2.0 Styleguide 2.0 Mar 27, 2017
@gemfarmer gemfarmer merged commit 2ae7384 into dev Mar 27, 2017
@gemfarmer gemfarmer deleted the styleguide-2.0 branch March 27, 2017 19:01
@gemfarmer gemfarmer mentioned this pull request Mar 31, 2017
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants