diff --git a/.editorconfig b/.editorconfig new file mode 100755 index 0000000..ca2648d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,32 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] +# change these settings to your own preference +indent_style = space +indent_size = 4 + +# we recommend you to keep these unchanged +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[{package,bower}.json] +indent_style = space +indent_size = 2 + +[{.eslintrc,.scss-lint.yml}] +indent_style = space +indent_size = 2 + + +[*.{scss,sass}] +indent_style = space +indent_size = 2 diff --git a/README.md b/README.md index eb88e72..2ef62da 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A collection of popular logos in SVG / Vector [View All](http://gilbarbara.github.io/logos/) ## Angular -![angular](http://gilbarbara.github.io/logos/angular-logo.svg) +![angular](http://gilbarbara.github.io/logos/angular-icon.svg) ![angular](http://gilbarbara.github.io/logos/angular.svg) @@ -18,15 +18,13 @@ A collection of popular logos in SVG / Vector ![autoprefixer](http://gilbarbara.github.io/logos/autoprefixer.svg) ## AWS -![aws-logo](http://gilbarbara.github.io/logos/aws-logo.svg) - ![aws](http://gilbarbara.github.io/logos/aws.svg) ## Babel ![babel](http://gilbarbara.github.io/logos/babel.svg) ## Backbone -![backbone-logo](http://gilbarbara.github.io/logos/backbone-logo.svg) +![backbone-icon](http://gilbarbara.github.io/logos/backbone-icon.svg) ![backbone](http://gilbarbara.github.io/logos/backbone.svg) @@ -46,7 +44,7 @@ A collection of popular logos in SVG / Vector ![brackets](http://gilbarbara.github.io/logos/brackets.svg) ## Browserify -![browserify-logo](http://gilbarbara.github.io/logos/browserify-logo.svg) +![browserify-icons](http://gilbarbara.github.io/logos/browserify-icon.svg) ![browserify](http://gilbarbara.github.io/logos/browserify.svg) @@ -72,7 +70,7 @@ A collection of popular logos in SVG / Vector ![chrome](http://gilbarbara.github.io/logos/chrome.svg) ## Codepen -![codepen-logo](http://gilbarbara.github.io/logos/codepen-logo.svg) +![codepen-icon](http://gilbarbara.github.io/logos/codepen-icon.svg) ![codepen](http://gilbarbara.github.io/logos/codepen.svg) @@ -124,7 +122,7 @@ A collection of popular logos in SVG / Vector ![forever](http://gilbarbara.github.io/logos/forever.svg) ## git -![git-logo](http://gilbarbara.github.io/logos/git-logo.svg) +![git-icon](http://gilbarbara.github.io/logos/git-icon.svg) ![git](http://gilbarbara.github.io/logos/git.svg) @@ -346,7 +344,7 @@ A collection of popular logos in SVG / Vector ![wercker](http://gilbarbara.github.io/logos/wercker.svg) ## wordpress -![wordpress-logo](http://gilbarbara.github.io/logos/wordpress-logo.svg) +![wordpress-icon](http://gilbarbara.github.io/logos/wordpress-icon.svg) ![wordpress](http://gilbarbara.github.io/logos/wordpress.svg) diff --git a/assets/.scss-lint.yml b/assets/.scss-lint.yml new file mode 100644 index 0000000..544b99c --- /dev/null +++ b/assets/.scss-lint.yml @@ -0,0 +1,172 @@ +linters: + BangFormat: + enabled: true + space_before_bang: true + space_after_bang: false + + BorderZero: + enabled: true + + ColorKeyword: + enabled: true + + ColorVariable: + enabled: false + + Comment: + enabled: false + + DebugStatement: + enabled: true + + DeclarationOrder: + enabled: true + + DuplicateProperty: + enabled: true + + ElsePlacement: + enabled: true + style: new_line # or 'same_line' + + EmptyLineBetweenBlocks: + enabled: true + ignore_single_line_blocks: false + + EmptyRule: + enabled: true + + FinalNewline: + enabled: true + present: true + + HexLength: + enabled: true + style: short # or 'long' + + HexNotation: + enabled: true + style: lowercase # or 'uppercase' + + HexValidation: + enabled: true + + IdSelector: + enabled: false + + ImportantRule: + enabled: false + + ImportPath: + enabled: true + leading_underscore: false + filename_extension: false + + Indentation: + enabled: true + character: space # or 'tab' + width: 2 + + LeadingZero: + enabled: true + style: include_zero # or 'exclude_zero' + + MergeableSelector: + enabled: true + force_nesting: true + + NameFormat: + enabled: true + allow_leading_underscore: false + convention: hyphenated_lowercase # or 'BEM', or a regex pattern + + NestingDepth: + enabled: true + max_depth: 6 + + PlaceholderInExtend: + enabled: true + + PropertySortOrder: + enabled: true + ignore_unspecified: false + separate_groups: true + + PropertySpelling: + enabled: true + extra_properties: [] + + QualifyingElement: + enabled: true + allow_element_with_attribute: false + allow_element_with_class: true + allow_element_with_id: false + + SelectorDepth: + enabled: true + max_depth: 6 + + SelectorFormat: + enabled: true + convention: hyphenated_BEM # or 'hyphenated_lowercase', or 'snake_case', or 'camel_case', or a regex pattern + + Shorthand: + enabled: true + + SingleLinePerProperty: + enabled: true + allow_single_line_rule_sets: false + + SingleLinePerSelector: + enabled: true + + SpaceAfterComma: + enabled: true + + SpaceAfterPropertyColon: + enabled: true + style: one_space # or 'no_space', or 'at_least_one_space', or 'aligned' + + SpaceAfterPropertyName: + enabled: true + + SpaceBeforeBrace: + enabled: true + style: space + allow_single_line_padding: false + + SpaceBetweenParens: + enabled: true + spaces: 0 + + StringQuotes: + enabled: true + style: single_quotes # or double_quotes + + TrailingSemicolon: + enabled: true + + TrailingZero: + enabled: true + + UnnecessaryMantissa: + enabled: true + + UnnecessaryParentReference: + enabled: true + + UrlFormat: + enabled: true + + UrlQuotes: + enabled: true + + VariableForProperty: + enabled: false + + VendorPrefix: + enabled: true + identifier_list: base + + ZeroUnit: + enabled: true diff --git a/assets/index.html b/assets/index.html index e77b02b..20a6b15 100644 --- a/assets/index.html +++ b/assets/index.html @@ -3,13 +3,13 @@ SVG Logos - + + content="A collection of logos of web technologies, editors, libraries, frameworks, servers and services."/> @@ -22,12 +22,12 @@

SVG Logos

-

A curated collection of logos for web technologies, libraries, frameworks, servers and services.

+

A collection of logos of web technologies, editors, libraries, frameworks, servers and services.

Github
- +
@@ -41,9 +41,6 @@
-
- -
@@ -51,7 +48,7 @@
- +
@@ -72,7 +69,7 @@
- +
@@ -93,7 +90,7 @@
- +
@@ -153,7 +150,7 @@
- +
@@ -384,7 +381,7 @@
- +
diff --git a/assets/og-image.png b/assets/og-image.png new file mode 100644 index 0000000..d58e4cc Binary files /dev/null and b/assets/og-image.png differ diff --git a/assets/styles/base/_utils.scss b/assets/styles/base/_utils.scss new file mode 100755 index 0000000..1c2ca02 --- /dev/null +++ b/assets/styles/base/_utils.scss @@ -0,0 +1,129 @@ +@mixin background-image-retina($file, $type, $width, $height) { + background-image: url($file + '.' + $type); + background-size: $width $height; + + @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 144dpi) { + background-image: url($file + '@2x.' + $type); + } +} + +@mixin background-image-svg($name, $width, $height) { + background-image: url('#{$name}.png'); // IE8 & below + background-image: none, url('#{$name}.svg'); + background-size: $width $height; +} + +@mixin truncate($width: 100%) { + text-overflow: ellipsis; + overflow: hidden; + width: $width; + white-space: nowrap; +} + +@mixin vertical-align { + position: relative; + top: 50%; + transform: translateY(-50%); +} + +@mixin media-query($media-query) { + + @if $media-query == outdated { + @media (max-height: 540px) { @content; } + } + + @if $media-query == xs-only { + @media (max-width: $screen-xs - 1) { @content; } + } + + @if $media-query == sm { + @media (min-width: $screen-xs) { @content; } + } + + @if $media-query == sm-only { + @media (max-width: $screen-sm - 1) { @content; } + } + + @if $media-query == md { + @media (min-width: $screen-sm) { @content; } + } + + @if $media-query == md-only { + @media (max-width: $screen-md - 1) { @content; } + } + + @if $media-query == lg { + @media (min-width: $screen-md) { @content; } + } + + @if $media-query == xl { + @media (min-width: $screen-lg) { @content; } + } + + @if $media-query == retina { + @media (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) { @content; } + } + + @if $media-query == landscape { + @media (orientation: landscape) { @content; } + } +} + +// Just mqs helpers... + +@mixin outdated { + @include media-query(outdated) { @content } +} + + +@mixin xs { + @include media-query(xs) { @content } +} + +@mixin xxs-only { + @include media-query(xxs-only) { @content } +} + +@mixin xs-only { + @include media-query(xs-only) { @content } +} + +@mixin smt { + @include media-query(smt) { @content } +} + +@mixin smt-only { + @include media-query(smt-only) { @content } +} + +@mixin sm { + @include media-query(sm) { @content } +} + +@mixin sm-only { + @include media-query(sm-only) { @content } +} + +@mixin md { + @include media-query(md) { @content } +} + +@mixin md-only { + @include media-query(md-only) { @content } +} + +@mixin lg { + @include media-query(lg) { @content } +} + +@mixin xl { + @include media-query(xl) { @content } +} + +@mixin retina { + @include media-query(retina) { @content } +} + +@mixin landscape { + @include media-query(landscape) { @content } +} diff --git a/assets/styles/base/_variables.scss b/assets/styles/base/_variables.scss new file mode 100755 index 0000000..c9fb1de --- /dev/null +++ b/assets/styles/base/_variables.scss @@ -0,0 +1,7 @@ +$bg-color: #fff9f2; +$link-color: #62cab8; + +$screen-xs: 480px; +$screen-sm: 768px; +$screen-md: 1024px; +$screen-lg: 1280px; diff --git a/assets/styles/main.scss b/assets/styles/main.scss index d448a6a..65ecce7 100644 --- a/assets/styles/main.scss +++ b/assets/styles/main.scss @@ -1,18 +1,25 @@ +@import 'base/variables'; +@import 'base/utils'; + html { font-size: 62.5%; height: 100%; } body { - background-color: #FFF9F2; + background-color: $bg-color; font-family: Montserrat, sans-serif; margin: 0; min-height: 100%; padding: 0; } +* { + box-sizing: border-box; +} + a { - color: #62CAB8; + color: $link-color; } .container { @@ -29,11 +36,29 @@ h5 { h1 { font-size: 3rem; margin: 3rem 0 1.5rem; + + @include md { + font-size: 4rem; + } + + @include lg { + font-size: 8rem; + } } h3 { font-size: 1.8rem; margin: 0 auto 0.5rem; + + @include md { + font-size: 2.5rem; + max-width: 80%; + } + + @include lg { + font-size: 3rem; + max-width: 60%; + } } h5 { @@ -42,48 +67,28 @@ h5 { } .logos { - display: flex; align-items: center; + display: flex; flex-wrap: wrap; - justify-content: space-around; -} + justify-content: space-between; -.logos > div { - margin: 10% 4%; - text-align: center; - width: 92%; -} + > div { + padding: 5vh 1vh; + text-align: center; + width: 100%; -.logos > div img { - display: block; - margin: 0 auto; - max-width: 100%; -} + @include md { + width: 50%; + } -@media (min-width: 768px) { - .logos > div { - margin: 6% 3%; - width: 44%; - } - h1 { - font-size: 4rem; - } - h3 { - font-size: 2.5rem; - max-width: 80%; - } -} + @include lg { + width: percentage(1/3); + } -@media (min-width: 1024px) { - .logos div { - margin: 4% 2%; - width: 28%; - } - h1 { - font-size: 5rem; - } - h3 { - font-size: 3rem; - max-width: 70%; + img { + display: block; + margin: 0 auto; + max-width: 100%; + } } } diff --git a/gulpfile.js b/gulpfile.js index c96afa5..c3f5fe4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,6 +1,7 @@ -var gulp = require('gulp'), - $ = require('gulp-load-plugins')(), - browserSync = require('browser-sync'); +var gulp = require('gulp'), + $ = require('gulp-load-plugins')(), + browserSync = require('browser-sync'), + del = require('del'); gulp.task('styles', function () { return gulp.src('assets/styles/main.scss') @@ -41,7 +42,7 @@ gulp.task('serve', ['clean', 'styles'], function () { } }); - gulp.watch('styles/**/*.scss', function (e) { + gulp.watch('assets/styles/**/*.scss', function (e) { if (e.type === 'changed') { gulp.start('styles'); } @@ -49,7 +50,7 @@ gulp.task('serve', ['clean', 'styles'], function () { }); gulp.task('deploy', ['styles', 'bundle'], function () { - return gulp.src(['logos/*.svg', '.tmp/*.html', '.tmp/main.css', '*.md']) + return gulp.src(['logos/*.svg', '.tmp/*.html', '.tmp/main.css', 'assets/*.png', '*.md']) .pipe($.ghPages({ force: true })); diff --git a/logos/angular-icon.svg b/logos/angular-icon.svg new file mode 100644 index 0000000..721f222 --- /dev/null +++ b/logos/angular-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/logos/angular-logo.svg b/logos/angular-logo.svg deleted file mode 100644 index 800aeed..0000000 --- a/logos/angular-logo.svg +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/logos/angular.svg b/logos/angular.svg index 721f222..800aeed 100644 --- a/logos/angular.svg +++ b/logos/angular.svg @@ -1,10 +1,30 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/logos/aws-logo.svg b/logos/aws-logo.svg deleted file mode 100644 index 4ad18bb..0000000 --- a/logos/aws-logo.svg +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/logos/aws.svg b/logos/aws.svg index 7276583..4ad18bb 100644 --- a/logos/aws.svg +++ b/logos/aws.svg @@ -1,30 +1,50 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/logos/backbone-icon.svg b/logos/backbone-icon.svg new file mode 100644 index 0000000..f0361c8 --- /dev/null +++ b/logos/backbone-icon.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/logos/backbone-logo.svg b/logos/backbone-logo.svg deleted file mode 100644 index 7fd453b..0000000 --- a/logos/backbone-logo.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/logos/backbone.svg b/logos/backbone.svg index f0361c8..7fd453b 100644 --- a/logos/backbone.svg +++ b/logos/backbone.svg @@ -1,9 +1,24 @@ - + - - - - + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/logos/browserify-icon.svg b/logos/browserify-icon.svg new file mode 100644 index 0000000..2be51cd --- /dev/null +++ b/logos/browserify-icon.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/logos/browserify.svg b/logos/browserify.svg index 2be51cd..0c975cb 100644 --- a/logos/browserify.svg +++ b/logos/browserify.svg @@ -1,11 +1,28 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/logos/codepen-icon.svg b/logos/codepen-icon.svg new file mode 100644 index 0000000..291ca30 --- /dev/null +++ b/logos/codepen-icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/logos/codepen-logo.svg b/logos/codepen-logo.svg deleted file mode 100644 index 95064e6..0000000 --- a/logos/codepen-logo.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/logos/codepen.svg b/logos/codepen.svg index 291ca30..50cd58b 100644 --- a/logos/codepen.svg +++ b/logos/codepen.svg @@ -1,6 +1,12 @@ - - - + + + + + + + + + diff --git a/logos/git-icon.svg b/logos/git-icon.svg new file mode 100644 index 0000000..d8cd269 --- /dev/null +++ b/logos/git-icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/logos/git-logo.svg b/logos/git-logo.svg deleted file mode 100644 index 37e9dde..0000000 --- a/logos/git-logo.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/logos/git.svg b/logos/git.svg index d8cd269..37e9dde 100644 --- a/logos/git.svg +++ b/logos/git.svg @@ -1,6 +1,9 @@ - + - + + + + diff --git a/logos/wordpress-icon.svg b/logos/wordpress-icon.svg new file mode 100644 index 0000000..f736427 --- /dev/null +++ b/logos/wordpress-icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/logos/wordpress-logo.svg b/logos/wordpress-logo.svg deleted file mode 100644 index a444208..0000000 --- a/logos/wordpress-logo.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/logos/wordpress.svg b/logos/wordpress.svg index f736427..a444208 100644 --- a/logos/wordpress.svg +++ b/logos/wordpress.svg @@ -1,6 +1,10 @@ - - - - - - + + + + + + + + + + \ No newline at end of file