Update redactor to latest, minor cleanup

This commit is contained in:
Samuel Georges 2015-07-29 19:17:05 +10:00
parent ac193a15c3
commit fdbd5d8b3c
10 changed files with 1285 additions and 1043 deletions

View File

@ -12,33 +12,4 @@
<?php endforeach ?>
<?php /*
<?php if ($relationType == 'hasMany'): ?>
<?= $this->relationMakePartial('button_create') ?>
<?= $this->relationMakePartial('button_delete') ?>
<?php elseif ($relationType == 'belongsToMany'): ?>
<?= $this->relationMakePartial('button_add') ?>
<?= $this->relationMakePartial('button_remove') ?>
<?php elseif ($relationType == 'belongsTo'): ?>
<?= $this->relationMakePartial('button_link') ?>
<?= $this->relationMakePartial('button_unlink') ?>
<?php elseif ($relationType == 'hasOne'): ?>
<?php if ($relationViewWidget->model->exists): ?>
<?= $this->relationMakePartial('button_update', ['relationManageId' => $relationViewWidget->model->id]) ?>
<?= $this->relationMakePartial('button_delete') ?>
<?php else: ?>
<?= $this->relationMakePartial('button_create') ?>
<?php endif ?>
<?php endif ?>
*/ ?>
</div>

View File

@ -18,7 +18,7 @@
&.size-giant { min-height: @size-giant; }
.ace_search {
font-family: @font-family-sans-serif;
font-family: @font-family-base;
font-size: 14px;
color: @text-color;
z-index: @codeeditor-zindex + 3;

View File

@ -1,213 +0,0 @@
figure {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
figure {
position: relative;
}
figcaption {
text-align: center;
line-height: 24px;
font-size: 16px;
}
figure[data-type=table] {
clear: both;
}
figure[data-type=video] {
position: relative;
margin-bottom: 24px;
text-align: center;
clear: both;
}
figure[data-type=video] p {
margin: 0;
}
figure[data-type=video].oc-figure-full p {
position: relative;
padding-bottom: 51%;
width: 100%;
height: 0;
}
figure[data-type=video].oc-figure-full iframe {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
figure[data-type=image] {
position: relative;
margin-bottom: 24px;
}
figure[data-type=image] img {
width: 100%;
}
figure[data-type=image].oc-figure-large {
width: 100%;
clear: both;
}
figure[data-type=image].oc-figure-medium {
width: 50%;
}
figure[data-type=image].oc-figure-small {
width: 33%;
}
figure[data-type=quote] {
font-family: "Georgia", serif;
margin-bottom: 24px;
margin-left: 24px;
font-style: italic;
position: relative;
border-left: solid 5px #404040;
padding-left: 24px;
}
figure[data-type=quote] figcaption {
font-weight: bold;
text-align: left;
}
figure[data-type=quote].oc-figure-medium {
font-size: 20px;
}
figure[data-type=quote].oc-figure-large {
font-size: 24px;
}
figure[data-type=quote].oc-figure-right {
width: 33%;
}
figure[data-type=quote].oc-figure-left {
width: 33%;
border-left: none;
border-right: solid 5px #404040;
padding-left: 0;
padding-right: 24px;
margin-left: 0;
margin-right: 24px;
}
figure[data-type=quote] cite {
display: block;
text-align: left;
font-weight: bold;
}
figure[data-type=quote] cite:before {
content: "\2014\00a0";
}
.oc-figure-right {
float: right;
margin-left: 24px;
}
.oc-figure-right .oc-figure-controls {
right: 0;
}
.oc-figure-left {
float: left;
margin-right: 24px;
}
@media screen and (max-width: 480px) {
figure[data-type=image] {
width: 100% !important;
float: none !important;
margin-left: 0;
margin-right: 0;
}
figure[data-type=video] iframe {
width: 100% !important;
height: auto !important;
}
}
.oc-table {
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
margin-bottom: 20px;
}
.oc-table caption {
color: #000;
font: italic 85%/1 arial, sans-serif;
padding: 1em 0;
text-align: center;
}
.oc-table td,
.oc-table th {
font-size: 90%;
margin: 0;
overflow: visible;
padding: 8px;
}
.oc-table td:first-child,
.oc-table th:first-child {
border-left-width: 0;
}
.oc-table thead {
color: #000;
text-align: left;
vertical-align: bottom;
white-space: nowrap;
}
.oc-table thead th {
font-weight: bold;
border-bottom: solid 2px #dddddd;
}
.oc-table td {
background-color: transparent;
vertical-align: middle;
}
.oc-table td p {
line-height: 15px;
}
.oc-table td p:last-child {
margin-bottom: 0;
}
.oc-table .oc-table-cell-min {
width: 1%;
padding-right: 0;
}
.oc-table .oc-table-cell-min input[type=checkbox],
.oc-table .oc-table-cell-min input[type=checkbox] {
margin: 0;
}
.oc-table-secondary {
color: #333333;
font-size: 90%;
}
.oc-table-tertiary {
color: #333333;
font-size: 80%;
}
.oc-table-odd td,
.oc-table-striped tr:nth-child(2n-1) td {
background-color: #f9f9f9;
}
.oc-table-backed {
background-color: #f9f9f9;
}
.oc-table-bordered-all {
border: 1px solid #dddddd;
}
.oc-table-bordered-all td {
border-bottom: 1px solid #dddddd;
border-left: 1px solid #dddddd;
}
.oc-table-bordered-all tbody > tr:last-child td {
border-bottom-width: 0;
}
.oc-table-bordered {
border: 1px solid #dddddd;
}
.oc-table-bordered-rows td {
border-bottom: 1px solid #dddddd;
}
.oc-table-bordered-rows tbody > tr:last-child td {
border-bottom-width: 0;
}
.oc-table-horizontal tbody > tr:last-child td {
border-bottom-width: 0;
}
.oc-table-horizontal td,
.oc-table-horizontal th {
border-width: 0 0 1px 0;
border-bottom: 1px solid #dddddd;
}
.oc-table-horizontal tbody > tr:last-child td {
border-bottom-width: 0;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,12 @@
@richeditor-zindex: 600;
@richeditor-gutter: 20px;
@color-richeditor-toolbar: #dddddd;
@color-richeditor-toolbar-btn-color: #404040;
@color-richeditor-toolbar-btn-bg-hover: #999999;
@color-richeditor-toolbar-btn-bg-active: #404040;
@color-richeditor-toolbar-btn-color-hover: #ffffff;
@import "_figures.less";
@import "../vendor/redactor/redactor.less";
@ -15,11 +21,13 @@
.field-richeditor {
border: 1px solid @color-form-field-border;
.transition(@input-transition);
&, .redactor-box {
.border-radius(5px);
}
.redactor-toolbar {
.border-top-radius(3px);
.border-top-radius(5px);
}
&.editor-focus {
@ -64,12 +72,12 @@
.box-shadow(none);
z-index: 410 !important;
& li.redactor-btn-right {
li.redactor-btn-right {
float: right;
margin-right: 2px;
}
& li a {
li a {
color: @color-richeditor-toolbar-btn-color;
font-size: 14px;
width: 20px;
@ -88,22 +96,20 @@
color: @color-richeditor-toolbar-btn-color-hover;
}
// For some reasin the line height for fa- buttons was set to 1
// and padding was not matching other buttons. -ab Apr 01 2015
&.fa-redactor-btn {
padding: 9px 10px;
line-height: 20px;
}
&.oc-redactor-button i:before {
font-size: 16px!important;
font-size: 16px !important;
}
&.oc-autumn-button {
color: #c03f31;
&:hover {
color: white!important;
color: white !important;
}
}
}
@ -191,7 +197,7 @@ body .redactor-box-fullscreen {
position: relative;
cursor: pointer;
color: #6c7071;
font: 15px @font-family-sans-serif;
font: 15px @font-family-base;
font-weight: 500;
line-height: 150%;
.border-radius(3px);

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long