#spButton .button.disabled, #spButtonPrimary .button.disabled { cursor: default; }
#spButtonPrimary { margin-top: 10px; }
+/* ### editor ### */
+#spEditorContent { border: 1px solid rgb(224, 224, 224); border-top-width: 0; height: 100px; }
+
/* ### dropdown ### */
#spDropdown { display: inline-block; float: none; position: relative; visibility: visible; z-index: 10; }
</div>
</div>
+ <div class="spHeadline">Editor</div>
+
+ <div id="spEditor">
+ <div id="spEditorToolbar" data-region="wcfEditorButton">
+ <ul class="redactor-toolbar">
+ <li><a class="redactor-button-disabled"><span class="icon icon16 fa-file-code-o"></span></a></li>
+ <li><a><span class="icon icon16 fa-undo"></span></a></li>
+ <li><a><span class="icon icon16 fa-repeat"></span></a></li>
+ <li><a><span class="icon icon16 fa-expand"></span></a></li>
+ <li class="redactor-toolbar-separator"><a><span class="icon icon16 fa-header"></span></a></li>
+ <li class="redactor-toolbar-separator"><a><span class="icon icon16 fa-bold"></span></a></li>
+ <li><a class="dropact"><span class="icon icon16 fa-italic"></span></a></li>
+ <li><a><span class="icon icon16 fa-underline"></span></a></li>
+ <li><a><span class="icon icon16 fa-strikethrough"></span></a></li>
+ </ul>
+ </div>
+ <div id="spEditorContent"></div>
+ </div>
+
<div class="spHeadline">Dropdown</div>
<div style="position: relative">
'wcfButtonPrimaryTextActive': '#spButtonPrimary .button.active, #spButtonPrimary .button:hover { color: VALUE; }',
'wcfButtonDisabledBackground': '#spButton .button.disabled, #spButtonPrimary .button.disabled { background-color: VALUE; }',
'wcfButtonDisabledText': '#spButton .button.disabled, #spButtonPrimary .button.disabled { color: VALUE; }',
+ 'wcfEditorButtonBackground': '#spEditor .redactor-toolbar, #spEditor .redactor-toolbar a { background-color: VALUE; }',
+ 'wcfEditorButtonBackgroundActive': '#spEditor .redactor-toolbar a:hover, #spEditor .redactor-toolbar a.dropact { background-color: VALUE; }',
+ 'wcfEditorButtonText': '#spEditor .redactor-toolbar a { color: VALUE; }',
+ 'wcfEditorButtonTextActive': '#spEditor .redactor-toolbar a:hover, #spEditor .redactor-toolbar a.dropact { color: VALUE; }',
+ 'wcfEditorButtonTextDisabled': '#spEditor .redactor-toolbar a.redactor-button-disabled { color: VALUE; }',
'wcfDropdownBackground': '#spDropdown { background-color: VALUE; } __COMBO_RULE__ #spDropdown::before { border-bottom-color: VALUE; }',
'wcfDropdownBorderInner': '#spDropdown .dropdownDivider { border-color: VALUE; }',
'wcfDropdownText': '#spDropdown li { color: VALUE; }',
'wcfTabularBox' => 'wcfTabularBox',
'wcfInput' => ['wcfInput', 'wcfInputDisabled'],
'wcfButton' => ['wcfButton', 'wcfButtonPrimary', 'wcfButtonDisabled'],
+ 'wcfEditor' =>'wcfEditorButton',
'wcfDropdown' => 'wcfDropdown',
'wcfStatus' => ['wcfStatusInfo', 'wcfStatusSuccess', 'wcfStatusWarning', 'wcfStatusError'],
'wcfFooterBox' => ['wcfFooterBox', 'wcfFooterBoxHeadline'],
'wcfButton' => ['background', 'text', 'backgroundActive', 'textActive'],
'wcfButtonPrimary' => ['background', 'text', 'backgroundActive', 'textActive'],
'wcfButtonDisabled' => ['background', 'text'],
+ 'wcfEditorButton' => ['background', 'backgroundActive', 'text', 'textActive', 'textDisabled'],
'wcfDropdown' => ['background', 'borderInner', 'text', 'link', 'backgroundActive', 'linkActive'],
'wcfStatusInfo' => ['background', 'border', 'text', 'link', 'linkActive'],
'wcfStatusSuccess' => ['background', 'border', 'text', 'link', 'linkActive'],
}
.redactor-toolbar {
- background-color: $wcfHeaderBackground;
+ background-color: $wcfEditorButtonBackground;
display: flex;
flex-wrap: wrap;
flex: 0 0 auto;
> a {
- color: $wcfHeaderMenuLink;
+ color: $wcfEditorButtonText;
display: block;
outline: none;
padding: 10px;
&.redactor-button-disabled {
background-color: transparent !important;
- color: $wcfButtonDisabledText !important;
+ color: $wcfEditorButtonTextDisabled !important;
cursor: default;
pointer-events: none;
}
&.redactor-act,
&.dropact {
- background-color: $wcfHeaderMenuLinkBackgroundActive;
- color: $wcfHeaderMenuLinkActive;
+ background-color: $wcfEditorButtonBackgroundActive;
+ color: $wcfEditorButtonTextActive;
}
.icon {
// hover-styles on mobile are misleading as they stay much longer
// due to the click-like behavior
&:hover {
- background-color: $wcfHeaderMenuLinkBackgroundActive;
- color: $wcfHeaderMenuLinkActive;
+ background-color: $wcfEditorButtonBackgroundActive;
+ color: $wcfEditorButtonTextActive;
}
}
}
&::before {
bottom: 7px;
- border-left: 1px solid $wcfHeaderMenuLink;
+ border-left: 1px solid $wcfEditorButtonText;
content: "";
left: -6px;
opacity: .6;
&::before {
bottom: 7px;
- border-left: 1px solid $wcfHeaderMenuLink;
+ border-left: 1px solid $wcfEditorButtonText;
content: "";
left: 0;
opacity: .6;
&::before {
bottom: 7px;
- border-left: 1px solid $wcfHeaderMenuLink;
+ border-left: 1px solid $wcfEditorButtonText;
content: "";
left: 0;
opacity: .6;
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfDropdownLink', 'rgba(33, 33, 33, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfDropdownLinkActive', 'rgba(33, 33, 33, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfDropdownText', 'rgba(33, 33, 33, 1)');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonBackground', 'rgba(58, 109, 156, 1)');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonBackgroundActive', 'rgba(36, 66, 95, 1)');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonText', 'rgba(255, 255, 255, 1)');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonTextActive', 'rgba(255, 255, 255, 1)');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonTextDisabled', 'rgba(165, 165, 165, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfFontFamilyFallback', '"Segoe UI", "DejaVu Sans", "Lucida Grande", "Helvetica", sans-serif');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfFontFamilyGoogle', 'Open Sans');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfFontLineHeight', '1.48');