Skip to content

Commit

Permalink
Zukit updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-rudakov committed Jan 8, 2021
2 parents e936250 + 0444d69 commit d2710ea
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 11 deletions.
6 changes: 5 additions & 1 deletion zukit/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#### 1.1.0 / 2021-01-06
#### 1.1.2 / 2021-01-08
* fixed bug with `lookbehind` regex (Safari does not support it)
* fixed bug with `shape` type in `LoaderControl` component
* improved CSS to be compatible with WP 5.6

#### 1.1.0 / 2021-01-06
* added `withDebounce` and `withoutValues` params for `AdvTextControl` component
* renaming `ListInput` and `SelectItem` components
* implemented `ModalMessage` component
Expand Down
2 changes: 1 addition & 1 deletion zukit/dist/zukit-blocks.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zukit/dist/zukit-blocks.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zukit/dist/zukit.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions zukit/dist/zukit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zukit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zukit",
"version": "1.1.1",
"version": "1.1.2",
"repository": {
"type": "git",
"url": "https://github.com/picasso/zukit.git"
Expand Down
2 changes: 2 additions & 0 deletions zukit/src/sass/_zukit-basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ $custom-button-hover-text-color: white;
$settings-max-width: 1020px; //none;
$settings-left-width: 200px;
$settings-left-min-width: $settings-left-width + 60px;
$settings-sidebar-icon-size: 30px;

$basic-font-size: 14px;
$plugin-title-size: 40px;
$plugin-icon-width: 100px;
Expand Down
5 changes: 5 additions & 0 deletions zukit/src/sass/components/_adv-text-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ $advtext-help-margin: -16px; // margin 8px * 2
border: 1px solid $custom-button-border-color;
border-radius: 0 3px 3px 0;
box-shadow: none;

span.dashicons {
padding-left: 2px;
}

&.__with-label {
margin-bottom: 8px;
}
Expand Down
2 changes: 1 addition & 1 deletion zukit/src/sass/components/_list-input-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $list-input-close-size: $_button-svg-default-size + $list-input-padding;
overflow: hidden;
margin: 0 $list-input-padding $list-input-padding 0;

span {
span:not(.dashicons) {
color: $list-input-item-text-color;
padding: 0 0 0 $list-input-padding;
}
Expand Down
14 changes: 13 additions & 1 deletion zukit/src/sass/zukit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $divider-component-class: zukit-divider;

.components-base-control,
.components-button:not(.zukit-select-item__button):not(.__plugin_actions):not(.__exclude) {
font-size: $basic-font-size;
font-size: $basic-font-size !important;
color: $admin-grey-blue-color;
}

Expand Down Expand Up @@ -139,6 +139,8 @@ $divider-component-class: zukit-divider;
.components-base-control__help {
margin: 0 0 1em 1em;
color: $toggle-help-color;
font-size: 13px;
font-style: italic;
}

.components-toggle-control {
Expand Down Expand Up @@ -180,6 +182,13 @@ $divider-component-class: zukit-divider;
margin-bottom: 1.5em;
}

.block-editor-block-card .block-editor-block-icon svg {
width: $settings-sidebar-icon-size;
height: $settings-sidebar-icon-size;
max-width: $settings-sidebar-icon-size;
max-height: $settings-sidebar-icon-size;
}

.components-panel__body.is-opened {
.components-panel__body-title + div {
margin-top: 12px;
Expand Down Expand Up @@ -243,6 +252,9 @@ $divider-component-class: zukit-divider;
margin: 0 8px;
background-color: rgba(white, 0.5);
}
span.dashicons {
margin-right: 8px;
}

@each $color-name, $color-value in $admin-colors {
&.#{$color-name} {
Expand Down
4 changes: 2 additions & 2 deletions zukit/src/scripts/components/loader-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ const LoaderControl = ({
withoutControl
columns={ 3 }
options={ loaderOptions }
selectedItem={ shape }
selectedItem={ String(shape) }
onClick={ onChange }
transformValue={ value => value === 'none' ? noLoader : <Loader loaderHTML={ loaders[value] }/> }
transformValue={ value => value === 'none' ? noLoader : <Loader loaderHTML={ loaders[parseInt(value, 10)] }/> }
/>
<ToggleControl
label={ __('Reveal Loader', 'zukit') }
Expand Down

0 comments on commit d2710ea

Please sign in to comment.