Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Fix PubMed issue related to HTML character encoding. Closes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
dsifford committed May 17, 2016
1 parent f2b14bd commit 263ab84
Show file tree
Hide file tree
Showing 11 changed files with 519 additions and 515 deletions.
36 changes: 36 additions & 0 deletions .stylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"borderNone": true,
"brackets": true,
"colons": true,
"colors": true,
"commaSpace": true,
"commentSpace": true,
"cssLiteral": false,
"depthLimit": false,
"duplicates": false,
"efficient": true,
"emoji": true,
"enforceBlockStyle": false,
"enforceVarStyle": true,
"extendPref": "extend",
"globalDupe": true,
"indentSpaces": 4,
"leadingZero": true,
"maxWarnings": 10,
"maxWarningsKill": false,
"mixed": false,
"namingConvention": "lowercase-dash",
"namingConventionStrict": false,
"parenSpace": false,
"placeholders": true,
"quotePref": "single",
"semicolons": true,
"sortOrder": false,
"stackedProperties": true,
"universal": true,
"valid": false,
"whitespace": true,
"zeroUnits": true,
"zIndexDuplicates": false,
"zIndexNormalize": false
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 3.1.5
- Fix PubMed bug that resulted in citations with ampersands in the title to be parsed as `&`. HT @Da5idHatch

### 3.1.4
- Fix issue that caused peer reviews that contain special characters to confuse WordPress.

Expand Down
2 changes: 1 addition & 1 deletion academic-bloggers-toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Academic Blogger's Toolkit
* Plugin URI: https://wordpress.org/plugins/academic-bloggers-toolkit/
* Description: A plugin extending the functionality of Wordpress for academic blogging
* Version: 3.1.4
* Version: 3.1.5
* Author: Derek P Sifford
* Author URI: https://github.com/dsifford
* License: GPL3 or later
Expand Down
15 changes: 9 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
/* eslint-env node, es6 */

const gulp = require('gulp');
const uglify = require('gulp-uglify');
const browserSync = require('browser-sync').create();
const del = require('del');
const replace = require('gulp-replace');
// PHP
const jade = require('gulp-jade2php');
const gfi = require('gulp-file-insert');
const rename = require('gulp-rename');
// Styles
const stylus = require('gulp-stylus');
const poststylus = require('poststylus');
const autoprefixer = require('autoprefixer')({ browsers: ['last 2 versions'] });
const rename = require('gulp-rename');

const replace = require('gulp-replace');
const sourcemaps = require('gulp-sourcemaps');
// JS
const uglify = require('gulp-uglify');
const webpack = require('webpack-stream');
const webpackConfig = require('./webpack.config.js');
const webpackDevConfig = Object.assign({}, webpackConfig, {
Expand Down Expand Up @@ -93,7 +96,7 @@ gulp.task('static', () =>

gulp.task('stylus:dev', () =>
gulp.src([
'lib/css/*.styl',
'lib/**/*.styl',
], { base: './', })
.pipe(sourcemaps.init())
.pipe(stylus({
Expand All @@ -107,7 +110,7 @@ gulp.task('stylus:dev', () =>

gulp.task('stylus:prod', () =>
gulp.src([
'lib/css/*.styl',
'lib/**/*.styl',
], { base: './', })
.pipe(stylus({
use: [ poststylus([autoprefixer]), ],
Expand Down
247 changes: 98 additions & 149 deletions lib/css/admin.styl
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
$f5 = #f5f5f5
$555 = #555
$white = #fff
$555d66 = #555d66
$ebebeb = #ebebeb
$a0a5aa = a0a5aa
$c9 = #c9c9c9
$f9 = #f9f9f9

#abt_menubutton
&::after
content: ' '
height: 24px
position: absolute
&::after
content ' '
height 24px
position absolute


i.mce-i-abt_menu
font: normal 25px/1 'dashicons'
font normal 25px/1 'dashicons'


#abt_menubutton.mce-active,
Expand All @@ -17,163 +26,103 @@ i.mce-i-abt_menu
#abt_refgenerator.mce-active *,
#abt_refgenerator:hover,
#abt_refgenerator:hover *
color: rgb(50, 55, 60)
color: rgb(50, 55, 60)


.abt-reflist-button
background: 0
border: 1px solid #f5f5f5
border-radius: 2px
color: #555
cursor: pointer
height: 30px
outline: 0
min-width: 40px

&:hover
box-shadow: inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08)
border: 1px solid #555d66

&:active
@extend .abt-reflist-button:hover
background: #ebebeb
box-shadow: inset 0 2px 5px -3px rgba(0,0,0,.3)

&:disabled
color: #a0a5aa
box-shadow: none
border: 1px solid #f5f5f5
cursor: default
pointer-events: none
background 0
border 1px solid $f5
border-radius 2px
color $555
cursor pointer
height 30px
outline 0
min-width 40px

&:hover
box-shadow inset 0 1px 0 $white,0 1px 0 rgba(0,0,0,.08)
border 1px solid $555d66

&:active
@extend .abt-reflist-button:hover
background $ebebeb
box-shadow inset 0 2px 5px -3px rgba(0,0,0,.3)

&:disabled
color $a0a5aa
box-shadow none
border 1px solid $f5
cursor default
pointer-events none


// ========== Loading Spinner ===========
.sk-circle
border: 5px solid #f5f5f5
margin-left: auto
margin-right: auto
width: 40px
height: 40px
position: relative

.sk-child
width: 100%
height: 100%
position: absolute
left: 0
top: 0

&:before
content: ''
display: block
margin: 0 auto
width: 15%
height: 15%
background-color: #555d66
border-radius: 100%
animation: sk-circleBounceDelay 1.2s infinite ease-in-out both

.sk-circle2
transform: rotate(30deg)

&:before
animation-delay: -1.1s

.sk-circle3
transform: rotate(60deg)

&:before
animation-delay: -1s

.sk-circle4
transform: rotate(90deg)

&:before
animation-delay: -0.9s

.sk-circle5
transform: rotate(120deg)

&:before
animation-delay: -0.8s

.sk-circle6
transform: rotate(150deg)

&:before
animation-delay: -0.7s

.sk-circle7
transform: rotate(180deg)

&:before
animation-delay: -0.6s

.sk-circle8
transform: rotate(210deg)

&:before
animation-delay: -0.5s

.sk-circle9
transform: rotate(240deg)

&:before
animation-delay: -0.4s

.sk-circle10
transform: rotate(270deg)

&:before
animation-delay: -0.3s

.sk-circle11
transform: rotate(300deg)

&:before
animation-delay: -0.2s

.sk-circle12
transform: rotate(330deg)

&:before
animation-delay: -0.1s
border 5px solid $f5
margin-left auto
margin-right auto
width 40px
height 40px
position relative

.sk-child
width 100%
height 100%
position absolute
left 0
top 0

&:before
content ''
display block
margin 0 auto
width 15%
height 15%
background-color $555d66
border-radius 100%
animation sk-circleBounceDelay 1.2s infinite ease-in-out both

for num in 2 3 4 5 6 7 8 9 10 11 12
.sk-circle{num}
transform 'rotate(%sdeg)' % (30 * (num - 1))
&:before
animation-delay '%ss' % (-2.2 + (1 + (num - 1) * .1))


@keyframes sk-circleBounceDelay
0%,
100%,
80%
transform: scale(0)
0%,
100%,
80%
transform: scale(0)

40%
transform: scale(1)
40%
transform: scale(1)

// ================================
// PeerReviewMetabox.tsx
// ================================
.row-container
display: flex
flex-direction: column

.row
display: flex
padding: 15px 10px 15px 0
border-right: 1px solid #C9C9C9
border-left: 1px solid #C9C9C9
align-items: center

.even
background-color: #f9f9f9

.flex1
flex: 1
padding: 0 5px

.bordered
border: 1px solid #C9C9C9
border-bottom: 0

label
white-space: nowrap
padding: 0 10px
display flex
flex-direction column

.row
display flex
padding 15px 10px 15px 0
border-right 1px solid $c9
border-left 1px solid $c9
align-items center

.even
background-color $f9

.flex1
flex 1
padding 0 5px

.bordered
border 1px solid $c9
border-bottom 0

label
white-space nowrap
padding 0 10px
Loading

0 comments on commit 263ab84

Please sign in to comment.