-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3a8a26
commit 4608f23
Showing
6 changed files
with
539 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
plugins: { | ||
'postcss-nested': {}, | ||
}, | ||
plugins: { | ||
"postcss-nested": {}, | ||
}, | ||
}; |
295 changes: 146 additions & 149 deletions
295
packages/sites-components/src/components/analytics/debugger.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,173 +1,170 @@ | ||
.xYextDebug { | ||
@keyframes pulse { | ||
0% | ||
{ | ||
background: transparent; | ||
} | ||
|
||
50% | ||
{ | ||
background: rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
100% | ||
{ | ||
background: transparent; | ||
} | ||
@keyframes pulse { | ||
0% { | ||
background: transparent; | ||
} | ||
|
||
[data-ya-track] { | ||
outline: 1px dashed blue; | ||
scroll-margin: 32px; | ||
|
||
&.analytics-event-highlight { | ||
animation-name: pulse; | ||
animation-duration: 2s; | ||
animation-iteration-count: infinite; | ||
outline: 2px dashed black; | ||
padding: 8px 16px; | ||
} | ||
50% { | ||
background: rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
[data-ya-scope] { | ||
outline: 1px dashed green; | ||
position: relative; | ||
|
||
&::after { | ||
content: attr(data-ya-scope); | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
color: black; | ||
display: block; | ||
position: absolute; | ||
|
||
padding: 10px; | ||
outline: 1px solid #178acd; | ||
background: rgba(0, 0, 0, 0.45); | ||
color: white; | ||
z-index: 2147483647; | ||
} | ||
100% { | ||
background: transparent; | ||
} | ||
|
||
.analytics-debugger { | ||
position: fixed; | ||
height: 80%; | ||
top: 10%; | ||
bottom: 10%; | ||
right: 0; | ||
transition: right 300ms ease-out; | ||
color: white; | ||
display: flex !important; | ||
z-index: 99999; | ||
} | ||
|
||
[data-ya-track] { | ||
outline: 1px dashed blue; | ||
scroll-margin: 32px; | ||
|
||
&.analytics-event-highlight { | ||
animation-name: pulse; | ||
animation-duration: 2s; | ||
animation-iteration-count: infinite; | ||
outline: 2px dashed black; | ||
padding: 8px 16px; | ||
} | ||
|
||
/* Toggles */ | ||
.analytics-debugger-toggles { | ||
width: 100px; | ||
border-top-left-radius: 4px; | ||
border-bottom-left-radius: 4px; | ||
background: rgba(0, 0, 0, 0.75); | ||
margin: auto; | ||
display: flex; | ||
flex-direction: column; | ||
border-right: 1px solid white; | ||
} | ||
|
||
[data-ya-scope] { | ||
outline: 1px dashed green; | ||
position: relative; | ||
|
||
&::after { | ||
content: attr(data-ya-scope); | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
color: black; | ||
display: block; | ||
position: absolute; | ||
|
||
padding: 10px; | ||
outline: 1px solid #178acd; | ||
background: rgba(0, 0, 0, 0.45); | ||
color: white; | ||
z-index: 2147483647; | ||
} | ||
} | ||
|
||
.analytics-debugger { | ||
position: fixed; | ||
height: 80%; | ||
top: 10%; | ||
bottom: 10%; | ||
right: 0; | ||
transition: right 300ms ease-out; | ||
color: white; | ||
display: flex !important; | ||
z-index: 99999; | ||
} | ||
|
||
/* Toggles */ | ||
.analytics-debugger-toggles { | ||
width: 100px; | ||
border-top-left-radius: 4px; | ||
border-bottom-left-radius: 4px; | ||
background: rgba(0, 0, 0, 0.75); | ||
margin: auto; | ||
display: flex; | ||
flex-direction: column; | ||
border-right: 1px solid white; | ||
} | ||
|
||
.analytics-debugger-toggle { | ||
outline: none; | ||
text-align: center; | ||
padding: 10px; | ||
cursor: pointer; | ||
|
||
&.is-active { | ||
background: #178acd; | ||
} | ||
|
||
.analytics-debugger-toggle { | ||
outline: none; | ||
text-align: center; | ||
padding: 10px; | ||
cursor: pointer; | ||
|
||
&.is-active { | ||
background: #178acd; | ||
} | ||
|
||
&:first-child { | ||
border-top-left-radius: 4px; | ||
} | ||
|
||
&:last-child { | ||
border-bottom-left-radius: 4px; | ||
} | ||
|
||
&:not(:last-child) { | ||
border-bottom: 1px solid white; | ||
} | ||
|
||
&:hover { | ||
background: #178acd; | ||
} | ||
&:first-child { | ||
border-top-left-radius: 4px; | ||
} | ||
|
||
/* Tabs */ | ||
.analytics-debugger-tabs { | ||
width: 250px; | ||
border-top-left-radius: 4px; | ||
border-bottom-left-radius: 4px; | ||
background: rgba(0, 0, 0, 0.75); | ||
&:last-child { | ||
border-bottom-left-radius: 4px; | ||
} | ||
|
||
.analytics-debugger-tab { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
&:not(:last-child) { | ||
border-bottom: 1px solid white; | ||
} | ||
|
||
.analytics-debugger-tab-title { | ||
background: #178acd; | ||
color: white; | ||
padding: 20px; | ||
border-bottom: 1px solid white; | ||
border-top-left-radius: 4px; | ||
&:hover { | ||
background: #178acd; | ||
} | ||
|
||
/* Items */ | ||
.analytics-debugger-list { | ||
overflow-y: scroll; | ||
flex-grow: 1; | ||
} | ||
|
||
/* Tabs */ | ||
.analytics-debugger-tabs { | ||
width: 250px; | ||
border-top-left-radius: 4px; | ||
border-bottom-left-radius: 4px; | ||
background: rgba(0, 0, 0, 0.75); | ||
} | ||
|
||
.analytics-debugger-tab { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
} | ||
|
||
.analytics-debugger-tab-title { | ||
background: #178acd; | ||
color: white; | ||
padding: 20px; | ||
border-bottom: 1px solid white; | ||
border-top-left-radius: 4px; | ||
} | ||
|
||
/* Items */ | ||
.analytics-debugger-list { | ||
overflow-y: scroll; | ||
flex-grow: 1; | ||
} | ||
|
||
.analytics-debugger-listItem { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-between; | ||
align-items: center; | ||
|
||
&:not(:last-child) { | ||
border-bottom: 1px solid white; | ||
} | ||
} | ||
|
||
.analytics-debugger-listItem { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-between; | ||
align-items: center; | ||
.analytics-debugger-button { | ||
padding: 10px 20px; | ||
text-align: left; | ||
width: 100%; | ||
|
||
&:not(:last-child) { | ||
border-bottom: 1px solid white; | ||
} | ||
&.is-active { | ||
background: #178acd; | ||
} | ||
|
||
.analytics-debugger-button { | ||
padding: 10px 20px; | ||
text-align: left; | ||
width: 100%; | ||
|
||
&.is-active { | ||
background: #178acd; | ||
} | ||
|
||
&:hover:not(.is-active) { | ||
background: rgba(255, 255, 255, 0.3); | ||
cursor: pointer; | ||
} | ||
&:hover:not(.is-active) { | ||
background: rgba(255, 255, 255, 0.3); | ||
cursor: pointer; | ||
} | ||
|
||
.analytics-debugger-tooltip { | ||
background: #178acd; | ||
border: 1px solid #178acd; | ||
color: white; | ||
position: absolute; | ||
padding: 5px 10px; | ||
border-radius: 4px; | ||
font-size: 12px; | ||
z-index: 99998; | ||
|
||
&:hover { | ||
z-index: 99999; | ||
border: 1px solid black; | ||
} | ||
} | ||
|
||
.analytics-debugger-tooltip { | ||
background: #178acd; | ||
border: 1px solid #178acd; | ||
color: white; | ||
position: absolute; | ||
padding: 5px 10px; | ||
border-radius: 4px; | ||
font-size: 12px; | ||
z-index: 99998; | ||
|
||
&:hover { | ||
z-index: 99999; | ||
border: 1px solid black; | ||
} | ||
} | ||
} |
Oops, something went wrong.