Skip to content

Commit

Permalink
Remove unnecessary CSS IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed May 14, 2021
1 parent d6e318b commit 9089db1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
7 changes: 0 additions & 7 deletions src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,6 @@ function refreshPopup() {
}

if (!originsArr.length) {
// hide the number of trackers and slider instructions message
// if no sliders will be displayed
$("#instructions-many-trackers").hide();

// show "no trackers" message
$("#instructions-no-trackers").show();

Expand Down Expand Up @@ -675,9 +671,6 @@ function refreshPopup() {
$('.tooltip').tooltipster();

if (POPUP_DATA.trackerCount === 0) {
// hide multiple trackers message
$("#instructions-many-trackers").hide();

// show "no trackers" message
$("#instructions-no-trackers").show();

Expand Down
6 changes: 3 additions & 3 deletions src/skin/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,8 @@ body#main #pbInstructions a:hover, #firstparty-protections-container a:hover {
margin: 40px 0;
padding: 0;
}
#instructions-many-trackers, #no-third-parties {
display: block;
}
#no-third-parties {
display: block;
font-size: 12px;
}

Expand Down Expand Up @@ -469,6 +467,7 @@ div.overlay.active {
.tooltipster-sidetip .tooltipster-arrow-border {
border: none;
}

#firstparty-protections-container {
border-bottom: 1px solid #d3d3d3;
margin: 10px 0;
Expand Down Expand Up @@ -514,6 +513,7 @@ div.overlay.active {
.ui-icon.ui-icon-caret-d, .ui-icon.ui-icon-caret-u {
font-size: 18px;
}

@media screen and (max-width: 400px){
.origin {
max-width: 150px;
Expand Down
2 changes: 1 addition & 1 deletion src/skin/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h2 id="title-name"><span class="i18n_name"></span></h2>

<div id="firstparty-protections-container" style="display:none">
<button class="toggle-header" id="firstparty-protections-header">
<div class="toggle-header-title" id="instructions-firstparty-protections">
<div class="toggle-header-title">
<span class="i18n_popup_info_firstparty_protections popup_info"></span>
</div>
<span class="toggle-header-icon">
Expand Down

0 comments on commit 9089db1

Please sign in to comment.