mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11472] Make the color swatch configurable and fix it in subsilver2
PHPBB3-11472
This commit is contained in:
parent
c386bf7911
commit
79b5e96896
6 changed files with 14 additions and 20 deletions
|
@ -346,7 +346,11 @@ function colorPalette(dir, width, height) {
|
|||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#color_palette_placeholder').each(function() {
|
||||
$(this).html(colorPalette('h', 15, 12));
|
||||
var orientation = $(this).attr('data-orientation'),
|
||||
height = $(this).attr('data-height'),
|
||||
width = $(this).attr('data-width');
|
||||
|
||||
$(this).html(colorPalette(orientation, width, height));
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
<div id="colour_palette" style="display: none;">
|
||||
<dl style="clear: left;">
|
||||
<dt><label>{L_FONT_COLOR}{L_COLON}</label></dt>
|
||||
<dd id="color_palette_placeholder"></dd>
|
||||
<dd id="color_palette_placeholder" data-orientation="h" data-height="12" data-width="15"></dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -207,12 +207,7 @@
|
|||
<tr>
|
||||
<td valign="top" style="width: 100%;"><textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" style="width: 700px; height: 270px; min-width: 98%; max-width: 98%;">{MESSAGE}</textarea></td>
|
||||
<!-- IF S_BBCODE_ALLOWED -->
|
||||
<td width="80" align="center" valign="top">
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
colorPalette('v', 7, 6)
|
||||
// ]]>
|
||||
</script>
|
||||
<td width="80" align="center" valign="top" id="color_palette_placeholder" data-orientation="v" data-width="7" data-height="6">
|
||||
</td>
|
||||
<!-- ENDIF -->
|
||||
</tr>
|
||||
|
|
|
@ -75,12 +75,7 @@
|
|||
<td colspan="9">
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td align="{S_CONTENT_FLOW_BEGIN}">
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
colorPalette('h', 6, 5)
|
||||
// ]]>
|
||||
</script>
|
||||
<td align="{S_CONTENT_FLOW_BEGIN}" id="color_palette_placeholder" data-orientation="h" data-width="7" data-height="6">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -61,12 +61,7 @@
|
|||
<td colspan="2">
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td align="{S_CONTENT_FLOW_BEGIN}">
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
colorPalette('h', 6, 5)
|
||||
// ]]>
|
||||
</script>
|
||||
<td align="{S_CONTENT_FLOW_BEGIN}" id="color_palette_placeholder" data-orientation="h" data-width="7" data-height="6">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -303,6 +303,11 @@ p.topicdetails {
|
|||
|
||||
/* Tables
|
||||
------------ */
|
||||
#color_palette_placeholder table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 1px;
|
||||
}
|
||||
|
||||
th {
|
||||
color: #FFA34F;
|
||||
font-size: 1.1em;
|
||||
|
|
Loading…
Add table
Reference in a new issue