{"action":"created","comment":{"url":"https://api.github.com/repos/ID25/social/pulls/comments/36690631","id":36690631,"diff_hunk":"@@ -0,0 +1,413 @@\n+/*\n+ * The MIT License\n+ * Copyright (c) 2012 Matias Meno <m@tias.me>\n+ */\n+\n+// Permission is hereby granted, free of charge, to any person obtaining a copy of\n+// this software and associated documentation files (the \"Software\"), to deal in\n+// the Software without restriction, including without limitation the rights to\n+// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\n+// of the Software, and to permit persons to whom the Software is furnished to do\n+// so, subject to the following conditions:\n+\n+// The above copyright notice and this permission notice shall be included in all\n+// copies or substantial portions of the Software.\n+\n+// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+// SOFTWARE.\n+\n+@mixin keyframes($name) {\n+  @-webkit-keyframes #{$name} {\n+    @content; \n+  }\n+  @-moz-keyframes #{$name} {\n+    @content;\n+  }\n+  @keyframes #{$name} {\n+    @content;\n+  } \n+}\n+\n+\n+@mixin prefix($map, $vendors: webkit moz ms o) {\n+  @each $prop, $value in $map {\n+    @if $vendors {\n+      @each $vendor in $vendors {\n+        #{\"-\" + $vendor + \"-\" + $prop}: #{$value};\n+      }\n+    }\n+    // Dump regular property anyway\n+    #{$prop}: #{$value};\n+  }\n+}\n+\n+\n+@include keyframes(passing-through) {\n+  \n+  0% {\n+    opacity: 0;\n+    @include prefix((transform: translateY(40px)));\n+  }\n+\n+  30%, 70% {\n+    opacity: 1;\n+    @include prefix((transform: translateY(0px)));\n+  }\n+\n+  100% {\n+    opacity: 0;\n+    @include prefix((transform: translateY(-40px)));\n+  }\n+}\n+\n+\n+@include keyframes(slide-in) {\n+  \n+  0% {\n+    opacity: 0;\n+    @include prefix((transform: translateY(40px)));\n+  }\n+\n+  30% {\n+    opacity: 1;\n+    @include prefix((transform: translateY(0px)));\n+  }\n+}\n+\n+\n+\n+@include keyframes(pulse) {\n+  \n+  0% { @include prefix((transform: scale(1))); }\n+  10% { @include prefix((transform: scale(1.1))); }\n+  20% { @include prefix((transform: scale(1))); }\n+\n+}\n+\n+\n+\n+.dropzone, .dropzone * {\n+  box-sizing: border-box;\n+}\n+.dropzone {\n+\n+  $image-size: 120px;\n+\n+  $image-border-radius: 20px;\n+\n+  &.dz-clickable {\n+    cursor: pointer;\n+\n+    * {\n+      cursor: default;\n+    }\n+    .dz-message {\n+      &, * {\n+        cursor: pointer;\n+      }\n+    }\n+  }\n+\n+  min-height: 150px;\n+  border: 2px solid rgba(0, 0, 0, 0.3);\n+  background: white;\n+  padding: 20px 20px;\n+\n+  &.dz-started {\n+    .dz-message {\n+      display: none;\n+    }\n+  }\n+\n+  &.dz-drag-hover {\n+    border-style: solid;\n+    .dz-message {\n+      opacity: 0.5;\n+    }\n+  }\n+  .dz-message {\n+    text-align: center;\n+    margin: 2em 0;\n+\n+\n+  }\n+\n+\n+\n+  .dz-preview {\n+    position: relative;\n+    display: inline-block;\n+\n+    vertical-align: top;\n+\n+    margin: 16px;\n+    min-height: 100px;\n+\n+    &:hover {\n+      // Making sure that always the hovered preview element is on top\n+      z-index: 1000;\n+      .dz-details {\n+        opacity: 1;\n+      }\n+    }\n+\n+    &.dz-file-preview {\n+\n+      .dz-image {\n+        border-radius: $image-border-radius;\n+        background: #999;\n+        background: linear-gradient(to bottom, #eee, #ddd);\n+      }\n+\n+      .dz-details {\n+        opacity: 1;\n+      }\n+    }\n+\n+    &.dz-image-preview {\n+      background: white;\n+      .dz-details {\n+        @include prefix((transition: opacity 0.2s linear));\n+      }\n+    }\n+\n+    .dz-remove {\n+      font-size: 14px;\n+      text-align: center;\n+      display: block;\n+      cursor: pointer;\n+      border: none;\n+      &:hover {\n+        text-decoration: underline;\n+      }\n+    }\n+\n+    &:hover .dz-details {\n+      opacity: 1;\n+    }\n+    .dz-details {\n+      $background-color: #444;\n+\n+      z-index: 20;\n+\n+      position: absolute;\n+      top: 0;\n+      left: 0;\n+\n+      opacity: 0;\n+\n+      font-size: 13px;\n+      min-width: 100%;\n+      max-width: 100%;\n+      padding: 2em 1em;\n+      text-align: center;\n+      color: rgba(0, 0, 0, 0.9);\n+\n+      $width: 120px;\n+\n+      line-height: 150%;\n+\n+      .dz-size {\n+        margin-bottom: 1em;\n+        font-size: 16px;\n+      }\n+\n+      .dz-filename {\n+\n+        white-space: nowrap;\n+\n+        &:hover {\n+          span {\n+            border: 1px solid rgba(200, 200, 200, 0.8);\n+            background-color: rgba(255, 255, 255, 0.8);\n+          }\n+        }\n+        &:not(:hover) {\n+          span {\n+            border: 1px solid transparent;\n+          }\n+          overflow: hidden;\n+          text-overflow: ellipsis;\n+        }\n+\n+      }\n+\n+      .dz-filename, .dz-size {\n+        span {\n+          background-color: rgba(255, 255, 255, 0.4);\n+          padding: 0 0.4em;\n+          border-radius: 3px;\n+        }\n+      }\n+\n+    }\n+\n+    &:hover {\n+      .dz-image {\n+        // opacity: 0.8;\n+        img {\n+          @include prefix((transform: scale(1.05, 1.05))); // Getting rid of that white bleed-in\n+          @include prefix((filter: blur(8px)), webkit); // Getting rid of that white bleed-in\n+        }\n+      }\n+    }\n+    .dz-image {\n+      border-radius: $image-border-radius;\n+      overflow: hidden;\n+      width: $image-size;\n+      height: $image-size;\n+      position: relative;\n+      display: block;\n+      z-index: 10;\n+\n+      img {\n+        display: block;\n+      }\n+    }\n+\n+\n+    &.dz-success {\n+      .dz-success-mark {\n+        @include prefix((animation: passing-through 3s cubic-bezier(0.770, 0.000, 0.175, 1.000)));\n+      }\n+    }\n+    &.dz-error {\n+      .dz-error-mark {\n+        opacity: 1;\n+        @include prefix((animation: slide-in 3s cubic-bezier(0.770, 0.000, 0.175, 1.000)));\n+      }\n+    }\n+\n+\n+    .dz-success-mark, .dz-error-mark {\n+\n+      $image-height: 54px;\n+      $image-width: 54px;\n+\n+      pointer-events: none;\n+\n+      opacity: 0;\n+      z-index: 500;\n+\n+      position: absolute;\n+      display: block;\n+      top: 50%;\n+      left: 50%;\n+      margin-left: -($image-width/2);\n+      margin-top: -($image-height/2);\n+\n+      svg {\n+        display: block;\n+        width: $image-width;\n+        height: $image-height;\n+      }\n+    }\n+    \n+      \n+    &.dz-processing .dz-progress {\n+      opacity: 1;\n+      @include prefix((transition: all 0.2s linear));\n+    }\n+    &.dz-complete .dz-progress {\n+      opacity: 0;\n+      @include prefix((transition: opacity 0.4s ease-in));\n+    }\n+\n+    &:not(.dz-processing) {\n+      .dz-progress {\n+        @include prefix((animation: pulse 6s ease infinite));\n+      }\n+    }\n+    .dz-progress {\n+\n+      opacity: 1;\n+      z-index: 1000;\n+\n+      pointer-events: none;\n+      position: absolute;\n+      height: 16px;\n+      left: 50%;\n+      top: 50%;\n+      margin-top: -8px;\n+\n+      width: 80px;\n+      margin-left: -40px;\n+\n+      // border: 2px solid #333;\n+      background: rgba(255, 255, 255, 0.9);\n+\n+      // Fix for chrome bug: https://code.google.com/p/chromium/issues/detail?id=157218\n+      -webkit-transform: scale(1);","path":"app/assets/stylesheets/dropzone.scss","position":345,"original_position":345,"commit_id":"6e241b53d05b5146fff13ad0eb9f83531f473e38","original_commit_id":"6e241b53d05b5146fff13ad0eb9f83531f473e38","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Avoid vendor prefixes.","created_at":"2015-08-10T22:05:46Z","updated_at":"2015-08-10T22:05:46Z","html_url":"https://github.com/ID25/social/pull/8#discussion_r36690631","pull_request_url":"https://api.github.com/repos/ID25/social/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/ID25/social/pulls/comments/36690631"},"html":{"href":"https://github.com/ID25/social/pull/8#discussion_r36690631"},"pull_request":{"href":"https://api.github.com/repos/ID25/social/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/ID25/social/pulls/8","id":42071780,"html_url":"https://github.com/ID25/social/pull/8","diff_url":"https://github.com/ID25/social/pull/8.diff","patch_url":"https://github.com/ID25/social/pull/8.patch","issue_url":"https://api.github.com/repos/ID25/social/issues/8","number":8,"state":"closed","locked":false,"title":"Ajax avatar upload","user":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-10T22:03:52Z","updated_at":"2015-08-10T22:05:46Z","closed_at":"2015-08-10T22:04:23Z","merged_at":"2015-08-10T22:04:23Z","merge_commit_sha":"3a28541bbeac5846c40a6b0a2042d84d56e38c09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ID25/social/pulls/8/commits","review_comments_url":"https://api.github.com/repos/ID25/social/pulls/8/comments","review_comment_url":"https://api.github.com/repos/ID25/social/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ID25/social/issues/8/comments","statuses_url":"https://api.github.com/repos/ID25/social/statuses/6e241b53d05b5146fff13ad0eb9f83531f473e38","head":{"label":"ID25:ajax-avatar-upload","ref":"ajax-avatar-upload","sha":"6e241b53d05b5146fff13ad0eb9f83531f473e38","user":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"repo":{"id":30732624,"name":"social","full_name":"ID25/social","owner":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ID25/social","description":"http://vkontanke.herokuapp.com/","fork":false,"url":"https://api.github.com/repos/ID25/social","forks_url":"https://api.github.com/repos/ID25/social/forks","keys_url":"https://api.github.com/repos/ID25/social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ID25/social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ID25/social/teams","hooks_url":"https://api.github.com/repos/ID25/social/hooks","issue_events_url":"https://api.github.com/repos/ID25/social/issues/events{/number}","events_url":"https://api.github.com/repos/ID25/social/events","assignees_url":"https://api.github.com/repos/ID25/social/assignees{/user}","branches_url":"https://api.github.com/repos/ID25/social/branches{/branch}","tags_url":"https://api.github.com/repos/ID25/social/tags","blobs_url":"https://api.github.com/repos/ID25/social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ID25/social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ID25/social/git/refs{/sha}","trees_url":"https://api.github.com/repos/ID25/social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ID25/social/statuses/{sha}","languages_url":"https://api.github.com/repos/ID25/social/languages","stargazers_url":"https://api.github.com/repos/ID25/social/stargazers","contributors_url":"https://api.github.com/repos/ID25/social/contributors","subscribers_url":"https://api.github.com/repos/ID25/social/subscribers","subscription_url":"https://api.github.com/repos/ID25/social/subscription","commits_url":"https://api.github.com/repos/ID25/social/commits{/sha}","git_commits_url":"https://api.github.com/repos/ID25/social/git/commits{/sha}","comments_url":"https://api.github.com/repos/ID25/social/comments{/number}","issue_comment_url":"https://api.github.com/repos/ID25/social/issues/comments{/number}","contents_url":"https://api.github.com/repos/ID25/social/contents/{+path}","compare_url":"https://api.github.com/repos/ID25/social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ID25/social/merges","archive_url":"https://api.github.com/repos/ID25/social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ID25/social/downloads","issues_url":"https://api.github.com/repos/ID25/social/issues{/number}","pulls_url":"https://api.github.com/repos/ID25/social/pulls{/number}","milestones_url":"https://api.github.com/repos/ID25/social/milestones{/number}","notifications_url":"https://api.github.com/repos/ID25/social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ID25/social/labels{/name}","releases_url":"https://api.github.com/repos/ID25/social/releases{/id}","created_at":"2015-02-13T00:26:15Z","updated_at":"2015-04-25T12:32:06Z","pushed_at":"2015-08-10T22:04:23Z","git_url":"git://github.com/ID25/social.git","ssh_url":"git@github.com:ID25/social.git","clone_url":"https://github.com/ID25/social.git","svn_url":"https://github.com/ID25/social","homepage":"","size":2000,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"fb"}},"base":{"label":"ID25:fb","ref":"fb","sha":"a6b53da2b0bade538e82e72399dee3077a3cdfdb","user":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"repo":{"id":30732624,"name":"social","full_name":"ID25/social","owner":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ID25/social","description":"http://vkontanke.herokuapp.com/","fork":false,"url":"https://api.github.com/repos/ID25/social","forks_url":"https://api.github.com/repos/ID25/social/forks","keys_url":"https://api.github.com/repos/ID25/social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ID25/social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ID25/social/teams","hooks_url":"https://api.github.com/repos/ID25/social/hooks","issue_events_url":"https://api.github.com/repos/ID25/social/issues/events{/number}","events_url":"https://api.github.com/repos/ID25/social/events","assignees_url":"https://api.github.com/repos/ID25/social/assignees{/user}","branches_url":"https://api.github.com/repos/ID25/social/branches{/branch}","tags_url":"https://api.github.com/repos/ID25/social/tags","blobs_url":"https://api.github.com/repos/ID25/social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ID25/social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ID25/social/git/refs{/sha}","trees_url":"https://api.github.com/repos/ID25/social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ID25/social/statuses/{sha}","languages_url":"https://api.github.com/repos/ID25/social/languages","stargazers_url":"https://api.github.com/repos/ID25/social/stargazers","contributors_url":"https://api.github.com/repos/ID25/social/contributors","subscribers_url":"https://api.github.com/repos/ID25/social/subscribers","subscription_url":"https://api.github.com/repos/ID25/social/subscription","commits_url":"https://api.github.com/repos/ID25/social/commits{/sha}","git_commits_url":"https://api.github.com/repos/ID25/social/git/commits{/sha}","comments_url":"https://api.github.com/repos/ID25/social/comments{/number}","issue_comment_url":"https://api.github.com/repos/ID25/social/issues/comments{/number}","contents_url":"https://api.github.com/repos/ID25/social/contents/{+path}","compare_url":"https://api.github.com/repos/ID25/social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ID25/social/merges","archive_url":"https://api.github.com/repos/ID25/social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ID25/social/downloads","issues_url":"https://api.github.com/repos/ID25/social/issues{/number}","pulls_url":"https://api.github.com/repos/ID25/social/pulls{/number}","milestones_url":"https://api.github.com/repos/ID25/social/milestones{/number}","notifications_url":"https://api.github.com/repos/ID25/social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ID25/social/labels{/name}","releases_url":"https://api.github.com/repos/ID25/social/releases{/id}","created_at":"2015-02-13T00:26:15Z","updated_at":"2015-04-25T12:32:06Z","pushed_at":"2015-08-10T22:04:23Z","git_url":"git://github.com/ID25/social.git","ssh_url":"git@github.com:ID25/social.git","clone_url":"https://github.com/ID25/social.git","svn_url":"https://github.com/ID25/social","homepage":"","size":2000,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"fb"}},"_links":{"self":{"href":"https://api.github.com/repos/ID25/social/pulls/8"},"html":{"href":"https://github.com/ID25/social/pull/8"},"issue":{"href":"https://api.github.com/repos/ID25/social/issues/8"},"comments":{"href":"https://api.github.com/repos/ID25/social/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/ID25/social/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/ID25/social/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ID25/social/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/ID25/social/statuses/6e241b53d05b5146fff13ad0eb9f83531f473e38"}}}}