Skip to content

Commit

Permalink
9.4.2
Browse files Browse the repository at this point in the history
 - [Comment] Better styling for the Markdown Editor
  • Loading branch information
hrsetyono committed Feb 11, 2023
1 parent 816bf9a commit 86d849b
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/h-comment.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '2544420e7c46ebd8bdb914bf82bfbc79');
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '7113757c3c696ea941d80bee1c1ad0f5');
2 changes: 1 addition & 1 deletion dist/h-comment.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/h-comment.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions edje-wp-library.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
* License: MIT
* Author: Pixel Studio
* Author URI: https://pixelstudio.id
* Version: 9.4.1
* Version: 9.4.2
*/

if (!defined('WPINC')) { die; } // exit if accessed directly

// Constant
define('H_VERSION', '9.4.0');
define('H_VERSION', '9.4.2');
define('H_BASE', basename(dirname(__FILE__)).'/'.basename(__FILE__));

define('H_DIR', __DIR__); // for require
Expand Down
2 changes: 1 addition & 1 deletion module-comment/src/h-comment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import hEditor from './h-editor';
import './h-comment.scss';
import './h-comment.sass';

/**
* Create hEditor instance
Expand Down
81 changes: 81 additions & 0 deletions module-comment/src/h-comment.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
.h-editor
--bgColor: white
--textColor: var(--text, #2c3e50)
--borderColor: rgba(44, 62, 80, .1)

display: flex
flex-direction: column
position: relative
z-index: 10
margin: 0

*,
*::before,
*::after
box-sizing: border-box

textarea
background-color: var(--bgColor)
width: 100%
padding: 1rem
height: 10rem
border: 1px solid var(--borderColor)
line-height: 1.5

.h-editor__toolbar
display: flex
flex-wrap: wrap
background-color: var(--bgColor)
position: relative

width: fit-content
margin-bottom: 1rem
padding: 2px
border: 2px solid var(--borderColor)
border-radius: var(--gRadius, 4px)

> *
-ms-user-select: none
-webkit-user-select: none
-moz-user-select: none
user-select: none

a
cursor: pointer
display: flex
align-items: center
justify-content: center
height: 2.25rem
width: auto
padding: 0.25rem 0.5rem
color: var(--textColor)
text-decoration: none

a:hover
--textColor: #222
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8)
border-radius: var(--gRadius, 4px)

a:active
transform: translateY(1px)

svg
width: auto
height: 1rem

path
fill: var(--textColor)

i
font-style: normal
font-weight: 700

span
display: inline-block
margin-left: 0.25rem
font-size: var(--smallFontSize, 14px)

.tool-separator
margin: -2px 0.25rem
border-left: 2px solid var(--borderColor)
color: transparent
1 change: 0 additions & 1 deletion module-comment/src/h-comment.scss

This file was deleted.

Loading

0 comments on commit 86d849b

Please sign in to comment.