Skip to content

Commit 4ffad9d

Browse files
template for widgets section in popup using extant html and css
1 parent 324a228 commit 4ffad9d

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

src/skin/popup.css

+7-3
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ body#main #pbInstructions a, #firstparty-protections-container a, #webrtc-deprec
303303
body#main #pbInstructions a:hover, #firstparty-protections-container a:hover, #webrtc-deprecation-div a:hover, #donate a:hover {
304304
color: #ec9329;
305305
}
306-
#instructions-firstparty-description {
306+
#instructions-firstparty-description, #instructions-widgets-description {
307307
font-size: 14px;
308308
background-color: #e8e9ea;
309309
color: #555;
@@ -476,6 +476,10 @@ div.overlay.active {
476476
margin: 10px 0;
477477
padding-bottom: 5px;
478478
}
479+
#replaced-widgets-container {
480+
border-bottom: 1px solid #d3d3d3;
481+
padding-bottom: 5px;
482+
}
479483
.basic-header {
480484
text-align: center;
481485
margin: 15px 0;
@@ -582,7 +586,7 @@ div.overlay.active {
582586
color: #fff;
583587
}
584588

585-
#firstparty-protections-container {
589+
#firstparty-protections-container, #replaced-widgets-container {
586590
border-bottom: 1px solid #555;
587591
}
588592

@@ -618,7 +622,7 @@ div.overlay.active {
618622
background-color: #3a3a3a;
619623
}
620624

621-
#instructions-firstparty-description {
625+
#instructions-firstparty-description, #instructions-widgets-description {
622626
background-color: #3a3a3a;
623627
color: #ddd;
624628
}

src/skin/popup.html

+13
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,19 @@ <h2 id="title-name"><span class="i18n_name"></span></h2>
144144
<div id="instructions-firstparty-description" class="i18n_popup_info_firstparty_description" style="display:none"></div>
145145
</div>
146146

147+
<div id="replaced-widgets-container" style="display:none">
148+
<button class="toggle-header" id="replaced-widgets-header">
149+
<div class="toggle-header-title">
150+
<span class="i18n_popup_info_replaced_widgets popup_info"></span>
151+
</div>
152+
<span class="toggle-header-icon">
153+
<span id="expand-widgets-popup" class="ui-icon ui-icon-caret-d" style="display:none"></span>
154+
<span id="collapse-widgets-popup" class="ui-icon ui-icon-caret-u" style="display:none"></span>
155+
</span>
156+
</button>
157+
<div id="instructions-widgets-description" class="i18n_popup_info_widgets_description" style="display:none"></div>
158+
</div>
159+
147160
<div id="blockedResourcesContainer">
148161
<div id="pbInstructions">
149162
<button class="toggle-header" id="tracker-list-header" style="display:none">

0 commit comments

Comments
 (0)