first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,26 @@
(function ($) {
"use strict";
function which_users() {
var $this = $(this),
$item = $this.parents('.widget').eq(0),
$roles = $item.find('.widget_options-roles');
if ($this.val() == 'logged_in') {
$roles.show();
} else {
$roles.hide();
}
}
function refresh_all_items() {
$('.widget_options-which_users select').each(which_users);
}
$(document)
.on('change', '.widget_options-which_users select', which_users)
.on('widget-updated', refresh_all_items)
.ready(refresh_all_items);
}(jQuery));

View File

@@ -0,0 +1 @@
!function(e){"use strict";function t(){var t=e(this),i=t.parents(".widget").eq(0),n=i.find(".widget_options-roles");"logged_in"==t.val()?n.show():n.hide()}function i(){e(".widget_options-which_users select").each(t)}e(document).on("change",".widget_options-which_users select",t).on("widget-updated",i).ready(i)}(jQuery);

View File

@@ -0,0 +1,164 @@
.jp-cc-modal-background {
&, &:before, &:after,
& *, & *:before, & *:after {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box;
}
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100%;
width: 100%;
background: rgba(0,0,0,0.70);
z-index: 100100;
overflow-y: scroll;
.jp-cc-modal-wrap {
position: absolute;
top: 60px;
margin-bottom: 60px;
left: 50%;
width: 550px;
margin-left: -300px;
background-color: #fff;
box-shadow: 0 3px 6px rgba(0,0,0,.3);
z-index: 100105;
transition: height .2s, margin-top .2s;
@media screen and ( max-width: 520px ) {
width: auto;
margin-left: 0;
top: 10px;
right: 10px;
bottom: 10px;
left: 10px;
}
}
.jp-cc-modal-header {
position: absolute;
top: 0;
right: 0;
left: 0;
height: 36px;
padding: 0 36px 0 16px;
font-size: 18px;
font-weight: 600;
line-height: 36px;
background: #fcfcfc;
border-bottom: 1px solid #dfdfdf;
.jp-cc-modal-close {
position: absolute;
top: 0;
right: 0;
width: 36px;
height: 36px;
padding: 0;
color: #666;
text-align: center;
background: 0 0;
border: none;
cursor: pointer;
&::before {
font: 400 20px/36px dashicons;
vertical-align: top;
speak: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
width: 36px;
height: 36px;
content: '\f158';
}
}
}
.jp-cc-modal-content {
padding: 52px 16px 60px;
div.error {
margin: 0 0 10px;
}
p {
margin-top: 0;
}
textarea {
width: 100%;
}
@media screen and (max-width: 782px) {
padding: 50px 16px 60px;
}
}
.jp-cc-modal-footer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 8px 16px;
background: #fcfcfc;
border-top: 1px solid #dfdfdf;
.cancel {
line-height: 25px;
float: left;
.no-button {
border: 0;
padding: 0;
background: none;
cursor: pointer;
&.link-button {
color: #0073aa;
text-decoration: underline;
}
}
.submitdelete {
text-decoration: none;
padding: 1px 2px;
}
@media screen and (max-width: 782px) {
line-height: 32px;
}
}
.jp-cc-submit {
line-height: 23px;
float: right;
button {
float: right;
margin-bottom: 0;
}
.spinner {
float: left;
vertical-align: middle;
}
}
}
&.tabbed-content {
.jp-cc-modal-content {
padding: 36px 0 44px;
}
}
}

View File

@@ -0,0 +1,303 @@
.jp-cc-field-conditions {
.jp-cc-alert-box {
}
.facet-builder {
a {
text-decoration: none;
}
.facet-groups {
display: none;
.facet-group-wrap {
.facet-group {
box-shadow: 0 1px 0 #ccc;
color: #555;
border: 1px solid #ccc;
background: #f7f7f7;
}
&:last-child .and,
.add-or {
em,
a,
button {
color: #0073aa;
cursor: pointer;
&::before {
content: "+ ";
}
}
}
}
}
.facet-list {
}
.facet {
position: relative;
padding: 12px 30px 6px 10px;
border-bottom: 1px solid #e1e1e1;
border-top: 1px solid #fff;
&:first-child {
border-top: 0;
.or {
display: none;
}
}
&::before,
&::after {
display: table;
content: "";
line-height: 0;
}
&::after {
clear: both;
}
}
.facet-col {
float: left;
margin-right: 20px;
padding-bottom: 6px;
position: relative;
min-width: 175px;
select,
input {
margin: 0;
max-width: 100%;
}
}
.jp-cc-facet-target {
position: relative;
max-width: 240px;
* {
box-sizing: border-box;
}
select,
.jpselect2-container .jpselect2-selection {
padding-left: 28px;
// Rendered Option
.jpselect2-selection__rendered {
padding-left: 3px;
}
}
.jp-cc-not-operand {
cursor: pointer;
position: absolute;
left: 2px;
top: 2px;
z-index: 10;
line-height: 24px;
height: 25px;
background: #f7f7f7;
border: 1px solid transparent;
border-radius: 2px 0 0 2px;
border-right: 1px solid #ddd;
text-align: center;
span {
font-size: 1.25em;
}
&::before {
color: #555;
font-size: 16px;
line-height: 24px;
}
input[type="checkbox"] {
display: none;
}
&:focus {
outline: none;
border: 1px solid #5b9dd9;
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
}
}
&.not-operand-checked {
.jp-cc-not-operand {
span,
&::before {
color: #a00;
}
}
select,
.jpselect2-container .jpselect2-selection {
padding-left: 58px;
}
}
.jpselect2-container-active {
.jpselect2-choices,
.jpselect2-single {
border-color: #5b9dd9;
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
}
}
}
.facet-actions {
position: absolute;
right: 6px;
top: 18px;
button {
border: 0;
padding: 0;
background: none;
margin-left: 5px;
}
}
.dashicons-plus-alt,
.dashicons-dismiss {
color: #999;
}
/* + AND + OR link stylings */
.or {
color: #484848;
font-weight: 500;
margin-left: -21px;
left: 50%;
position: absolute;
top: -6px;
font-style: normal;
line-height: 10px;
text-transform: uppercase;
}
.add-or {
border-top: 1px solid #fff;
text-align: center;
> .add {
left: -6.5px;
position: relative;
top: -9px;
}
}
.and {
border-bottom: 1px dashed #e1e1e1;
margin: .5em 0 1.7em;
text-align: center;
}
.or,
.add-or > .add {
background: #f7f7f7;
font-size: 1.1em;
padding: 0 10px;
}
.and, .add-or {
em,
a,
button,
label {
background: #fff;
font-size: 1.1em;
font-style: normal;
margin: 0 10px;
padding: 0 10px;
position: relative;
top: 9px;
text-transform: uppercase;
box-shadow: none;
color: #484848;
cursor: default;
border: 0;
}
em {
color: #484848;
}
}
}
/* Conditionals */
.has-conditions {
.facet-groups {
display: block;
}
.no-facet-groups {
display: none;
}
}
.jpselect2 {
select {
width: 100%;
}
}
}
//#side-sortables {
#jp-cc-restriction-editor_content {
.facet-builder {
.facet-col {
width: 100%;
float: none;
max-width: none;
}
.facet-actions {
right: 6px;
top: 18px;
}
}
.jp-cc-field-section .jp-cc-field {
margin-bottom: .25em;
}
.jpselect2-container {
width: 100%;
}
}
//}

View File

@@ -0,0 +1,58 @@
.jp-cc-field-section {
.jp-cc-field {
margin-bottom: 1em;
> label {
display: block;
font-weight: bold;
}
}
}
.jp-cc-field-editor {
#insert-media-button {
display: none;
}
}
.jp-cc-field-link {
input {
margin-right: 24px;
display: block;
}
button.dashicons {
float: right;
width: 1.5em;
height: 1.5em;
line-height: 1;
padding: 0;
font-size: 16px;
vertical-align: sub;
margin-top: 1px;
box-shadow: 0 0 0 #cccccc;
}
}
.jp-cc-field-checkbox {
position: relative;
label {
margin-left: 1.5em;
&.jp-cc-desc {
display: inline;
font-weight:inherit;
font-size:inherit;
margin: 0 0 1em;
}
}
input[type="checkbox"] {
position: absolute;
top: .25em;
}
}

View File

@@ -0,0 +1,185 @@
/* jQuery select2 Styles for Popup Maker.
The bulk of this is to style jquery select2 to better resemble the default WP dashboard inputs.
*/
.jpselect2 {
//region Select2 Core Styles
// These are here for the namespaced jpselect2 and so that we can properly address issues when other plugins do things wrong.
.jpselect2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
vertical-align: middle;
@import "vendor/select2/single";
@import "vendor/select2/multiple";
}
@import "vendor/select2/dropdown";
.jpselect2-close-mask {
border: 0;
margin: 0;
padding: 0;
display: block;
position: fixed;
left: 0;
top: 0;
min-height: 100%;
min-width: 100%;
height: auto;
width: auto;
opacity: 0;
z-index: 99;
// styles required for IE to work
background-color: #fff;
filter: alpha(opacity=0);
}
.jpselect2-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
}
@import "vendor/select2/theme/default/layout";
@import "vendor/select2/theme/classic/layout";
//endregion Select2 Core Styles
> .jpselect2-container--below.jpselect2-container--open + .jpselect2-container--open,
> .jpselect2-container--below.jpselect2-container--open + .jp-cc-desc + .jpselect2-container--open {
position: absolute !important;
}
position: relative;
// All Select2 Containers - Wraps Both Selectbox & Dropdown Elements
.jpselect2-container {
// Selectbox
.jpselect2-selection {
margin: 1px;
font-size: 14px;
border-radius: 0;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
border-color: #ddd;
transition: 0.05s border-color ease-in-out;
}
&.jpselect2-container--focus {
.jpselect2-selection {
outline: none;
border-color: #5b9dd9;
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
}
}
// Single Select
.jpselect2-selection--single {
// Rendered Option
.jpselect2-selection__rendered {
//padding-left: 0;
}
}
// Multiple Select
.jpselect2-selection--multiple {
overflow-y: auto;
max-height: 150px;
min-height: 28px;
line-height: 16px;
font-size: 12px;
.jpselect2-selection__clear {
margin-right: 3px;
}
.jpselect2-selection__rendered {
}
.jpselect2-search--inline {
margin: 0;
// Search Field
.jpselect2-search__field {
border-color: #ddd;
padding: 3px 5px 0;
min-width: 5em;
}
}
.jpselect2-selection__choice {
margin-top: 4px;
margin-bottom: 0;
}
}
// Dropdown
.jpselect2-dropdown {
margin: 0 1px;
border-color: #ddd;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
// Compensate for the margin applied to the Selectbox.
max-width: calc(100% - 4px);
position: relative;
// Search Field
.jpselect2-search__field {
border-color: #ddd;
padding: 3px 5px;
min-width: 5em;
}
// Results
.jpselect2-results {
// Each result set. Can be nested.
.jpselect2-results__option {
padding: 3px 6px;
margin: 0;
&[aria-selected=true] {
}
}
.jpselect2-results__option[role=group] {
padding: 3px 0 0;
.jpselect2-results__group {
padding: 0 6px;
}
}
.jpselect2-results__options--nested {
padding: 3px 6px 0;
}
// Hover
.jpselect2-results__option--highlighted {
background: #3e86d0;
}
}
}
}
}

View File

@@ -0,0 +1,107 @@
$tab-color: #E4E4E4;
.jp-cc-tabs-container {
box-sizing: border-box;
> * {
box-sizing: border-box;
}
position: relative;
ul.tabs {
margin: 0;
.tab {
font-size: 1.2em;
a {
padding: 8px 16px;
border: 0;
display: block;
text-decoration: none;
&:focus {
box-shadow: none;
}
}
}
}
.tab-content {
display: none;
padding: 16px;
&.active {
display: block;
}
.form-table {
display: block;
&:first-child {
margin-top: 0;
}
}
}
&.vertical-tabs {
min-height: 100px;
//padding-left: 150px;
//width: calc(100% - 150px);
padding-left: 140px;
width: 100%;
ul.tabs {
width: 140px;
min-height: 100%;
display: block;
position: absolute;
left: 0;
top: 0;
margin: 0;
//background: #23282D;
background: #FCFCFC;
border-top: 0;
border-right: 1px solid #DFDFDF;
.tab {
margin: 0;
display: block;
border-bottom: 1px solid #eee;
a {
color: #000;
}
&:hover {
background-color: #0073AA;
}
&.active {
background-color: #32373C;
a {
color: #fff;
}
}
&:first-child {
margin-top: 8px;
}
}
}
.tab-content {
}
}
}

View File

@@ -0,0 +1,47 @@
@import 'partials/admin_modal';
@import 'partials/facet_builder';
@import 'partials/fields';
@import 'partials/jp_select2';
@import 'partials/tabs';
.jp-cc-field-multicheck.roles-wrapper {
ul {
columns: 3;
}
}
button.no-button {
border: 0;
padding: 0;
background: none;
cursor: pointer;
&.link-button {
color: #0073aa;
&:hover {
color: #00a0d2;
}
}
&.delete-button {
color: #a00;
&:hover {
color: #f00;
}
}
}
table#jp-cc-restrictions {
.dashicons-menu {
cursor: move;
}
.row-actions {
a {
text-decoration: none;
border: none;
}
}
}

View File

@@ -0,0 +1,73 @@
.jpselect2-dropdown {
background-color: white;
border: 1px solid #aaa;
border-radius: 4px;
box-sizing: border-box;
display: block;
position: absolute;
left: -100000px;
width: 100%;
z-index: 1051;
}
.jpselect2-results {
display: block;
}
.jpselect2-results__options {
list-style: none;
margin: 0;
padding: 0;
}
.jpselect2-results__option {
padding: 6px;
user-select: none;
-webkit-user-select: none;
&[aria-selected] {
cursor: pointer;
}
}
.jpselect2-container--open .jpselect2-dropdown {
left: 0;
}
.jpselect2-container--open .jpselect2-dropdown--above {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.jpselect2-container--open .jpselect2-dropdown--below {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.jpselect2-search--dropdown {
display: block;
padding: 4px;
.jpselect2-search__field {
padding: 4px;
width: 100%;
box-sizing: border-box;
&::-webkit-search-cancel-button {
-webkit-appearance: none;
}
}
&.jpselect2-search--hide {
display: none;
}
}

View File

@@ -0,0 +1,35 @@
.jpselect2-selection--multiple {
box-sizing: border-box;
cursor: pointer;
display: block;
min-height: 32px;
user-select: none;
-webkit-user-select: none;
.jpselect2-selection__rendered {
display: inline-block;
overflow: hidden;
padding-left: 8px;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.jpselect2-search--inline {
float: left;
.jpselect2-search__field {
box-sizing: border-box;
border: none;
font-size: 100%;
margin-top: 5px;
padding: 0;
&::-webkit-search-cancel-button {
-webkit-appearance: none;
}
}
}

View File

@@ -0,0 +1,34 @@
.jpselect2-selection--single {
box-sizing: border-box;
cursor: pointer;
display: block;
height: 28px;
user-select: none;
-webkit-user-select: none;
.jpselect2-selection__rendered {
display: block;
padding-left: 8px;
padding-right: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.jpselect2-selection__clear {
position: relative;
}
}
&[dir="rtl"] {
.jpselect2-selection--single {
.jpselect2-selection__rendered {
padding-right: 8px;
padding-left: 20px;
}
}
}

View File

@@ -0,0 +1,48 @@
.jpselect2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
vertical-align: middle;
@import "single";
@import "multiple";
}
@import "dropdown";
.jpselect2-close-mask {
border: 0;
margin: 0;
padding: 0;
display: block;
position: fixed;
left: 0;
top: 0;
min-height: 100%;
min-width: 100%;
height: auto;
width: auto;
opacity: 0;
z-index: 99;
// styles required for IE to work
background-color: #fff;
filter: alpha(opacity=0);
}
.jpselect2-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
}
@import "theme/default/layout";
@import "theme/classic/layout";

View File

@@ -0,0 +1,13 @@
// https://github.com/twbs/bootstrap-sass/blob/3.3-stable/assets/stylesheets/bootstrap/mixins/_gradients.scss#L17-L27
// Vertical gradient, from top to bottom
//
// Creates two color stops, start and end, by specifying a color and position for each color stop.
// Color stops are not available in IE9 and below.
@mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
background-image: -o-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Opera 12
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
}

View File

@@ -0,0 +1,34 @@
$remove-color: #888 !default;
$remove-hover-color: #555 !default;
$remove-width: 20px !default;
$selection-color: #444 !default;
$border-color: #aaa !default;
$border-radius: 4px !default;
$focus-border-color: #5897fb !default;
$container-height: 28px !default;
$selection-bg-top-color: white !default;
$selection-bg-bottom-color: #eeeeee !default;
$container-placeholder-color: #999 !default;
$container-focus-border-color: blue !default;
$selection-opened-bg-top-color: $selection-bg-bottom-color !default;
$selection-opened-bg-bottom-color: $selection-bg-top-color !default;
$dropdown-z-index: 1 !default;
$dropdown-bg-color: $selection-bg-top-color !default;
$results-max-height: 200px !default;
$results-nested-padding: 20px !default;
$results-choice-bg-hover-color: #3875d7 !default;
$results-choice-fg-hover-color: white !default;
$results-choice-fg-unselectable-color: grey !default;

View File

@@ -0,0 +1,93 @@
.jpselect2-selection--multiple {
background-color: white;
border: 1px solid $border-color;
border-radius: $border-radius;
cursor: text;
outline: 0;
&:focus {
border: 1px solid $focus-border-color;
}
.jpselect2-selection__rendered {
list-style: none;
margin: 0;
padding: 0 5px;
}
.jpselect2-selection__clear {
display: none;
}
.jpselect2-selection__choice {
background-color: #e4e4e4;
border: 1px solid $border-color;
border-radius: $border-radius;
cursor: default;
float: left;
margin-right: 5px;
margin-top: 5px;
padding: 0 5px;
}
.jpselect2-selection__choice__remove {
color: $remove-color;
cursor: pointer;
display: inline-block;
font-weight: bold;
margin-right: 2px;
&:hover {
color: $remove-hover-color;
}
}
}
&[dir="rtl"] {
.jpselect2-selection--multiple {
.jpselect2-selection__choice {
float: right;
}
.jpselect2-selection__choice {
margin-left: 5px;
margin-right: auto;
}
.jpselect2-selection__choice__remove {
margin-left: 2px;
margin-right: auto;
}
}
}
&.jpselect2-container--open {
.jpselect2-selection--multiple {
border: 1px solid $focus-border-color;
}
&.jpselect2-container--above {
.jpselect2-selection--multiple {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
&.jpselect2-container--below {
.jpselect2-selection--multiple {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
}
}

View File

@@ -0,0 +1,124 @@
.jpselect2-selection--single {
background-color: mix($selection-bg-top-color, $selection-bg-bottom-color);
border: 1px solid $border-color;
border-radius: $border-radius;
outline: 0;
@include gradient-vertical($selection-bg-top-color, $selection-bg-bottom-color, 50%, 100%);
&:focus {
border: 1px solid $focus-border-color;
}
.jpselect2-selection__rendered {
color: #444;
line-height: 28px;
}
.jpselect2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold;
margin-right: 10px;
}
.jpselect2-selection__placeholder {
color: #999;
}
.jpselect2-selection__arrow {
background-color: #ddd;
border: none;
border-left: 1px solid $border-color;
border-top-right-radius: $border-radius;
border-bottom-right-radius: $border-radius;
height: 26px;
position: absolute;
top: 1px;
right: 1px;
width: 20px;
@include gradient-vertical(#eeeeee, #cccccc, 50%, 100%);
b {
border-color: #888 transparent transparent transparent;
border-style: solid;
border-width: 5px 4px 0 4px;
height: 0;
left: 50%;
margin-left: -4px;
margin-top: -2px;
position: absolute;
top: 50%;
width: 0;
}
}
}
&[dir="rtl"] {
.jpselect2-selection--single {
.jpselect2-selection__clear {
float: left;
}
.jpselect2-selection__arrow {
border: none;
border-right: 1px solid $border-color;
border-radius: 0;
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
left: 1px;
right: auto;
}
}
}
&.jpselect2-container--open {
.jpselect2-selection--single {
border: 1px solid $focus-border-color;
.jpselect2-selection__arrow {
background: transparent;
border: none;
b {
border-color: transparent transparent #888 transparent;
border-width: 0 4px 5px 4px;
}
}
}
&.jpselect2-container--above {
.jpselect2-selection--single {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
@include gradient-vertical($selection-opened-bg-bottom-color, $selection-opened-bg-top-color, 0%, 50%);
}
}
&.jpselect2-container--below {
.jpselect2-selection--single {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
@include gradient-vertical($selection-opened-bg-top-color, $selection-opened-bg-bottom-color, 50%, 100%);
}
}
}

View File

@@ -0,0 +1,64 @@
@import "defaults";
@import "../../mixins/gradients";
.jpselect2-container--classic {
@import "single";
@import "multiple";
.jpselect2-search--dropdown {
.jpselect2-search__field {
border: 1px solid $border-color;
outline: 0;
}
}
.jpselect2-search--inline {
.jpselect2-search__field {
outline: 0;
box-shadow: none;
}
}
.jpselect2-dropdown {
background-color: $dropdown-bg-color;
border: 1px solid transparent;
}
.jpselect2-dropdown--above {
border-bottom: none;
}
.jpselect2-dropdown--below {
border-top: none;
}
.jpselect2-results > .jpselect2-results__options {
max-height: $results-max-height;
overflow-y: auto;
}
.jpselect2-results__option {
&[role=group] {
padding: 0;
}
&[aria-disabled=true] {
color: $results-choice-fg-unselectable-color;
}
}
.jpselect2-results__option--highlighted[aria-selected] {
background-color: $results-choice-bg-hover-color;
color: $results-choice-fg-hover-color;
}
.jpselect2-results__group {
cursor: default;
display: block;
padding: 6px;
}
&.jpselect2-container--open .jpselect2-dropdown {
border-color: $focus-border-color;
}
}

View File

@@ -0,0 +1,98 @@
.jpselect2-selection--multiple {
background-color: white;
border: 1px solid #aaa;
border-radius: 4px;
cursor: text;
.jpselect2-selection__rendered {
box-sizing: border-box;
list-style: none;
margin: 0;
padding: 0 5px;
width: 100%;
li {
list-style: none;
}
}
.jpselect2-selection__placeholder {
color: #999;
margin-top: 5px;
float: left;
}
.jpselect2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold;
margin-top: 5px;
margin-right: 10px;
}
.jpselect2-selection__choice {
background-color: #e4e4e4;
border: 1px solid #aaa;
border-radius: 4px;
cursor: default;
float: left;
margin-right: 5px;
margin-top: 5px;
padding: 0 5px;
}
.jpselect2-selection__choice__remove {
color: #999;
cursor: pointer;
display: inline-block;
font-weight: bold;
margin-right: 2px;
&:hover {
color: #333;
}
}
}
&[dir="rtl"] {
.jpselect2-selection--multiple {
.jpselect2-selection__choice, .jpselect2-selection__placeholder, .jpselect2-search--inline {
float: right;
}
.jpselect2-selection__choice {
margin-left: 5px;
margin-right: auto;
}
.jpselect2-selection__choice__remove {
margin-left: 2px;
margin-right: auto;
}
}
}
&.jpselect2-container--focus {
.jpselect2-selection--multiple {
border: solid black 1px;
outline: 0;
}
}
&.jpselect2-container--disabled {
.jpselect2-selection--multiple {
background-color: #eee;
cursor: default;
}
.jpselect2-selection__choice__remove {
display: none;
}
}

View File

@@ -0,0 +1,83 @@
.jpselect2-selection--single {
background-color: #fff;
border: 1px solid #aaa;
border-radius: 4px;
.jpselect2-selection__rendered {
color: #444;
line-height: 28px;
}
.jpselect2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold;
}
.jpselect2-selection__placeholder {
color: #999;
}
.jpselect2-selection__arrow {
height: 26px;
position: absolute;
top: 1px;
right: 1px;
width: 20px;
b {
border-color: #888 transparent transparent transparent;
border-style: solid;
border-width: 5px 4px 0 4px;
height: 0;
left: 50%;
margin-left: -4px;
margin-top: -2px;
position: absolute;
top: 50%;
width: 0;
}
}
}
&[dir="rtl"] {
.jpselect2-selection--single {
.jpselect2-selection__clear {
float: left;
}
.jpselect2-selection__arrow {
left: 1px;
right: auto;
}
}
}
&.jpselect2-container--disabled {
.jpselect2-selection--single {
background-color: #eee;
cursor: default;
.jpselect2-selection__clear {
display: none;
}
}
}
&.jpselect2-container--open {
.jpselect2-selection--single {
.jpselect2-selection__arrow {
b {
border-color: transparent transparent #888 transparent;
border-width: 0 4px 5px 4px;
}
}
}
}

View File

@@ -0,0 +1,97 @@
.jpselect2-container--default {
@import "single";
@import "multiple";
&.jpselect2-container--open.jpselect2-container--above {
.jpselect2-selection--single, .jpselect2-selection--multiple {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
&.jpselect2-container--open.jpselect2-container--below {
.jpselect2-selection--single, .jpselect2-selection--multiple {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
}
.jpselect2-search--dropdown {
.jpselect2-search__field {
border: 1px solid #aaa;
}
}
.jpselect2-search--inline {
.jpselect2-search__field {
background: transparent;
border: none;
outline: 0;
box-shadow: none;
-webkit-appearance: textfield;
}
}
.jpselect2-results > .jpselect2-results__options {
max-height: 200px;
overflow-y: auto;
}
.jpselect2-results__option {
&[role=group] {
padding: 0;
}
&[aria-disabled=true] {
color: #999;
}
&[aria-selected=true] {
background-color: #ddd;
}
.jpselect2-results__option {
padding-left: 1em;
.jpselect2-results__group {
padding-left: 0;
}
.jpselect2-results__option {
margin-left: -1em;
padding-left: 2em;
.jpselect2-results__option {
margin-left: -2em;
padding-left: 3em;
.jpselect2-results__option {
margin-left: -3em;
padding-left: 4em;
.jpselect2-results__option {
margin-left: -4em;
padding-left: 5em;
.jpselect2-results__option {
margin-left: -5em;
padding-left: 6em;
}
}
}
}
}
}
}
.jpselect2-results__option--highlighted[aria-selected] {
background-color: #5897fb;
color: white;
}
.jpselect2-results__group {
cursor: default;
display: block;
padding: 6px;
}
}

View File

@@ -0,0 +1,11 @@
.widget_options-roles {
clear: both;
overflow: hidden;
label {
width: 50%;
display: inline-block;
float: left;
margin-top: 5px;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,15 @@
.widget_options-roles {
clear: both;
overflow: hidden;
}
.widget_options-roles label {
width: 50%;
display: inline-block;
float: left;
margin-top: 5px;
}
/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWVkaXRvci5jc3MiLCJzb3VyY2VzIjpbIndpZGdldC1lZGl0b3Iuc2NzcyJdLCJzb3VyY2VzQ29udGVudCI6WyIud2lkZ2V0X29wdGlvbnMtcm9sZXMge1xuICBjbGVhcjogYm90aDtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcblxuICBsYWJlbCB7XG4gICAgd2lkdGg6IDUwJTtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgZmxvYXQ6IGxlZnQ7XG4gICAgbWFyZ2luLXRvcDogNXB4O1xuICB9XG59Il0sIm1hcHBpbmdzIjoiQUFBQSxBQUFBLHFCQUFxQixDQUFDO0VBQ3BCLEtBQUssRUFBRSxJQUFLO0VBQ1osUUFBUSxFQUFFLE1BQU87Q0FRbEI7O0FBVkQsQUFJRSxxQkFKbUIsQ0FJbkIsS0FBSyxDQUFDO0VBQ0osS0FBSyxFQUFFLEdBQUk7RUFDWCxPQUFPLEVBQUUsWUFBYTtFQUN0QixLQUFLLEVBQUUsSUFBSztFQUNaLFVBQVUsRUFBRSxHQUFJO0NBQ2pCIiwibmFtZXMiOltdfQ== */
/*# sourceMappingURL=widget-editor.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"sources":["widget-editor.scss","widget-editor.css"],"names":[],"mappings":"AAAA;EACE,YAAY;EACZ,iBAAiB;CAQlB;;AAVD;EAKI,WAAW;EACX,sBAAsB;EACtB,YAAY;EACZ,gBAAgB;CACjB;;ACGH,8rBAA8rB","file":"widget-editor.css","sourcesContent":[".widget_options-roles {\n clear: both;\n overflow: hidden;\n\n label {\n width: 50%;\n display: inline-block;\n float: left;\n margin-top: 5px;\n }\n}",".widget_options-roles {\n clear: both;\n overflow: hidden;\n}\n\n.widget_options-roles label {\n width: 50%;\n display: inline-block;\n float: left;\n margin-top: 5px;\n}\n\n/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWVkaXRvci5jc3MiLCJzb3VyY2VzIjpbIndpZGdldC1lZGl0b3Iuc2NzcyJdLCJzb3VyY2VzQ29udGVudCI6WyIud2lkZ2V0X29wdGlvbnMtcm9sZXMge1xuICBjbGVhcjogYm90aDtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcblxuICBsYWJlbCB7XG4gICAgd2lkdGg6IDUwJTtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgZmxvYXQ6IGxlZnQ7XG4gICAgbWFyZ2luLXRvcDogNXB4O1xuICB9XG59Il0sIm1hcHBpbmdzIjoiQUFBQSxBQUFBLHFCQUFxQixDQUFDO0VBQ3BCLEtBQUssRUFBRSxJQUFLO0VBQ1osUUFBUSxFQUFFLE1BQU87Q0FRbEI7O0FBVkQsQUFJRSxxQkFKbUIsQ0FJbkIsS0FBSyxDQUFDO0VBQ0osS0FBSyxFQUFFLEdBQUk7RUFDWCxPQUFPLEVBQUUsWUFBYTtFQUN0QixLQUFLLEVBQUUsSUFBSztFQUNaLFVBQVUsRUFBRSxHQUFJO0NBQ2pCIiwibmFtZXMiOltdfQ== */\n"]}

View File

@@ -0,0 +1 @@
.widget_options-roles{clear:both;overflow:hidden}.widget_options-roles label{width:50%;display:inline-block;float:left;margin-top:5px}