Skip to content

Commit

Permalink
options.html: Align rule components properly
Browse files Browse the repository at this point in the history
Turns out <input> elements need to be inside a <div> for the
browser-style class of the parent to take.
  • Loading branch information
airtower-luna committed May 19, 2021
1 parent ca4d790 commit 9072214
Showing 1 changed file with 30 additions and 19 deletions.
49 changes: 30 additions & 19 deletions options.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
text-align: justify;
hyphens: auto;
}
.rule_label {
vertical-align: baseline;
}
</style>
</head>

Expand All @@ -30,7 +33,7 @@ <h3>Configure Referers</h3>
</thead>
<tbody id="hosts">
<tr>
<td title="Applies to any request that does not match one of the other rules.">&lt;ANY&gt;</td>
<td class="rule_label" title="Applies to any request that does not match one of the other rules.">&lt;ANY&gt;</td>
<td>
<select class="action browser-style" id="any_action">
<option value="keep" title="Do not modify the Referer">Keep</option>
Expand All @@ -40,14 +43,16 @@ <h3>Configure Referers</h3>
<option value="replace" title="Replace the Referer with the string in the &quot;Referer&quot; field">Replace</option>
</select>
</td>
<td class="browser-style">
<input id="any_referer" class="referer" type="text"
title="If the action &quot;Replace&quot; is selected, the Referer is set to this value."
value=""/>
<td>
<div class="browser-style">
<input id="any_referer" class="referer" type="text"
title="If the action &quot;Replace&quot; is selected, the Referer is set to this value."
value=""/>
</div>
</td>
</tr>
<tr>
<td title="Applies to requests where target and origin domain are the same, unless there is a specific rule for the domain.">&lt;SAME&gt;</td>
<td class="rule_label" title="Applies to requests where target and origin domain are the same, unless there is a specific rule for the domain.">&lt;SAME&gt;</td>
<td>
<select class="action browser-style" id="same_action">
<option value="keep" title="Do not modify the Referer">Keep</option>
Expand All @@ -57,10 +62,12 @@ <h3>Configure Referers</h3>
<option value="replace" title="Replace the Referer with the string in the &quot;Referer&quot; field">Replace</option>
</select>
</td>
<td class="browser-style">
<input id="same_referer" class="referer" type="text"
title="If the action &quot;Replace&quot; is selected, the Referer is set to this value."
value=""/>
<td>
<div class="browser-style">
<input id="same_referer" class="referer" type="text"
title="If the action &quot;Replace&quot; is selected, the Referer is set to this value."
value=""/>
</div>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -108,10 +115,12 @@ <h3>Configuration Backup</h3>

<template id="ref_row">
<tr class="ref_entry">
<td class="browser-style">
<input class="hostname" type="text" placeholder="cdn.example.com"
title="Domain of the requested URL, also matches subdomains"
value=""/>
<td>
<div class="browser-style">
<input class="hostname" type="text" placeholder="cdn.example.com"
title="Domain of the requested URL, also matches subdomains"
value=""/>
</div>
</td>
<td>
<select class="action browser-style">
Expand All @@ -122,11 +131,13 @@ <h3>Configuration Backup</h3>
<option value="replace" title="Replace the Referer with the string in the &quot;Referer&quot; field">Replace</option>
</select>
</td>
<td class="browser-style">
<input class="referer" type="text"
placeholder="https://www.example.com/"
title="If the action &quot;Replace&quot; is selected, the Referer is set to this value."
value=""/>
<td>
<div class="browser-style">
<input class="referer" type="text"
placeholder="https://www.example.com/"
title="If the action &quot;Replace&quot; is selected, the Referer is set to this value."
value=""/>
</div>
</td>
<td>
<button class="delete_row browser-style" type="button" title="Delete rule">
Expand Down

0 comments on commit 9072214

Please sign in to comment.