Skip to content

Commit

Permalink
Merge branch 'preprod'
Browse files Browse the repository at this point in the history
  • Loading branch information
dascritch committed Feb 9, 2021
2 parents f2e0263 + 0118905 commit 92922ed
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 22 deletions.
4 changes: 2 additions & 2 deletions dist/cpu-audio.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cpu-audio.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/30_trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,12 +621,12 @@ const trigger = {
*/
native_share : function(event) {
let dataset = document.CPU.find_container(event.target).fetch_audiotag_dataset();;
event.preventDefault();
navigator.share({
'title': dataset.title,
'text': dataset.title,
'url': dataset.canonical
});
event.preventDefault();
},

_show_alternate_nav : null,
Expand Down
26 changes: 8 additions & 18 deletions src/scoped.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
color var(--cpu-color-transitions),
background-color var(--cpu-background-transitions),
opacity var(--cpu-background-transitions);
--focus-bg : var(--cpu-focus-background, var(--cpu-color));
--focus-cl : var(--cpu-focus-color, var(--cpu-background));
}

.show-no main {
Expand Down Expand Up @@ -66,10 +64,6 @@ svg {
height : var(--cpu-height);
}

a:hover, a:focus, button:hover, button:focus {
color : var(--focus-cl);
background : var(--focus-bg);
}

i, em {
font-style: italic;
Expand Down Expand Up @@ -315,10 +309,6 @@ aside.ticker a.active-cue span {
display : inline-block;
}

.with-preview {
color: var(--focus-cl) !important;
background : white !important;
}

.act-loading #loadingline {
background : repeating-linear-gradient(45deg, var(--cpu-color) 0, var(--cpu-background) 15px, var(--cpu-color) 30px);
Expand Down Expand Up @@ -374,10 +364,6 @@ aside.ticker a.active-cue span {
text-overflow : clip;
}

#pageshare a:hover, #pageshare a:focus, #pageshare div:hover {
color : var(--focus-cl);
background : var(--focus-bg);
}

#pageshare svg {
vertical-align : middle;
Expand Down Expand Up @@ -457,10 +443,6 @@ h6 {
margin : 0px;
padding : 2px
}
.active-cue {
background : var(--focus-cl);
color : var(--focus-bg) !important; /* dirty but fastest */
}

.cue strong {
flex : 1 1;
Expand Down Expand Up @@ -586,4 +568,12 @@ aside a, h6, .cue time
#interface {
display : none;
}
}

a:hover, a:focus, button:hover, button:focus,
#pageshare div:hover ,
.active-cue, /* can now ride off its !important on color */
.with-preview /* !important still needed to simplify css */ {
background: var(--cpu-focus-background, var(--cpu-color)) !important;
color : var(--cpu-focus-color, var(--cpu-background)) !important;
}

0 comments on commit 92922ed

Please sign in to comment.