Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove toggle of presentation mode classes #126

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions visualizer/flame-graph.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,4 @@ chart > div {
.fg-tooltip-actions .icon {
display: flex;
align-items: center;
}

/* presentation-mode */

.presentation-mode .node-highlighter .vertical-line::before {
border-left-width: 2px;
}

.presentation-mode .selection-box {
background-color: rgba(var(--grey-highlight-color-val), 0.2);
box-shadow: 0 1px 4px rgba(var(--grey-highlight-color-val), 0.3);
}

.presentation-mode .highlighter-box {
border-width: 2px;
}
9 changes: 0 additions & 9 deletions visualizer/info-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,3 @@
max-width: none;
}
}

/* presentation mode */
.presentation-mode #info-box .frame-info {
background-color: var(--opposite-contrast);
}

.presentation-mode #info-box .frame-dropdown {
border-left: solid var(--banner-bg-color) 1px;
}
6 changes: 0 additions & 6 deletions visualizer/selection-controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,3 @@
display: initial;
}
}

/* presentation mode */
.presentation-mode #selection-controls {
background-color: transparent;
padding: 0px;
}
11 changes: 0 additions & 11 deletions visualizer/stack-bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,3 @@
transition: transform .5s cubic-bezier(0.65, 0.05, 0.36, 1);
filter: drop-shadow(0px -1px 0px var(--light-glare));
}


/* presentation mode */
.presentation-mode #stack-bar .stack-frame.selected{
box-shadow: 0 0 2px 1px rgba(var(--grey-highlight-color-val), 1);
}


.presentation-mode #stack-bar .pointer {
filter: drop-shadow(0px -1px 0px rgba(255, 255, 255, 0.9));
}
15 changes: 0 additions & 15 deletions visualizer/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,6 @@ html.light {
--nc-colour-header-background: rgba(0, 0, 0, 0.1);
}

/* Overrides for Presentation mode */
/* just a poc for now... */
html.presentation-mode {
--banner-bg-color: rgb(120, 122, 128);
--main-bg-color: rgb(76, 78, 84);

--grey-highlight: rgb(255, 255, 255);
--primary-grey: rgb(var(--grey-highlight-color-val));

--area-color-deps: rgb(255, 170, 43);
--area-color-core: rgb(160, 155, 215);

--clickable-bg-hover : rgb(0, 0, 0);
}

/* Main layout */

html,
Expand Down
6 changes: 0 additions & 6 deletions visualizer/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,3 @@
font-size: var(--small-text-size);
}
}

/* presentation mode */
.presentation-mode #toolbar-side-panel {
background-color: transparent;
padding: 0px;
}
3 changes: 0 additions & 3 deletions visualizer/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,6 @@ class Ui extends events.EventEmitter {

setPresentationMode (mode) {
this.presentationMode = mode
// switching the class on the html element
document.documentElement.classList.toggle('presentation-mode', mode)
this.setExposedCSS()
this.emit('presentationMode', mode)
}

Expand Down