Initial commit: Atomaste website
1
Atomaste Reference/public_html/wp-content/plugins/burst-statistics/assets/css/admin.min.css
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
*
|
||||
* Prefix everything
|
||||
* Name descriptively
|
||||
* Structure radically
|
||||
*
|
||||
* CSS Structure
|
||||
* css/
|
||||
* ├─ admin/
|
||||
* │ ├─ base.scss
|
||||
* │ ├─ layout.scss
|
||||
* │ ├─ modules/
|
||||
* │ │ ├─ modal.scss
|
||||
* │ │ ├─ button.scss
|
||||
* │ │ ├─ modal.scss
|
||||
* │ │ ├─ notices.scss
|
||||
* │ │ ├─ tips-and-tricks.scss
|
||||
* │ │ ├─ etc.....
|
||||
* │ ├─ states.scss
|
||||
* │ ├─ theme.scss
|
||||
* ├─ admin.scss
|
||||
* ├─ admin.min.css
|
||||
* ├─ admin.css
|
||||
* ├─ variables.scss
|
||||
*
|
||||
*/
|
||||
|
||||
@import 'variables.scss';
|
||||
@import 'admin/base.scss';
|
||||
@import 'admin/layout.scss';
|
||||
@import 'admin/modules/modal.scss';
|
||||
@import 'admin/modules/header.scss';
|
||||
@import 'admin/modules/dashboard.scss';
|
||||
@import 'admin/modules/statistics.scss';
|
||||
@import 'admin/modules/buttons.scss';
|
||||
@import 'admin/modules/bullets.scss';
|
||||
@import 'admin/modules/icons.scss';
|
||||
@import 'admin/modules/progress.scss';
|
||||
@import "admin/modules/placeholder.scss";
|
||||
@import 'admin/modules/other-plugins.scss';
|
||||
|
||||
@import 'admin/modules/tips-tricks.scss';
|
||||
@import 'admin/modules/pro-popover.scss';
|
||||
@import 'admin/modules/popover.scss';
|
||||
@import 'admin/modules/tooltip.scss';
|
||||
@import 'admin/modules/inputs/AcquisitionSwitch.scss';
|
||||
@import 'admin/modules/inputs/CheckboxGroup.scss';
|
||||
@import 'admin/modules/pill.scss';
|
||||
@import 'admin/modules/error-boundary.scss';
|
||||
@import 'admin/modules/dashboard/goals.scss';
|
||||
|
||||
@import 'admin/modules/inputs/SelectInput.scss';
|
||||
@import "admin/modules/inputs/EmailReports.scss";
|
||||
|
||||
@import 'admin/modules/wizard.scss';
|
||||
@import 'admin/modules/wizard/notice.scss';
|
||||
@import 'admin/modules/wizard/menu.scss';
|
||||
@import 'admin/modules/wizard/fields.scss';
|
||||
@import 'admin/modules/wizard/snackbar.scss';
|
||||
@import 'admin/modules/wizard/goals.scss';
|
||||
@import 'admin/modules/wizard/logo_editor.scss';
|
||||
|
||||
@import 'admin/modules/statistics/insights.scss';
|
||||
@import 'admin/modules/statistics/daterange.scss';
|
||||
@import 'admin/modules/statistics/filters.scss';
|
||||
@import 'admin/modules/statistics/countries.scss';
|
||||
@import 'admin/modules/toast/main.scss';
|
||||
|
||||
@import 'admin/modules/settings.scss';
|
||||
@import 'admin/modules/notices.scss';
|
||||
@import 'admin/modules/datatables.scss';
|
||||
@import 'admin/modules/animations.scss';
|
||||
@import "admin/modules/tour.scss";
|
||||
@import "admin/modules/archives.scss";
|
||||
|
||||
@import "admin/modules/premium.scss";
|
||||
@import 'admin/states.scss';
|
||||
@import 'admin/theme.scss';
|
||||
@@ -0,0 +1,111 @@
|
||||
.burst {
|
||||
font-variant-numeric: tabular-nums; // https://css-tricks.com/almanac/properties/f/font-variant-numeric/
|
||||
margin: 0;
|
||||
margin-left: -20px;
|
||||
font-size: var(--rsp-fs-300);
|
||||
box-sizing: border-box;
|
||||
color: var(--rsp-text-color);
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
@media only screen and ( max-width: $rsp-break-xs) {
|
||||
margin-left: -9px;
|
||||
}
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: var(--rsp-text-color);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.burst-h0 {
|
||||
font-size: var(--rsp-fs-900);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.025rem;
|
||||
}
|
||||
|
||||
h1, .burst-h1 {
|
||||
font-size: var(--rsp-fs-800);
|
||||
line-height: 1.5;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.025rem;
|
||||
}
|
||||
|
||||
h2, .burst-h2 {
|
||||
font-size: var(--rsp-fs-700);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.025rem;
|
||||
}
|
||||
|
||||
h3, .burst-h3 {
|
||||
font-size: var(--rsp-fs-600);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.0125rem;
|
||||
}
|
||||
|
||||
h4, .burst-h4 {
|
||||
font-size: var(--rsp-fs-500);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.0125rem;
|
||||
}
|
||||
|
||||
h5, .burst-h5 {
|
||||
font-size: var(--rsp-fs-300);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.1px;
|
||||
}
|
||||
|
||||
h6, .burst-h6 {
|
||||
font-size: var(--rsp-fs-300);
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.1px;
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--rsp-text-color);
|
||||
font-weight: 400;
|
||||
font-size: var(--rsp-fs-300);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.burst-small-text {
|
||||
font-size: var(--rsp-fs-200);
|
||||
color: var(--rsp-text-color-light);
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
//wordpress inserts notices after the first h1 or h2. To prevent breaking layout we insert an empty h1 tag at the start of our page, where WP can insert the notice.
|
||||
.burst-notice-hook-element {
|
||||
display: none !important;
|
||||
}
|
||||
.burst-divider {
|
||||
width: 1px;
|
||||
height: 1.3rem;
|
||||
background-color: #cccccc;
|
||||
}
|
||||
}
|
||||
// Hide nags from other plugins
|
||||
.error, .notice, .update-nag, .notice-info {
|
||||
&:not(.really-simple-plugins) {
|
||||
display: none !important;
|
||||
}
|
||||
&.really-simple-plugins{
|
||||
margin: var(--rsp-grid-gap);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Silence is golden.
|
||||
@@ -0,0 +1,250 @@
|
||||
/* Grid */
|
||||
.burst {
|
||||
.burst-header, .burst-content-area {
|
||||
max-width: clamp(300px, calc(100% - var(--rsp-grid-gap) * 2), 1600px);
|
||||
margin: 0 auto;
|
||||
@media(max-width: $rsp-break-xxl) {
|
||||
--rsp-grid-gap: var(--rsp-spacing-m);
|
||||
}
|
||||
@media(max-width: $rsp-break-xl) { // 1440px
|
||||
--rsp-grid-gap: var(--rsp-spacing-s);
|
||||
}
|
||||
@media(max-width: $rsp-break-l) { // 1366px
|
||||
--rsp-grid-gap: var(--rsp-spacing-xs);
|
||||
}
|
||||
@media(max-width: $rsp-break-m) { // 1280px
|
||||
}
|
||||
@media(max-width: $rsp-break-s) { // 1080px
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.burst-header-container .burst-header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
height: 70px;
|
||||
box-sizing: border-box;
|
||||
background-color: var(--rsp-background-block-color);
|
||||
@media(max-width: $rsp-break-s) {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.burst-logo {
|
||||
@media(max-width: $rsp-break-xxs) {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
.burst-header-left {
|
||||
display: flex;
|
||||
font-size: var(--rsp-fs-400);
|
||||
|
||||
@media(max-width: $rsp-break-s) {
|
||||
justify-content: center;
|
||||
margin: var(--rsp-spacing-xs) 0;
|
||||
order: 3;
|
||||
width: 100%;
|
||||
background-color: var(--rsp-background-block-color);
|
||||
}
|
||||
|
||||
.burst-header-menu {
|
||||
margin: auto 15px;
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
padding: 23px 15px;
|
||||
text-decoration: none;
|
||||
color: var(--rsp-text-color);
|
||||
height: 100%;
|
||||
border-bottom: 4px solid transparent;
|
||||
transition: border 0.3s ease-out;
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
@media(max-width: $rsp-break-s) {
|
||||
padding: 10px 15px;
|
||||
}
|
||||
&:focus {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
&.active {
|
||||
border-bottom: 4px solid var(--rsp-brand-primary);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--rsp-brand-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-header-right {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
gap: var(--rsp-spacing-s);
|
||||
min-height: 52px;
|
||||
select {
|
||||
max-width: 60ch;
|
||||
}
|
||||
@media(max-width: $rsp-break-xxs) {
|
||||
display:none;
|
||||
}
|
||||
@media(max-width: $rsp-break-xs) {
|
||||
.button {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.burst-content-area {
|
||||
margin-top: var(--rsp-grid-gap);
|
||||
}
|
||||
|
||||
.burst-header-container {
|
||||
background: var(--rsp-background-block-color);
|
||||
}
|
||||
|
||||
.burst-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-auto-rows: max-content;
|
||||
gap: var(--rsp-grid-gap);
|
||||
min-height: calc(100vh - 32px - 80px - 20px - var(--rsp-grid-gap)); //32px = wordpress bar, 80px = cmplz bar, 20px = margin-top, 20px is grid gap
|
||||
&.burst-settings{
|
||||
grid-template-columns: 350px 1fr 1fr 1fr;
|
||||
}
|
||||
@media only screen and (max-width: $rsp-break-m) {
|
||||
grid-template-columns: repeat(2,1fr);
|
||||
}
|
||||
@media only screen and ( max-width: $rsp-break-s) {
|
||||
max-width:790px;
|
||||
width: calc(100% - var(--rsp-grid-gap) * 2)
|
||||
}
|
||||
}
|
||||
|
||||
.burst-grid-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-s);
|
||||
}
|
||||
|
||||
.burst-grid-item {
|
||||
@include burst-block;
|
||||
transition: all 1s ease;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
flex-direction: column;
|
||||
flex-basis: 100%;
|
||||
grid-column: span 1;
|
||||
grid-row: span 1;
|
||||
overflow: auto;
|
||||
|
||||
@media(max-width: $rsp-break-s) {
|
||||
grid-column: span 4;
|
||||
}
|
||||
|
||||
&.burst-disabled {
|
||||
min-height:200px; //add min height on disabled so the settings is visible behind the locked div.
|
||||
}
|
||||
|
||||
&.no-background {
|
||||
background: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&.burst-column-2 {
|
||||
grid-column: span 2;
|
||||
@media(max-width: $rsp-break-m) {
|
||||
grid-column: span 4;
|
||||
}
|
||||
}
|
||||
|
||||
&.burst-row-2 {
|
||||
grid-row: span 2;
|
||||
min-height: 400px;
|
||||
}
|
||||
|
||||
&-header {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: calc(40px + var(--rsp-spacing-s) * 2);
|
||||
@include burst-inline-block-padding;
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
margin: 4px 0 4px 0;
|
||||
}
|
||||
|
||||
&-controls {
|
||||
font-size: var(--rsp-fs-200);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-s);
|
||||
|
||||
}
|
||||
|
||||
&-content {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
@include burst-inline-block-padding;
|
||||
flex-grow: 100;
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-footer {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--rsp-grid-margin);
|
||||
width: 100%;
|
||||
min-height: calc(30px + var(--rsp-spacing-s) * 2);
|
||||
box-sizing: border-box;
|
||||
@include burst-inline-block-padding;
|
||||
align-self: flex-end;
|
||||
|
||||
.burst-legend {
|
||||
display: flex;
|
||||
|
||||
span {
|
||||
padding-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-flex-push-right {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.burst-flex-push-left {
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
.burst-selected-archive{
|
||||
margin-top:10px;
|
||||
margin-bottom:10px;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
background-color:var(--rsp-blue-faded);
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l);
|
||||
&-controls{
|
||||
margin-left:auto;
|
||||
display:flex;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
}
|
||||
button.button.burst-btn-reset {
|
||||
margin-left:5px;
|
||||
}
|
||||
button.button-default {
|
||||
display:flex;
|
||||
.burst-icon{
|
||||
margin-top: 7px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-restore_archives {
|
||||
input[type=checkbox]{
|
||||
margin: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.burst div[class^=burst-wizard-] {
|
||||
.burst-restore_archives{
|
||||
.burst-table-header{
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l);
|
||||
}
|
||||
.burst-field-wrap{
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.burst-no-archives{
|
||||
padding: var(--rsp-spacing-xl);
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
.burst{
|
||||
// burst bullets
|
||||
.burst-bullet {
|
||||
height: 13px;
|
||||
width: 13px;
|
||||
flex: 0 0 13px;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
background-color: var(--rsp-grey-500);
|
||||
&.rsp-yellow {
|
||||
background-color: var(--rsp-yellow);
|
||||
}
|
||||
|
||||
&.rsp-blue {
|
||||
background-color: var(--rsp-blue);
|
||||
}
|
||||
|
||||
&.rsp-pink {
|
||||
background-color: var(--rsp-pink);
|
||||
}
|
||||
|
||||
&.rsp-red, &.burst-bullet-error {
|
||||
background-color: var(--rsp-red);
|
||||
}
|
||||
|
||||
&.rsp-green, &.burst-bullet-success {
|
||||
background-color: var(--rsp-green);
|
||||
}
|
||||
&.rsp-blue-yellow {
|
||||
background: var(--rsp-blue);
|
||||
background: linear-gradient(77deg, rgba(0,159,255, 1) 0%, rgba(0,159,255, 1) 30%, rgba(244, 191, 62, 1) 70%, rgba(244, 191, 62, 1) 100%);
|
||||
animation: gradient 2s ease infinite;
|
||||
background-size: 200% 200%;
|
||||
}
|
||||
}
|
||||
.burst-legend{
|
||||
width: max-content;
|
||||
color: var(--rsp-text-color-light);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
line-height: 1;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@keyframes gradient {
|
||||
0% {
|
||||
background-position: 0 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
/* Global Variables */
|
||||
:root {
|
||||
--button-font-size: var(--rsp-fs-300);
|
||||
--button-font-weight: 400;
|
||||
--button-line-height: 2;
|
||||
--button-letter-spacing: 0.5px;
|
||||
--button-transition: all 0.3s ease;
|
||||
--button-min-height: 30px;
|
||||
--button-padding: 0 10px;
|
||||
--button-border-radius: 4px;
|
||||
--button-accent-color: #2271b1;
|
||||
--button-contrast-color: #000;
|
||||
--button-secondary-bg: #fff;
|
||||
}
|
||||
|
||||
/* Button Base Styles */
|
||||
a.burst-button, button.burst-button, input.burst-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
font-size: var(--button-font-size);
|
||||
font-weight: var(--button-font-weight);
|
||||
line-height: var(--button-line-height);
|
||||
letter-spacing: var(--button-letter-spacing);
|
||||
transition: var(--button-transition);
|
||||
min-height: var(--button-min-height);
|
||||
margin: 0;
|
||||
padding: var(--button-padding);
|
||||
border-radius: var(--button-border-radius);
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
|
||||
&--primary {
|
||||
background: var(--button-accent-color);
|
||||
color: var(--button-secondary-bg);
|
||||
border: 1px solid var(--button-accent-color);
|
||||
|
||||
&:hover {
|
||||
background: var(--button-accent-color);
|
||||
color: var(--button-secondary-bg);
|
||||
border-color: var(--button-accent-color);
|
||||
box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&--secondary {
|
||||
background: var(--rsp-grey-100);
|
||||
color: var(--rsp-text-color-light);
|
||||
border: 1px solid var(--rsp-grey-400);
|
||||
|
||||
&:hover {
|
||||
background: var(--rsp-grey-200);
|
||||
color: var(--rsp-text-color);
|
||||
border-color: var(--rsp-grey-400);
|
||||
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
&--tertiary {
|
||||
// red button
|
||||
background: var(--rsp-red);
|
||||
color: var(--rsp-text-color-white);
|
||||
border: 1px solid var(--rsp-red);
|
||||
|
||||
&:hover {
|
||||
background: var(--rsp-red-faded);
|
||||
color: var(--rsp-red);
|
||||
border-color: var(--rsp-red);
|
||||
box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&--pro {
|
||||
background: var(--rsp-brand-primary);
|
||||
color: var(--rsp-text-color-white);
|
||||
border: 1px solid var(--rsp-brand-primary-dark);
|
||||
|
||||
&:hover {
|
||||
background: var(--rsp-brand-primary-dark);
|
||||
color: var(--button-secondary-bg);
|
||||
border-color: var(--rsp-brand-primary-darker);
|
||||
box-shadow: 0 0 0 3px var(--rsp-brand-primary-light);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-button-icon {
|
||||
background: transparent;
|
||||
background: var(--rsp-grey-300);
|
||||
color: #2271b1;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 50%;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
padding: 10px;
|
||||
margin: 5px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s ease;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
padding: 15px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&--delete {
|
||||
&:hover {
|
||||
background: var(--rsp-red-faded);
|
||||
|
||||
svg path {
|
||||
fill: var(--rsp-red);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst .burst-button.burst-button--date-range {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: var(---rsp-filter-padding);
|
||||
box-shadow: var(--rsp-box-shadow);
|
||||
cursor: pointer;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
color: var(--rsp-text-color-light);
|
||||
background-color: var(--rsp-input-background-color);
|
||||
background: var(--rsp-grey-200);
|
||||
border: 1px solid var(--rsp-input-border-color);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
|
||||
.burst-icon {
|
||||
height: max-content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,267 @@
|
||||
.burst {
|
||||
&-grid {
|
||||
h4 {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--rsp-text-color-light);
|
||||
}
|
||||
|
||||
.block {
|
||||
p {
|
||||
font-size: var(--rsp-fs-300);
|
||||
}
|
||||
|
||||
&__big-number {
|
||||
justify-content: space-between;
|
||||
background: var(--rsp-green-faded);
|
||||
padding: var(--rsp-spacing-xl) var(--rsp-spacing-l);
|
||||
flex-wrap: wrap-reverse;
|
||||
|
||||
.h0 {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
&__right {
|
||||
text-align: right;
|
||||
flex: auto;
|
||||
}
|
||||
|
||||
h5, p {
|
||||
line-height: 2;
|
||||
}
|
||||
}
|
||||
|
||||
&__explanation-and-stats {
|
||||
margin: var(--rsp-spacing-l) auto;
|
||||
}
|
||||
}
|
||||
|
||||
.border-to-border {
|
||||
.burst-grid-item-content {
|
||||
padding: 0;
|
||||
|
||||
& > * {
|
||||
padding-inline: var(--rsp-spacing-l);
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.border-to-border.datatable, .border-to-border.burst-today, .border-to-border.burst-goals {
|
||||
.burst-grid-item-content {
|
||||
|
||||
& > * {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-grid-footer {
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-grid-item-controls{
|
||||
.burst-filter-button{
|
||||
all: unset;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
position: relative;
|
||||
border-radius: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
aspect-ratio: 1/1;
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
cursor: pointer;
|
||||
background: var(--rsp-grey-200);
|
||||
&:hover, &.active, &:focus{
|
||||
background: var(--rsp-grey-300);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-real-time .block__explanation-and-stats {
|
||||
margin: var(--rsp-spacing-m) auto;
|
||||
}
|
||||
|
||||
.burst-today, .burst-goals {
|
||||
&-select {
|
||||
padding-inline: var(--rsp-spacing-l);
|
||||
padding-block: var(--rsp-spacing-m);
|
||||
display: grid;
|
||||
width: 100%;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--rsp-spacing-s);
|
||||
|
||||
&-item {
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
padding-block: var(--rsp-spacing-s);
|
||||
justify-items: center;
|
||||
flex-wrap: wrap;
|
||||
background: var(--rsp-white);
|
||||
|
||||
&.active {
|
||||
box-shadow: inset 0 0 3px 2px var(--rsp-green-faded);
|
||||
border: 2px solid var(--rsp-green);
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-top: var(--rsp-spacing-xxs);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
span {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
justify-content: center;
|
||||
font-size: var(--rsp-fs-100);
|
||||
|
||||
.burst-icon-live {
|
||||
animation-name: pulse;
|
||||
animation-duration: 1.5s;
|
||||
animation-timing-function: ease-in;
|
||||
animation-direction: alternate;
|
||||
animation-iteration-count: infinite;
|
||||
animation-play-state: running;
|
||||
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
transform: scale(0.9);
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1.0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-list {
|
||||
width: 100%;
|
||||
|
||||
&-item {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
justify-items: flex-start;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
gap: var(--rsp-spacing-s);
|
||||
padding-block: var(--rsp-spacing-xs);
|
||||
padding-inline: var(--rsp-spacing-l);
|
||||
|
||||
&:nth-of-type(even) {
|
||||
background: var(--rsp-grey-200);
|
||||
}
|
||||
|
||||
&-text {
|
||||
width: 100%;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&-number {
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-controls-flex {
|
||||
display: flex;
|
||||
//justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
|
||||
.burst-divider {
|
||||
width: 1px;
|
||||
height: 80%;
|
||||
background: var(--rsp-grey-500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-today {
|
||||
&-select {
|
||||
background: var(--rsp-green-faded);
|
||||
}
|
||||
}
|
||||
|
||||
.burst-grid-item.burst-goals {
|
||||
position: relative;
|
||||
|
||||
.burst-goals-select {
|
||||
background: var(--rsp-yellow-faded);
|
||||
}
|
||||
|
||||
|
||||
.information-overlay {
|
||||
background: rgba(47, 47, 47, 0.15);
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
border-radius: var(--rsp-border-radius);
|
||||
|
||||
&-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
background: var(--rsp-white);
|
||||
box-shadow: var(--rsp-box-shadow);
|
||||
|
||||
padding: var(--rsp-spacing-s);
|
||||
padding-left: var(--rsp-spacing-m);
|
||||
padding-right: var(--rsp-spacing-m);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
margin: var(--rsp-spacing-s) 40px;
|
||||
|
||||
/* animation */
|
||||
transform: scale(0);
|
||||
animation: scale-in 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
|
||||
|
||||
@keyframes scale-in {
|
||||
from {
|
||||
transform: scale(0);
|
||||
animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
}
|
||||
to {
|
||||
transform: scale(1);
|
||||
animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin-bottom: var(--rsp-spacing-xs);
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: var(--rsp-spacing-s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.burst-goal-status{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
p{
|
||||
color: var(--rsp-text-color-light);
|
||||
font-size: var(--rsp-fs-200);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
.burst {
|
||||
.burst-status-allowed {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.burst-status-revoked {
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
.rdt_TableHeadRow, .rdt_TableRow {
|
||||
@include burst-inline-block-padding;
|
||||
}
|
||||
|
||||
.rdt_TableCol, .rdt_TableCell {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.burst-csp-revoked > div:nth-child(-n+3) {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.rdt_Pagination {
|
||||
select + svg {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-empty-data-table {
|
||||
text-align: center;
|
||||
padding: var(--rsp-spacing-xl);
|
||||
}
|
||||
|
||||
.burst-grid-item.datatable {
|
||||
.burst-loading-container {
|
||||
align-content: space-between;
|
||||
height: 100%;
|
||||
|
||||
& > div {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-clickable-row-item {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
|
||||
|
||||
.burst-icon {
|
||||
pointer-events: none
|
||||
}
|
||||
}
|
||||
|
||||
.burst-not-clickable-row-item {
|
||||
cursor: default;
|
||||
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
|
||||
}
|
||||
|
||||
.burst-datatable-message {
|
||||
padding: var(--rsp-spacing-xl);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.burst-datatable__select-trigger {
|
||||
all: unset;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
cursor: pointer;
|
||||
padding: 8px 0;
|
||||
|
||||
&__icon {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-datatable__select-content {
|
||||
background: var(--rsp-grey-100);
|
||||
z-index: 99;
|
||||
border: 1px solid var(--rsp-grey-400);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: var(--rsp-spacing-s);
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
|
||||
animation-duration: 600ms;
|
||||
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
will-change: transform, opacity;
|
||||
|
||||
&[data-state='open']{
|
||||
animation-name: slideDownAndFade;
|
||||
}
|
||||
|
||||
@keyframes slideDownAndFade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
&__item {
|
||||
min-width: min(100vw, 150px);
|
||||
cursor: pointer;
|
||||
color: var(--rsp-text-color);
|
||||
font-size: var(--rsp-fs-400);
|
||||
//font-size: 13px;
|
||||
//line-height: 1;
|
||||
//color: var(--violet-11);
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-s);
|
||||
border-radius: 3px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
//height: 25px;
|
||||
//padding: 0 35px 0 25px;
|
||||
//position: relative;
|
||||
//user-select: none
|
||||
.burst-icon {
|
||||
margin-right: 8px;
|
||||
}
|
||||
.burst-pill {
|
||||
margin-left: 8px;
|
||||
font-size: var(--rsp-fs-200);
|
||||
}
|
||||
}
|
||||
&__item[data-disabled] {
|
||||
color: var(--rsp-text-grey-200);
|
||||
background-color: var(--rsp-grey-100);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
&__item[data-highlighted] {
|
||||
color: var(--rsp-text-color);
|
||||
outline: none;
|
||||
background-color: var(--rsp-green-faded);
|
||||
}
|
||||
&__item[data-state='selected'] {
|
||||
color: var(--rsp-text-color-light);
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
.burst .burst-error-boundary {
|
||||
padding: 20px;
|
||||
border: 2px solid var(--rsp-border-color);
|
||||
border-radius: 8px;
|
||||
background-color: var(--rsp-grey-200);
|
||||
max-width: 70ch;
|
||||
margin: auto;
|
||||
margin-top: var(--rsp-spacing-l);
|
||||
|
||||
h3 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&__copy-error {
|
||||
background-color: #ffffff;
|
||||
padding: 15px;
|
||||
border: 1px solid var(--rsp-border-color);
|
||||
border-radius: 4px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&__error-code,
|
||||
&__error-stack {
|
||||
color: var(--rsp-text-color-light);
|
||||
font-family: monospace;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin-top: var(--rsp-spacing-xs);
|
||||
list-style-position: inside;
|
||||
padding-left: 0;
|
||||
margin-bottom: var(--rsp-spacing-xs);
|
||||
}
|
||||
|
||||
ol li {
|
||||
margin-bottom: var(--rsp-spacing-s);
|
||||
padding-left: 1.5em;
|
||||
text-indent: -1.5em;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
.burst-header-container .burst-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 70px;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
|
||||
img {
|
||||
margin: auto 0;
|
||||
height: 26px;
|
||||
}
|
||||
.burst-header-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box;
|
||||
.burst-header-menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box;
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
&.burst-header-menu-item-active {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
}
|
||||
}
|
||||
.burst-header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
gap: var(--rsp-spacing-s);
|
||||
|
||||
select {
|
||||
max-width: 60ch;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
.burst-icon{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
svg{
|
||||
fill: currentColor;
|
||||
}
|
||||
&.burst-icon-loading{
|
||||
animation: burst-icon-loading 1.5s ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
@keyframes burst-icon-loading {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
.burst-acquisition-switch{
|
||||
display: flex;
|
||||
min-height: 30px;
|
||||
|
||||
&__option{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
font-size: var(--rsp-fs-300);
|
||||
background: var(--rsp-grey-300);
|
||||
border: var(--rsp-grey-400) 1px solid;
|
||||
border-right-width: 0px;
|
||||
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-s);
|
||||
color: var(--rsp-text-color-light);
|
||||
cursor: pointer;
|
||||
|
||||
svg{
|
||||
path {
|
||||
fill: var(--rsp-text-color-light);
|
||||
}
|
||||
}
|
||||
|
||||
// first item needs to have border-radius on the left
|
||||
&:first-child{
|
||||
border-top-left-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-left-radius: var(--rsp-border-radius-xs);
|
||||
}
|
||||
// last item needs to have border-radius on the right
|
||||
&:last-child{
|
||||
border-right-width: 1px;
|
||||
border-top-right-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-right-radius: var(--rsp-border-radius-xs);
|
||||
}
|
||||
&:hover{
|
||||
background: var(--rsp-grey-200);
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
&--selected{
|
||||
background: var(--rsp-white);
|
||||
cursor: default;
|
||||
&:hover{
|
||||
background: var(--rsp-white);
|
||||
}
|
||||
}
|
||||
&--pro{
|
||||
color: var(--rsp-grey-500);
|
||||
svg{
|
||||
path{
|
||||
fill: var(--rsp-grey-500);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
.burst {
|
||||
.burst-checkbox-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
|
||||
&__item {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
background-color: transparent;
|
||||
align-items: flex-start;
|
||||
|
||||
&.burst-hidden {
|
||||
display: none;
|
||||
}
|
||||
&__pill{
|
||||
justify-self: end;
|
||||
}
|
||||
}
|
||||
|
||||
&__checkbox {
|
||||
all: unset;
|
||||
display: flex;
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 3px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
aspect-ratio: 1 / 1;
|
||||
outline: 1px solid var(--rsp-input-border-color);
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
margin-top: 2px;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--rsp-blue-faded);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 3px var(--rsp-background-color), 0 0 0 4px var(--rsp-dark-blue);
|
||||
}
|
||||
&:disabled {
|
||||
background-color: var(--rsp-grey-300);
|
||||
cursor: not-allowed;
|
||||
& + label {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__label {
|
||||
font-size: var(--rsp-fs-300);
|
||||
color: var(--rsp-text-color-light);
|
||||
margin: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
.burst div[class^=burst-wizard-] {
|
||||
.burst-email_reports {
|
||||
.burst-table-header, .burst-field-description {
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l);
|
||||
}
|
||||
|
||||
.burst-field-wrap.burst-email_reports {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.burst-email-reports-field__add {
|
||||
margin-top: var(--rsp-spacing-xs);
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
|
||||
input {
|
||||
min-width: 30ch;
|
||||
}
|
||||
|
||||
label {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-button-icon--delete {
|
||||
width: 3em;
|
||||
height: 3em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.burst-warning {
|
||||
margin: var(--rsp-spacing-xs) var(--rsp-spacing-l);
|
||||
color: var(--rsp-color-error);
|
||||
background-color: var(--rsp-red-faded);
|
||||
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
|
||||
border: 1px solid var(--rsp-color-error);
|
||||
border-radius: var(--rsp-border-radius-s);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
|
||||
|
||||
.burst {
|
||||
.burst {
|
||||
&-select-group {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.burst-icon > div {
|
||||
margin-top: 2px;
|
||||
margin-bottom: -2px;
|
||||
}
|
||||
&__trigger {
|
||||
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
|
||||
font-size: var(--rsp-fs-300);
|
||||
color: var(--rsp-text-color-light);
|
||||
line-height: 1.5;
|
||||
background-color: var(--rsp-white);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
border: 1px solid var(--rsp-input-border-color);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
min-width: 15ch;
|
||||
|
||||
&:hover:not([disabled]) {
|
||||
background-color: var(--rsp-brand-primary-faded);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px var(--rsp-brand-primary-faded);
|
||||
}
|
||||
|
||||
&[data-placeholder] {
|
||||
color: var(--rsp-grey-400);
|
||||
}
|
||||
&[disabled] {
|
||||
background-color: var(--rsp-grey-200);
|
||||
color: var(--rsp-grey-400);
|
||||
}
|
||||
}
|
||||
|
||||
&__content {
|
||||
width: var(--radix-select-trigger-width);
|
||||
max-height: calc(var(--radix-select-content-available-height) - 32px - var(--rsp-spacing-s));
|
||||
overflow: hidden;
|
||||
background-color: var(--rsp-white);
|
||||
border-radius: 0 0 var(--rsp-border-radius-xs) var(--rsp-border-radius-xs);
|
||||
border: 1px solid var(--rsp-input-border-color);
|
||||
border-top: none;
|
||||
box-shadow: 0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
&__viewport {
|
||||
}
|
||||
|
||||
&__item {
|
||||
line-height: 1;
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-xs);
|
||||
font-size: var(--rsp-fs-300);
|
||||
color: var(--rsp-text-color-light);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
|
||||
&[data-disabled] {
|
||||
background: var(--rsp-grey-300);
|
||||
color: var(--rsp-grey-500);
|
||||
//pointer-events: none;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&[data-highlighted] {
|
||||
outline: none;
|
||||
background-color: var(--rsp-brand-primary-faded);
|
||||
color: var(--rsp-text-color);
|
||||
}
|
||||
}
|
||||
|
||||
&__scroll-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 25px;
|
||||
background-color: white;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
.burst-modal-backdrop {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: grey;
|
||||
opacity: 0.45;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.burst-modal {
|
||||
max-width: 526px;
|
||||
min-width: 200px;
|
||||
position: fixed;
|
||||
z-index: 5;
|
||||
border-radius: var(--rsp-border-radius-s);
|
||||
background-color: var(--rsp-white);
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
margin: 25px;
|
||||
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
|
||||
|
||||
.burst-modal-header {
|
||||
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
//border-radius: 12px;
|
||||
h2 {
|
||||
font-size: var(--rsp-fs-600);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.burst-modal-close {
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.5em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
button {
|
||||
img {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-modal-content {
|
||||
position: relative;
|
||||
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
|
||||
|
||||
.burst-modal-subtitle {
|
||||
font-weight: 600;
|
||||
font-size: var(--rsp-fs-500);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.burst-modal-description {
|
||||
overflow-wrap: anywhere;
|
||||
margin-top: 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-modal-footer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
|
||||
gap: 10px;
|
||||
justify-content: flex-end;
|
||||
|
||||
.button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 45px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.burst-button-help {
|
||||
background-color: #D7263D;
|
||||
color: white;
|
||||
border-color: #D7263D;
|
||||
|
||||
&:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
Admin notice
|
||||
*/
|
||||
.cmplz-admin-notice {
|
||||
|
||||
.cmplz-admin-notice-container {
|
||||
display: flex;
|
||||
padding: 12px;
|
||||
align-items: center;
|
||||
|
||||
.cmplz-logo img {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
.dashicons {
|
||||
margin-left: 10px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
.burst {
|
||||
.burst-other-plugins .rsp-logo img {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.burst-other-plugins-container {
|
||||
display: flex !important;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 10px;
|
||||
font-size: var(--rsp-fs-300);
|
||||
line-height: 1.7;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
|
||||
@media screen and (max-width: 992px) {
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.burst-other-plugins-element {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-content: space-between;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
--rsp-other-plugins-color: var(--rsp-grey-400);
|
||||
|
||||
&.burst-really-simple-ssl {
|
||||
--rsp-other-plugins-color: var(--rsp-yellow);
|
||||
}
|
||||
&.burst-burst-statistics {
|
||||
--rsp-other-plugins-color: var(--rsp-green);
|
||||
}
|
||||
&.burst-updraftplus {
|
||||
--rsp-other-plugins-color: var(--rsp-orange);
|
||||
}
|
||||
&.burst-wp-optimize {
|
||||
--rsp-other-plugins-color: var(--rsp-orange);
|
||||
}
|
||||
|
||||
&.burst-all-in-one-wp-security-and-firewall {
|
||||
--rsp-other-plugins-color: var(--rsp-orange);
|
||||
}
|
||||
|
||||
a {
|
||||
width: max-content;
|
||||
color: var(--rsp-text-color-light);
|
||||
transition: color 0.3s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
color: var(--rsp-other-plugins-color);
|
||||
text-decoration: underline;
|
||||
|
||||
.burst-bullet {
|
||||
background-color: var(--rsp-other-plugins-color);
|
||||
}
|
||||
|
||||
.burst-other-plugins-content {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-bullet {
|
||||
transition: background-color 0.3s ease;
|
||||
background-color: var(--rsp-other-plugins-color);
|
||||
}
|
||||
|
||||
.burst-other-plugins-content {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.burst-other-plugin-status{
|
||||
min-width: fit-content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
.burst-pill{
|
||||
padding: 2px var(--rsp-spacing-xs);
|
||||
background: var(--rsp-brand-primary);
|
||||
color: var(--rsp-text-color-white);
|
||||
border-radius: var(--rsp-border-radius);
|
||||
font-size: var(--rsp-fs-300);
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
$base-color: #ddd;
|
||||
$shine-color: #e8e8e8;
|
||||
$animation-duration: 1.6s;
|
||||
@mixin background-gradient {
|
||||
background-image: linear-gradient(90deg, $base-color 0, $shine-color 40px, $base-color 80px);
|
||||
background-size: 600px;
|
||||
}
|
||||
|
||||
.burst-placeholder {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
padding-bottom: 24px;
|
||||
color: #1e1e1e;
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
border-radius: 2px;
|
||||
background-color: #fff;
|
||||
flex-grow: 100;
|
||||
|
||||
.burst-placeholder-line {
|
||||
float: left;
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
margin-top: 12px;
|
||||
border-radius: 7px;
|
||||
|
||||
&:last-of-type {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
@include background-gradient;
|
||||
animation: shine-lines $animation-duration infinite linear;
|
||||
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(1) {
|
||||
width: 69%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(2) {
|
||||
width: 86%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(3) {
|
||||
width: 67%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(4) {
|
||||
width: 76%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(5) {
|
||||
width: 69%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(6) {
|
||||
width: 72%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(7) {
|
||||
width: 78%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(8) {
|
||||
width: 69%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(9) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(10) {
|
||||
width: 66%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(11) {
|
||||
width: 62%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(12) {
|
||||
width: 72%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(13) {
|
||||
width: 86%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(14) {
|
||||
width: 68%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(15) {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(16) {
|
||||
width: 91%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(17) {
|
||||
width: 84%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(18) {
|
||||
width: 87%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(19) {
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
.burst-placeholder .burst-placeholder-line:nth-of-type(20) {
|
||||
width: 70%;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-placeholder-line ~ .burst-placeholder-line {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@keyframes shine-lines {
|
||||
0% {
|
||||
background-position: - 400px;
|
||||
}
|
||||
100% {
|
||||
background-position: 220px;
|
||||
}
|
||||
}
|
||||
|
||||
.burst .burst-page-placeholder .burst-grid-item, .burst-grid-item-placeholder {
|
||||
overflow: hidden !important;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
top: 0;
|
||||
overflow: hidden;
|
||||
transform: translateX(100%);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
z-index: 1;
|
||||
animation: slide 2s infinite;
|
||||
background: linear-gradient(103deg, rgba(228, 229, 232, 0) 25%, rgba(228, 229, 232, 0.35) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 75%); /* W3C */
|
||||
}
|
||||
}
|
||||
.burst .burst-grid-item.burst-grid-item-placeholder{
|
||||
min-height: 300px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* animation */
|
||||
|
||||
@keyframes slide {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
|
||||
.burst-loading-container {
|
||||
transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
|
||||
|
||||
&.burst-loading {
|
||||
opacity: 0.3;
|
||||
//filter: blur(1px);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
.burst-popover{
|
||||
background: var(--rsp-grey-100);
|
||||
z-index: 99;
|
||||
border: 1px solid var(--rsp-grey-400);
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-s);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: var(--rsp-spacing-s);
|
||||
|
||||
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
|
||||
animation-duration: 600ms;
|
||||
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
will-change: transform, opacity;
|
||||
|
||||
&[data-state='open']{
|
||||
animation-name: slideDownAndFade;
|
||||
}
|
||||
|
||||
@keyframes slideDownAndFade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
&--date-range{
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__arrow{
|
||||
--rsp-arrow-size: 8px;
|
||||
position: absolute;
|
||||
top: calc( -1 * var(--rsp-arrow-size));
|
||||
right: calc(var(--rsp-arrow-size) * 2 - 3px);
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: var(--rsp-arrow-size) solid transparent;
|
||||
border-right: var(--rsp-arrow-size) solid transparent;
|
||||
border-bottom: var(--rsp-arrow-size) solid var(--rsp-grey-400);
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: calc(-1 * var(--rsp-arrow-size));
|
||||
left: calc( -1 * var(--rsp-arrow-size) + 1px);
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: calc( var(--rsp-arrow-size) - 1px) solid transparent;
|
||||
border-right: calc( var(--rsp-arrow-size) - 1px) solid transparent;
|
||||
border-bottom: calc( var(--rsp-arrow-size) - 1px) solid var(--rsp-grey-100);
|
||||
}
|
||||
}
|
||||
&__header{
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 3px;
|
||||
}
|
||||
h5{
|
||||
grid-column: 1 / 2;
|
||||
order: -1;
|
||||
}
|
||||
h6{
|
||||
grid-column: span 2;
|
||||
}
|
||||
p.burst-popover__small-text{
|
||||
font-size: var(--rsp-fs-200);
|
||||
color: var(--rsp-text-color-light);
|
||||
font-weight: 500;
|
||||
|
||||
}
|
||||
&__content{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
}
|
||||
&__footer{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
.burst-label-container, .burst-button {//premium pill also occurs in the predefined goals button
|
||||
display:flex;
|
||||
.burst-pro a{
|
||||
margin-left:10px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
padding: 5px;
|
||||
background-color: #ecf4ed;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
.burst-pro-popover-trigger {
|
||||
// delete all button styles
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
transition: transform 300ms ease-out;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
}
|
||||
|
||||
.burst-pro-popover {
|
||||
background: var(--rsp-grey-100);
|
||||
z-index: 99;
|
||||
border: 1px solid var(--rsp-grey-400);
|
||||
margin: var(--rsp-spacing-xs) 0;
|
||||
padding: var(--rsp-spacing-m) var(--rsp-spacing-l);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: var(--rsp-spacing-m);
|
||||
|
||||
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
|
||||
animation-duration: 600ms;
|
||||
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
will-change: transform, opacity;
|
||||
|
||||
&[data-state='open'] {
|
||||
animation-name: slideDownAndFade;
|
||||
}
|
||||
|
||||
@keyframes slideDownAndFade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
&__arrow {
|
||||
--rsp-arrow-size: 8px;
|
||||
position: absolute;
|
||||
top: calc(-1 * var(--rsp-arrow-size));
|
||||
left: calc(var(--rsp-arrow-size) * 2);
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: var(--rsp-arrow-size) solid transparent;
|
||||
border-right: var(--rsp-arrow-size) solid transparent;
|
||||
border-bottom: var(--rsp-arrow-size) solid var(--rsp-grey-400);
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: calc(-1 * var(--rsp-arrow-size));
|
||||
right: calc(-1 * var(--rsp-arrow-size) + 1px);
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: calc(var(--rsp-arrow-size) - 1px) solid transparent;
|
||||
border-right: calc(var(--rsp-arrow-size) - 1px) solid transparent;
|
||||
border-bottom: calc(var(--rsp-arrow-size) - 1px) solid var(--rsp-grey-100);
|
||||
}
|
||||
}
|
||||
|
||||
&__header {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
grid-column: 1 / 2;
|
||||
order: -1;
|
||||
}
|
||||
|
||||
&__close {
|
||||
grid-column: 2 / 3;
|
||||
background: none;
|
||||
border: none;
|
||||
transition: transform 300ms ease-out;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 0px solid transparent;
|
||||
}
|
||||
}
|
||||
|
||||
h6 {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
p {
|
||||
|
||||
}
|
||||
|
||||
p.burst-pro-popover__small-text {
|
||||
font-size: var(--rsp-fs-200);
|
||||
color: var(--rsp-text-color-light);
|
||||
font-weight: 500;
|
||||
|
||||
}
|
||||
|
||||
&__bullet-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
|
||||
span {
|
||||
display: flex;
|
||||
font-size: var(--rsp-fs-400);
|
||||
gap: var(--rsp-spacing-xs);
|
||||
}
|
||||
}
|
||||
|
||||
&__footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
.burst-grid-item.burst-progress {
|
||||
.burst-grid-item-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.burst-placeholder {
|
||||
@include burst-block-padding;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-progress-block {
|
||||
.burst-progress {
|
||||
overflow: hidden;
|
||||
height: 7px;
|
||||
background-color: #f7f7f7;
|
||||
|
||||
.burst-bar {
|
||||
height: 100%;
|
||||
background-color: var(--rsp-color-success);
|
||||
|
||||
&.burst-orange {
|
||||
background-color: var(--rsp-color-warning);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-progress-text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@include burst-block-padding;
|
||||
padding-block: 0;
|
||||
padding-top: 10px;
|
||||
|
||||
.burst-progress-percentage {
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.burst-progress-text-span {
|
||||
margin-left: 35px;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
|
||||
a {
|
||||
margin-left: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-header-html {
|
||||
display: flex;
|
||||
color: var(--rsp-text-color-light);
|
||||
|
||||
.burst-toggle-active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-task-switcher-container {
|
||||
display: flex;
|
||||
border-radius: var(--rsp-border-radius);
|
||||
|
||||
.burst-task-switcher {
|
||||
&:first-of-type {
|
||||
border-right: 1px solid var(--rsp-grey-400);
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-task-switcher {
|
||||
font-size: var(--rsp-fs-200);
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-active-filter-remaining .burst-remaining-tasks, .burst-active-filter-all .burst-all-tasks {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Task element, list of tasks
|
||||
*/
|
||||
|
||||
.burst-task-element {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--rsp-spacing-m);
|
||||
padding-bottom: var(--rsp-spacing-s);
|
||||
|
||||
.burst-task-message {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.burst-task-form {
|
||||
margin-top: var(--rsp-spacing-xxs);
|
||||
display: flex;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
}
|
||||
|
||||
.burst-task-enable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.burst-task-dismiss {
|
||||
button {
|
||||
all: initial; //remove default button styles
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 1.5em;
|
||||
color: black;
|
||||
font-family: sans-serif;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
svg {
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-scroll-container {
|
||||
@include burst-block-padding;
|
||||
--rsp-scroll-bg-clr: var(--rsp-dark-blue-faded);
|
||||
//margin-top: 20px;
|
||||
height: 300px;
|
||||
overflow-y: auto;
|
||||
padding-block: 0;
|
||||
padding-top: var(--rsp-spacing-m);
|
||||
border-radius: 0;
|
||||
background-image: linear-gradient(to top, var(--rsp-scroll-bg-clr), var(--rsp-scroll-bg-clr)),
|
||||
linear-gradient(to top, var(--rsp-scroll-bg-clr), var(--rsp-scroll-bg-clr)),
|
||||
linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0)),
|
||||
linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0));
|
||||
background-position: bottom center, top center, bottom center, top center;
|
||||
background-color: var(--rsp-scroll-bg-clr);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 25px, 100% 25px, 100% 15px, 100% 15px;
|
||||
background-attachment: local, local, scroll, scroll;
|
||||
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
border-radius: 10px;
|
||||
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0);
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
background-color: var(--rsp-grey-300);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--rsp-grey-400);
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-progress-status-container {
|
||||
margin-right: 40px;
|
||||
}
|
||||
|
||||
.burst-task-status {
|
||||
display: block;
|
||||
min-width: 96px;
|
||||
text-align: center;
|
||||
border-radius: 15px;
|
||||
padding: 4px 8px;
|
||||
font-size: var(--rsp-fs-100);
|
||||
font-weight: 600;
|
||||
|
||||
&.burst-completed, &.burst-success {
|
||||
background-color: var(--rsp-green);
|
||||
color: var(--rsp-text-color-white);
|
||||
}
|
||||
|
||||
&.burst-open {
|
||||
background-color: var(--rsp-color-open);
|
||||
}
|
||||
|
||||
&.burst-error {
|
||||
background-color: var(--rsp-color-error);
|
||||
color: var(--rsp-text-color-white);
|
||||
}
|
||||
&.burst-sale{
|
||||
background-color: var(--rsp-orange);
|
||||
color: var(--rsp-text-color-white);
|
||||
}
|
||||
&.burst-warning {
|
||||
background-color: var(--rsp-color-warning);
|
||||
color: var(--rsp-text-color-white);
|
||||
}
|
||||
&.burst-new{
|
||||
background-color: var(--rsp-dark-blue);
|
||||
color: var(--rsp-text-color-white);
|
||||
}
|
||||
|
||||
&.burst-pro {
|
||||
background-color: var(--rsp-color-success);
|
||||
color: var(--rsp-text-color-white);
|
||||
}
|
||||
&.burst-loading{
|
||||
background-color: var(--rsp-white);
|
||||
color: var(--rsp-text-color-light);
|
||||
}
|
||||
//used in license block
|
||||
&.burst-skeleton{
|
||||
background-color: var(--rsp-grey-400);
|
||||
color: var(--rsp-white);
|
||||
}
|
||||
}
|
||||
|
||||
.burst-plusone {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
box-sizing: border-box;
|
||||
margin: 1px 0 -1px 2px;
|
||||
padding: 0 5px;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 9px;
|
||||
background-color: #d63638;
|
||||
color: #fff;
|
||||
font-size: var(--rsp-fs-100);
|
||||
line-height: 1.6;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
.burst {
|
||||
.uplift {
|
||||
font-weight: 500;
|
||||
|
||||
&.positive {
|
||||
color: var(--rsp-color-success);
|
||||
}
|
||||
|
||||
&.negative {
|
||||
color: var(--rsp-color-error);
|
||||
}
|
||||
}
|
||||
|
||||
.block__explanation-and-stats {
|
||||
display: grid;
|
||||
grid-auto-columns: 16px 4fr 1fr;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
grid-auto-flow: column;
|
||||
|
||||
&__right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.uplift {
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.burst-h5 {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: var(--rsp-fs-200);
|
||||
}
|
||||
|
||||
.burst-icon {
|
||||
align-items: flex-start;
|
||||
margin-top: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-statistics-container {
|
||||
height: 360px;
|
||||
margin-bottom: var(--rsp-spacing-m);
|
||||
}
|
||||
|
||||
.burst-filter-dropdown-content-body-item {
|
||||
margin-bottom: var(--rsp-spacing-xxs);
|
||||
}
|
||||
|
||||
.burst-data-filters {
|
||||
display: flex;
|
||||
grid-column: span 4;
|
||||
|
||||
.burst-date-range-container {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
.burst {
|
||||
.burst-flag-wrapper{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
}
|
||||
.burst-flag {
|
||||
svg {
|
||||
height: var(--rsp-fs-300);
|
||||
width: auto;
|
||||
}
|
||||
div {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,581 @@
|
||||
.rdrCalendarWrapper{
|
||||
color: #000000;
|
||||
font-size: var(--rsp-fs-400);
|
||||
}
|
||||
|
||||
.rdrDateDisplayWrapper{
|
||||
background-color: var(--rsp-green-faded);
|
||||
}
|
||||
|
||||
.rdrDateDisplay{
|
||||
margin: 0.833em;
|
||||
}
|
||||
|
||||
.rdrDateDisplayItem{
|
||||
border-radius: 4px;
|
||||
background-color: rgb(255, 255, 255);
|
||||
box-shadow: 0 1px 2px 0 rgba(35, 57, 66, 0.21);
|
||||
border: 1px solid transparent;
|
||||
input{
|
||||
cursor: pointer;
|
||||
height: 2.5em;
|
||||
line-height: 2.5em;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
width: 100%;
|
||||
color: #849095;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDateDisplayItemActive{
|
||||
border-color: currentColor;
|
||||
}
|
||||
|
||||
.rdrDateDisplayItemActive{
|
||||
input{
|
||||
color: #7d888d
|
||||
}
|
||||
}
|
||||
|
||||
.rdrMonthAndYearWrapper {
|
||||
align-items: center;
|
||||
height: 60px;
|
||||
padding-top: var(--rsp-spacing-xxs);
|
||||
}
|
||||
|
||||
.rdrMonthAndYearPickers{
|
||||
font-weight: 600;
|
||||
select{
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
border-radius: 4px;
|
||||
outline: 0;
|
||||
color: #3e484f;
|
||||
background: url("data:image/svg+xml;utf8,<svg width='9px' height='6px' viewBox='0 0 9 6' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><g id='Artboard' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' transform='translate(-636.000000, -171.000000)' fill-opacity='0.368716033'><g id='input' transform='translate(172.000000, 37.000000)' fill='%230E242F' fill-rule='nonzero'><g id='Group-9' transform='translate(323.000000, 127.000000)'><path d='M142.280245,7.23952813 C141.987305,6.92353472 141.512432,6.92361662 141.219585,7.23971106 C140.926739,7.5558055 140.926815,8.06821394 141.219755,8.38420735 L145.498801,13 L149.780245,8.38162071 C150.073185,8.0656273 150.073261,7.55321886 149.780415,7.23712442 C149.487568,6.92102998 149.012695,6.92094808 148.719755,7.23694149 L145.498801,10.7113732 L142.280245,7.23952813 Z' id='arrow'></path></g></g></g></svg>") no-repeat;
|
||||
background-position: right 8px center;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
&:hover{
|
||||
background-color: rgba(0,0,0,0.07);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rdrMonthPicker, .rdrYearPicker{
|
||||
margin: 0 5px
|
||||
}
|
||||
|
||||
.rdrNextPrevButton {
|
||||
display: block;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin: 0 0.833em;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
background: #EFF2F7;
|
||||
&:hover{
|
||||
background: #E1E7F0;
|
||||
}
|
||||
i {
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
border-style: solid;
|
||||
margin: auto;
|
||||
transform: translate(-3px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.rdrPprevButton {
|
||||
i {
|
||||
border-width: 4px 6px 4px 4px;
|
||||
border-color: transparent rgb(52, 73, 94) transparent transparent;
|
||||
transform: translate(-3px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.rdrNextButton {
|
||||
i {
|
||||
margin: 0 0 0 7px;
|
||||
border-width: 4px 4px 4px 6px;
|
||||
border-color: transparent transparent transparent rgb(52, 73, 94);
|
||||
transform: translate(3px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.rdrWeekDays {
|
||||
padding: 0 0.833em;
|
||||
}
|
||||
|
||||
.rdrMonth{
|
||||
padding: 0 0.833em 1.666em 0.833em;
|
||||
.rdrWeekDays {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrMonths.rdrMonthsVertical .rdrMonth:first-child .rdrMonthName{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rdrWeekDay {
|
||||
font-weight: 400;
|
||||
line-height: 2.667em;
|
||||
color: rgb(132, 144, 149);
|
||||
}
|
||||
|
||||
.rdrDay {
|
||||
background: transparent;
|
||||
user-select: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
aspect-ratio: 1.2 / 1;
|
||||
//line-height: 3.000em;
|
||||
//height: 3.000em;
|
||||
text-align: center;
|
||||
color: var(--rsp-text-color);
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDayNumber {
|
||||
outline: 0;
|
||||
font-weight: 300;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.rdrDayToday .rdrDayNumber span{
|
||||
font-weight: 500;
|
||||
&:after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0);
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 100%;
|
||||
background: var(--rsp-green);
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDayToday:not(.rdrDayPassive) {
|
||||
.rdrInRange, .rdrStartEdge, .rdrEndEdge, .rdrSelected{
|
||||
& ~ .rdrDayNumber span:after{
|
||||
background: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDay:not(.rdrDayPassive){
|
||||
.rdrInRange, .rdrStartEdge, .rdrEndEdge, .rdrSelected{
|
||||
& ~ .rdrDayNumber{
|
||||
span{
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rdrSelected, .rdrInRange, .rdrStartEdge, .rdrEndEdge{
|
||||
background: currentColor;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 5px;
|
||||
}
|
||||
|
||||
.rdrSelected{
|
||||
left: 2px;
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
.rdrInRange{}
|
||||
|
||||
.rdrStartEdge{
|
||||
border-top-left-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-left-radius: var(--rsp-border-radius-xs);
|
||||
left: 2px;
|
||||
}
|
||||
|
||||
.rdrEndEdge{
|
||||
border-top-right-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-right-radius: var(--rsp-border-radius-xs);
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
.rdrSelected{
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
}
|
||||
|
||||
.rdrDayStartOfMonth, .rdrDayStartOfWeek{
|
||||
.rdrInRange, .rdrEndEdge{
|
||||
border-top-left-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-left-radius: var(--rsp-border-radius-xs);
|
||||
left: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDayEndOfMonth, .rdrDayEndOfWeek{
|
||||
.rdrInRange, .rdrStartEdge{
|
||||
border-top-right-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-right-radius: var(--rsp-border-radius-xs);
|
||||
right: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDayStartOfMonth, .rdrDayStartOfWeek{
|
||||
.rdrDayInPreview, .rdrDayEndPreview{
|
||||
border-top-left-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-left-radius: var(--rsp-border-radius-xs);
|
||||
border-left-width: 2px;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDayEndOfMonth, .rdrDayEndOfWeek{
|
||||
.rdrDayInPreview, .rdrDayStartPreview{
|
||||
border-top-right-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-right-radius: var(--rsp-border-radius-xs);
|
||||
border-right-width: 2px;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.rdrDayStartPreview, .rdrDayInPreview, .rdrDayEndPreview{
|
||||
background: rgba(255, 255, 255, 0.09);
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 3px;
|
||||
pointer-events: none;
|
||||
border: 0 solid currentColor;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
|
||||
.rdrDayStartPreview{
|
||||
border-top-width: 2px;
|
||||
border-left-width: 2px;
|
||||
border-bottom-width: 2px;
|
||||
border-top-left-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-left-radius: var(--rsp-border-radius-xs);
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.rdrDayInPreview{
|
||||
border-top-width: 2px;
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
.rdrDayEndPreview{
|
||||
border-top-width: 2px;
|
||||
border-right-width: 2px;
|
||||
border-bottom-width: 2px;
|
||||
border-top-right-radius: var(--rsp-border-radius-xs);
|
||||
border-bottom-right-radius: var(--rsp-border-radius-xs);
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.rdrDefinedRangesWrapper{
|
||||
font-size: 12px;
|
||||
min-width: 160px;
|
||||
width: max-content;
|
||||
border-right: solid 1px #eff2f7;
|
||||
background: #fff;
|
||||
.rdrStaticRangeSelected{
|
||||
color: currentColor;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrStaticRange{
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
outline: 0;
|
||||
border-bottom: 1px solid #eff2f7;
|
||||
padding: 0;
|
||||
background: #fff;
|
||||
&:hover, &:focus{
|
||||
.rdrStaticRangeLabel{
|
||||
background: #eff2f7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rdrStaticRangeLabel{
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
outline: 0;
|
||||
line-height: 18px;
|
||||
padding: 10px 20px;
|
||||
text-align: left;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.rdrInputRanges{
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.rdrInputRange{
|
||||
align-items: center;
|
||||
padding: 5px 20px;
|
||||
}
|
||||
|
||||
.rdrInputRangeInput{
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
border: solid 1px rgb(222, 231, 235);
|
||||
margin-right: 10px;
|
||||
color: rgb(108, 118, 122);
|
||||
&:focus, &:hover{
|
||||
border-color: rgb(180, 191, 196);
|
||||
outline: 0;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrCalendarWrapper:not(.rdrDateRangeWrapper) .rdrDayHovered .rdrDayNumber:after{
|
||||
content: '';
|
||||
border: 1px solid currentColor;
|
||||
border-radius: 1.333em;
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
bottom: -2px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.rdrDayPassive{
|
||||
pointer-events: none;
|
||||
.rdrDayNumber span{
|
||||
color: #d5dce0;
|
||||
}
|
||||
.rdrInRange, .rdrStartEdge, .rdrEndEdge, .rdrSelected, .rdrDayStartPreview, .rdrDayInPreview, .rdrDayEndPreview{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDayDisabled {
|
||||
background-color: rgb(248, 248, 248);
|
||||
.rdrDayNumber span{
|
||||
color: #aeb9bf;
|
||||
}
|
||||
.rdrInRange, .rdrStartEdge, .rdrEndEdge, .rdrSelected, .rdrDayStartPreview, .rdrDayInPreview, .rdrDayEndPreview{
|
||||
filter: grayscale(100%) opacity(60%);
|
||||
}
|
||||
}
|
||||
|
||||
.rdrMonthName{
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
color: #849095;
|
||||
padding: var(--rsp-spacing-xxs);
|
||||
}
|
||||
// Calendar
|
||||
.rdrCalendarWrapper {
|
||||
box-sizing: border-box;
|
||||
background: #ffffff;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.rdrDateDisplay{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.rdrDateDisplayItem{
|
||||
flex: 1 1;
|
||||
width: 0;
|
||||
text-align: center;
|
||||
color: inherit;
|
||||
& + &{
|
||||
margin-left: 0.833em;
|
||||
}
|
||||
input{
|
||||
color: var(--rsp-text-color);
|
||||
text-align: inherit;
|
||||
&:disabled{
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDateDisplayItemActive{}
|
||||
|
||||
.rdrMonthAndYearWrapper {
|
||||
box-sizing: inherit;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.rdrMonthAndYearPickers{
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.rdrMonthPicker{}
|
||||
|
||||
.rdrYearPicker{}
|
||||
|
||||
.rdrNextPrevButton {
|
||||
box-sizing: inherit;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.rdrPprevButton {}
|
||||
|
||||
.rdrNextButton {}
|
||||
|
||||
.rdrMonths{
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.rdrMonthsVertical{
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.rdrMonthsHorizontal > div > div > div{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.rdrMonth{
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.rdrWeekDays{
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.rdrWeekDay {
|
||||
flex-basis: calc(100% / 7);
|
||||
box-sizing: inherit;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.rdrDays{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.rdrDateDisplayWrapper{}
|
||||
|
||||
.rdrMonthName{}
|
||||
|
||||
.rdrInfiniteMonths{
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
// DateRangePicker
|
||||
.rdrDateRangeWrapper{
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
// DateInput
|
||||
.rdrDateInput {
|
||||
position: relative;
|
||||
|
||||
input {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.rdrWarning {
|
||||
position: absolute;
|
||||
font-size: 1.6em;
|
||||
line-height: 1.6em;
|
||||
top: 0;
|
||||
right: .25em;
|
||||
color: #FF0000;
|
||||
}
|
||||
}
|
||||
|
||||
// DayCell
|
||||
.rdrDay {
|
||||
box-sizing: inherit;
|
||||
width: calc(100% / 7);
|
||||
position: relative;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.rdrDayNumber {
|
||||
display: block;
|
||||
position: relative;
|
||||
span{
|
||||
color: #1d2429;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrDayDisabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
@supports (-ms-ime-align: auto) {
|
||||
.rdrDay {
|
||||
flex-basis: 14.285% !important;
|
||||
}
|
||||
}
|
||||
|
||||
.rdrSelected, .rdrInRange, .rdrStartEdge, .rdrEndEdge{
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.rdrInRange{}
|
||||
|
||||
.rdrDayStartPreview, .rdrDayInPreview, .rdrDayEndPreview{
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.rdrDayHovered{}
|
||||
|
||||
.rdrDayActive{}
|
||||
|
||||
// DateRangePicker
|
||||
.rdrDateRangePickerWrapper{
|
||||
display: inline-flex;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
// DefinedRange
|
||||
.rdrDefinedRangesWrapper{}
|
||||
|
||||
.rdrStaticRanges{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.rdrStaticRange{
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.rdrStaticRangeLabel{}
|
||||
|
||||
.rdrInputRanges{}
|
||||
|
||||
.rdrInputRange{
|
||||
display: flex;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
.burst {
|
||||
---rsp-filter-padding: 0.3rem 0.9rem;
|
||||
|
||||
.burst-data-filters {
|
||||
gap: var(--rsp-spacing-xs);
|
||||
.burst-data-filter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
padding: var(---rsp-filter-padding);
|
||||
box-shadow: var(--rsp-box-shadow);
|
||||
background: var(--rsp-grey-200);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
border: 1px solid var(--rsp-input-border-color);
|
||||
|
||||
.burst-data-filter__label {
|
||||
font-size: var(--rsp-fs-400);
|
||||
font-weight: 600;
|
||||
line-height: var(--rsp-fs-400);
|
||||
}
|
||||
|
||||
.burst-data-filter-divider, .burst-divider {
|
||||
width: 1px;
|
||||
height: 80%;
|
||||
background: var(--rsp-grey-500);
|
||||
}
|
||||
|
||||
.burst-data-filter__value {
|
||||
font-size: var(--rsp-fs-300);
|
||||
line-height: var(--rsp-fs-300);
|
||||
}
|
||||
button{
|
||||
// delete all button styling
|
||||
border: none;
|
||||
background: none;
|
||||
margin: 0;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
|
||||
// add custom styling
|
||||
padding: auto var(--rsp-spacing-xs);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&--animate {
|
||||
opacity: 0;
|
||||
transform: scale(0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
.burst-click-to-filter{
|
||||
cursor: pointer;
|
||||
//display: block;
|
||||
//border-radius: var(--rsp-border-radius-xs);
|
||||
//padding: var(--rsp-spacing-l) var(--rsp-spacing-xs);
|
||||
//transition: background-color 0.2s ease-in-out;
|
||||
//&:hover{
|
||||
// background: rgba(10, 10, 65, 0.08);
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
.burst{
|
||||
.burst-insights{
|
||||
padding-bottom: var(--rsp-spacing-m);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
.burst-tips-tricks-container {
|
||||
display: flex !important;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 10px;
|
||||
font-size: var(--rsp-fs-300);
|
||||
line-height: 1.7;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
|
||||
@media screen and (max-width: 992px) {
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.burst-tips-tricks-element {
|
||||
width: calc(50% - var(--rsp-spacing-xxs));
|
||||
@media( max-width: $rsp-break-xs ){
|
||||
width: 100%;
|
||||
}
|
||||
a {
|
||||
color: var(--rsp-text-color-light);
|
||||
transition: color 0.3s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
min-width: 0; /* or some value */
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
color: var(--rsp-brand-primary);
|
||||
text-decoration: underline;
|
||||
|
||||
.burst-bullet {
|
||||
background-color: var(--rsp-brand-primary);
|
||||
}
|
||||
|
||||
.burst-tips-tricks-content {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-bullet {
|
||||
transition: background-color 0.3s ease;
|
||||
background-color: var(--rsp-grey-300);
|
||||
}
|
||||
.burst-tips-tricks-content {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
.#{$rt-namespace}__close-button {
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
outline: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
opacity: 0.7;
|
||||
transition: 0.3s ease;
|
||||
align-self: flex-start;
|
||||
|
||||
&--light {
|
||||
color: #000;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
& > svg {
|
||||
fill: currentColor;
|
||||
height: 16px;
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
.#{$rt-namespace}__spinner {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
box-sizing: border-box;
|
||||
border: 2px solid;
|
||||
border-radius: 100%;
|
||||
border-color: var(--toastify-spinner-color-empty-area);
|
||||
border-right-color: var(--toastify-spinner-color);
|
||||
animation: #{$rt-namespace}__spin 0.65s linear infinite;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
@keyframes #{$rt-namespace}__trackProgress {
|
||||
0% {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
100% {
|
||||
transform: scaleX(0);
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__progress-bar {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
z-index: var(--toastify-z-index);
|
||||
opacity: 0.7;
|
||||
transform-origin: left;
|
||||
|
||||
&--animated {
|
||||
animation: #{$rt-namespace}__trackProgress linear 1 forwards;
|
||||
}
|
||||
|
||||
&--controlled {
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
&--rtl {
|
||||
right: 0;
|
||||
left: initial;
|
||||
transform-origin: right;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
.#{$rt-namespace}__toast {
|
||||
&-theme--dark {
|
||||
background: var(--toastify-color-dark);
|
||||
color: var(--toastify-text-color-dark);
|
||||
}
|
||||
&-theme--light {
|
||||
background: var(--toastify-color-light);
|
||||
color: var(--toastify-text-color-light);
|
||||
}
|
||||
&-theme--colored#{&}--default {
|
||||
background: var(--toastify-color-light);
|
||||
color: var(--toastify-text-color-light);
|
||||
}
|
||||
&-theme--colored#{&}--info {
|
||||
color: var(--toastify-text-color-info);
|
||||
background: var(--toastify-color-info);
|
||||
}
|
||||
&-theme--colored#{&}--success {
|
||||
color: var(--toastify-text-color-success);
|
||||
background: var(--toastify-color-success);
|
||||
}
|
||||
&-theme--colored#{&}--warning {
|
||||
color: var(--toastify-text-color-warning);
|
||||
background: var(--toastify-color-warning);
|
||||
}
|
||||
&-theme--colored#{&}--error {
|
||||
color: var(--toastify-text-color-error);
|
||||
background: var(--toastify-color-error);
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__progress-bar {
|
||||
&-theme--light {
|
||||
background: var(--toastify-color-progress-light);
|
||||
}
|
||||
&-theme--dark {
|
||||
background: var(--toastify-color-progress-dark);
|
||||
}
|
||||
&--info {
|
||||
background: var(--toastify-color-progress-info);
|
||||
}
|
||||
&--success {
|
||||
background: var(--toastify-color-progress-success);
|
||||
}
|
||||
&--warning {
|
||||
background: var(--toastify-color-progress-warning);
|
||||
}
|
||||
&--error {
|
||||
background: var(--toastify-color-progress-error);
|
||||
}
|
||||
&-theme--colored#{&}--info,
|
||||
&-theme--colored#{&}--success,
|
||||
&-theme--colored#{&}--warning,
|
||||
&-theme--colored#{&}--error {
|
||||
background: var(--toastify-color-transparent);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
.#{$rt-namespace}__toast {
|
||||
position: relative;
|
||||
min-height: var(--toastify-toast-min-height);
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 1rem;
|
||||
padding: 8px;
|
||||
border-radius: var(--rsp-border-radius);
|
||||
border: 1px solid #eeeeee;
|
||||
box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
|
||||
box-shadow: var(--rsp-box-shadow);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
max-height: var(--toastify-toast-max-height);
|
||||
overflow: hidden;
|
||||
font-family: var(--toastify-font-family);
|
||||
cursor: default;
|
||||
direction: ltr;
|
||||
/* webkit only issue #791 */
|
||||
z-index: 0;
|
||||
&--rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
&--close-on-click {
|
||||
cursor: pointer;
|
||||
}
|
||||
&-body {
|
||||
margin: auto 0;
|
||||
flex: 1 1 auto;
|
||||
padding: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
& > div:last-child {
|
||||
word-break: break-word;
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
&-icon {
|
||||
margin-inline-end: 10px;
|
||||
width: 20px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}--animate {
|
||||
animation-fill-mode: both;
|
||||
animation-duration: 0.7s;
|
||||
}
|
||||
|
||||
.#{$rt-namespace}--animate-icon {
|
||||
animation-fill-mode: both;
|
||||
animation-duration: 0.3s;
|
||||
}
|
||||
|
||||
@media #{$rt-mobile} {
|
||||
.#{$rt-namespace}__toast {
|
||||
margin-bottom: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
.#{$rt-namespace}__toast-container {
|
||||
z-index: var(--toastify-z-index);
|
||||
-webkit-transform: translate3d(0, 0, var(--toastify-z-index) px);
|
||||
position: fixed;
|
||||
padding: 4px;
|
||||
width: var(--toastify-toast-width);
|
||||
box-sizing: border-box;
|
||||
color: #fff;
|
||||
&--top-left {
|
||||
top: 1em;
|
||||
left: 1em;
|
||||
}
|
||||
&--top-center {
|
||||
top: calc( 2em + 32px);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
&--top-right {
|
||||
top: 1em;
|
||||
right: 1em;
|
||||
}
|
||||
&--bottom-left {
|
||||
bottom: 1em;
|
||||
left: 1em;
|
||||
}
|
||||
&--bottom-center {
|
||||
bottom: 1em;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
&--bottom-right {
|
||||
bottom: 1em;
|
||||
right: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$rt-mobile} {
|
||||
.#{$rt-namespace}__toast-container {
|
||||
width: 100vw;
|
||||
padding: 0;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
&--top-left,
|
||||
&--top-center,
|
||||
&--top-right {
|
||||
top: 0;
|
||||
transform: translateX(0);
|
||||
}
|
||||
&--bottom-left,
|
||||
&--bottom-center,
|
||||
&--bottom-right {
|
||||
bottom: 0;
|
||||
transform: translateX(0);
|
||||
}
|
||||
&--rtl {
|
||||
right: 0;
|
||||
left: initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
$rt-namespace: 'Toastify';
|
||||
$rt-mobile: 'only screen and (max-width : 480px)' !default;
|
||||
|
||||
:root {
|
||||
--toastify-color-light: var(--rsp-white);
|
||||
--toastify-color-dark: var(--rsp-black);
|
||||
--toastify-color-info: var(--rsp-yellow);
|
||||
--toastify-color-success: var(--rsp-green);
|
||||
--toastify-color-warning: var(--rsp-orange);
|
||||
--toastify-color-error: var(--rsp-red);
|
||||
--toastify-color-transparent: rgba(255, 255, 255, 0.7);
|
||||
|
||||
--toastify-icon-color-info: var(--toastify-color-info);
|
||||
--toastify-icon-color-success: var(--toastify-color-success);
|
||||
--toastify-icon-color-warning: var(--toastify-color-warning);
|
||||
--toastify-icon-color-error: var(--toastify-color-error);
|
||||
|
||||
--toastify-toast-width: 320px;
|
||||
--toastify-toast-background: #fff;
|
||||
--toastify-toast-min-height: 42px;
|
||||
--toastify-toast-max-height: 800px;
|
||||
--toastify-font-family: sans-serif;
|
||||
--toastify-z-index: 9999;
|
||||
|
||||
--toastify-text-color-light: var(--rsp-text-color);
|
||||
--toastify-text-color-dark: var(--rsp-text-color-white);
|
||||
|
||||
//Used only for colored theme
|
||||
--toastify-text-color-info: #fff;
|
||||
--toastify-text-color-success: #fff;
|
||||
--toastify-text-color-warning: #fff;
|
||||
--toastify-text-color-error: #fff;
|
||||
|
||||
--toastify-spinner-color: #616161;
|
||||
--toastify-spinner-color-empty-area: #e0e0e0;
|
||||
|
||||
// Used when no type is provided
|
||||
--toastify-color-progress-light: linear-gradient(
|
||||
to right,
|
||||
#4cd964,
|
||||
#5ac8fa,
|
||||
#007aff,
|
||||
#34aadc,
|
||||
#5856d6,
|
||||
#ff2d55
|
||||
);
|
||||
// Used when no type is provided
|
||||
--toastify-color-progress-dark: #bb86fc;
|
||||
--toastify-color-progress-info: var(--toastify-color-info);
|
||||
--toastify-color-progress-success: var(--toastify-color-success);
|
||||
--toastify-color-progress-warning: var(--toastify-color-warning);
|
||||
--toastify-color-progress-error: var(--toastify-color-error);
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
@mixin timing-function {
|
||||
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__bounceInRight {
|
||||
from,
|
||||
60%,
|
||||
75%,
|
||||
90%,
|
||||
to {
|
||||
@include timing-function;
|
||||
}
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translate3d(3000px, 0, 0);
|
||||
}
|
||||
60% {
|
||||
opacity: 1;
|
||||
transform: translate3d(-25px, 0, 0);
|
||||
}
|
||||
75% {
|
||||
transform: translate3d(10px, 0, 0);
|
||||
}
|
||||
90% {
|
||||
transform: translate3d(-5px, 0, 0);
|
||||
}
|
||||
to {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__bounceOutRight {
|
||||
20% {
|
||||
opacity: 1;
|
||||
transform: translate3d(-20px, 0, 0);
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translate3d(2000px, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__bounceInLeft {
|
||||
from,
|
||||
60%,
|
||||
75%,
|
||||
90%,
|
||||
to {
|
||||
@include timing-function;
|
||||
}
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translate3d(-3000px, 0, 0);
|
||||
}
|
||||
60% {
|
||||
opacity: 1;
|
||||
transform: translate3d(25px, 0, 0);
|
||||
}
|
||||
75% {
|
||||
transform: translate3d(-10px, 0, 0);
|
||||
}
|
||||
90% {
|
||||
transform: translate3d(5px, 0, 0);
|
||||
}
|
||||
to {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__bounceOutLeft {
|
||||
20% {
|
||||
opacity: 1;
|
||||
transform: translate3d(20px, 0, 0);
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translate3d(-2000px, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__bounceInUp {
|
||||
from,
|
||||
60%,
|
||||
75%,
|
||||
90%,
|
||||
to {
|
||||
@include timing-function;
|
||||
}
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translate3d(0, 3000px, 0);
|
||||
}
|
||||
60% {
|
||||
opacity: 1;
|
||||
transform: translate3d(0, -20px, 0);
|
||||
}
|
||||
75% {
|
||||
transform: translate3d(0, 10px, 0);
|
||||
}
|
||||
90% {
|
||||
transform: translate3d(0, -5px, 0);
|
||||
}
|
||||
to {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__bounceOutUp {
|
||||
20% {
|
||||
transform: translate3d(0, -10px, 0);
|
||||
}
|
||||
40%,
|
||||
45% {
|
||||
opacity: 1;
|
||||
transform: translate3d(0, 20px, 0);
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translate3d(0, -2000px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__bounceInDown {
|
||||
from,
|
||||
60%,
|
||||
75%,
|
||||
90%,
|
||||
to {
|
||||
@include timing-function;
|
||||
}
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translate3d(0, -3000px, 0);
|
||||
}
|
||||
60% {
|
||||
opacity: 1;
|
||||
transform: translate3d(0, 25px, 0);
|
||||
}
|
||||
75% {
|
||||
transform: translate3d(0, -10px, 0);
|
||||
}
|
||||
90% {
|
||||
transform: translate3d(0, 5px, 0);
|
||||
}
|
||||
to {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__bounceOutDown {
|
||||
20% {
|
||||
transform: translate3d(0, 10px, 0);
|
||||
}
|
||||
40%,
|
||||
45% {
|
||||
opacity: 1;
|
||||
transform: translate3d(0, -20px, 0);
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translate3d(0, 2000px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__bounce-enter {
|
||||
&--top-left,
|
||||
&--bottom-left {
|
||||
animation-name: #{$rt-namespace}__bounceInLeft;
|
||||
}
|
||||
&--top-right,
|
||||
&--bottom-right {
|
||||
animation-name: #{$rt-namespace}__bounceInRight;
|
||||
}
|
||||
&--top-center {
|
||||
animation-name: #{$rt-namespace}__bounceInDown;
|
||||
}
|
||||
&--bottom-center {
|
||||
animation-name: #{$rt-namespace}__bounceInUp;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__bounce-exit {
|
||||
&--top-left,
|
||||
&--bottom-left {
|
||||
animation-name: #{$rt-namespace}__bounceOutLeft;
|
||||
}
|
||||
&--top-right,
|
||||
&--bottom-right {
|
||||
animation-name: #{$rt-namespace}__bounceOutRight;
|
||||
}
|
||||
&--top-center {
|
||||
animation-name: #{$rt-namespace}__bounceOutUp;
|
||||
}
|
||||
&--bottom-center {
|
||||
animation-name: #{$rt-namespace}__bounceOutDown;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
@keyframes #{$rt-namespace}__flipIn {
|
||||
from {
|
||||
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
||||
animation-timing-function: ease-in;
|
||||
opacity: 0;
|
||||
}
|
||||
40% {
|
||||
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
|
||||
animation-timing-function: ease-in;
|
||||
}
|
||||
60% {
|
||||
transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
|
||||
opacity: 1;
|
||||
}
|
||||
80% {
|
||||
transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
|
||||
}
|
||||
to {
|
||||
transform: perspective(400px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__flipOut {
|
||||
from {
|
||||
transform: perspective(400px);
|
||||
}
|
||||
30% {
|
||||
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__flip-enter {
|
||||
animation-name: #{$rt-namespace}__flipIn;
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__flip-exit {
|
||||
animation-name: #{$rt-namespace}__flipOut;
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
@mixin transform {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__slideInRight {
|
||||
from {
|
||||
transform: translate3d(110%, 0, 0);
|
||||
visibility: visible;
|
||||
}
|
||||
to {
|
||||
@include transform;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__slideInLeft {
|
||||
from {
|
||||
transform: translate3d(-110%, 0, 0);
|
||||
visibility: visible;
|
||||
}
|
||||
to {
|
||||
@include transform;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__slideInUp {
|
||||
from {
|
||||
transform: translate3d(0, 110%, 0);
|
||||
visibility: visible;
|
||||
}
|
||||
to {
|
||||
@include transform;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__slideInDown {
|
||||
from {
|
||||
transform: translate3d(0, -110%, 0);
|
||||
visibility: visible;
|
||||
}
|
||||
to {
|
||||
@include transform;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__slideOutRight {
|
||||
from {
|
||||
@include transform;
|
||||
}
|
||||
to {
|
||||
visibility: hidden;
|
||||
transform: translate3d(110%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__slideOutLeft {
|
||||
from {
|
||||
@include transform;
|
||||
}
|
||||
to {
|
||||
visibility: hidden;
|
||||
transform: translate3d(-110%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__slideOutDown {
|
||||
from {
|
||||
@include transform;
|
||||
}
|
||||
to {
|
||||
visibility: hidden;
|
||||
transform: translate3d(0, 500px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__slideOutUp {
|
||||
from {
|
||||
@include transform;
|
||||
}
|
||||
to {
|
||||
visibility: hidden;
|
||||
transform: translate3d(0, -500px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__slide-enter {
|
||||
&--top-left,
|
||||
&--bottom-left {
|
||||
animation-name: #{$rt-namespace}__slideInLeft;
|
||||
}
|
||||
&--top-right,
|
||||
&--bottom-right {
|
||||
animation-name: #{$rt-namespace}__slideInRight;
|
||||
}
|
||||
&--top-center {
|
||||
animation-name: #{$rt-namespace}__slideInDown;
|
||||
}
|
||||
&--bottom-center {
|
||||
animation-name: #{$rt-namespace}__slideInUp;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__slide-exit {
|
||||
&--top-left,
|
||||
&--bottom-left {
|
||||
animation-name: #{$rt-namespace}__slideOutLeft;
|
||||
}
|
||||
&--top-right,
|
||||
&--bottom-right {
|
||||
animation-name: #{$rt-namespace}__slideOutRight;
|
||||
}
|
||||
&--top-center {
|
||||
animation-name: #{$rt-namespace}__slideOutUp;
|
||||
}
|
||||
&--bottom-center {
|
||||
animation-name: #{$rt-namespace}__slideOutDown;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
@keyframes #{$rt-namespace}__spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
@keyframes #{$rt-namespace}__zoomIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale3d(0.3, 0.3, 0.3);
|
||||
}
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$rt-namespace}__zoomOut {
|
||||
from {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0;
|
||||
transform: scale3d(0.3, 0.3, 0.3);
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__zoom-enter {
|
||||
animation-name: #{$rt-namespace}__zoomIn;
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__zoom-exit {
|
||||
animation-name: #{$rt-namespace}__zoomOut;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
@import 'variables';
|
||||
@import 'toastContainer';
|
||||
@import 'toast';
|
||||
@import 'theme';
|
||||
@import 'closeButton';
|
||||
@import 'progressBar';
|
||||
@import 'icons';
|
||||
|
||||
// entrance and exit animations
|
||||
@import 'animations/bounce.scss';
|
||||
@import 'animations/zoom.scss';
|
||||
@import 'animations/flip.scss';
|
||||
@import 'animations/slide.scss';
|
||||
@import 'animations/spin.scss';
|
||||
@@ -0,0 +1,16 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
@import 'variables';
|
||||
|
||||
@keyframes #{$rt-namespace}__trackProgress {
|
||||
0% {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
100% {
|
||||
transform: scaleX(0);
|
||||
}
|
||||
}
|
||||
|
||||
.#{$rt-namespace}__progress-bar {
|
||||
animation: #{$rt-namespace}__trackProgress linear 1 forwards;
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
.burst-tooltip-content {
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
padding: 7px var(--rsp-spacing-xs);
|
||||
font-size: var(--rsp-fs-200);
|
||||
line-height: 1.5;
|
||||
color: var(--rsp-text-color-white);
|
||||
background-color: var(--rsp-black);
|
||||
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
|
||||
user-select: none;
|
||||
animation-duration: 400ms;
|
||||
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
will-change: transform, opacity;
|
||||
max-width: 40ch;
|
||||
}
|
||||
.burst-tooltip-content[data-state='delayed-open'][data-side='top'] {
|
||||
animation-name: slideDownAndFade;
|
||||
}
|
||||
.burst-tooltip-content[data-state='delayed-open'][data-side='right'] {
|
||||
animation-name: slideLeftAndFade;
|
||||
}
|
||||
.burst-tooltip-content[data-state='delayed-open'][data-side='bottom'] {
|
||||
animation-name: slideUpAndFade;
|
||||
}
|
||||
.burst-tooltip-content[data-state='delayed-open'][data-side='left'] {
|
||||
animation-name: slideRightAndFade;
|
||||
}
|
||||
|
||||
.burst-tooltip-arrow {
|
||||
fill: var(--rsp-black);
|
||||
}
|
||||
|
||||
@keyframes slideUpAndFade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(2px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideRightAndFade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(-2px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideDownAndFade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideLeftAndFade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
.burst-shepherd {
|
||||
--rsp-black: #333;
|
||||
background: var(--rsp-black);
|
||||
color: var(--rsp-white);
|
||||
box-shadow: 0 5px 5px -3px rgb(0 0 0 / 20%), 0 8px 10px 1px rgb(0 0 0 / 14%), 0 3px 14px 2px rgb(0 0 0 / 12%);
|
||||
width: min(45ch, 100%);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
z-index: 999;
|
||||
margin: var(--rsp-spacing-s) !important; // this is only used to overwrite an inline style
|
||||
|
||||
.shepherd-arrow, .shepherd-arrow:before {
|
||||
position: absolute;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
z-index: -1
|
||||
}
|
||||
|
||||
.shepherd-arrow:before {
|
||||
content: "";
|
||||
transform: rotate(45deg);
|
||||
background: var(--rsp-black);
|
||||
}
|
||||
|
||||
&[data-popper-placement^=top] > .shepherd-arrow {
|
||||
bottom: -8px
|
||||
}
|
||||
|
||||
&[data-popper-placement^=bottom] > .shepherd-arrow {
|
||||
top: -8px
|
||||
}
|
||||
|
||||
&[data-popper-placement^=left] > .shepherd-arrow {
|
||||
right: -8px
|
||||
}
|
||||
|
||||
&[data-popper-placement^=right] > .shepherd-arrow {
|
||||
left: -8px
|
||||
}
|
||||
|
||||
&.shepherd-centered > .shepherd-arrow {
|
||||
opacity: 0
|
||||
}
|
||||
|
||||
.shepherd-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 30px;
|
||||
padding-inline: var(--rsp-spacing-s);
|
||||
padding-block: var(--rsp-spacing-xs);
|
||||
|
||||
.shepherd-title {
|
||||
margin: 0;
|
||||
color: var(--rsp-white);
|
||||
}
|
||||
|
||||
button.shepherd-cancel-icon {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
color: var(--rsp-text-color-white);
|
||||
font-size: 20px;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
|
||||
&:hover {
|
||||
color: var(--rsp-text-color-hover);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.shepherd-text {
|
||||
padding-inline: var(--rsp-spacing-s);
|
||||
padding-block: var(--rsp-spacing-xxs);
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
margin-top: var(--rsp-spacing-xxs);
|
||||
color: var(--rsp-white);
|
||||
|
||||
&:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.shepherd-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
min-height: 30px;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
padding-inline: var(--rsp-spacing-s);
|
||||
padding-block: var(--rsp-spacing-xs);
|
||||
}
|
||||
}
|
||||
.dashboard_page_burst .shepherd-modal-overlay-container{
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
.burst {
|
||||
div[class^="burst-wizard-"] { // starts with selector
|
||||
.burst-helplink {
|
||||
color: var(--rsp-text-color);
|
||||
}
|
||||
|
||||
.burst-grid-item {
|
||||
position: relative; //to ensure the burst-lock stays within the div
|
||||
margin-bottom: var(--rsp-grid-gap);
|
||||
@media(max-width: $rsp-break-s) {
|
||||
grid-column: span 4;
|
||||
}
|
||||
}
|
||||
&.burst-column-2{
|
||||
grid-column: span 2;
|
||||
@media(max-width: $rsp-break-s) {
|
||||
grid-column: span 4;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-locked {
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
border-radius: var(--rsp-border-radius);
|
||||
|
||||
.burst-locked-overlay {
|
||||
z-index: 1;
|
||||
top: calc(100% - 95px);
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-s);
|
||||
background-color: var(--rsp-grey-100);
|
||||
border: 1px solid var(--rsp-grey-300);
|
||||
@include burst-block-padding;
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
margin: var(--rsp-spacing-s);
|
||||
box-shadow: var(--rsp-box-shadow);
|
||||
|
||||
.burst-open {
|
||||
float: left;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.burst-progress-status {
|
||||
float: left;
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-grid-item-footer {
|
||||
justify-content: flex-end;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--rsp-grid-margin);
|
||||
width: 100%;
|
||||
min-height: 20px;
|
||||
box-sizing: border-box;
|
||||
align-self: flex-end;
|
||||
//position: sticky;
|
||||
//bottom: 0;
|
||||
//@include burst-block-padding;
|
||||
//
|
||||
//&:sticky{
|
||||
// background: #fff;
|
||||
//}
|
||||
|
||||
//position: fixed;
|
||||
//z-index: 1;
|
||||
//bottom: 0;
|
||||
//right: 0;
|
||||
//background: #fff;
|
||||
//padding: 10px 458px 10px 0px;
|
||||
//box-shadow: var(--rsp-box-shadow);
|
||||
//border-top: 1px solid var(--rsp-grey-300);
|
||||
|
||||
.burst-legend {
|
||||
display: flex;
|
||||
span {
|
||||
padding-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.button-add-ip{
|
||||
margin-top: var(--rsp-spacing-xs);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
.burst {
|
||||
|
||||
input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] {
|
||||
background-color: var(--rsp-input-background-color);
|
||||
border: 1px solid var(--rsp-input-border-color);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
color: var(--rsp-input-text-color);
|
||||
}
|
||||
|
||||
div[class^="burst-wizard-"] { // starts with selector
|
||||
|
||||
input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] {
|
||||
background-color: var(--rsp-input-background-color);
|
||||
border: 1px solid var(--rsp-input-border-color);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
color: var(--rsp-input-text-color);
|
||||
}
|
||||
|
||||
.components-flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.components-flex-item label {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.components-input-control__container {
|
||||
max-width: max-content;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-grid-item-content label {
|
||||
color: var(--rsp-text-color);
|
||||
font-size: var(--rsp-fs-400);
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
text-transform: unset;
|
||||
box-sizing: border-box;
|
||||
display: inherit;
|
||||
max-width: 100%;
|
||||
z-index: 1;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.components-base-control__field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.components-toggle-control {
|
||||
.components-base-control__field, .components-flex {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.components-form-toggle {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.components-form-toggle.is-checked .components-form-toggle__track {
|
||||
background-color: var(--rsp-green);
|
||||
}
|
||||
|
||||
.burst-grid-item {
|
||||
.burst-grid-item-content {
|
||||
padding: var(--rsp-spacing-xs) 0;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-field-wrap, .burst-settings-block-intro {
|
||||
padding-block: var(--rsp-spacing-s);
|
||||
@include burst-inline-block-padding;
|
||||
|
||||
& > .burst-field-wrap {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-field-button {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.burst-highlight {
|
||||
background-color: transparent;
|
||||
border-left: 4px solid var(--rsp-green);
|
||||
-o-animation: fadeIt 3s ease-in-out;
|
||||
animation: fadeIt 3s ease-in-out;
|
||||
}
|
||||
|
||||
@-o-keyframes fadeIt {
|
||||
0% {
|
||||
background-color: transparent;
|
||||
}
|
||||
30% {
|
||||
background-color: var(--rsp-green-faded);
|
||||
}
|
||||
100% {
|
||||
border-right: 0;
|
||||
background-color: inherit;
|
||||
}
|
||||
}
|
||||
@keyframes fadeIt {
|
||||
0% {
|
||||
background-color: transparent;
|
||||
border-right: 0;
|
||||
}
|
||||
30% {
|
||||
background-color: var(--rsp-green-faded);
|
||||
}
|
||||
100% {
|
||||
background-color: inherit;
|
||||
}
|
||||
}
|
||||
//switch padding to top, to prevent tasks from getting stuck to text field
|
||||
.burst-license {
|
||||
.burst-task-element {
|
||||
padding-top: var(--rsp-spacing-s);
|
||||
padding-bottom: 0;
|
||||
//limit width of skeleton icon, which causes scrollbars in the side during loading
|
||||
.burst-icon {
|
||||
width:15px;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-license-field {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-user-role-checkbox-blocklist {
|
||||
margin-top: var(--rsp-spacing-xs);
|
||||
|
||||
label {
|
||||
margin-top: var(--rsp-spacing-xxs);
|
||||
font-weight: 400;
|
||||
font-size: var(--rsp-fs-300);
|
||||
}
|
||||
}
|
||||
|
||||
.burst-class-id-field {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
|
||||
& > * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__input {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
grid-template-columns: 28px 1fr;
|
||||
|
||||
button {
|
||||
background-color: var(--rsp-input-background-color);
|
||||
border: 1px solid var(--rsp-input-border-color);
|
||||
border-radius: var(--rsp-border-radius-xs) 0 0 var(--rsp-border-radius-xs);
|
||||
border-right: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input {
|
||||
margin-left: 0;
|
||||
border-radius: 0 var(--rsp-border-radius-xs) var(--rsp-border-radius-xs) 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-license {
|
||||
.button {
|
||||
margin-top: var(--rsp-spacing-xs);
|
||||
}
|
||||
}
|
||||
.burst-comment {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,329 @@
|
||||
.burst div[class^=burst-wizard-] {
|
||||
.burst-settings-goals {
|
||||
&__list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: var(--rsp-spacing-s);
|
||||
margin-top: var(--rsp-spacing-s);
|
||||
|
||||
&__item {
|
||||
width: 100%;
|
||||
background-color: var(--rsp-grey-200);
|
||||
border-radius: var(--rsp-border-radius);
|
||||
|
||||
&__fields {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--rsp-spacing-xl);
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l) var(--rsp-spacing-m) var(--rsp-spacing-l);
|
||||
margin-top: var(--rsp-spacing-s);
|
||||
|
||||
& > * {
|
||||
width: 100%;
|
||||
}
|
||||
&__warning {
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-s);
|
||||
margin: var(--rsp-spacing-xxs) 0;
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
opacity: 1;
|
||||
transition: opacity 1.3s ease-in-out;
|
||||
|
||||
color: var(--rsp-red);
|
||||
background-color: var(--rsp-red-faded);
|
||||
border: 1px solid var(--rsp-red);
|
||||
|
||||
display: flex;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
align-items: center;
|
||||
|
||||
&.hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&.success {
|
||||
color: var(--rsp-green);
|
||||
background-color: var(--rsp-green-faded);
|
||||
border: 1px solid var(--rsp-green);
|
||||
}
|
||||
|
||||
&.warning {
|
||||
color: var(--rsp-text-color);
|
||||
background-color: var(--rsp-yellow-faded);
|
||||
border: 1px solid var(--rsp-yellow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
details {
|
||||
//padding: var(--rsp-spacing-s) var(--rsp-spacing-s);
|
||||
border-radius: var(--rsp-border-radius);
|
||||
border: 1px solid var(--rsp-grey-300);
|
||||
|
||||
summary {
|
||||
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-s);
|
||||
display: grid;
|
||||
grid-template-columns: 26px 1fr auto auto auto;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-s);
|
||||
list-style: none;
|
||||
|
||||
&::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&::marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-weight: 600;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.components-toggle-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
.components-flex{ gap: 0 }
|
||||
}
|
||||
|
||||
.burst-icon-chevron-down {
|
||||
transition: all .25s ease-in-out;
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
&[open] {
|
||||
summary {
|
||||
padding-bottom: var(--rsp-spacing-s);
|
||||
border-bottom: 1px solid var(--rsp-grey-300);
|
||||
|
||||
.burst-icon-chevron-down {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-field-wrap {
|
||||
padding-inline: 0;
|
||||
padding: 0;
|
||||
padding-top: var(--rsp-spacing-m);
|
||||
}
|
||||
|
||||
.burst-label {
|
||||
color: var(--rsp-text-color);
|
||||
font-size: var(--rsp-fs-400);
|
||||
font-weight: 600;
|
||||
margin-bottom: var(--rsp-spacing-xs);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__upgrade {
|
||||
display: flex;
|
||||
gap: var(--rsp-spacing-s);
|
||||
padding: var(--rsp-spacing-s);
|
||||
background-color: var(--rsp-grey-200);
|
||||
border-radius: var(--rsp-border-radius);
|
||||
margin-top: var(--rsp-spacing-s);
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
border: 2px solid var(--rsp-grey-300);
|
||||
|
||||
h5 {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: var(--rsp-fs-200);
|
||||
color: var(--rsp-text-color-light);
|
||||
}
|
||||
|
||||
.burst-button {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-radio-buttons__list {
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(49%, 1fr));
|
||||
gap: var(--rsp-spacing-s);
|
||||
|
||||
&__item {
|
||||
input {
|
||||
&[type='radio']{
|
||||
opacity:0;
|
||||
filter:alpha(opacity=0);
|
||||
position:absolute
|
||||
}
|
||||
|
||||
&[type="radio"]:checked + label {
|
||||
background: var(--rsp-green-faded);
|
||||
border: 2px solid var(--rsp-green);
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
background: var(--rsp-white);
|
||||
margin: 1px;
|
||||
border: 1px solid var(--rsp-input-border-color);
|
||||
outline: 1px solid transparent;
|
||||
padding: var(--rsp-spacing-xs);
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto 1fr;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
align-items: center;
|
||||
&.burst-disabled-radio{
|
||||
background:inherit;
|
||||
}
|
||||
.burst-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.3px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-size: var(--rsp-fs-200);
|
||||
color: var(--rsp-text-color-light);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.burst-class-id, .burst-hook {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: stretch;
|
||||
gap: var(--rsp-spacing-xl);
|
||||
> * {
|
||||
width: 100%;
|
||||
}
|
||||
input[type="text"] {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
.burst-select{
|
||||
&__control{
|
||||
input{
|
||||
outline-style: none;
|
||||
box-shadow: none;
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
&__menu{
|
||||
|
||||
}
|
||||
&__custom-option{
|
||||
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
transition: background ease 0.2s;
|
||||
& > div{
|
||||
display: flex;
|
||||
gap: var(--rsp-spacing-xxs);
|
||||
}
|
||||
&:hover{
|
||||
background: var(--rsp-green-faded);
|
||||
}
|
||||
}
|
||||
|
||||
&__title{
|
||||
font-size: var(--rsp-fs-200);
|
||||
color: var(--rsp-text-color);
|
||||
}
|
||||
&__subtitle{
|
||||
font-size: var(--rsp-fs-100);
|
||||
color: var(--rsp-text-color-light);
|
||||
}
|
||||
&__pageview-count{
|
||||
min-width: 45px;
|
||||
font-size: var(--rsp-fs-100);
|
||||
color: var(--rsp-text-color-light);
|
||||
}
|
||||
|
||||
}
|
||||
.burst-click-to-edit{
|
||||
h5{
|
||||
min-width: 150px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.MuiDialog-container .MuiPaper-rounded{
|
||||
border-radius: var(--rsp-border-radius-s);
|
||||
}
|
||||
|
||||
.burst-settings-goals__add-goal {
|
||||
display:flex;
|
||||
.burst-button {
|
||||
margin-right:10px;
|
||||
align-self: flex-start;
|
||||
&.burst-inactive {
|
||||
color: var(--rsp-grey-400 );
|
||||
}
|
||||
}
|
||||
}
|
||||
.burst-button-dropdown-container {
|
||||
background: var(--rsp-grey-100);
|
||||
.burst-button {
|
||||
display:flex;
|
||||
.burst-icon {
|
||||
margin-top: 6px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-button-dropdown {
|
||||
background: var(--rsp-grey-100);
|
||||
color: var(--rsp-text-color-light);
|
||||
border: 1px solid var(--rsp-grey-400);
|
||||
width: fit-content;
|
||||
font-size: var(--button-font-size);
|
||||
font-weight: var(--button-font-weight);
|
||||
line-height: var(--button-line-height);
|
||||
letter-spacing: var(--button-letter-spacing);
|
||||
transition: var(--button-transition);
|
||||
min-height: var(--button-min-height);
|
||||
margin: 0;
|
||||
border-radius: var(--button-border-radius);
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
&__row{
|
||||
display:flex;
|
||||
cursor:pointer;
|
||||
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
|
||||
gap: var(--rsp-spacing-xs);
|
||||
align-items: center;
|
||||
&:hover{
|
||||
background: var(--rsp-grey-300);
|
||||
}
|
||||
|
||||
&.burst-inactive{
|
||||
color: var(--rsp-grey-400 );
|
||||
}
|
||||
.burst-icon {
|
||||
margin-left: 5px;
|
||||
margin-top:2px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
.burst-logo-container {
|
||||
display:flex;
|
||||
.burst-logo-preview {
|
||||
margin-top: 10px;
|
||||
border: 1px var(--rsp-black) dashed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&.burst-clickable {
|
||||
cursor: pointer;
|
||||
height: calc(40px + 2 * var(--rsp-spacing-xs));
|
||||
max-width: 100%;
|
||||
border-radius: var(--rsp-border-radius-xs);
|
||||
padding: var(--rsp-spacing-xs);
|
||||
img{
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
|
||||
}
|
||||
}
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
.burst-wizard-menu{
|
||||
height: fit-content;
|
||||
.burst-grid-item-content{
|
||||
padding: 0;
|
||||
padding-bottom: var(--rsp-spacing-l);
|
||||
}
|
||||
}
|
||||
.burst-wizard-menu-items {
|
||||
.burst-menu-item{
|
||||
a{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
text-decoration: none;
|
||||
color: var(--rsp-text-color);
|
||||
font-size: var(--rsp-fs-400);
|
||||
padding-block: var(--rsp-spacing-xs);
|
||||
@include burst-inline-block-padding;
|
||||
transition: all 0.2s ease-in-out;
|
||||
border-left: 4px solid transparent;
|
||||
}
|
||||
&.burst-active{
|
||||
> a{
|
||||
//text-decoration: underline;
|
||||
color: var(--rsp-green);
|
||||
font-weight: 600;
|
||||
border-left: 4px solid var(--rsp-green);
|
||||
//background-color: #f2e6c966;
|
||||
}
|
||||
}
|
||||
&.burst-featured{
|
||||
a{
|
||||
//padding-block: var(--rsp-spacing-m);
|
||||
//background: var(--rsp-dark-blue-faded);
|
||||
font-weight: 600;
|
||||
flex-wrap: wrap;
|
||||
.burst-menu-item-featured-pill{
|
||||
background: var(--rsp-green);
|
||||
color: var(--rsp-text-color-white);
|
||||
padding: 2px 9px;
|
||||
border-radius: var(--rsp-border-radius);
|
||||
font-size: var(--rsp-fs-100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
&.burst-pro{
|
||||
a{
|
||||
background: var(--rsp-dark-blue-faded);
|
||||
flex-wrap: wrap;
|
||||
.burst-menu-item-featured-pill{
|
||||
background: var(--rsp-dark-blue);
|
||||
color: var(--rsp-text-color-white);
|
||||
padding: 2px 9px;
|
||||
border-radius: var(--rsp-border-radius);
|
||||
font-size: var(--rsp-fs-100);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-pro-menu-item {
|
||||
background: var(--rsp-dark-blue-faded);
|
||||
div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
text-decoration: none;
|
||||
color: var(--rsp-text-color);
|
||||
font-size: var(--rsp-fs-400);
|
||||
padding-block: var(--rsp-spacing-xs);
|
||||
@include burst-inline-block-padding;
|
||||
transition: all 0.2s ease-in-out;
|
||||
border-left: 4px solid transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.burst-submenu-item{
|
||||
a{
|
||||
padding-left: calc(var(--rsp-spacing-l) + var(--rsp-spacing-m));
|
||||
font-size: var(--rsp-fs-300);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
.burst-wizard-help {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: flex-start;
|
||||
gap: var(--rsp-spacing-xs);
|
||||
details{
|
||||
font-size: var(--rsp-fs-200);
|
||||
.burst-help-more-info {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 12px;
|
||||
}
|
||||
summary {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
justify-content: space-between;
|
||||
font-size: var(--rsp-fs-300);
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
&::-webkit-details-marker {
|
||||
display:none;
|
||||
}
|
||||
&:first-of-type {
|
||||
list-style-type: none;
|
||||
}
|
||||
.burst-icon{
|
||||
transition: all .25s ease-in-out;
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
summary, p {
|
||||
font-size: var(--rsp-fs-200);
|
||||
}
|
||||
details[open]{
|
||||
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
|
||||
summary{
|
||||
padding: 0;
|
||||
padding-bottom: var(--rsp-spacing-xs);
|
||||
.burst-icon{
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burst-wizard-help {
|
||||
.burst-help-header {
|
||||
width:100%;
|
||||
display:flex;
|
||||
padding:10px;
|
||||
.burst-help-title{
|
||||
font-size: var(--rsp-fs-400);
|
||||
font-weight: 500;
|
||||
}
|
||||
.burst-help-control {
|
||||
margin-left:auto;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.burst-wizard-help-notice {
|
||||
width: 100%;
|
||||
@include burst-block;
|
||||
border-radius: var(--rsp-border-radius-s);
|
||||
height: fit-content;
|
||||
background-color: var(--rsp-dark-blue-faded);
|
||||
&.burst-warning {
|
||||
background-color: var(--rsp-yellow-faded);
|
||||
}
|
||||
summary, p{
|
||||
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
.burst{
|
||||
.components-snackbar-list.edit-site-notices{
|
||||
width: max-content;
|
||||
position: fixed;
|
||||
bottom: var(--rsp-spacing-m);
|
||||
right: var(--rsp-spacing-l);
|
||||
& > div{
|
||||
margin-left: auto;
|
||||
}
|
||||
.components-snackbar{
|
||||
@include burst-block;
|
||||
color: var(--rsp-text-color);
|
||||
font-weight:700;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
.burst{
|
||||
/*skeleton*/
|
||||
$panelheight : 38px;
|
||||
$panelborder : 1px;
|
||||
$paneloffset : 3*($panelborder+$panelheight);
|
||||
$rows : 6;
|
||||
.burst-skeleton:empty {
|
||||
margin: auto;
|
||||
margin-bottom: 25px;
|
||||
width: 100%;
|
||||
height: ($rows*$panelheight)+($rows+1)*$panelborder; /* change height to see repeat-y behavior */
|
||||
|
||||
background-image:
|
||||
linear-gradient( 100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5) 70%, rgba(255, 255, 255, 0.5) 15% ),
|
||||
linear-gradient( #f2f2f2 $panelheight, transparent 0 ),
|
||||
linear-gradient( #f2f2f2 $panelheight, transparent 0 ),
|
||||
linear-gradient( #f2f2f2 $panelheight, transparent 0 ),
|
||||
linear-gradient( #f2f2f2 $panelheight, transparent 0 );
|
||||
|
||||
background-repeat: repeat-y;
|
||||
|
||||
background-size:
|
||||
50px 200px, /* highlight */
|
||||
100% $paneloffset,
|
||||
100% $paneloffset,
|
||||
100% $paneloffset,
|
||||
100% $paneloffset;
|
||||
|
||||
background-position:
|
||||
0 0, /* highlight */
|
||||
$panelborder $panelborder,
|
||||
$panelborder $panelheight+(2*$panelborder),
|
||||
$panelborder (2*$panelheight)+(3*$panelborder),
|
||||
$panelborder (3*$panelheight)+(4*$panelborder);
|
||||
|
||||
background-color:#d6d8db;
|
||||
border-right: $panelborder solid #d6d8db;
|
||||
animation: shine 2.5s infinite;
|
||||
}
|
||||
@keyframes shine {
|
||||
to {
|
||||
background-position:
|
||||
100% 0, /* move highlight to right */
|
||||
$panelborder $panelborder,
|
||||
$panelborder $panelheight+(2*$panelborder),
|
||||
$panelborder (2*$panelheight)+(3*$panelborder),
|
||||
$panelborder (3*$panelheight)+(4*$panelborder);
|
||||
}
|
||||
}
|
||||
|
||||
/*loader*/
|
||||
.burst-loader {
|
||||
margin: 0;
|
||||
width: 50px;
|
||||
height: 15px;
|
||||
text-align: center;
|
||||
font-size: 10px;
|
||||
> div {
|
||||
margin:1px;
|
||||
background-color: #333;
|
||||
height: 100%;
|
||||
width: 3px;
|
||||
display: inline-block;
|
||||
-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
|
||||
animation: sk-stretchdelay 1.2s infinite ease-in-out;
|
||||
}
|
||||
|
||||
&.burst-loader-white >div {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.rect2 {
|
||||
-webkit-animation-delay: -1.1s;
|
||||
animation-delay: -1.1s;
|
||||
}
|
||||
|
||||
.rect3 {
|
||||
-webkit-animation-delay: -1.0s;
|
||||
animation-delay: -1.0s;
|
||||
}
|
||||
|
||||
.rect4 {
|
||||
-webkit-animation-delay: -0.9s;
|
||||
animation-delay: -0.9s;
|
||||
}
|
||||
|
||||
.rect5 {
|
||||
-webkit-animation-delay: -0.8s;
|
||||
animation-delay: -0.8s;
|
||||
}
|
||||
}
|
||||
|
||||
.button-primary .burst-loader div {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@-webkit-keyframes sk-stretchdelay {
|
||||
0%, 40%, 100% { transform: scaleY(0.4) }
|
||||
20% { transform: scaleY(1.0) }
|
||||
}
|
||||
|
||||
@keyframes sk-stretchdelay {
|
||||
0%, 40%, 100% {
|
||||
transform: scaleY(0.4);
|
||||
} 20% {
|
||||
transform: scaleY(1.0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
.burst {
|
||||
|
||||
--rsp-brand-primary-lightest: #ecf4ed;
|
||||
--rsp-brand-primary-lighter: #d2e4d3;
|
||||
--rsp-brand-primary-light: #b7d4b8;
|
||||
--rsp-brand-primary: var(--rsp-green);
|
||||
--rsp-brand-primary-dark: #1e7e1e;
|
||||
--rsp-brand-primary-darker: #1a6c1a;
|
||||
--rsp-brand-primary-darkest: #155515;
|
||||
|
||||
// Plugin specific variables down here please
|
||||
|
||||
--rsp-brand-secondary: var(--rsp-yellow);
|
||||
--rsp-brand-primary-faded: var(--rsp-brand-primary-lightest);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<?php // You don't belong here.
|
||||
@@ -0,0 +1,131 @@
|
||||
// Break points
|
||||
$rsp-break-xxs: 576px;
|
||||
$rsp-break-xs: 768px;
|
||||
$rsp-break-s: 1080px;
|
||||
$rsp-break-m: 1280px;
|
||||
$rsp-break-l: 1366px;
|
||||
$rsp-break-xl: 1440px; // common 13 inch macbook pro width is 1425px
|
||||
$rsp-break-xxl: 1599px;
|
||||
|
||||
:root {
|
||||
// Margins, Paddings and Border Radius
|
||||
--rsp-spacing-xxs: 5px;
|
||||
--rsp-spacing-xs: 10px;
|
||||
--rsp-spacing-s: 15px;
|
||||
--rsp-spacing-m: 20px;
|
||||
--rsp-spacing-l: 25px;
|
||||
--rsp-spacing-xl: 30px;
|
||||
|
||||
// Grid settings
|
||||
--rsp-grid-margin: var(--rsp-spacing-s);
|
||||
--rsp-grid-gap: var(--rsp-spacing-m);
|
||||
|
||||
// Borders and stuff
|
||||
--rsp-border-radius: 12px;
|
||||
--rsp-border-radius-s: 8px;
|
||||
--rsp-border-radius-xs: 5px;
|
||||
--rsp-border: 1px solid var(--rsp-border-color);
|
||||
--rsp-box-shadow: rgba(0, 0, 0, 0.1) 0 4px 6px -1px, rgba(0, 0, 0, 0.06) 0 2px 4px -1px;
|
||||
--rsp-border-color: #dfdfdf;
|
||||
|
||||
// RSP Brand Colors
|
||||
--rsp-black: #333;
|
||||
--rsp-white: #fff;
|
||||
--rsp-yellow: #f4bf3e;
|
||||
--rsp-blue: #7C22FF;
|
||||
--rsp-dark-blue: #1E73BE;
|
||||
--rsp-green: #2e8a37;
|
||||
--rsp-red: #D7263D;
|
||||
--rsp-pink: #E35899;
|
||||
--rsp-orange: #db6939;
|
||||
--rsp-wp-blue: #007cba;
|
||||
|
||||
--rsp-yellow-faded: #fdf4df;
|
||||
--rsp-blue-faded: #ecf8fe;
|
||||
--rsp-dark-blue-faded: #ebf2f9;
|
||||
--rsp-green-faded: #ecf4ed;
|
||||
--rsp-red-faded: #fbebed;
|
||||
--rsp-pink-faded: #fceff5;
|
||||
--rsp-orange-faded: #fef5ea;
|
||||
--rsp-wp-blue-faded: #c6e0ef;
|
||||
|
||||
--rsp-background-block-color: var(--rsp-white);
|
||||
--rsp-background-color: #f0f0f1; //#f0f0f1 is the default wordpress bg color
|
||||
|
||||
//Input colors
|
||||
--rsp-input-background-color: #fff;
|
||||
--rsp-input-text-color: var(--rsp-text-color);
|
||||
--rsp-input-border-color: var(--rsp-grey-400);
|
||||
|
||||
--rsp-text-color: rgba(26, 26, 26, 0.9);
|
||||
--rsp-text-color-invert: rgba(255, 255, 255, 0.9);
|
||||
--rsp-text-color-white: rgba(255, 255, 255, 0.9);
|
||||
--rsp-text-color-light: rgba(69, 69, 82, 0.9);
|
||||
--rsp-text-color-hover: var(--rsp-green);
|
||||
|
||||
--rsp-grey-100: #fafafa;
|
||||
--rsp-grey-200: #f7f7f7;
|
||||
--rsp-grey-300: #ededed;
|
||||
--rsp-grey-400: #c6c6c6;
|
||||
--rsp-grey-500: #737373;
|
||||
--rsp-grey-600: #696969;
|
||||
|
||||
// Notification colors
|
||||
--rsp-color-success: var(--rsp-green);
|
||||
--rsp-color-error: var(--rsp-red);
|
||||
--rsp-color-warning: var(--rsp-red);
|
||||
--rsp-color-open: var(--rsp-yellow);
|
||||
|
||||
// Font sizes
|
||||
// If browser font-size is 16px:
|
||||
--rsp-fs-100: 0.6875rem; // 11px
|
||||
--rsp-fs-200: 0.75rem; // 12px
|
||||
--rsp-fs-300: 0.8125rem; // 13px
|
||||
--rsp-fs-400: 0.875rem; // 14px
|
||||
--rsp-fs-500: 1rem; // 16px
|
||||
--rsp-fs-600: 1.125rem; // 18px
|
||||
--rsp-fs-700: 1.25rem; // 20px
|
||||
--rsp-fs-800: 1.5rem; // 24px
|
||||
--rsp-fs-900: 3.5rem; // 40px
|
||||
}
|
||||
|
||||
@mixin burst-block {
|
||||
background: var(--rsp-background-block-color);
|
||||
box-shadow: var(--rsp-box-shadow);
|
||||
border-radius: var(--rsp-border-radius);
|
||||
}
|
||||
|
||||
@mixin burst-block-padding {
|
||||
padding: var(--rsp-spacing-m) var(--rsp-spacing-l);
|
||||
|
||||
@media screen and (max-width: $rsp-break-m) {
|
||||
padding: var(--rsp-spacing-xs) var(--rsp-spacing-s);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin burst-block-block-padding {
|
||||
padding-block: var(--rsp-spacing-m);
|
||||
|
||||
@media screen and (max-width: $rsp-break-m) {
|
||||
padding-block: var(--rsp-spacing-xs);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin burst-inline-block-padding {
|
||||
padding-inline: var(--rsp-spacing-l);
|
||||
|
||||
@media screen and (max-width: $rsp-break-m) {
|
||||
padding-inline: var(--rsp-spacing-s);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin burst-fade-in {
|
||||
animation-name: fade-in;
|
||||
animation-duration: 0.4s;
|
||||
animation-timing-function: ease-in;
|
||||
}
|
||||
|
||||
@keyframes fade-in{
|
||||
0% { opacity: 0 }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 342 117" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g id="Artboard1" transform="matrix(0.965624,0,0,0.856105,-119.546,-202.559)">
|
||||
<rect x="123.801" y="236.606" width="353.753" height="135.748" style="fill:none;"/>
|
||||
<g transform="matrix(1.0356,0,0,1.16808,-7.42677,-43.9858)">
|
||||
<path d="M170.4,269.5C159.7,269.5 151.6,272 146.1,276.9L146.1,249.9C146.1,247.5 145.2,245.3 143.5,243.6C141.7,241.9 139.7,241 137.3,241L137,241C134.6,241 132.5,241.9 130.8,243.6C129,245.4 128.2,247.5 128.2,249.9L128.2,312.1C128.2,323.8 132.4,333.7 140.7,341.9C148.9,350.1 158.9,354.2 170.5,354.2C182.1,354.2 192.1,350.1 200.4,341.8C208.7,333.5 212.8,323.5 212.8,311.9C212.8,300.2 208.7,290.3 200.4,282C192.1,273.7 182.1,269.5 170.4,269.5ZM187.6,329.3C182.8,334.1 177.1,336.4 170.4,336.4C163.6,336.4 157.9,334 153.1,329.3C148.4,324.5 146,318.8 146,312.1C146,305.3 148.4,299.6 153.1,294.8C157.9,290 163.6,287.7 170.4,287.7C177.1,287.7 182.8,290.1 187.6,294.8C192.4,299.6 194.7,305.3 194.7,312.1C194.8,318.8 192.4,324.6 187.6,329.3ZM344.3,269.5L340.1,269.5C331.1,269.5 323.5,272.7 317.2,279C311,285.3 307.8,293 307.7,301.9L307.7,345.3C307.7,347.8 308.6,349.9 310.3,351.5C312.1,353.3 314.1,354.1 316.5,354.1L316.7,354.1C319.1,354.1 321.2,353.2 322.9,351.5C324.7,349.8 325.5,347.8 325.5,345.3L325.5,302C325.5,298 326.9,294.6 329.7,291.8C332.5,289 335.9,287.6 339.9,287.6L344.1,287.6C346.5,287.6 348.7,286.7 350.4,285C352.1,283.3 353,281.2 353,278.8L353,278.7C353,276.3 352.1,274.1 350.4,272.4C348.9,270.4 346.8,269.5 344.3,269.5ZM458.3,287.6C460.7,287.6 462.8,286.7 464.5,285C466.3,283.3 467.1,281.3 467.1,278.8L467.1,278.7C467.1,276.3 466.2,274.1 464.5,272.4C462.7,270.6 460.7,269.8 458.3,269.8L446.3,269.8L446.3,250.2C446.3,247.8 445.4,245.6 443.7,243.9C441.9,242.2 439.9,241.3 437.5,241.3L437.3,241.3C434.9,241.3 432.8,242.2 431.1,243.9C429.3,245.7 428.5,247.8 428.5,250.2L428.5,269.8L386.5,269.8C379.4,269.8 373.4,272.3 368.3,277.4C363.3,282.4 360.8,288.4 360.8,295.5C360.8,302.8 362.8,308.4 366.9,312.3C369.7,315.1 374.1,317.3 379.9,319.1C387.4,321.2 391.5,322.4 392.2,322.8C395,324.2 396.4,326.2 396.4,328.9C396.4,331.1 395.7,332.9 394.2,334.3C392.7,335.8 390.9,336.5 388.8,336.5L368.9,336.5C366.5,336.5 364.4,337.4 362.7,339.1C360.9,340.9 360.1,343 360.1,345.4L360.1,345.5C360.1,348 361,350.1 362.7,351.7C364.5,353.5 366.5,354.3 368.9,354.3L388.1,354.3C395.2,354.3 401.2,351.8 406.3,346.8C411.3,341.8 413.8,335.7 413.8,328.6C413.8,321.4 411.8,315.9 407.7,312.1C404.9,309.4 400.5,307.2 394.7,305.6C387.5,303.7 383.4,302.5 382.4,301.9C379.6,300.4 378.1,298.2 378.1,295.3C378.1,293.2 378.8,291.4 380.3,289.9C381.8,288.4 383.6,287.7 385.7,287.7L428.5,287.7L428.5,331.3C428.5,337.6 430.8,343.1 435.3,347.6C439.9,352.1 445.3,354.4 451.7,354.4L458.6,354.4C461,354.4 463.1,353.5 464.8,351.8C466.6,350.1 467.4,348.1 467.4,345.6L467.4,345.5C467.4,343.1 466.5,340.9 464.8,339.2C463,337.4 461,336.6 458.6,336.6L451.7,336.6C450.2,336.6 449,336.1 448,335.1C447,334.1 446.5,332.9 446.5,331.5L446.5,287.9L458.3,287.9L458.3,287.6Z" style="fill:url(#_Linear1);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g transform="matrix(1.0356,0,0,1.16808,-7.42677,-43.9858)">
|
||||
<path d="M234.2,298C239.1,298 243.2,294 243.2,289L243.2,278.5C243.2,273.6 239.2,269.5 234.2,269.5C229.3,269.5 225.2,273.5 225.2,278.5L225.2,289C225.2,294 229.2,298 234.2,298ZM286.8,297.4C281.8,297.4 277.8,301.4 277.8,306.4L277.8,319.4C277.6,328.7 269.9,336.3 260.5,336.3C250.9,336.3 243.2,328.5 243.2,319L243.2,316.4C243.2,311.4 239.2,307.4 234.2,307.4C229.2,307.4 225.2,311.4 225.2,316.4L225.2,319C225.2,338.5 241.1,354.3 260.5,354.3C280,354.3 295.8,338.4 295.8,319L295.8,306.5C295.8,301.4 291.8,297.4 286.8,297.4ZM291.6,269.5L281.1,269.5C276.2,269.5 272.1,273.5 272.1,278.5C272.1,283.4 276.1,287.5 281.1,287.5L291.6,287.5C296.5,287.5 300.6,283.5 300.6,278.5C300.6,273.6 296.6,269.5 291.6,269.5Z" style="fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(339.079,0,0,339.079,128.098,297.638)"><stop offset="0" style="stop-color:rgb(77,170,87);stop-opacity:1"/><stop offset="0.01" style="stop-color:rgb(77,170,87);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(18,138,31);stop-opacity:1"/></linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.6 KiB |
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 25.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg width="18" height="18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<path fill="#fff" d="M16.16,33.61c5.78,0,10.61-4.72,10.61-10.61V10.61C26.77,4.83,22.05,0,16.16,0C10.38,0,5.54,4.72,5.54,10.61V23
|
||||
C5.54,28.89,10.26,33.61,16.16,33.61z M78.18,32.9c-5.9,0-10.61,4.72-10.61,10.61v15.33c-0.24,10.97-9.32,19.93-20.4,19.93
|
||||
c-11.32,0-20.4-9.2-20.4-20.4c0-0.24,0-0.35,0-0.59l0,0v-2.48c0-5.9-4.72-10.61-10.61-10.61S5.54,49.41,5.54,55.31v2.48l0,0
|
||||
c0,0.24,0,0.35,0,0.59c0,23,18.75,41.63,41.63,41.63c23,0,41.63-18.75,41.63-41.63V43.63C88.8,37.62,84.08,32.9,78.18,32.9z
|
||||
M83.84,0H71.46c-5.78,0-10.61,4.72-10.61,10.61c0,5.78,4.72,10.61,10.61,10.61h12.38c5.78,0,10.61-4.72,10.61-10.61
|
||||
C94.46,4.83,89.74,0,83.84,0z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1004 B |
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Silence is golden.
|
||||
@@ -0,0 +1,11 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 196 196">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #fff;
|
||||
fill-rule: evenodd;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<path id="Burst_1" data-name="Burst 1" class="cls-1" d="M20.16,2.123c12.288-.206,16.721.523,22.817,6.043l2.852,1.727v1.727l1.9,0.863v1.727h0.951c2.343,4.771,1.9,12.2,1.9,18.992,0,9.12,1,21.1-2.852,26.762l-1.9.863v1.727l-3.8,2.59v0.863h-1.9l-0.951,1.727h-1.9V68.6h-1.9V69.46H32.519v0.863c-3.082.885-13.32-.108-15.211-0.863V68.6h-1.9V67.733C2.345,61.021,2.1,53.875,2.1,35.791,2.1,28.749,1.932,21.6,4,16.8v-2.59l1.9-.863V11.619l1.9-.863V9.029H8.751l1.9-2.59h1.9L13.5,4.713h1.9V3.85l4.754-.863V2.123Zm119.79,0h40.88V2.986h1.9V3.85h2.853q0.474,0.863.95,1.727h1.9l1.9,2.59,3.8,2.59v1.727l1.9,0.863v2.59h0.951c1.4,3.228,1.538,12.342,0,15.539H196.04V33.2h-0.95l-0.951,3.453-2.852,1.727-2.852,3.453c-7.338,4.457-20.11,3.453-32.324,3.453H140.9V44.424h-2.852V43.561l-5.7-1.727-3.8-4.316-1.9-.863V34.928l-1.9-.863v-2.59h-0.95V29.748h-0.951V17.662h0.951v-2.59h0.95l0.951-3.453,1.9-.863,5.705-6.043h1.9V3.85l4.754-.863V2.123Zm19.014,63.884c12.688,0.38,21.608,6.633,24.718,15.539v26.762c0,8.82.309,17.708-1.9,24.172V136.8h-0.951v3.453h-0.951q-0.475,2.589-.95,5.179h-0.951l-0.951,4.317h-0.951q-0.474,1.726-.95,3.453h-0.951v1.727l-1.9.863-1.9,5.18-1.9.863v1.727l-1.9.863q-0.474,1.294-.95,2.59l-5.7,4.316v1.727l-3.8,2.59v0.863h-1.9l-4.753,5.18-2.852.863-0.951,1.727h-1.9L142.8,186l-5.7,1.727-0.95,1.726h-1.9v0.864l-3.8.863v0.863h-2.853v0.864h-1.9v0.863h-3.8v0.863h-1.9V195.5h-3.8v0.864h-3.8v0.863h-5.7v0.863H94.315c-12.586,0-20.818-1.174-29.472-4.316H61.991v-0.863h-1.9v-0.864H57.237v-0.863l-5.7-1.727v-0.863l-3.8-.863L46.779,186h-1.9v-0.863l-2.852-.863-0.951-1.727h-1.9l-3.8-4.316h-1.9l-5.7-6.043-2.852-1.727v-1.727l-3.8-2.59-0.951-2.589-1.9-.864L7.8,143.7V140.25H6.85v-2.59H5.9v-3.453H4.948L4,122.121H3.047v-6.043c-0.036-11.4,1.267-15.045,7.606-20.719l1.9-2.59,5.7-1.727V90.179c3.828-1.492,14.572-1.295,17.113.863,6.6,1.576,12.225,8.867,14.261,14.676v17.266h0.951v3.453h0.951l0.951,5.18h0.951v1.726h0.951l1.9,5.18,2.852,1.727v1.726l4.754,3.453,1.9,2.59h1.9l0.951,1.727h1.9l0.951,1.727h1.9v0.863l3.8,0.863v0.863h2.852v0.864l10.458,0.863v0.863h6.655v-0.863l9.507-.863v-0.864l5.7-.863v-0.863l3.8-.863,0.951-1.727h1.9l2.852-3.453h1.9v-0.864l2.852-1.726v-1.727l3.8-2.59q0.474-1.726.95-3.453l1.9-.863v-2.59h0.95v-1.726H135.2l0.951-5.18h0.95v-6.907c2.079-6.715.95-17.7,0.951-25.9,0-4.79-.584-11.339,1.9-13.813,1.189-4.277,7.306-9.6,11.408-11.223C153.841,66.749,157.069,67.528,158.963,66.007Z" transform="translate(-2.094 -2.094)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Silence is golden.
|
||||
@@ -0,0 +1,173 @@
|
||||
/**
|
||||
* Setup event listeners for goals.
|
||||
*/
|
||||
|
||||
let viewportGoals = [];
|
||||
const burst_goals_setup = () => {
|
||||
|
||||
// loop through goals and remove any that don't match the current path or
|
||||
// don't have a path
|
||||
for ( let i = 0; i < burst.goals.length; i++ ) {
|
||||
let goal = burst.goals[i];
|
||||
if ( goal.url && ( goal.url !== window.location.pathname && '*' !== goal.url ) ) {
|
||||
burst.goals.splice( i, 1 );
|
||||
}
|
||||
}
|
||||
|
||||
// loop through all goals and setup event listeners
|
||||
for ( let i = 0; i < burst.goals.length; i++ ) {
|
||||
let goal = burst.goals[i];
|
||||
switch ( goal.type ) {
|
||||
case 'views':
|
||||
burst_setup_viewport_tracker( goal );
|
||||
break;
|
||||
case 'clicks':
|
||||
default:
|
||||
burst_setup_click_tracker( goal );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener( 'scroll', handle_viewport_goals, true );
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if any goals are in the viewport.
|
||||
*/
|
||||
const handle_viewport_goals = () => {
|
||||
viewportGoals.forEach( ( goalData, index ) => {
|
||||
if ( burst_is_element_in_viewport( goalData.element ) ) {
|
||||
burst_goal_triggered( goalData.goal );
|
||||
|
||||
// Remove the goal from the viewportGoals array
|
||||
viewportGoals.splice( index, 1 );
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Setup a viewport tracker for a goal.
|
||||
* @param goal
|
||||
*/
|
||||
const burst_setup_viewport_tracker = ( goal ) => {
|
||||
if ( 0 === goal.attribute_value.length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
let selector = 'id' === goal.attribute ? '#' : '.';
|
||||
let elements = document.querySelectorAll( selector + goal.attribute_value );
|
||||
|
||||
for ( let i = 0; i < elements.length; i++ ) {
|
||||
let element = elements[i];
|
||||
|
||||
// Check if already in viewport
|
||||
if ( burst_is_element_in_viewport( element ) ) {
|
||||
burst_goal_triggered( goal );
|
||||
|
||||
// remove from list of elements to monitor
|
||||
} else {
|
||||
|
||||
// Add to our list of elements to monitor
|
||||
viewportGoals.push({element, goal});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Recursive function to check all parents.
|
||||
* @param element
|
||||
* @return {boolean|boolean|*}
|
||||
*/
|
||||
const is_element_truly_visible = ( element ) => {
|
||||
if ( ! element ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const style = window.getComputedStyle( element );
|
||||
|
||||
if ( 'none' === style.display || '0' === style.opacity ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return is_element_truly_visible( element.parentElement );
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if an element is in the viewport.
|
||||
* @param element
|
||||
* @returns {boolean}
|
||||
*/
|
||||
const burst_is_element_in_viewport = ( element ) => {
|
||||
if ( ! is_element_truly_visible( element ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let rect = element.getBoundingClientRect();
|
||||
return (
|
||||
0 <= rect.top &&
|
||||
0 <= rect.left &&
|
||||
rect.bottom <=
|
||||
( window.innerHeight || document.documentElement.clientHeight ) && /* or $(window).height() */
|
||||
rect.right <= ( window.innerWidth || document.documentElement.clientWidth ) /* or $(window).width() */
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Function to check and trigger a goal when an element is in the viewport.
|
||||
* @param element
|
||||
* @param goal
|
||||
*/
|
||||
const burst_listener_view = ( element, goal ) => {
|
||||
if ( burst_is_element_in_viewport( element ) ) {
|
||||
burst_goal_triggered( goal );
|
||||
|
||||
// @todo event listener does not get removed
|
||||
window.removeEventListener( 'scroll',
|
||||
() => burst_listener_view( element, goal ), true );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Setup a click tracker for a goal.
|
||||
* @param goal
|
||||
*/
|
||||
const burst_setup_click_tracker = ( goal ) => {
|
||||
document.body.addEventListener( 'click', function( event ) {
|
||||
burst_recursive_trigger_check( event.target, goal );
|
||||
});
|
||||
};
|
||||
|
||||
const burst_recursive_trigger_check = ( target, goal ) => {
|
||||
|
||||
//if there is no attribute value, exit
|
||||
if ( 0 === goal.attribute_value.length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
let selector = 'id' === goal.attribute ? '#' : '.';
|
||||
if ( target.matches( selector + goal.attribute_value ) ) {
|
||||
burst_goal_triggered( goal );
|
||||
} else if ( target.parentElement ) {
|
||||
burst_recursive_trigger_check( target.parentElement, goal );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Trigger a goal and add to the completed goals array.
|
||||
* @param goal
|
||||
*/
|
||||
const burst_goal_triggered = ( goal ) => {
|
||||
|
||||
// if burst_completed_goals does not contain goal.id, add it
|
||||
if ( -1 === burst_completed_goals.indexOf( goal.ID ) ) {
|
||||
burst_completed_goals.push( goal.ID );
|
||||
viewportGoals = viewportGoals.filter( goalData => goalData.goal.ID !== goal.ID );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Default export for goals.
|
||||
*/
|
||||
export default () => {
|
||||
burst_goals_setup();
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
let viewportGoals=[];const burst_goals_setup=()=>{for(let e=0;e<burst.goals.length;e++){var t=burst.goals[e];t.url&&t.url!==window.location.pathname&&"*"!==t.url&&burst.goals.splice(e,1)}for(let e=0;e<burst.goals.length;e++){var r=burst.goals[e];("views"===r.type?burst_setup_viewport_tracker:burst_setup_click_tracker)(r)}window.addEventListener("scroll",handle_viewport_goals,!0)},handle_viewport_goals=()=>{viewportGoals.forEach((e,t)=>{burst_is_element_in_viewport(e.element)&&(burst_goal_triggered(e.goal),viewportGoals.splice(t,1))})},burst_setup_viewport_tracker=t=>{if(0!==t.attribute_value.length){var e="id"===t.attribute?"#":".",r=document.querySelectorAll(e+t.attribute_value);for(let e=0;e<r.length;e++){var l=r[e];burst_is_element_in_viewport(l)?burst_goal_triggered(t):viewportGoals.push({element:l,goal:t})}}},is_element_truly_visible=e=>{var t;return!e||"none"!==(t=window.getComputedStyle(e)).display&&"0"!==t.opacity&&is_element_truly_visible(e.parentElement)},burst_is_element_in_viewport=e=>{return!!is_element_truly_visible(e)&&0<=(e=e.getBoundingClientRect()).top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},burst_listener_view=(e,t)=>{burst_is_element_in_viewport(e)&&(burst_goal_triggered(t),window.removeEventListener("scroll",()=>burst_listener_view(e,t),!0))},burst_setup_click_tracker=t=>{document.body.addEventListener("click",function(e){burst_recursive_trigger_check(e.target,t)})},burst_recursive_trigger_check=(e,t)=>{var r;0!==t.attribute_value.length&&(r="id"===t.attribute?"#":".",e.matches(r+t.attribute_value)?burst_goal_triggered(t):e.parentElement&&burst_recursive_trigger_check(e.parentElement,t))},burst_goal_triggered=t=>{-1===burst_completed_goals.indexOf(t.ID)&&(burst_completed_goals.push(t.ID),viewportGoals=viewportGoals.filter(e=>e.goal.ID!==t.ID))};export default()=>{burst_goals_setup()};
|
||||
@@ -0,0 +1,493 @@
|
||||
// TimeMe.js should be loaded and running to track time as soon as it is loaded.
|
||||
let burst_track_hit_running = false;
|
||||
let burst_initial_track_hit = false;
|
||||
let burst_update_hit_count = 0;
|
||||
let burst_cookieless_option = burst.options.enable_cookieless_tracking; // User
|
||||
// cookieless
|
||||
// option
|
||||
// add option to window so a consent plugin can change this value
|
||||
window.burst_enable_cookieless_tracking = burst.options.enable_cookieless_tracking; // Consent plugin cookieless option
|
||||
let burst_page_url = window.location.href;
|
||||
let burst_completed_goals = [];
|
||||
let burst_goals_script_url = burst.goals_script_url ?
|
||||
burst.goals_script_url :
|
||||
'./burst-goals.js';
|
||||
|
||||
// Set up a promise for when the page is activated,
|
||||
// which is needed for prerendered pages.
|
||||
const pageIsRendered = new Promise( ( resolve ) => {
|
||||
if ( document.prerendering ) {
|
||||
document.addEventListener( 'prerenderingchange', resolve, {once: true});
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Setup Goals if they exist for current page
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
const burst_import_goals = async() => {
|
||||
const goals = await import( burst_goals_script_url );
|
||||
goals.default();
|
||||
};
|
||||
|
||||
// If has goals and a goal has this page_url, import
|
||||
if ( 0 < burst.goals.length ) {
|
||||
for ( let i = 0; i < burst.goals.length; i++ ) {
|
||||
if ( '' !== burst.goals[i].page_url || burst.goals[i].page_url ===
|
||||
burst_page_url ) {
|
||||
burst_import_goals();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a cookie by name
|
||||
* @param name
|
||||
* @returns {Promise}
|
||||
*/
|
||||
let burst_get_cookie = ( name ) => {
|
||||
return new Promise( ( resolve, reject ) => {
|
||||
name = name + '='; //Create the cookie name variable with cookie name
|
||||
// concatenate with = sign
|
||||
let cArr = window.document.cookie.split( ';' ); //Create cookie array by
|
||||
// split the cookie by ';'
|
||||
|
||||
//Loop through the cookies and return the cookie value if we find the
|
||||
// cookie name
|
||||
for ( let i = 0; i < cArr.length; i++ ) {
|
||||
let c = cArr[i].trim();
|
||||
|
||||
//If the name is the cookie string at position 0, we found the cookie and
|
||||
// return the cookie value
|
||||
if ( 0 === c.indexOf( name ) ) {
|
||||
resolve( c.substring( name.length, c.length ) );
|
||||
}
|
||||
}
|
||||
reject( false );
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Set a cookie
|
||||
* @param name
|
||||
* @param value
|
||||
*/
|
||||
let burst_set_cookie = ( name, value ) => {
|
||||
let cookiePath = '/';
|
||||
let domain = '';
|
||||
let secure = ';secure';
|
||||
let date = new Date();
|
||||
let days = burst.cookie_retention_days;
|
||||
date.setTime( date.getTime() + ( days * 24 * 60 * 60 * 1000 ) );
|
||||
let expires = ';expires=' + date.toGMTString();
|
||||
|
||||
if ( 'https:' !== window.location.protocol ) {
|
||||
secure = '';
|
||||
}
|
||||
|
||||
//if we want to dynamically be able to change the domain, we can use this.
|
||||
if ( 0 < domain.length ) {
|
||||
domain = ';domain=' + domain;
|
||||
}
|
||||
document.cookie = name + '=' + value + ';SameSite=Strict' + secure + expires +
|
||||
domain + ';path=' + cookiePath;
|
||||
};
|
||||
|
||||
/**
|
||||
* Should we use cookies for tracking
|
||||
* @returns {boolean}
|
||||
*/
|
||||
let burst_use_cookies = () => {
|
||||
if ( ! navigator.cookieEnabled ) {
|
||||
return false;
|
||||
} // cookies blocked by browser
|
||||
if ( burst_cookieless_option && window.burst_enable_cookieless_tracking ) {
|
||||
return false;
|
||||
} // cookieless is enabled by user or consent plugin
|
||||
return true; // cookies are enabled
|
||||
};
|
||||
|
||||
/**
|
||||
* Enable or disable cookies
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function burst_enable_cookies() {
|
||||
window.burst_enable_cookieless_tracking = 0;
|
||||
if ( burst_use_cookies() ) {
|
||||
burst_uid().then( obj => {
|
||||
burst_set_cookie( 'burst_uid', obj.uid ); // set uid cookie
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set the user identifier
|
||||
* @returns {Promise}
|
||||
*/
|
||||
const burst_uid = () => {
|
||||
return new Promise( ( resolve ) => {
|
||||
burst_get_cookie( 'burst_uid' ).then( cookie_uid => {
|
||||
resolve( cookie_uid );
|
||||
}).catch( () => {
|
||||
|
||||
// if no cookie, generate a uid and set it
|
||||
let uid = burst_generate_uid();
|
||||
burst_set_cookie( 'burst_uid', uid );
|
||||
resolve( uid );
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Generate a random string
|
||||
* @returns {string}
|
||||
*/
|
||||
let burst_generate_uid = () => {
|
||||
let uid = '';
|
||||
for ( let i = 0; 32 > i; i++ ) {
|
||||
uid += Math.floor( Math.random() * 16 ).toString( 16 );
|
||||
}
|
||||
return uid;
|
||||
};
|
||||
|
||||
/**
|
||||
* Generate a fingerprint
|
||||
* @returns {Promise}
|
||||
*/
|
||||
const burst_fingerprint = () => {
|
||||
return new Promise( ( resolve, reject ) => {
|
||||
let browserTests = [
|
||||
'availableScreenResolution',
|
||||
'canvas',
|
||||
'colorDepth',
|
||||
'cookies',
|
||||
'cpuClass',
|
||||
'deviceDpi',
|
||||
'doNotTrack',
|
||||
'indexedDb',
|
||||
'language',
|
||||
'localStorage',
|
||||
'pixelRatio',
|
||||
'platform',
|
||||
'plugins',
|
||||
'processorCores',
|
||||
'screenResolution',
|
||||
'sessionStorage',
|
||||
'timezoneOffset',
|
||||
'touchSupport',
|
||||
'userAgent',
|
||||
'webGl'
|
||||
];
|
||||
|
||||
imprint.test( browserTests ).then( function( fingerprint ) {
|
||||
resolve( fingerprint );
|
||||
}).catch( ( error ) => {
|
||||
reject( error );
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
let burst_get_time_on_page = () => {
|
||||
return new Promise( ( resolve ) => {
|
||||
|
||||
// wait for timeMe.js to be loaded
|
||||
if ( 'undefined' === typeof TimeMe ) {
|
||||
resolve( 0 ); // return 0 if timeMe.js is not (yet) loaded
|
||||
}
|
||||
|
||||
let current_time_on_page = TimeMe.getTimeOnCurrentPageInMilliseconds();
|
||||
|
||||
// reset time on page
|
||||
TimeMe.resetAllRecordedPageTimes();
|
||||
TimeMe.initialize({
|
||||
idleTimeoutInSeconds: 30 // seconds
|
||||
});
|
||||
resolve( current_time_on_page );
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if this is a user agent
|
||||
* @returns {boolean}
|
||||
*/
|
||||
let burst_is_user_agent = () => {
|
||||
const botPattern = '(googlebot\/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)';
|
||||
let re = new RegExp( botPattern, 'i' );
|
||||
let userAgent = navigator.userAgent;
|
||||
|
||||
return re.test( userAgent );
|
||||
};
|
||||
|
||||
let burst_is_do_not_track = () => {
|
||||
if ( burst.options.do_not_track ) {
|
||||
|
||||
// check for doNotTrack and globalPrivacyControl headers
|
||||
return '1' === navigator.doNotTrack || 'yes' === navigator.doNotTrack ||
|
||||
'1' === navigator.msDoNotTrack || '1' === window.doNotTrack || 1 ===
|
||||
navigator.globalPrivacyControl;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* Make a XMLHttpRequest and return a promise
|
||||
* @param obj
|
||||
* @returns {Promise<unknown>}
|
||||
*/
|
||||
let burst_api_request = obj => {
|
||||
|
||||
// generate a new token every request
|
||||
return new Promise( ( resolve, reject ) => {
|
||||
|
||||
// if browser supports sendBeacon use it
|
||||
if ( burst.options.beacon_enabled ) {
|
||||
const headers = {
|
||||
type: 'application/json'
|
||||
};
|
||||
const blob = new Blob([ JSON.stringify( obj.data ) ], headers );
|
||||
window.navigator.sendBeacon( burst.beacon_url, blob );
|
||||
resolve( 'ok' );
|
||||
} else {
|
||||
let burst_token = 'token=' +
|
||||
Math.random().toString( 36 ).replace( /[^a-z]+/g, '' ).substring( 0, 7 );
|
||||
|
||||
// if browser supports fetch keepalive, it will use it. Otherwise, it
|
||||
// will use a normal XMLHttpRequest
|
||||
wp.apiFetch({
|
||||
path: '/burst/v1/track/?' + burst_token,
|
||||
keepalive: true,
|
||||
method: 'POST',
|
||||
data: obj.data
|
||||
}).then(
|
||||
( res ) => {
|
||||
if ( 202 === res.status ) {
|
||||
res.json().then(
|
||||
( data ) => console.warn( data )
|
||||
);
|
||||
}
|
||||
},
|
||||
( error ) => console.log( error )
|
||||
);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Update the tracked hit
|
||||
* Mostly used for updating time spent on a page
|
||||
* Also used for updating the UID (from fingerprint to a cookie)
|
||||
*/
|
||||
|
||||
async function burst_update_hit( update_uid = false ) {
|
||||
await pageIsRendered;
|
||||
if ( burst_is_user_agent() ) {
|
||||
return;
|
||||
}
|
||||
if ( burst_is_do_not_track() ) {
|
||||
return;
|
||||
}
|
||||
if ( ! burst_initial_track_hit ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( burst_update_hit_count > 5 ) {
|
||||
return;
|
||||
}
|
||||
burst_update_hit_count++;
|
||||
|
||||
let event = new CustomEvent( 'burst_before_update_hit', {detail: burst});
|
||||
document.dispatchEvent( event );
|
||||
|
||||
let data = {
|
||||
'fingerprint': false,
|
||||
'uid': false,
|
||||
'url': location.href,
|
||||
'time_on_page': await burst_get_time_on_page(),
|
||||
'completed_goals': burst_completed_goals
|
||||
};
|
||||
|
||||
if ( update_uid ) {
|
||||
|
||||
// add both the uid and the fingerprint to the data
|
||||
// this way we can update the fingerprint with the uid
|
||||
// this is useful for consent plugins
|
||||
data.uid = await burst_uid();
|
||||
data.fingerprint = await burst_fingerprint();
|
||||
} else if ( burst_use_cookies() ) {
|
||||
data.uid = await burst_uid();
|
||||
} else {
|
||||
data.fingerprint = await burst_fingerprint();
|
||||
}
|
||||
if ( 0 < data.time_on_page || false !== data.uid ) {
|
||||
await burst_api_request({
|
||||
data: JSON.stringify( data )
|
||||
}).catch( error => {
|
||||
|
||||
}); // @todo handle error and send notice to the user. If multiple errors
|
||||
// send to backend
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Track a hit
|
||||
*
|
||||
*/
|
||||
async function burst_track_hit() {
|
||||
await pageIsRendered;
|
||||
|
||||
if ( burst_initial_track_hit ) { // if the initial track hit has already been fired, we just update the hit
|
||||
burst_update_hit();
|
||||
return;
|
||||
}
|
||||
burst_initial_track_hit = true;
|
||||
|
||||
if ( burst_is_user_agent() ) {
|
||||
return;
|
||||
}
|
||||
if ( burst_is_do_not_track() ) {
|
||||
return;
|
||||
}
|
||||
if ( burst_track_hit_running ) {
|
||||
return;
|
||||
}
|
||||
|
||||
burst_track_hit_running = true;
|
||||
let event = new CustomEvent( 'burst_before_track_hit', {detail: burst});
|
||||
document.dispatchEvent( event );
|
||||
|
||||
// add browser data to the hit
|
||||
let data = {
|
||||
'uid': false,
|
||||
'fingerprint': false,
|
||||
'url': location.href,
|
||||
'referrer_url': document.referrer,
|
||||
'user_agent': navigator.userAgent || 'unknown',
|
||||
'device_resolution': window.screen.width * window.devicePixelRatio + 'x' +
|
||||
window.screen.height * window.devicePixelRatio,
|
||||
'time_on_page': await burst_get_time_on_page(),
|
||||
'completed_goals': burst_completed_goals
|
||||
};
|
||||
|
||||
if ( burst_use_cookies() ) {
|
||||
data.uid = await burst_uid();
|
||||
} else {
|
||||
data.fingerprint = await burst_fingerprint();
|
||||
}
|
||||
|
||||
event = new CustomEvent( 'burst_track_hit', {detail: data});
|
||||
document.dispatchEvent( event );
|
||||
|
||||
let request_params = {
|
||||
method: 'POST',
|
||||
data: JSON.stringify( data )
|
||||
};
|
||||
burst_api_request( request_params ).catch( error => {
|
||||
burst_track_hit_running = false;
|
||||
});
|
||||
|
||||
burst_track_hit_running = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize events
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
* More information on why we just use visibilitychange instead of beforeunload
|
||||
* to update the hits:
|
||||
* https://www.igvita.com/2015/11/20/dont-lose-user-and-app-state-use-page-visibility/
|
||||
* https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event
|
||||
* https://xgwang.me/posts/you-may-not-know-beacon/#the-confusion
|
||||
*
|
||||
*/
|
||||
function burst_init_events() {
|
||||
|
||||
// Initial track hit
|
||||
let turbo_mode = burst.options.enable_turbo_mode;
|
||||
if ( turbo_mode ) { // if turbo mode is enabled, we track the hit after the whole page has loaded
|
||||
if ( 'loading' !== document.readyState ) {
|
||||
burst_track_hit();
|
||||
} else {
|
||||
document.addEventListener( 'load', burst_track_hit );
|
||||
}
|
||||
} else { // if default, we track the hit immediately
|
||||
burst_track_hit();
|
||||
}
|
||||
|
||||
// Update hit on visibility change (Navigating away from the page)
|
||||
// Supported by most browsers
|
||||
document.addEventListener( 'visibilitychange', function() {
|
||||
if (
|
||||
'hidden' === document.visibilityState ||
|
||||
'unloaded' === document.visibilityState
|
||||
|
||||
) {
|
||||
burst_update_hit();
|
||||
}
|
||||
});
|
||||
|
||||
// This is a fallback for Safari
|
||||
document.addEventListener( 'pagehide', burst_update_hit );
|
||||
|
||||
// Add event so other plugins can add their own events
|
||||
document.addEventListener( 'burst_fire_hit', function() {
|
||||
burst_track_hit();
|
||||
});
|
||||
|
||||
//for Single Page Applications, we listen to the url changes as well.
|
||||
const originalPushState = history.pushState;
|
||||
const originalReplaceState = history.replaceState;
|
||||
const handleUrlChange = () => {
|
||||
if ( ! burst.options.track_url_change ) {
|
||||
return;
|
||||
}
|
||||
burst_initial_track_hit = false;
|
||||
burst_track_hit();
|
||||
};
|
||||
|
||||
history.pushState = function( state, title, url ) {
|
||||
originalPushState.apply( history, arguments );
|
||||
handleUrlChange();
|
||||
};
|
||||
|
||||
history.replaceState = function( state, title, url ) {
|
||||
originalReplaceState.apply( history, arguments );
|
||||
handleUrlChange();
|
||||
};
|
||||
|
||||
window.addEventListener( 'popstate', handleUrlChange );
|
||||
|
||||
// add event so other plugins can add their own events
|
||||
document.addEventListener( 'burst_enable_cookies', function() {
|
||||
burst_enable_cookies();
|
||||
burst_update_hit( true );
|
||||
});
|
||||
}
|
||||
|
||||
// Listen for consent changes for wp consent api
|
||||
document.addEventListener( 'wp_listen_for_consent_change', function( e ) {
|
||||
var changedConsentCategory = e.detail;
|
||||
for ( var key in changedConsentCategory ) {
|
||||
if ( changedConsentCategory.hasOwnProperty( key ) ) {
|
||||
if ( 'statistics' === key && 'allow' === changedConsentCategory[key]) {
|
||||
burst_init_events();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if ( 'function' !== typeof wp_has_consent ) {
|
||||
|
||||
// no wp consent api available, just track the hit
|
||||
burst_init_events();
|
||||
} else {
|
||||
|
||||
// wp consent api is available, check if there is consent for statistics
|
||||
if ( wp_has_consent( 'statistics' ) ) {
|
||||
burst_init_events();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Silence is golden.
|
||||
@@ -0,0 +1,493 @@
|
||||
// TimeMe.js should be loaded and running to track time as soon as it is loaded.
|
||||
let burst_track_hit_running = false;
|
||||
let burst_initial_track_hit = false;
|
||||
let burst_update_hit_count = 0;
|
||||
let burst_cookieless_option = burst.options.enable_cookieless_tracking; // User
|
||||
// cookieless
|
||||
// option
|
||||
// add option to window so a consent plugin can change this value
|
||||
window.burst_enable_cookieless_tracking = burst.options.enable_cookieless_tracking; // Consent plugin cookieless option
|
||||
let burst_page_url = window.location.href;
|
||||
let burst_completed_goals = [];
|
||||
let burst_goals_script_url = burst.goals_script_url ?
|
||||
burst.goals_script_url :
|
||||
'./burst-goals.js';
|
||||
|
||||
// Set up a promise for when the page is activated,
|
||||
// which is needed for prerendered pages.
|
||||
const pageIsRendered = new Promise( ( resolve ) => {
|
||||
if ( document.prerendering ) {
|
||||
document.addEventListener( 'prerenderingchange', resolve, {once: true});
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Setup Goals if they exist for current page
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
const burst_import_goals = async() => {
|
||||
const goals = await import( burst_goals_script_url );
|
||||
goals.default();
|
||||
};
|
||||
|
||||
// If has goals and a goal has this page_url, import
|
||||
if ( 0 < burst.goals.length ) {
|
||||
for ( let i = 0; i < burst.goals.length; i++ ) {
|
||||
if ( '' !== burst.goals[i].page_url || burst.goals[i].page_url ===
|
||||
burst_page_url ) {
|
||||
burst_import_goals();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a cookie by name
|
||||
* @param name
|
||||
* @returns {Promise}
|
||||
*/
|
||||
let burst_get_cookie = ( name ) => {
|
||||
return new Promise( ( resolve, reject ) => {
|
||||
name = name + '='; //Create the cookie name variable with cookie name
|
||||
// concatenate with = sign
|
||||
let cArr = window.document.cookie.split( ';' ); //Create cookie array by
|
||||
// split the cookie by ';'
|
||||
|
||||
//Loop through the cookies and return the cookie value if we find the
|
||||
// cookie name
|
||||
for ( let i = 0; i < cArr.length; i++ ) {
|
||||
let c = cArr[i].trim();
|
||||
|
||||
//If the name is the cookie string at position 0, we found the cookie and
|
||||
// return the cookie value
|
||||
if ( 0 === c.indexOf( name ) ) {
|
||||
resolve( c.substring( name.length, c.length ) );
|
||||
}
|
||||
}
|
||||
reject( false );
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Set a cookie
|
||||
* @param name
|
||||
* @param value
|
||||
*/
|
||||
let burst_set_cookie = ( name, value ) => {
|
||||
let cookiePath = '/';
|
||||
let domain = '';
|
||||
let secure = ';secure';
|
||||
let date = new Date();
|
||||
let days = burst.cookie_retention_days;
|
||||
date.setTime( date.getTime() + ( days * 24 * 60 * 60 * 1000 ) );
|
||||
let expires = ';expires=' + date.toGMTString();
|
||||
|
||||
if ( 'https:' !== window.location.protocol ) {
|
||||
secure = '';
|
||||
}
|
||||
|
||||
//if we want to dynamically be able to change the domain, we can use this.
|
||||
if ( 0 < domain.length ) {
|
||||
domain = ';domain=' + domain;
|
||||
}
|
||||
document.cookie = name + '=' + value + ';SameSite=Strict' + secure + expires +
|
||||
domain + ';path=' + cookiePath;
|
||||
};
|
||||
|
||||
/**
|
||||
* Should we use cookies for tracking
|
||||
* @returns {boolean}
|
||||
*/
|
||||
let burst_use_cookies = () => {
|
||||
if ( ! navigator.cookieEnabled ) {
|
||||
return false;
|
||||
} // cookies blocked by browser
|
||||
if ( burst_cookieless_option && window.burst_enable_cookieless_tracking ) {
|
||||
return false;
|
||||
} // cookieless is enabled by user or consent plugin
|
||||
return true; // cookies are enabled
|
||||
};
|
||||
|
||||
/**
|
||||
* Enable or disable cookies
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function burst_enable_cookies() {
|
||||
window.burst_enable_cookieless_tracking = 0;
|
||||
if ( burst_use_cookies() ) {
|
||||
burst_uid().then( obj => {
|
||||
burst_set_cookie( 'burst_uid', obj.uid ); // set uid cookie
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set the user identifier
|
||||
* @returns {Promise}
|
||||
*/
|
||||
const burst_uid = () => {
|
||||
return new Promise( ( resolve ) => {
|
||||
burst_get_cookie( 'burst_uid' ).then( cookie_uid => {
|
||||
resolve( cookie_uid );
|
||||
}).catch( () => {
|
||||
|
||||
// if no cookie, generate a uid and set it
|
||||
let uid = burst_generate_uid();
|
||||
burst_set_cookie( 'burst_uid', uid );
|
||||
resolve( uid );
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Generate a random string
|
||||
* @returns {string}
|
||||
*/
|
||||
let burst_generate_uid = () => {
|
||||
let uid = '';
|
||||
for ( let i = 0; 32 > i; i++ ) {
|
||||
uid += Math.floor( Math.random() * 16 ).toString( 16 );
|
||||
}
|
||||
return uid;
|
||||
};
|
||||
|
||||
/**
|
||||
* Generate a fingerprint
|
||||
* @returns {Promise}
|
||||
*/
|
||||
const burst_fingerprint = () => {
|
||||
return new Promise( ( resolve, reject ) => {
|
||||
let browserTests = [
|
||||
'availableScreenResolution',
|
||||
'canvas',
|
||||
'colorDepth',
|
||||
'cookies',
|
||||
'cpuClass',
|
||||
'deviceDpi',
|
||||
'doNotTrack',
|
||||
'indexedDb',
|
||||
'language',
|
||||
'localStorage',
|
||||
'pixelRatio',
|
||||
'platform',
|
||||
'plugins',
|
||||
'processorCores',
|
||||
'screenResolution',
|
||||
'sessionStorage',
|
||||
'timezoneOffset',
|
||||
'touchSupport',
|
||||
'userAgent',
|
||||
'webGl'
|
||||
];
|
||||
|
||||
imprint.test( browserTests ).then( function( fingerprint ) {
|
||||
resolve( fingerprint );
|
||||
}).catch( ( error ) => {
|
||||
reject( error );
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
let burst_get_time_on_page = () => {
|
||||
return new Promise( ( resolve ) => {
|
||||
|
||||
// wait for timeMe.js to be loaded
|
||||
if ( 'undefined' === typeof TimeMe ) {
|
||||
resolve( 0 ); // return 0 if timeMe.js is not (yet) loaded
|
||||
}
|
||||
|
||||
let current_time_on_page = TimeMe.getTimeOnCurrentPageInMilliseconds();
|
||||
|
||||
// reset time on page
|
||||
TimeMe.resetAllRecordedPageTimes();
|
||||
TimeMe.initialize({
|
||||
idleTimeoutInSeconds: 30 // seconds
|
||||
});
|
||||
resolve( current_time_on_page );
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if this is a user agent
|
||||
* @returns {boolean}
|
||||
*/
|
||||
let burst_is_user_agent = () => {
|
||||
const botPattern = '(googlebot\/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)';
|
||||
let re = new RegExp( botPattern, 'i' );
|
||||
let userAgent = navigator.userAgent;
|
||||
|
||||
return re.test( userAgent );
|
||||
};
|
||||
|
||||
let burst_is_do_not_track = () => {
|
||||
if ( burst.options.do_not_track ) {
|
||||
|
||||
// check for doNotTrack and globalPrivacyControl headers
|
||||
return '1' === navigator.doNotTrack || 'yes' === navigator.doNotTrack ||
|
||||
'1' === navigator.msDoNotTrack || '1' === window.doNotTrack || 1 ===
|
||||
navigator.globalPrivacyControl;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* Make a XMLHttpRequest and return a promise
|
||||
* @param obj
|
||||
* @returns {Promise<unknown>}
|
||||
*/
|
||||
let burst_api_request = obj => {
|
||||
|
||||
// generate a new token every request
|
||||
return new Promise( ( resolve, reject ) => {
|
||||
|
||||
// if browser supports sendBeacon use it
|
||||
if ( burst.options.beacon_enabled ) {
|
||||
const headers = {
|
||||
type: 'application/json'
|
||||
};
|
||||
const blob = new Blob([ JSON.stringify( obj.data ) ], headers );
|
||||
window.navigator.sendBeacon( burst.beacon_url, blob );
|
||||
resolve( 'ok' );
|
||||
} else {
|
||||
let burst_token = 'token=' +
|
||||
Math.random().toString( 36 ).replace( /[^a-z]+/g, '' ).substring( 0, 7 );
|
||||
|
||||
// if browser supports fetch keepalive, it will use it. Otherwise, it
|
||||
// will use a normal XMLHttpRequest
|
||||
wp.apiFetch({
|
||||
path: '/burst/v1/track/?' + burst_token,
|
||||
keepalive: true,
|
||||
method: 'POST',
|
||||
data: obj.data
|
||||
}).then(
|
||||
( res ) => {
|
||||
if ( 202 === res.status ) {
|
||||
res.json().then(
|
||||
( data ) => console.warn( data )
|
||||
);
|
||||
}
|
||||
},
|
||||
( error ) => console.log( error )
|
||||
);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Update the tracked hit
|
||||
* Mostly used for updating time spent on a page
|
||||
* Also used for updating the UID (from fingerprint to a cookie)
|
||||
*/
|
||||
|
||||
async function burst_update_hit( update_uid = false ) {
|
||||
await pageIsRendered;
|
||||
if ( burst_is_user_agent() ) {
|
||||
return;
|
||||
}
|
||||
if ( burst_is_do_not_track() ) {
|
||||
return;
|
||||
}
|
||||
if ( ! burst_initial_track_hit ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( burst_update_hit_count > 5 ) {
|
||||
return;
|
||||
}
|
||||
burst_update_hit_count++;
|
||||
|
||||
let event = new CustomEvent( 'burst_before_update_hit', {detail: burst});
|
||||
document.dispatchEvent( event );
|
||||
|
||||
let data = {
|
||||
'fingerprint': false,
|
||||
'uid': false,
|
||||
'url': location.href,
|
||||
'time_on_page': await burst_get_time_on_page(),
|
||||
'completed_goals': burst_completed_goals
|
||||
};
|
||||
|
||||
if ( update_uid ) {
|
||||
|
||||
// add both the uid and the fingerprint to the data
|
||||
// this way we can update the fingerprint with the uid
|
||||
// this is useful for consent plugins
|
||||
data.uid = await burst_uid();
|
||||
data.fingerprint = await burst_fingerprint();
|
||||
} else if ( burst_use_cookies() ) {
|
||||
data.uid = await burst_uid();
|
||||
} else {
|
||||
data.fingerprint = await burst_fingerprint();
|
||||
}
|
||||
if ( 0 < data.time_on_page || false !== data.uid ) {
|
||||
await burst_api_request({
|
||||
data: JSON.stringify( data )
|
||||
}).catch( error => {
|
||||
|
||||
}); // @todo handle error and send notice to the user. If multiple errors
|
||||
// send to backend
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Track a hit
|
||||
*
|
||||
*/
|
||||
async function burst_track_hit() {
|
||||
await pageIsRendered;
|
||||
|
||||
if ( burst_initial_track_hit ) { // if the initial track hit has already been fired, we just update the hit
|
||||
burst_update_hit();
|
||||
return;
|
||||
}
|
||||
burst_initial_track_hit = true;
|
||||
|
||||
if ( burst_is_user_agent() ) {
|
||||
return;
|
||||
}
|
||||
if ( burst_is_do_not_track() ) {
|
||||
return;
|
||||
}
|
||||
if ( burst_track_hit_running ) {
|
||||
return;
|
||||
}
|
||||
|
||||
burst_track_hit_running = true;
|
||||
let event = new CustomEvent( 'burst_before_track_hit', {detail: burst});
|
||||
document.dispatchEvent( event );
|
||||
|
||||
// add browser data to the hit
|
||||
let data = {
|
||||
'uid': false,
|
||||
'fingerprint': false,
|
||||
'url': location.href,
|
||||
'referrer_url': document.referrer,
|
||||
'user_agent': navigator.userAgent || 'unknown',
|
||||
'device_resolution': window.screen.width * window.devicePixelRatio + 'x' +
|
||||
window.screen.height * window.devicePixelRatio,
|
||||
'time_on_page': await burst_get_time_on_page(),
|
||||
'completed_goals': burst_completed_goals
|
||||
};
|
||||
|
||||
if ( burst_use_cookies() ) {
|
||||
data.uid = await burst_uid();
|
||||
} else {
|
||||
data.fingerprint = await burst_fingerprint();
|
||||
}
|
||||
|
||||
event = new CustomEvent( 'burst_track_hit', {detail: data});
|
||||
document.dispatchEvent( event );
|
||||
|
||||
let request_params = {
|
||||
method: 'POST',
|
||||
data: JSON.stringify( data )
|
||||
};
|
||||
burst_api_request( request_params ).catch( error => {
|
||||
burst_track_hit_running = false;
|
||||
});
|
||||
|
||||
burst_track_hit_running = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize events
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
* More information on why we just use visibilitychange instead of beforeunload
|
||||
* to update the hits:
|
||||
* https://www.igvita.com/2015/11/20/dont-lose-user-and-app-state-use-page-visibility/
|
||||
* https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event
|
||||
* https://xgwang.me/posts/you-may-not-know-beacon/#the-confusion
|
||||
*
|
||||
*/
|
||||
function burst_init_events() {
|
||||
|
||||
// Initial track hit
|
||||
let turbo_mode = burst.options.enable_turbo_mode;
|
||||
if ( turbo_mode ) { // if turbo mode is enabled, we track the hit after the whole page has loaded
|
||||
if ( 'loading' !== document.readyState ) {
|
||||
burst_track_hit();
|
||||
} else {
|
||||
document.addEventListener( 'load', burst_track_hit );
|
||||
}
|
||||
} else { // if default, we track the hit immediately
|
||||
burst_track_hit();
|
||||
}
|
||||
|
||||
// Update hit on visibility change (Navigating away from the page)
|
||||
// Supported by most browsers
|
||||
document.addEventListener( 'visibilitychange', function() {
|
||||
if (
|
||||
'hidden' === document.visibilityState ||
|
||||
'unloaded' === document.visibilityState
|
||||
|
||||
) {
|
||||
burst_update_hit();
|
||||
}
|
||||
});
|
||||
|
||||
// This is a fallback for Safari
|
||||
document.addEventListener( 'pagehide', burst_update_hit );
|
||||
|
||||
// Add event so other plugins can add their own events
|
||||
document.addEventListener( 'burst_fire_hit', function() {
|
||||
burst_track_hit();
|
||||
});
|
||||
|
||||
//for Single Page Applications, we listen to the url changes as well.
|
||||
const originalPushState = history.pushState;
|
||||
const originalReplaceState = history.replaceState;
|
||||
const handleUrlChange = () => {
|
||||
if ( ! burst.options.track_url_change ) {
|
||||
return;
|
||||
}
|
||||
burst_initial_track_hit = false;
|
||||
burst_track_hit();
|
||||
};
|
||||
|
||||
history.pushState = function( state, title, url ) {
|
||||
originalPushState.apply( history, arguments );
|
||||
handleUrlChange();
|
||||
};
|
||||
|
||||
history.replaceState = function( state, title, url ) {
|
||||
originalReplaceState.apply( history, arguments );
|
||||
handleUrlChange();
|
||||
};
|
||||
|
||||
window.addEventListener( 'popstate', handleUrlChange );
|
||||
|
||||
// add event so other plugins can add their own events
|
||||
document.addEventListener( 'burst_enable_cookies', function() {
|
||||
burst_enable_cookies();
|
||||
burst_update_hit( true );
|
||||
});
|
||||
}
|
||||
|
||||
// Listen for consent changes for wp consent api
|
||||
document.addEventListener( 'wp_listen_for_consent_change', function( e ) {
|
||||
var changedConsentCategory = e.detail;
|
||||
for ( var key in changedConsentCategory ) {
|
||||
if ( changedConsentCategory.hasOwnProperty( key ) ) {
|
||||
if ( 'statistics' === key && 'allow' === changedConsentCategory[key]) {
|
||||
burst_init_events();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if ( 'function' !== typeof wp_has_consent ) {
|
||||
|
||||
// no wp consent api available, just track the hit
|
||||
burst_init_events();
|
||||
} else {
|
||||
|
||||
// wp consent api is available, check if there is consent for statistics
|
||||
if ( wp_has_consent( 'statistics' ) ) {
|
||||
burst_init_events();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
/**
|
||||
* Setup event listeners for goals.
|
||||
*/
|
||||
|
||||
let viewportGoals = [];
|
||||
const burst_goals_setup = () => {
|
||||
|
||||
// loop through goals and remove any that don't match the current path or
|
||||
// don't have a path
|
||||
for ( let i = 0; i < burst.goals.length; i++ ) {
|
||||
let goal = burst.goals[i];
|
||||
if ( goal.url && ( goal.url !== window.location.pathname && '*' !== goal.url ) ) {
|
||||
burst.goals.splice( i, 1 );
|
||||
}
|
||||
}
|
||||
|
||||
// loop through all goals and setup event listeners
|
||||
for ( let i = 0; i < burst.goals.length; i++ ) {
|
||||
let goal = burst.goals[i];
|
||||
switch ( goal.type ) {
|
||||
case 'views':
|
||||
burst_setup_viewport_tracker( goal );
|
||||
break;
|
||||
case 'clicks':
|
||||
default:
|
||||
burst_setup_click_tracker( goal );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener( 'scroll', handle_viewport_goals, true );
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if any goals are in the viewport.
|
||||
*/
|
||||
const handle_viewport_goals = () => {
|
||||
viewportGoals.forEach( ( goalData, index ) => {
|
||||
if ( burst_is_element_in_viewport( goalData.element ) ) {
|
||||
burst_goal_triggered( goalData.goal );
|
||||
|
||||
// Remove the goal from the viewportGoals array
|
||||
viewportGoals.splice( index, 1 );
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Setup a viewport tracker for a goal.
|
||||
* @param goal
|
||||
*/
|
||||
const burst_setup_viewport_tracker = ( goal ) => {
|
||||
if ( 0 === goal.attribute_value.length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
let selector = 'id' === goal.attribute ? '#' : '.';
|
||||
let elements = document.querySelectorAll( selector + goal.attribute_value );
|
||||
|
||||
for ( let i = 0; i < elements.length; i++ ) {
|
||||
let element = elements[i];
|
||||
|
||||
// Check if already in viewport
|
||||
if ( burst_is_element_in_viewport( element ) ) {
|
||||
burst_goal_triggered( goal );
|
||||
|
||||
// remove from list of elements to monitor
|
||||
} else {
|
||||
|
||||
// Add to our list of elements to monitor
|
||||
viewportGoals.push({element, goal});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Recursive function to check all parents.
|
||||
* @param element
|
||||
* @return {boolean|boolean|*}
|
||||
*/
|
||||
const is_element_truly_visible = ( element ) => {
|
||||
if ( ! element ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const style = window.getComputedStyle( element );
|
||||
|
||||
if ( 'none' === style.display || '0' === style.opacity ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return is_element_truly_visible( element.parentElement );
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if an element is in the viewport.
|
||||
* @param element
|
||||
* @returns {boolean}
|
||||
*/
|
||||
const burst_is_element_in_viewport = ( element ) => {
|
||||
if ( ! is_element_truly_visible( element ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let rect = element.getBoundingClientRect();
|
||||
return (
|
||||
0 <= rect.top &&
|
||||
0 <= rect.left &&
|
||||
rect.bottom <=
|
||||
( window.innerHeight || document.documentElement.clientHeight ) && /* or $(window).height() */
|
||||
rect.right <= ( window.innerWidth || document.documentElement.clientWidth ) /* or $(window).width() */
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Function to check and trigger a goal when an element is in the viewport.
|
||||
* @param element
|
||||
* @param goal
|
||||
*/
|
||||
const burst_listener_view = ( element, goal ) => {
|
||||
if ( burst_is_element_in_viewport( element ) ) {
|
||||
burst_goal_triggered( goal );
|
||||
|
||||
// @todo event listener does not get removed
|
||||
window.removeEventListener( 'scroll',
|
||||
() => burst_listener_view( element, goal ), true );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Setup a click tracker for a goal.
|
||||
* @param goal
|
||||
*/
|
||||
const burst_setup_click_tracker = ( goal ) => {
|
||||
document.body.addEventListener( 'click', function( event ) {
|
||||
burst_recursive_trigger_check( event.target, goal );
|
||||
});
|
||||
};
|
||||
|
||||
const burst_recursive_trigger_check = ( target, goal ) => {
|
||||
|
||||
//if there is no attribute value, exit
|
||||
if ( 0 === goal.attribute_value.length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
let selector = 'id' === goal.attribute ? '#' : '.';
|
||||
if ( target.matches( selector + goal.attribute_value ) ) {
|
||||
burst_goal_triggered( goal );
|
||||
} else if ( target.parentElement ) {
|
||||
burst_recursive_trigger_check( target.parentElement, goal );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Trigger a goal and add to the completed goals array.
|
||||
* @param goal
|
||||
*/
|
||||
const burst_goal_triggered = ( goal ) => {
|
||||
|
||||
// if burst_completed_goals does not contain goal.id, add it
|
||||
if ( -1 === burst_completed_goals.indexOf( goal.ID ) ) {
|
||||
burst_completed_goals.push( goal.ID );
|
||||
viewportGoals = viewportGoals.filter( goalData => goalData.goal.ID !== goal.ID );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Default export for goals.
|
||||
*/
|
||||
export default () => {
|
||||
burst_goals_setup();
|
||||
};
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Promise Polyfill
|
||||
* Lightweight ES6 Promise polyfill for the browser and node.
|
||||
* Adheres closely to the spec. It is a perfect polyfill IE, Firefox
|
||||
* or any other browser that does not support native promises.
|
||||
*
|
||||
* Website: https://github.com/taylorhakes/promise-polyfill
|
||||
* Copyright: (c) 2014 Taylor Hakes
|
||||
* Copyright: (c) 2014 Forbes Lindesay
|
||||
* License: MIT
|
||||
*/
|
||||
!function(e){function n(){}function t(e,n){return function(){e.apply(n,arguments)}}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],s(e,this)}function i(e,n){for(;3===e._state;)e=e._value;return 0===e._state?void e._deferreds.push(n):(e._handled=!0,void o._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null===t)return void(1===e._state?r:u)(n.promise,e._value);var o;try{o=t(e._value)}catch(i){return void u(n.promise,i)}r(n.promise,o)}))}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if(n instanceof o)return e._state=3,e._value=n,void f(e);if("function"==typeof i)return void s(t(i,n),e)}e._state=1,e._value=n,f(e)}catch(r){u(e,r)}}function u(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;n<t;n++)i(e,e._deferreds[n]);e._deferreds=null}function c(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}function s(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,u(n,e))})}catch(o){if(t)return;t=!0,u(n,o)}}var a=setTimeout;o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var o=new this.constructor(n);return i(this,new c(e,t,o)),o},o.all=function(e){var n=Array.prototype.slice.call(e);return new o(function(e,t){function o(r,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var f=u.then;if("function"==typeof f)return void f.call(u,function(e){o(r,e)},t)}n[r]=u,0===--i&&e(n)}catch(c){t(c)}}if(0===n.length)return e([]);for(var i=n.length,r=0;r<n.length;r++)o(r,n[r])})},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o(function(n){n(e)})},o.reject=function(e){return new o(function(n,t){t(e)})},o.race=function(e){return new o(function(n,t){for(var o=0,i=e.length;o<i;o++)e[o].then(n,t)})},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){a(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},"undefined"!=typeof module&&module.exports?module.exports=o:e.Promise||(e.Promise=o)}(this);
|
||||
|
||||
// murmurHash3.js v2.1.2 | http://github.com/karanlyons/murmurHash.js | MIT Licensed
|
||||
(function(y,z){function l(a,c){return(a&65535)*c+(((a>>>16)*c&65535)<<16)}function r(a,c){return a<<c|a>>>32-c}function x(a){a=l(a^a>>>16,2246822507);a^=a>>>13;a=l(a,3266489909);return a^=a>>>16}function v(a,c){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];c=[c[0]>>>16,c[0]&65535,c[1]>>>16,c[1]&65535];var b=[0,0,0,0];b[3]+=a[3]+c[3];b[2]+=b[3]>>>16;b[3]&=65535;b[2]+=a[2]+c[2];b[1]+=b[2]>>>16;b[2]&=65535;b[1]+=a[1]+c[1];b[0]+=b[1]>>>16;b[1]&=65535;b[0]+=a[0]+c[0];b[0]&=65535;return[b[0]<<16|b[1],b[2]<<
|
||||
16|b[3]]}function u(a,c){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];c=[c[0]>>>16,c[0]&65535,c[1]>>>16,c[1]&65535];var b=[0,0,0,0];b[3]+=a[3]*c[3];b[2]+=b[3]>>>16;b[3]&=65535;b[2]+=a[2]*c[3];b[1]+=b[2]>>>16;b[2]&=65535;b[2]+=a[3]*c[2];b[1]+=b[2]>>>16;b[2]&=65535;b[1]+=a[1]*c[3];b[0]+=b[1]>>>16;b[1]&=65535;b[1]+=a[2]*c[2];b[0]+=b[1]>>>16;b[1]&=65535;b[1]+=a[3]*c[1];b[0]+=b[1]>>>16;b[1]&=65535;b[0]+=a[0]*c[3]+a[1]*c[2]+a[2]*c[1]+a[3]*c[0];b[0]&=65535;return[b[0]<<16|b[1],b[2]<<16|b[3]]}function w(a,
|
||||
c){c%=64;if(32===c)return[a[1],a[0]];if(32>c)return[a[0]<<c|a[1]>>>32-c,a[1]<<c|a[0]>>>32-c];c-=32;return[a[1]<<c|a[0]>>>32-c,a[0]<<c|a[1]>>>32-c]}function s(a,c){c%=64;return 0===c?a:32>c?[a[0]<<c|a[1]>>>32-c,a[1]<<c]:[a[1]<<c-32,0]}function p(a,c){return[a[0]^c[0],a[1]^c[1]]}function A(a){a=p(a,[0,a[0]>>>1]);a=u(a,[4283543511,3981806797]);a=p(a,[0,a[0]>>>1]);a=u(a,[3301882366,444984403]);return a=p(a,[0,a[0]>>>1])}var t={version:"2.1.2",x86:{},x64:{}};t.x86.hash32=function(a,c){a=a||"";for(var b=
|
||||
a.length%4,p=a.length-b,d=c||0,e=0,f=0;f<p;f+=4)e=a.charCodeAt(f)&255|(a.charCodeAt(f+1)&255)<<8|(a.charCodeAt(f+2)&255)<<16|(a.charCodeAt(f+3)&255)<<24,e=l(e,3432918353),e=r(e,15),e=l(e,461845907),d^=e,d=r(d,13),d=l(d,5)+3864292196;e=0;switch(b){case 3:e^=(a.charCodeAt(f+2)&255)<<16;case 2:e^=(a.charCodeAt(f+1)&255)<<8;case 1:e^=a.charCodeAt(f)&255,e=l(e,3432918353),e=r(e,15),e=l(e,461845907),d^=e}d^=a.length;d=x(d);return d>>>0};t.x86.hash128=function(a,c){a=a||"";c=c||0;for(var b=a.length%16,p=
|
||||
a.length-b,d=c,e=c,f=c,h=c,m=0,n=0,g=0,q=0,k=0;k<p;k+=16)m=a.charCodeAt(k)&255|(a.charCodeAt(k+1)&255)<<8|(a.charCodeAt(k+2)&255)<<16|(a.charCodeAt(k+3)&255)<<24,n=a.charCodeAt(k+4)&255|(a.charCodeAt(k+5)&255)<<8|(a.charCodeAt(k+6)&255)<<16|(a.charCodeAt(k+7)&255)<<24,g=a.charCodeAt(k+8)&255|(a.charCodeAt(k+9)&255)<<8|(a.charCodeAt(k+10)&255)<<16|(a.charCodeAt(k+11)&255)<<24,q=a.charCodeAt(k+12)&255|(a.charCodeAt(k+13)&255)<<8|(a.charCodeAt(k+14)&255)<<16|(a.charCodeAt(k+15)&255)<<24,m=l(m,597399067),
|
||||
m=r(m,15),m=l(m,2869860233),d^=m,d=r(d,19),d+=e,d=l(d,5)+1444728091,n=l(n,2869860233),n=r(n,16),n=l(n,951274213),e^=n,e=r(e,17),e+=f,e=l(e,5)+197830471,g=l(g,951274213),g=r(g,17),g=l(g,2716044179),f^=g,f=r(f,15),f+=h,f=l(f,5)+2530024501,q=l(q,2716044179),q=r(q,18),q=l(q,597399067),h^=q,h=r(h,13),h+=d,h=l(h,5)+850148119;q=g=n=m=0;switch(b){case 15:q^=a.charCodeAt(k+14)<<16;case 14:q^=a.charCodeAt(k+13)<<8;case 13:q^=a.charCodeAt(k+12),q=l(q,2716044179),q=r(q,18),q=l(q,597399067),h^=q;case 12:g^=a.charCodeAt(k+
|
||||
11)<<24;case 11:g^=a.charCodeAt(k+10)<<16;case 10:g^=a.charCodeAt(k+9)<<8;case 9:g^=a.charCodeAt(k+8),g=l(g,951274213),g=r(g,17),g=l(g,2716044179),f^=g;case 8:n^=a.charCodeAt(k+7)<<24;case 7:n^=a.charCodeAt(k+6)<<16;case 6:n^=a.charCodeAt(k+5)<<8;case 5:n^=a.charCodeAt(k+4),n=l(n,2869860233),n=r(n,16),n=l(n,951274213),e^=n;case 4:m^=a.charCodeAt(k+3)<<24;case 3:m^=a.charCodeAt(k+2)<<16;case 2:m^=a.charCodeAt(k+1)<<8;case 1:m^=a.charCodeAt(k),m=l(m,597399067),m=r(m,15),m=l(m,2869860233),d^=m}d^=a.length;
|
||||
e^=a.length;f^=a.length;h^=a.length;d=d+e+f;d+=h;e+=d;f+=d;h+=d;d=x(d);e=x(e);f=x(f);h=x(h);d+=e;d+=f;d+=h;e+=d;f+=d;h+=d;return("00000000"+(d>>>0).toString(16)).slice(-8)+("00000000"+(e>>>0).toString(16)).slice(-8)+("00000000"+(f>>>0).toString(16)).slice(-8)+("00000000"+(h>>>0).toString(16)).slice(-8)};t.x64.hash128=function(a,c){a=a||"";c=c||0;for(var b=a.length%16,l=a.length-b,d=[0,c],e=[0,c],f=[0,0],h=[0,0],m=[2277735313,289559509],n=[1291169091,658871167],g=0;g<l;g+=16)f=[a.charCodeAt(g+4)&255|
|
||||
(a.charCodeAt(g+5)&255)<<8|(a.charCodeAt(g+6)&255)<<16|(a.charCodeAt(g+7)&255)<<24,a.charCodeAt(g)&255|(a.charCodeAt(g+1)&255)<<8|(a.charCodeAt(g+2)&255)<<16|(a.charCodeAt(g+3)&255)<<24],h=[a.charCodeAt(g+12)&255|(a.charCodeAt(g+13)&255)<<8|(a.charCodeAt(g+14)&255)<<16|(a.charCodeAt(g+15)&255)<<24,a.charCodeAt(g+8)&255|(a.charCodeAt(g+9)&255)<<8|(a.charCodeAt(g+10)&255)<<16|(a.charCodeAt(g+11)&255)<<24],f=u(f,m),f=w(f,31),f=u(f,n),d=p(d,f),d=w(d,27),d=v(d,e),d=v(u(d,[0,5]),[0,1390208809]),h=u(h,n),
|
||||
h=w(h,33),h=u(h,m),e=p(e,h),e=w(e,31),e=v(e,d),e=v(u(e,[0,5]),[0,944331445]);f=[0,0];h=[0,0];switch(b){case 15:h=p(h,s([0,a.charCodeAt(g+14)],48));case 14:h=p(h,s([0,a.charCodeAt(g+13)],40));case 13:h=p(h,s([0,a.charCodeAt(g+12)],32));case 12:h=p(h,s([0,a.charCodeAt(g+11)],24));case 11:h=p(h,s([0,a.charCodeAt(g+10)],16));case 10:h=p(h,s([0,a.charCodeAt(g+9)],8));case 9:h=p(h,[0,a.charCodeAt(g+8)]),h=u(h,n),h=w(h,33),h=u(h,m),e=p(e,h);case 8:f=p(f,s([0,a.charCodeAt(g+7)],56));case 7:f=p(f,s([0,a.charCodeAt(g+
|
||||
6)],48));case 6:f=p(f,s([0,a.charCodeAt(g+5)],40));case 5:f=p(f,s([0,a.charCodeAt(g+4)],32));case 4:f=p(f,s([0,a.charCodeAt(g+3)],24));case 3:f=p(f,s([0,a.charCodeAt(g+2)],16));case 2:f=p(f,s([0,a.charCodeAt(g+1)],8));case 1:f=p(f,[0,a.charCodeAt(g)]),f=u(f,m),f=w(f,31),f=u(f,n),d=p(d,f)}d=p(d,[0,a.length]);e=p(e,[0,a.length]);d=v(d,e);e=v(e,d);d=A(d);e=A(e);d=v(d,e);e=v(e,d);return("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(e[0]>>>0).toString(16)).slice(-8)+
|
||||
("00000000"+(e[1]>>>0).toString(16)).slice(-8)};"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(exports=module.exports=t),exports.murmurHash3=t):"function"===typeof define&&define.amd?define([],function(){return t}):(t._murmurHash3=y.murmurHash3,t.noConflict=function(){y.murmurHash3=t._murmurHash3;t._murmurHash3=z;t.noConflict=z;return t},y.murmurHash3=t)})(this);
|
||||
|
||||
/*
|
||||
* ImprintJs
|
||||
*/
|
||||
(function(scope) {
|
||||
|
||||
'use strict';
|
||||
|
||||
// Test holder
|
||||
var _tests = {};
|
||||
|
||||
var imprint = scope.imprint || {
|
||||
|
||||
test: function(tests){
|
||||
var self = this;
|
||||
return Promise.all(tests.map(function(x){
|
||||
if (!_tests.hasOwnProperty(x))
|
||||
throw "No test registered with the alias " + x;
|
||||
return _tests[x]();
|
||||
})).then(function(values){
|
||||
//console.log(values);
|
||||
return murmurHash3.x86.hash128(values.join("~"));
|
||||
})
|
||||
},
|
||||
|
||||
registerTest: function(alias, test)
|
||||
{
|
||||
// Add test factory to tests collection
|
||||
_tests[alias] = test;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Export the imprint class
|
||||
if (typeof module === 'object' && typeof exports !== "undefined") {
|
||||
module.exports = imprintJs;
|
||||
}
|
||||
|
||||
scope.imprint = imprint;
|
||||
|
||||
})(window);
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("adBlocker", function(){
|
||||
return new Promise(function(resolve) {
|
||||
var adsbox = document.createElement('div');
|
||||
adsbox.innerHTML = ' ';
|
||||
adsbox.className = 'adsbox';
|
||||
adsbox.style.display = 'block';
|
||||
adsbox.style.position = 'absolute';
|
||||
adsbox.style.top = '0px';
|
||||
adsbox.style.left = '-9999px';
|
||||
try
|
||||
{
|
||||
// body may not exist, that's why we need try/catch
|
||||
document.body.appendChild(adsbox);
|
||||
window.setTimeout(function() {
|
||||
var result = adsbox.offsetHeight === 0;
|
||||
document.body.removeChild(adsbox);
|
||||
return resolve(result);
|
||||
}, 10);
|
||||
} catch (e) {
|
||||
return resolve(false);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Original Source: https://github.com/Song-Li/cross_browser/blob/master/client/fingerprint/js/audio.js
|
||||
* Copyright: Yinzhi Cao, Song Li, Erik Wijmans
|
||||
* License: GNU v3
|
||||
* Changes:
|
||||
* - Wrapped in an ImprintJs promise
|
||||
*/
|
||||
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("audio", function(){
|
||||
return new Promise(function(resolve) {
|
||||
try
|
||||
{
|
||||
var audioCtx = new (window.AudioContext || window.webkitAudioContext),
|
||||
oscillator = audioCtx.createOscillator(),
|
||||
analyser = audioCtx.createAnalyser(),
|
||||
gainNode = audioCtx.createGain(),
|
||||
scriptProcessor = audioCtx.createScriptProcessor(4096,1,1);
|
||||
var destination = audioCtx.destination;
|
||||
var val = (audioCtx.sampleRate).toString() + '_' + destination.maxChannelCount + "_" + destination.numberOfInputs + '_' + destination.numberOfOutputs + '_' + destination.channelCount + '_' + destination.channelCountMode + '_' + destination.channelInterpretation;
|
||||
return resolve(val);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return resolve("");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,14 @@
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("availableScreenResolution", function(){
|
||||
return new Promise(function(resolve) {
|
||||
var val = (screen.availHeight > screen.availWidth)
|
||||
? [screen.availHeight, screen.availWidth]
|
||||
: [screen.availWidth, screen.availHeight];
|
||||
return resolve(val.join("x"));
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Original Source: https://github.com/Valve/fingerprintjs2/blob/master/fingerprint2.js
|
||||
* Copyright: Valentin Vasilyev (valentin.vasilyev@outlook.com)
|
||||
* License: MIT
|
||||
* Changes:
|
||||
* - Wrapped in an ImprintJs promise
|
||||
*/
|
||||
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("canvas", function(){
|
||||
return new Promise(function(resolve) {
|
||||
|
||||
var result = [];
|
||||
|
||||
// Very simple now, need to make it more complex (geo shapes etc)
|
||||
var canvas = document.createElement("canvas");
|
||||
canvas.width = 2000;
|
||||
canvas.height = 200;
|
||||
canvas.style.display = "inline";
|
||||
|
||||
var ctx = canvas.getContext("2d");
|
||||
|
||||
// detect browser support of canvas winding
|
||||
// http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/
|
||||
// https://github.com/Modernizr/Modernizr/blob/master/feature-detects/canvas/winding.js
|
||||
ctx.rect(0, 0, 10, 10);
|
||||
ctx.rect(2, 2, 6, 6);
|
||||
result.push("canvas winding:" + ((ctx.isPointInPath(5, 5, "evenodd") === false) ? "yes" : "no"));
|
||||
|
||||
ctx.textBaseline = "alphabetic";
|
||||
ctx.fillStyle = "#f60";
|
||||
ctx.fillRect(125, 1, 62, 20);
|
||||
ctx.fillStyle = "#069";
|
||||
|
||||
// https://github.com/Valve/fingerprintjs2/issues/66
|
||||
ctx.font = "11pt no-real-font-123";
|
||||
ctx.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03", 2, 15);
|
||||
ctx.fillStyle = "rgba(102, 204, 0, 0.2)";
|
||||
ctx.font = "18pt Arial";
|
||||
ctx.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03", 4, 45);
|
||||
|
||||
// canvas blending
|
||||
// http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/
|
||||
// http://jsfiddle.net/NDYV8/16/
|
||||
ctx.globalCompositeOperation = "multiply";
|
||||
ctx.fillStyle = "rgb(255,0,255)";
|
||||
ctx.beginPath();
|
||||
ctx.arc(50, 50, 50, 0, Math.PI * 2, true);
|
||||
ctx.closePath();
|
||||
ctx.fill();
|
||||
ctx.fillStyle = "rgb(0,255,255)";
|
||||
ctx.beginPath();
|
||||
ctx.arc(100, 50, 50, 0, Math.PI * 2, true);
|
||||
ctx.closePath();
|
||||
ctx.fill();
|
||||
ctx.fillStyle = "rgb(255,255,0)";
|
||||
ctx.beginPath();
|
||||
ctx.arc(75, 100, 50, 0, Math.PI * 2, true);
|
||||
ctx.closePath();
|
||||
ctx.fill();
|
||||
ctx.fillStyle = "rgb(255,0,255)";
|
||||
|
||||
// canvas winding
|
||||
// http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/
|
||||
// http://jsfiddle.net/NDYV8/19/
|
||||
ctx.arc(75, 75, 75, 0, Math.PI * 2, true);
|
||||
ctx.arc(75, 75, 25, 0, Math.PI * 2, true);
|
||||
ctx.fill("evenodd");
|
||||
|
||||
result.push("canvas fp:" + canvas.toDataURL());
|
||||
|
||||
return resolve(result.join("~"));
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,21 @@
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("colorDepth", function(){
|
||||
return new Promise(function(resolve) {
|
||||
var cd = screen.colorDepth;
|
||||
|
||||
// Some browsers return 24 rather than 32 as 32 is really
|
||||
// 24 bit color depth + 8 bits alpha, so they see the alpha
|
||||
// as not really being "color" so report 24 instead.
|
||||
// For consistancy, treat all 32 color depths as 24.
|
||||
if (cd === 32) {
|
||||
cd = 24;
|
||||
}
|
||||
|
||||
return resolve(cd || "");
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,11 @@
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("cookies", function(){
|
||||
return new Promise(function(resolve) {
|
||||
return resolve(navigator.cookieEnabled);
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,11 @@
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("cpuClass", function(){
|
||||
return new Promise(function(resolve) {
|
||||
return resolve(navigator.cpuClass || "");
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,11 @@
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("deviceDpi", function(){
|
||||
return new Promise(function(resolve) {
|
||||
return resolve((screen.deviceXDPI || 0) + "x" + (screen.deviceYDPI || 0));
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,11 @@
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("doNotTrack", function(){
|
||||
return new Promise(function(resolve) {
|
||||
return resolve(navigator.doNotTrack || navigator.msDoNotTrack || window.doNotTrack || "");
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,18 @@
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("indexedDb", function(){
|
||||
return new Promise(function(resolve) {
|
||||
try
|
||||
{
|
||||
return resolve(!!window.indexedDB);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return resolve(true); // SecurityError when referencing it means it exists
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,90 @@
|
||||
/**
|
||||
* JavaScript code to detect available availability of a
|
||||
* particular font in a browser using JavaScript and CSS.
|
||||
*
|
||||
* Author : Lalit Patel
|
||||
* Website: http://www.lalit.org/lab/javascript-css-font-detect/
|
||||
* License: Apache Software License 2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Version: 0.15 (21 Sep 2009)
|
||||
* Changed comparision font to default from sans-default-default,
|
||||
* as in FF3.0 font of child element didn't fallback
|
||||
* to parent element if the font is missing.
|
||||
* Version: 0.2 (04 Mar 2012)
|
||||
* Comparing font against all the 3 generic font families ie,
|
||||
* 'monospace', 'sans-serif' and 'sans'. If it doesn't match all 3
|
||||
* then that font is 100% not available in the system
|
||||
* Version: 0.3 (24 Mar 2012)
|
||||
* Replaced sans with serif in the list of baseFonts
|
||||
*/
|
||||
var FontDetector = function() {
|
||||
|
||||
// a font will be compared against all the three default fonts.
|
||||
// and if it doesn't match all 3 then that font is not available.
|
||||
var baseFonts = ['monospace', 'sans-serif', 'serif'];
|
||||
|
||||
//we use m or w because these two characters take up the maximum width.
|
||||
// And we use a LLi so that the same matching fonts can get separated
|
||||
var testString = "mmmmmmmmmmlli";
|
||||
|
||||
//we test using 72px font size, we may use any size. I guess larger the better.
|
||||
var testSize = '201px';
|
||||
|
||||
var h = document.getElementsByTagName("body")[0];
|
||||
|
||||
// create a SPAN in the document to get the width of the text we use to test
|
||||
var s = document.createElement("span");
|
||||
s.style.fontSize = testSize;
|
||||
s.innerHTML = testString;
|
||||
var defaultWidth = {};
|
||||
var defaultHeight = {};
|
||||
for (var index in baseFonts) {
|
||||
//get the default width for the three base fonts
|
||||
s.style.fontFamily = baseFonts[index];
|
||||
h.appendChild(s);
|
||||
defaultWidth[baseFonts[index]] = s.offsetWidth; //width for the default font
|
||||
defaultHeight[baseFonts[index]] = s.offsetHeight; //height for the defualt font
|
||||
h.removeChild(s);
|
||||
}
|
||||
|
||||
function detect(font) {
|
||||
var detected = true;
|
||||
for (var index in baseFonts) {
|
||||
s.style.fontFamily = font + ',' + baseFonts[index]; // name of the font along with the base font for fallback.
|
||||
h.appendChild(s);
|
||||
var matched = (s.offsetWidth != defaultWidth[baseFonts[index]] || s.offsetHeight != defaultHeight[baseFonts[index]]);
|
||||
h.removeChild(s);
|
||||
detected = detected && matched;
|
||||
}
|
||||
return detected;
|
||||
}
|
||||
|
||||
this.detect = detect;
|
||||
};
|
||||
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
imprint.registerTest("installedFonts", function(){
|
||||
return new Promise(function(resolve) {
|
||||
var fontDetective = new FontDetector();
|
||||
// Firefox doesn't like fonts ending in "bold", "heavy", "light", "transparent" or anything vaguely css related so we make sure the list doesn't contain any such fonts
|
||||
var fontArray = ["ADOBE CASLON PRO","ADOBE GARAMOND PRO","AVENIR","Adobe Fangsong Std","Adobe Ming Std","Agency FB","Aharoni","Amazone BT","AngsanaUPC","Antique Olive","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arab","Arial Baltic","Arial CE","Arial CYR","Arial Greek","Arial MT","Arial Unicode MS","Arrus BT","AvantGarde Bk BT","AvantGarde Md BT","Ayuthaya","Baskerville Old Face","Bell MT","Benguiat Bk BT","Berlin Sans FB","BernhardFashion BT","BernhardMod BT","Big Caslon","Bitstream Vera Sans Mono","Bitstream Vera Serif","BlairMdITC TT","Bodoni 72 Smallcaps","Bodoni MT Poster Compressed","Boulder","Bradley Hand","Broadway","Browallia New","BrowalliaUPC","Calisto MT","Cambria Math","Centaur","Chalkboard","Chalkboard SE","Chalkduster","Charter BT","ChelthmITC Bk BT","Chiller","Comic Sans MS","Constantia","Copperplate","Corbel","Cordia New","CordiaUPC","Coronet","Courier New Baltic","Courier New CE","Courier New CYR","Courier New TUR","Cuckoo","DFKai-SB","DaunPenh","Dauphin","David","DejaVu LGC Sans Mono","Denmark","Desdemona","DokChampa","Dotum","Ebrima","Edwardian Script ITC","Eras Bold ITC","EucrosiaUPC","Euphemia","Eurostile","FRUTIGER","FangSong","Felix Titling","Forte","Fransiscan","FreesiaUPC","French Script MT","FrnkGothITC Bk BT","Fruitger","Futura Bk BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Galliard BT","Garamond","Gautami","Geeza Pro","Geneva","GeoSlab 703 Lt BT","Geometr231 BT","Geometr231 Hv BT","Gigi","Gill Sans","GoudyOLSt BT","GulimChe","GungSeo","Gurmukhi MN","Harlow Solid Italic","Heather","HeiT","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hiragino Sans GB","Hoefler Text","Humanst521 BT","Humanst521 Lt BT","Impact","Imprint MT Shadow","Incised901 BT","Incised901 Lt BT","Informal Roman","Informal011 BT","IrisUPC","Kabel Bk BT","KacstOne","KaiTi","Khmer UI","Kokila","LUCIDA GRANDE","Latha","Leelawadee","Lohit Gujarati","Long Island","Lucida Calligraphy","Lucida Console","Lucida Sans","Lucida Sans Typewriter","Lydian BT","MS Gothic","MS Mincho","MS PGothic","MS Reference Sans Serif","MS Reference Specialty","MS Serif","MUSEO","MYRIAD","Malgun Gothic","Mangal","Marigold","Market","Marlett","Meiryo","Meiryo UI","Menlo","Microsoft PhagsPa","Microsoft Uighur","MingLiU","MingLiU_HKSCS","Minion","Miriam Fixed","Mona Lisa Solid ITC TT","Monaco","Monotype Corsiva","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Nyala","Old Century","Old English Text MT","Onyx","Oriya Sangam MN","PMingLiU","Palatino","Parchment","Pegasus","Perpetua","Perpetua Titling MT","Pickwick","Poster","Pristina","Raavi","Rage Italic","Rockwell","Roman","Sakkal Majalla","Savoye LET","Sawasdee","Segoe UI Symbol","Serifa BT","Serifa Th BT","Showcard Gothic","Shruti","Signboard","SimHei","SimSun","SimSun-ExtB","Simplified Arabic","Simplified Arabic Fixed","Sinhala Sangam MN","Sketch Rockwell","Socket","Stencil","Styllo","Swis721 BlkEx BT","Swiss911 XCm BT","Symbol","Synchro LET","System","TRAJAN PRO","Technical","Teletype","Tempus Sans ITC","Thonburi","Times","Times New Roman Baltic","Times New Roman CYR","Times New Roman PS","Trebuchet MS","Tubular","Tunga","Tw Cen MT","TypoUpright BT","Ubuntu","Unicorn","Utopia","Viner Hand ITC","Vivaldi","Vrinda","Westminster","Wide Latin","Zurich BlkEx BT"];
|
||||
// Extend the fontArray to cover the following for a larger list of fonts, however it will take loger to calculate the fingerprint
|
||||
/*"ARCHER","ARNO PRO","Academy Engraved LET","Adobe Garamond","Adobe Hebrew","Algerian","AmerType Md BT","American Typewriter","Andale Mono","Andalus","Angsana New","Aparajita","Arabic Typesetting","Arial","Arial Hebrew","Arial TUR","Aurora Cn BT","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Batang","BatangChe","Bauer Bodoni","Bembo","BinnerD","Blackadder ITC","Bodoni MT","Bradley Hand ITC","Braggadocio","Bremen Bd BT","Brush Script MT","CG Omega","CG Times","Calibri","Californian FB","Calligrapher","Cambria","Candara","CaslonOpnface BT","Castellar","Casual","Century","Century Gothic","Century Schoolbook","Cezanne","Charlesworth","Chaucer","Clarendon","CloisterBlack BT","Cochin","Colonna MT","Comic Sans","CopperplGoth Bd BT","Copperplate Gothic","Cornerstone","Courier New Greek","Curlz MT","DB LCD Temp","Didot","DilleniaUPC","DotumChe","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Demi ITC","Estrangelo Edessa","Euphemia UCAS","Exotc350 Bd BT","FONTIN","Fixedsys","FrankRuehl","Freefrm721 Blk BT","Futura","Futura Lt BT","GOTHAM","Gabriola","GeoSlab 703 XBd BT","Geometr231 Lt BT","Georgia","Gill Sans MT","Gisha","Goudy Stout","GoudyHandtooled BT","Gujarati Sangam MN","Gulim","Gungsuh","GungsuhChe","Haettenschweiler","Harrington","Hei S","Heisei Kaku Gothic","Heiti SC","Heiti TC","Helvetica","Helvetica Neue","Herald","Humanst 521 Cn BT","Incised901 Bd BT","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kailasa","Kalinga","Kannada Sangam MN","Kartika","Kaufmann BT","Kaufmann Bd BT","Kino MT","KodchiangUPC","Korinna BT","Kozuka Gothic Pr6N","Kristen ITC","Krungthep","Lao UI","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Loma","Lucida Handwriting","Lucida Sans Unicode","MS LineDraw","MS Outlook","MS PMincho","MS Sans Serif","MS UI Gothic","MT Extra","MV Boli","MYRIAD PRO","Maiandra GD","Malayalam Sangam MN","Marion","Marker Felt","Matisse ITC","Matura MT Script Capitals","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft Sans Serif","Microsoft Tai Le","Microsoft YaHei","Microsoft Yi Baiti","MingLiU-ExtB","MingLiU_HKSCS-ExtB","Minion Pro","Miriam","Mistral","Modern","Mongolian Baiti","MoolBoran","Mrs Eaves","NSimSun","Nadeem","Narkisim","News Gothic MT","Niagara Engraved","Niagara Solid","Noteworthy","OCR A Extended","Onyx BT","OzHandicraft BT","PMingLiU-ExtB","PRINCETOWN LET","PTBarnum BT","Palace Script MT","Palatino Linotype","Papyrus","Party LET","Plantagenet Cherokee","Playbill","Poor Richard","PosterBodoni BT","Pythagoras","Rachana","Ravie","Ribbon131 Bd BT","Rod","Santa Fe LET","Sceptre","Segoe Print","Segoe UI","Serifa","ShelleyVolante BT","Sherwood","Shonar Bangla","Skia","Small Fonts","Snap ITC","Snell Roundhand","Souvenir Lt BT","Staccato222 BT","Steamer","Storybook","Subway","Sylfaen","Tahoma","Tamil Sangam MN","Telugu Sangam MN","Terminal","Times New Roman","Times New Roman CE","Times New Roman Greek","Times New Roman TUR","TlwgMono","Traditional Arabic","Trajan","Tristan","Umpush","Univers","Utsaah","Vagabond","Vani","Verdana","Vijaya","VisualUI","WHITNEY","Webdings","ZWAdobeF","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich Ex BT"];*/
|
||||
var installedFontsArray = [];
|
||||
|
||||
for (var i = 0; i < fontArray.length; i++) {
|
||||
if (fontDetective.detect(fontArray[i])) {
|
||||
installedFontsArray.push(fontArray[i]);
|
||||
}
|
||||
}
|
||||
|
||||
//console.log(installedFontsArray.join(", "))
|
||||
|
||||
return resolve(installedFontsArray.join("~"));
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* Original Source: https://github.com/Song-Li/cross_browser/blob/master/client/fingerprint/js/languageDetector.js
|
||||
* Copyright: Yinzhi Cao, Song Li, Erik Wijmans
|
||||
* License: GNU v3
|
||||
* Changes:
|
||||
* - Icreased font size
|
||||
* - Use span + inline styles for measurement div
|
||||
* - Inserted comments
|
||||
* - Wrapped in an ImprintJs promise
|
||||
*/
|
||||
|
||||
/*
|
||||
This test renders to a canvas a whole bunch of words in 36 different
|
||||
alphabets to test which alphabets the user has installed on their computer.
|
||||
The words are kept in the 2D array called codes in their UTF-16 format
|
||||
to ensure that they aren't interpreted before it is time to render them
|
||||
The 37th string in codes is a single character that we are hoping will
|
||||
always show up as a cannot be displayed character.
|
||||
|
||||
While wether the alphabet can be displayed or not is deteremined by the
|
||||
operating system, the symbol used to represent cannot be displayed is
|
||||
deteremined by the browser. However, it does seem like it is always some
|
||||
sort of box
|
||||
*/
|
||||
|
||||
(function(scope){
|
||||
|
||||
'use strict';
|
||||
|
||||
var LanguageDetector, safeParseJSON;
|
||||
|
||||
safeParseJSON = function(s) {
|
||||
try {
|
||||
return JSON.parse(s);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
LanguageDetector = (function() {
|
||||
function LanguageDetector() {
|
||||
this.names = safeParseJSON('[ "Latin", "Chinese", "Arabic", "Devanagari", "Cyrillic", "Bengali/Assamese", "Kana", "Gurmukhi", "Javanese", "Hangul", "Telugu", "Tamil", "Malayalam", "Burmese", "Thai", "Sundanese", "Kannada", "Gujarati", "Lao", "Odia", "Ge-ez", "Sinhala", "Armenian", "Khmer", "Greek", "Lontara", "Hebrew", "Tibetan", "Georgian", "Modern Yi", "Mongolian", "Tifinagh", "Syriac", "Thaana", "Inuktitut", "Cherokee" ]');
|
||||
this.codes = safeParseJSON("[[76,97,116,105,110], [27721,23383], [1575,1604,1593,1585,1576,1610,1577], [2342,2375,2357,2344,2366,2327,2352,2368], [1050,1080,1088,1080,1083,1080,1094,1072], [2476,2494,2434,2482,2494,32,47,32,2437,2488,2478,2496,2479,2492,2494], [20206,21517], [2583,2625,2608,2606,2625,2582,2624], [43415,43438], [54620,44544], [3108,3142,3122,3137,3095,3137], [2980,2990,3007,2996,3021], [3374,3378,3375,3390,3379,3330], [4121,4156,4116,4154,4121,4140], [3652,3607,3618], [7070,7077,7060,7082,7059], [3221,3240,3277,3240,3233], [2711,2753,2716,2736,2750,2724,2752], [3749,3762,3751], [2825,2852,2893,2837,2867], [4877,4821,4829], [3523,3538,3458,3524,3517], [1344,1377,1397,1400,1409], [6017,6098,6040,6082,6042], [917,955,955,951,957,953,954,972], [6674,6682,6664,6673], [1488,1500,1508,1489,1497,1514], [3926,3964,3921,3851], [4325,4304,4320,4311,4323,4314,4312], [41352,41760], [6190,6179,6185,6189,6179,6191], [11612,11593,11580,11593,11599,11568,11606], [1808,1834,1825,1821,1808], [1931,1960,1928,1964,1920,1960], [5123,5316,5251,5198,5200,5222], [5091,5043,5033], [55295, 7077]]");
|
||||
this.fontSize = 401;
|
||||
this.fontFace = "Verdana";
|
||||
this.extraHeigth = 15;
|
||||
this.res = [];
|
||||
}
|
||||
|
||||
LanguageDetector.prototype.begin = function() {
|
||||
var c, code, h, height, i, j, k, l, len, len1, len2, len3, len4, len5, len6, len7, m, n, o, p, ref, ref1, ref2, ref3, round, s, w, width;
|
||||
round = 0;
|
||||
this.widths = [];
|
||||
this.heights = [];
|
||||
this.support = [];
|
||||
this.test_div = document.createElement("div");
|
||||
document.body.appendChild(this.test_div);
|
||||
this.test_div.id = "WritingTest";
|
||||
ref = this.codes;
|
||||
for (i = 0, len = ref.length; i < len; i++) {
|
||||
code = ref[i];
|
||||
this.height = [];
|
||||
this.width = [];
|
||||
this.div = document.createElement("div");
|
||||
this.test_div.appendChild(this.div);
|
||||
round += 1;
|
||||
this.div.id = round;
|
||||
this.div.style.display = "inline-block";
|
||||
for (j = 0, len1 = code.length; j < len1; j++) {
|
||||
c = code[j];
|
||||
this.div.innerHTML = "<span style = 'font-family:" + this.fontFace + "; font-size:" + this.fontSize + "px;'>&#" + c + "</span>";
|
||||
this.height.push(document.getElementById(round).clientHeight);
|
||||
this.width.push(document.getElementById(round).clientWidth);
|
||||
}
|
||||
this.div.innerHTML = "";
|
||||
for (k = 0, len2 = code.length; k < len2; k++) {
|
||||
c = code[k];
|
||||
this.div.innerHTML += "<span style = 'font-family:" + this.fontFace + "; font-size:" + this.fontSize + "px;'>&#" + c + "</span>";
|
||||
}
|
||||
this.test_div.innerHTML += this.height + ";" + this.width + "<br>";
|
||||
this.heights.push(this.height);
|
||||
this.widths.push(this.width);
|
||||
}
|
||||
|
||||
// standard width
|
||||
// maybe with a circle
|
||||
this.tw = this.widths.pop();
|
||||
this.sw1 = this.tw[0];
|
||||
this.sw2 = this.tw[1];
|
||||
|
||||
// Standard height
|
||||
this.sh = this.heights.pop()[0];
|
||||
|
||||
// Check the height
|
||||
ref1 = this.heights;
|
||||
for (l = 0, len3 = ref1.length; l < len3; l++) {
|
||||
height = ref1[l];
|
||||
this.passed = 0;
|
||||
for (m = 0, len4 = height.length; m < len4; m++) {
|
||||
h = height[m];
|
||||
if (h !== this.sh) {
|
||||
this.support.push(true);
|
||||
this.passed = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (this.passed === 0) {
|
||||
this.support.push(false);
|
||||
}
|
||||
}
|
||||
|
||||
// Check the width
|
||||
this.writing_scripts_index = 0;
|
||||
ref2 = this.widths;
|
||||
for (n = 0, len5 = ref2.length; n < len5; n++) {
|
||||
width = ref2[n];
|
||||
for (o = 0, len6 = width.length; o < len6; o++) {
|
||||
w = width[o];
|
||||
if (this.support[this.writing_scripts_index] === false) {
|
||||
if (w !== this.sw1 && w !== this.sw2) {
|
||||
this.support[this.writing_scripts_index] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.writing_scripts_index += 1;
|
||||
}
|
||||
|
||||
this.res = [];
|
||||
this.writing_scripts_index = 0;
|
||||
ref3 = this.support;
|
||||
for (p = 0, len7 = ref3.length; p < len7; p++) {
|
||||
s = ref3[p];
|
||||
this.test_div.innerHTML += this.names[this.writing_scripts_index] + ": " + s + " <br>";
|
||||
if (s === true) {
|
||||
this.res.push(this.names[this.writing_scripts_index]);
|
||||
}
|
||||
this.writing_scripts_index += 1;
|
||||
}
|
||||
this.test_div.remove();
|
||||
return this.res;
|
||||
};
|
||||
|
||||
return LanguageDetector;
|
||||
|
||||
})();
|
||||
|
||||
imprint.registerTest("installedLanguages", function(){
|
||||
return new Promise(function(resolve) {
|
||||
try
|
||||
{
|
||||
var detector = new LanguageDetector();
|
||||
return resolve(detector.begin().join("~"));
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return resolve("");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(window);
|
||||