From 0e512c3c76aa3a078b6a989575f4e8ee26f1e66f Mon Sep 17 00:00:00 2001 From: Andi Dittrich Date: Sun, 19 Apr 2020 22:31:45 +0200 Subject: [PATCH] option to set the token base styles #6 --- CHANGES.md | 4 ++ dist/enlighterjs.customizer.min.js | 4 +- package.json | 2 +- src/customizer/selectors.js | 4 +- src/ui/views/token-generic.jsx | 15 +++++ src/ui/views/tokens.jsx | 93 ------------------------------ 6 files changed, 25 insertions(+), 97 deletions(-) delete mode 100644 src/ui/views/tokens.jsx diff --git a/CHANGES.md b/CHANGES.md index f59c86c..eac259c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ ## Branch 2.X ## +### 2.2.0 ### + +* Added: option to set the token base styles inlcuding font-size - feature requested [on GitHub](https://github.com/EnlighterJS/Plugin.ThemeCustomizer/issues/6) + ### 2.1.0 ### * Added: `wp-skltn` component wrapper around the settings elements diff --git a/dist/enlighterjs.customizer.min.js b/dist/enlighterjs.customizer.min.js index 9a65d5e..2968baa 100644 --- a/dist/enlighterjs.customizer.min.js +++ b/dist/enlighterjs.customizer.min.js @@ -1,2 +1,2 @@ -/*! EnlighterJS Theme Customizer 2.1.0 | Mozilla Public License 2.0 | https://enlighterjs.org */ -var EnlighterJS_Customizer=function(e){"use strict";var t={document:document,window:window};function h(){return document}function n(){return window}function l(e){return null!=e&&0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,l=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){o=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(o)throw i}}}}function b(e,t,n){var r=h(),i=r.createElement(e);if(0div::before",linehover:".enlighter-t-${THEME_NAME}.enlighter-hover div.enlighter>div:hover",linespecial:".enlighter-t-${THEME_NAME} div.enlighter>div.enlighter-special",linespecialhover:".enlighter-t-${THEME_NAME} .enlighter-special:hover",buttons:{generic:".enlighter-t-${THEME_NAME} .enlighter-btn",codegroup:".enlighter-t-${THEME_NAME}.enlighter-v-codegroup .enlighter-codegroup-switch .enlighter-btn"},token:".enlighter-t-${THEME_NAME} .enlighter-"};function H(e){var t=[];e.name&&t.push("enlighter-"+e.name),e.className&&("string"==typeof e.className?t.push(e.className):t.push.apply(t,m(e.className)));for(var n=arguments.length,r=new Array(1e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,l=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){o=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(o)throw i}}}}function b(e,t,n){var r=h(),i=r.createElement(e);if(0div::before",linehover:".enlighter-t-${THEME_NAME}.enlighter-hover div.enlighter>div:hover",linespecial:".enlighter-t-${THEME_NAME} div.enlighter>div.enlighter-special",linespecialhover:".enlighter-t-${THEME_NAME} .enlighter-special:hover",buttons:{generic:".enlighter-t-${THEME_NAME} .enlighter-btn",codegroup:".enlighter-t-${THEME_NAME}.enlighter-v-codegroup .enlighter-codegroup-switch .enlighter-btn"},token:".enlighter-t-${THEME_NAME} .enlighter-",genericToken:".enlighter-t-${THEME_NAME} .enlighter span"};function H(e){var t=[];e.name&&t.push("enlighter-"+e.name),e.className&&("string"==typeof e.className?t.push(e.className):t.push.apply(t,m(e.className)));for(var n=arguments.length,r=new Array(1 + + + + + + + + diff --git a/src/ui/views/tokens.jsx b/src/ui/views/tokens.jsx deleted file mode 100644 index c95a452..0000000 --- a/src/ui/views/tokens.jsx +++ /dev/null @@ -1,93 +0,0 @@ -// ---------------------------------------------------------------------- -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. -// -- -// Copyright 2016-2020 Andi Dittrich -// ---------------------------------------------------------------------- - -// Internal "ReactDOM" -import * as React from 'dom-magic'; - -import {Token} from '../components/token.jsx'; -import {Container} from '../components/container.jsx'; - -export function TokenView(){ - return - -

Comments

- - - - - -

Keywords

- - - - - - - - - - - - -

Expressions/Literals

- - - - - - -

Strings

- - - - - - - -

Numbers

- - - - - - - -

Methods/Functions

- - - - - - -

Generic

- - - -

Language Specific

- - - - - - - - - -

Text Documents

- - - - - - - - - - -
; -} \ No newline at end of file