Augmentation vers version 3.3.0

This commit is contained in:
Gauvain Boiché
2020-03-31 15:31:03 +02:00
parent d926806907
commit a1864c0414
2618 changed files with 406015 additions and 31377 deletions

Binary file not shown.

View File

@@ -71,7 +71,6 @@
</fieldset>
<fieldset>
<p>Refer to documentation for corresponding output locations.</p>
<legend>{{ lang('STYLE_SETTINGS_HTML_CODE') }}</legend>
{% for style_settings_html in loops.style_settings_html %}
<dl>

View File

@@ -1,7 +1,5 @@
<!-- INCLUDEJS jscolor.js -->
<script>
$( document ).ready(function() {
$("input#colour_picker").addClass("jscolor {width:243, height:150}");
});
</script>

View File

@@ -1,2 +1 @@
<!-- INCLUDECSS flightdeck.css -->

View File

@@ -5,7 +5,7 @@
* @license For open source use: GPLv3
* For commercial use: JSColor Commercial License
* @author Jan Odvarko
* @version 2.0.4
* @version 2.0.5
*
* See usage examples at http://jscolor.com/examples/
*/
@@ -984,9 +984,10 @@ var jsc = {
this.required = true; // whether the associated text <input> can be left empty
this.refine = true; // whether to refine the entered color code (e.g. uppercase it and remove whitespace)
this.hash = false; // whether to prefix the HEX color code with # symbol
this.uppercase = true; // whether to uppercase the color code
this.uppercase = true; // whether to show the color code in upper case
this.onFineChange = null; // called instantly every time the color changes (value can be either a function or a string with javascript code)
this.activeClass = 'jscolor-active'; // class to be set to the target element when a picker window is open on it
this.overwriteImportant = false; // whether to overwrite colors of styleElement using !important
this.minS = 0; // min allowed saturation (0 - 100)
this.maxS = 100; // max allowed saturation (0 - 100)
this.minV = 0; // min allowed value (brightness) (0 - 100)
@@ -1105,9 +1106,19 @@ var jsc = {
}
if (!(flags & jsc.leaveStyle)) {
if (this.styleElement) {
var bgColor = '#' + this.toString();
var fgColor = this.isLight() ? '#000' : '#FFF';
this.styleElement.style.backgroundImage = 'none';
this.styleElement.style.backgroundColor = '#' + this.toString();
this.styleElement.style.color = this.isLight() ? '#000' : '#FFF';
this.styleElement.style.backgroundColor = bgColor;
this.styleElement.style.color = fgColor;
if (this.overwriteImportant) {
this.styleElement.setAttribute('style',
'background: ' + bgColor + ' !important; ' +
'color: ' + fgColor + ' !important;'
);
}
}
}
if (!(flags & jsc.leavePad) && isPickerOwner()) {

View File

@@ -43,7 +43,7 @@
"Stretch header background to fill space?": {
"name": "header_size",
"type": "bool",
"help": "Stretches background image to fill header space. Only recommended for large backgrounds that don't repeat.<br /><strong>Note: Automatically applied when parallax header is enabled</strong>.<br />Default value: No."
"help": "Stretches background image to fill header space. Only recommended for large backgrounds that don't repeat.<br /><strong>Note: Automatically applied when parallax header is enabled</strong>.<br />Default value: No."
},
"Header Background Effect": {
@@ -60,14 +60,14 @@
"Parallax Header?": {
"name": "parallax_header",
"type": "bool",
"help": "Subtly moves the header background when scrolling.<br /><strong>Note: Requires a header image taller than the forum header. See documentation.</strong><br />Default value: No."
"help": "Subtly moves the header background when scrolling.<br /><strong>Note: Requires a header image taller than the forum header. See documentation.</strong><br />Default value: No."
},
"Enable Animated Header Particles?": {
"name": "header_particles",
"type": "bool",
"help": "Enables an animated geometric overlay across the header.<br />Default value: No."
},
"help": "Enables an animated geometric overlay across the header.<br />Default value: No."
},
"Header Format": {
"name": "header_format",
@@ -121,9 +121,9 @@
"name": "base_colour",
"type": "list",
"help": "Choose a light or dark base colour. See documentation for previews.<br />Default value: 'Light'.",
"values": [
"values": [
"Light",
"Dark"
"Dark"
]
},
@@ -131,34 +131,34 @@
"name": "colour_preset",
"type": "list",
"help": "Choose a predefined colour palette for your forum's accent colour. See documentation for previews.<br />Default value: 'No Preset'.",
"values": [
"values": [
"Custom (Use colour picker below)",
"No Custom Colour",
"Aqua",
"Blush",
"Aqua",
"Blush",
"Blue_Lagoon",
"Calm_Darya",
"Electric_Violet",
"HoneyDew",
"Hot_Red",
"Ibiza_Sunset",
"Little_Leaf",
"Neon_Blue",
"Nighthawk",
"Pacific_Dream",
"Calm_Darya",
"Electric_Violet",
"HoneyDew",
"Hot_Red",
"Ibiza_Sunset",
"Little_Leaf",
"Neon_Blue",
"Nighthawk",
"Pacific_Dream",
"Peach",
"Purple_Love",
"Purple_Love",
"Rose_Water",
"Sahara",
"Titanium",
"Warm_Sunset"
"Titanium",
"Warm_Sunset"
]
},
"Theme Accent Colour": {
"name": "colour_picker",
"help": "Select colour of category headers, links and buttons.<br /><strong>Note: Only applied if 'No Preset' is selected above.</strong>",
"type": "string"
"help": "Select colour of category headers, links and buttons.<br /><strong>Note: Only applied if 'No Preset' is selected above.</strong>",
"type": "string"
},
"High Contrast Footer Links?": {
@@ -170,7 +170,7 @@
"Forumlist Display": {
"name": "forumlist_display",
"help": "Defines how forums are displayed on the index page.<br />Default setting: List.",
"help": "Defines how forums are displayed on the index page.<br />Default setting: List.",
"type": "list",
"values": [
"List",
@@ -192,7 +192,7 @@
"Enable Sidebars?": {
"name": "sidebars",
"type": "bool",
"help": "Choose to enable or disable sidebars. Further options configured below. <br />Default Value: No"
"help": "Choose to enable or disable sidebars. Further options configured below. <br />Default Value: No"
},
"Sidebar Placement": {
@@ -209,18 +209,18 @@
"Enable Sidebar Profile Widget?": {
"name": "profile_widget",
"type": "bool",
"help": "Displays User Avatar and basic profile links in right sidebar. Guests see a login/registration form, <br />Default Value: No"
"help": "Displays User Avatar and basic profile links in right sidebar. Guests see a login/registration form, <br />Default Value: No"
},
"Enable Sidebar Search Widget?": {
"name": "search_widget",
"type": "bool",
"help": "Displays a quick search form in the sidebar. <br />Default Value: No"
"help": "Displays a quick search form in the sidebar. <br />Default Value: No"
},
"Postprofile Side": {
"name": "postprofile_side",
"help": "Sets which side avatars / post counts display on when reading a topic.<br />Default setting: Right.",
"help": "Sets which side avatars / post counts display on when reading a topic.<br />Default setting: Right.",
"type": "list",
"values": [
"Left",
@@ -248,16 +248,38 @@
"help": "Hides the social bar above the footer.<br />Default Value: No"
},
"Force Rounded 'Last Post' Avatars?": {
"name": "rounded_avatars",
"Enable Rounded Corners?": {
"name": "rounded_corners",
"type": "bool",
"help": "Forces the avatars within the 'last post' column to be round. <br />Requires <a href=\"https://www.phpbb.com/customise/db/extension/avatar_in_last_post/\" style=\"text-decoration: underline;\">Avatar in last post</a> extension.<br />Default Value: No"
"help": "Rounds off most of Milk's corners<br />Default Value: No"
},
"Replace CSS Icons With Images?": {
"name": "css_image_replace",
"type": "bool",
"help": "Replaces the CSS icons with images from /theme/images/icons/<br />Default: No"
},
"CSS Icon Shape": {
"name": "css_icon_shape",
"help": "Choose whether the CSS icons are round or square.<br />Default setting: Circle.",
"type": "list",
"values": [
"Circle",
"Square"
]
},
"Disable CSS Loading Animations?": {
"name": "disable_css_animations",
"type": "bool",
"help": "Disables the CSS loading animations.<br />Default: No"
},
"Hide PlanetStyles link in footer?": {
"name": "credit_line",
"type": "bool",
"help": "We'd rather you didn't, but it's OK if you really want to :)"
}
}
}
}