Skip to content

Commit

Permalink
New plugin version: 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dashkevych committed Aug 2, 2022
1 parent 14f9b7a commit 70ed967
Show file tree
Hide file tree
Showing 11 changed files with 411 additions and 106 deletions.
19 changes: 14 additions & 5 deletions assets/css/admin/cpt.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 1.5em;
}

Expand All @@ -12,17 +12,17 @@
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-ms-flex-align: center;
align-items: center;
gap: 1em;
}

.wwp-form-group__item--color {
border: 1px solid #c3c4c7;
padding: 0.5em 1em;
background-color: #ffffff;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.04);
box-shadow: inset 0 1px 1px rgba(0,0,0,.04);
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .04);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .04);
border-radius: 2px;
}

Expand All @@ -32,4 +32,13 @@

.wwp-form-group__item .button.wp-color-result {
margin: auto;
}

#display-inactive:checked+label {
color: red;
font-weight: bold;
}

.post-new-php.post-type-greeter .pp-greeter_new {
display: none !important;
}
2 changes: 1 addition & 1 deletion assets/css/admin/cpt.min.css

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

22 changes: 14 additions & 8 deletions assets/css/admin/settings.css
Original file line number Diff line number Diff line change
@@ -1,42 +1,48 @@


/* global form controls */
.wwp-form-inline-control {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
gap: 1em;
}

.wwp-description {
max-width: 50ch;
}
.wwp-cookie-expiration > :first-child {

.wwp-cookie-expiration> :first-child {
-webkit-margin-before: 0;
margin-block-start: 0;
margin-block-start: 0;
}
.wwp-cookie-expiration + details {

.wwp-cookie-expiration+details {
-webkit-margin-before: 1em;
margin-block-start: 1em;
margin-block-start: 1em;
}

.wwp-clear-cache {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
gap: 1em;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-ms-flex-align: center;
align-items: center;
}

.wwp-form-notice {
display: none;
}

.wwp-form-notice[aria-hidden="false"] {
display: block;
font-weight: bold;
}

#wwp-clear-cache-updated {
color: green;
}

#wwp-clear-cache-error {
color: red;
}
77 changes: 39 additions & 38 deletions assets/css/public/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@
color: var(--wwp--color--text);
border: 1px solid;
-webkit-animation: slide 0.5s forwards;
animation: slide 0.5s forwards;
animation: slide 0.5s forwards;
-webkit-animation-delay: 1s;
animation-delay: 1s;
animation-delay: 1s;

overflow: scroll;
overflow-x: hidden;
}

[class*="welcomewp-message__"] > :first-child {
[class*="welcomewp-message__"]> :first-child {
-webkit-margin-before: 0;
margin-block-start: 0;
margin-block-start: 0;
}

[class*="welcomewp-message__"] > :last-child {
[class*="welcomewp-message__"]> :last-child {
-webkit-margin-after: 0;
margin-block-end: 0;
margin-block-end: 0;
}

.welcomewp-message > details[open] > summary {
.welcomewp-message>details[open]>summary {
-webkit-border-after: 1px solid;
border-block-end: 1px solid;
border-block-end: 1px solid;
}

.welcomewp-message > details:not([open]) > summary {
.welcomewp-message>details:not([open])>summary {
cursor: pointer;
}

.welcomewp-message.has-thumbnail > details[open] .welcomewp-message__header {
.welcomewp-message.has-thumbnail>details[open] .welcomewp-message__header {
display: none;
}

Expand All @@ -60,7 +60,7 @@
.sr-only:not(:focus):not(:active) {
clip: rect(0 0 0 0);
-webkit-clip-path: inset(50%);
clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
Expand All @@ -73,6 +73,7 @@
*/

@media screen and (max-width: 782px) {

#welcomewp-message[data-message-position="left-bottom"],
#welcomewp-message[data-message-position="right-bottom"] {
inset: auto 1em 1em 1em;
Expand All @@ -92,21 +93,21 @@

.welcomewp-message[data-message-position="left-bottom"] .welcomewp-message__footer {
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
}

@media screen and (min-width: 782px) {
.welcomewp-message[data-message-position="left-bottom"].has-thumbnail.has-excerpt .welcomewp-message__thumb {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
-ms-flex-order: 2;
order: 2;
}

.welcomewp-message[data-message-position="left-bottom"].has-thumbnail.has-excerpt .welcomewp-message__excerpt {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
-ms-flex-order: 1;
order: 1;
padding-inline: 1em 0;
}

Expand All @@ -126,8 +127,8 @@

.welcomewp-message[data-message-position="right-bottom"] .welcomewp-message__footer {
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
-ms-flex-pack: end;
justify-content: flex-end;
}

/**
Expand All @@ -136,12 +137,12 @@

.welcomewp-message.has-excerpt .welcomewp-message__excerpt {
-webkit-padding-end: 1em;
padding-inline-end: 1em;
padding-inline-end: 1em;
-webkit-padding-start: 0.125em;
padding-inline-start: 0.125em;
padding-inline-start: 0.125em;
-webkit-box-flex: 1;
-ms-flex: 1 1 0%;
flex: 1 1 0%;
-ms-flex: 1 1 0%;
flex: 1 1 0%;
}

/**
Expand All @@ -155,8 +156,8 @@
display: flex;
gap: 1em;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-ms-flex-align: center;
align-items: center;
}

/**
Expand All @@ -172,12 +173,12 @@

.welcomewp-message__header::marker {
-webkit-margin-end: 1em;
margin-inline-end: 1em;
margin-inline-end: 1em;
}

.welcomewp-message.has-thumbnail:not(.has-excerpt) .welcomewp-message__header {
padding: calc( 1em / 4 );
padding: calc( var(--wp--style--block-gap, 1em) / 4 );
padding: calc(1em / 4);
padding: calc(var(--wp--style--block-gap, 1em) / 4);
}

.welcomewp-message__header .welcomewp-message__close-button {
Expand All @@ -186,10 +187,10 @@
inset-inline-end: 0.5em;
z-index: 10;
-ms-flex-item-align: start;
align-self: flex-start;
align-self: flex-start;
padding: 0.125em;
-webkit-margin-start: auto;
margin-inline-start: auto;
margin-inline-start: auto;
}

/**
Expand All @@ -212,8 +213,8 @@
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-ms-flex-align: center;
align-items: center;
gap: 0.5em;
}

Expand Down Expand Up @@ -247,8 +248,8 @@
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-ms-flex-align: center;
align-items: center;
line-height: 1;
gap: 0.5em
}
Expand All @@ -266,8 +267,8 @@
/* active admin bar */

.admin-bar .welcomewp-message {
-webkit-margin-before: calc( 32px + 1em );
margin-block-start: calc( 32px + 1em );
-webkit-margin-before: calc( 32px + var(--wp--style--block-gap, 1em) );
margin-block-start: calc( 32px + var(--wp--style--block-gap, 1em) );
-webkit-margin-before: calc(32px + 1em);
margin-block-start: calc(32px + 1em);
-webkit-margin-before: calc(32px + var(--wp--style--block-gap, 1em));
margin-block-start: calc(32px + var(--wp--style--block-gap, 1em));
}
Loading

0 comments on commit 70ed967

Please sign in to comment.