Skip to content

Commit

Permalink
Merge pull request #19 from piatkowski/dev
Browse files Browse the repository at this point in the history
Multicheckbox update
  • Loading branch information
piatkowski authored Jul 24, 2022
2 parents c2a22a0 + dbe25f4 commit e37a53e
Show file tree
Hide file tree
Showing 29 changed files with 151 additions and 80 deletions.
12 changes: 12 additions & 0 deletions assets/css/admin.css

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

2 changes: 1 addition & 1 deletion assets/css/admin.css.map

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

2 changes: 1 addition & 1 deletion assets/css/admin.min.css

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions assets/css/admin.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
::placeholder, ::-moz-placeholder, ::-webkit-input-placeholder
color: #9b9b9b !important
font-size: 12px !important

.wc-kalkulator-wrapper
html
scroll-padding-top: 100px
Expand Down Expand Up @@ -37,13 +41,15 @@
li
box-shadow: 0px 5px 10px #ccc
margin-bottom: 5px

&.welcome
box-shadow: none
padding: 30px
text-align: center
font-size: 16px
border: 1px dashed #aaa
margin: 30px

.field
border: 1px solid #AAA
background-color: #FFFFFF
Expand All @@ -52,6 +58,7 @@
background-color: #F5F5F5
padding: 8px
cursor: move

.text
font-size: 14px
color: #000
Expand Down Expand Up @@ -396,10 +403,12 @@

.cv-container
position: relative

.action-field-visibility
position: absolute
right: 5px
top: 5px

.visibility-readable
background-color: #FFF

Expand Down Expand Up @@ -483,59 +492,82 @@
background-color: #FFFFFF
box-shadow: 0 0 200px 100px rgba(0, 0, 0, 0.4)
flex-direction: column

.template
display: none
visibility: hidden

.builder
flex-basis: 100%
margin: 20px 40px 0 5px
overflow-y: auto

.or-group
width: 100%

.and-condition
display: flex
gap: 3px

.validation-error
border-color: red

&, button
margin-bottom: 3px

.p-value
flex-grow: 2

.or-condition
display: flex
flex-direction: row
align-content: stretch
gap: 3px
flex-wrap: wrap

&:not(:first-child)::before
content: 'OR'
flex-basis: 100%
display: block
font-weight: 700
padding: 10px
margin-left: 25px

.and-group
flex-grow: 4

.cv-remove
text-decoration: none
opacity: 0
padding: 5px

span
font-size: 14px
line-height: 1

.and-condition:hover
.cv-remove
opacity: 1

.cv-action-and
align-self: end
margin-bottom: 3px

.cv-action-or
display: block
margin-top: 10px
margin-left: 33px

h1
padding: 40px 40px 0 40px

p.save
padding: 10px 20px 0px
text-align: right
border-top: 1px solid #ccc

.postbox.closed
border: 1px solid #c3c4c7

.inside
display: block
2 changes: 1 addition & 1 deletion assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
}
var cursorPos = $focused[0].selectionStart;
var x = $focused.val();
$focused.val(x.slice(0, cursorPos) + value + x.slice(cursorPos));
$focused.val(x.slice(0, cursorPos) + value + ($(this).data("ending") || "") + x.slice(cursorPos));
$focused.focus();
cursorPos += value.length;
$focused[0].setSelectionRange(cursorPos, cursorPos);
Expand Down
2 changes: 1 addition & 1 deletion assets/js/admin.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/.retype/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="2.3.0.711994378075">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="2.3.0.711998754141">

<!-- See retype.com -->
<meta name="generator" content="Retype 2.3.0">
Expand All @@ -27,11 +27,11 @@

<script>(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="/resources/css/retype.css?v=2.3.0.711994378075" rel="stylesheet" />
<link href="/resources/css/retype.css?v=2.3.0.711998754141" rel="stylesheet" />

<script type="text/javascript" src="/resources/js/config.js?v=2.3.0.711994378075" data-turbo-eval="false" defer></script>
<script type="text/javascript" src="/resources/js/config.js?v=2.3.0.711998754141" data-turbo-eval="false" defer></script>
<script type="text/javascript" src="/resources/js/retype.js?v=2.3.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" type="text/javascript" src="/resources/js/lunr.js?v=2.3.0.711994378075" data-turbo-eval="false" defer></script>
<script id="lunr-js" type="text/javascript" src="/resources/js/lunr.js?v=2.3.0.711998754141" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
8 changes: 4 additions & 4 deletions docs/.retype/changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="2.3.0.711994378075">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="2.3.0.711998754141">

<!-- See retype.com -->
<meta name="generator" content="Retype 2.3.0">
Expand All @@ -30,11 +30,11 @@

<script>(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../resources/css/retype.css?v=2.3.0.711994378075" rel="stylesheet" />
<link href="../resources/css/retype.css?v=2.3.0.711998754141" rel="stylesheet" />

<script type="text/javascript" src="../resources/js/config.js?v=2.3.0.711994378075" data-turbo-eval="false" defer></script>
<script type="text/javascript" src="../resources/js/config.js?v=2.3.0.711998754141" data-turbo-eval="false" defer></script>
<script type="text/javascript" src="../resources/js/retype.js?v=2.3.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" type="text/javascript" src="../resources/js/lunr.js?v=2.3.0.711994378075" data-turbo-eval="false" defer></script>
<script id="lunr-js" type="text/javascript" src="../resources/js/lunr.js?v=2.3.0.711998754141" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
8 changes: 4 additions & 4 deletions docs/.retype/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="2.3.0.711994378075">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="2.3.0.711998754141">

<!-- See retype.com -->
<meta name="generator" content="Retype 2.3.0">
Expand All @@ -30,11 +30,11 @@

<script>(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="resources/css/retype.css?v=2.3.0.711994378075" rel="stylesheet" />
<link href="resources/css/retype.css?v=2.3.0.711998754141" rel="stylesheet" />

<script type="text/javascript" src="resources/js/config.js?v=2.3.0.711994378075" data-turbo-eval="false" defer></script>
<script type="text/javascript" src="resources/js/config.js?v=2.3.0.711998754141" data-turbo-eval="false" defer></script>
<script type="text/javascript" src="resources/js/retype.js?v=2.3.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" type="text/javascript" src="resources/js/lunr.js?v=2.3.0.711994378075" data-turbo-eval="false" defer></script>
<script id="lunr-js" type="text/javascript" src="resources/js/lunr.js?v=2.3.0.711998754141" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
8 changes: 4 additions & 4 deletions docs/.retype/news/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="2.3.0.711994378075">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="2.3.0.711998754141">

<!-- See retype.com -->
<meta name="generator" content="Retype 2.3.0">
Expand All @@ -30,11 +30,11 @@

<script>(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../resources/css/retype.css?v=2.3.0.711994378075" rel="stylesheet" />
<link href="../resources/css/retype.css?v=2.3.0.711998754141" rel="stylesheet" />

<script type="text/javascript" src="../resources/js/config.js?v=2.3.0.711994378075" data-turbo-eval="false" defer></script>
<script type="text/javascript" src="../resources/js/config.js?v=2.3.0.711998754141" data-turbo-eval="false" defer></script>
<script type="text/javascript" src="../resources/js/retype.js?v=2.3.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" type="text/javascript" src="../resources/js/lunr.js?v=2.3.0.711994378075" data-turbo-eval="false" defer></script>
<script id="lunr-js" type="text/javascript" src="../resources/js/lunr.js?v=2.3.0.711998754141" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
Loading

0 comments on commit e37a53e

Please sign in to comment.