1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Organised test files & added page update draft tests

Also cleaned styling for new autosave ui parts.
Closes #36.
This commit is contained in:
Dan Brown
2016-03-12 16:31:02 +00:00
parent 30214fde74
commit bf7852ce85
8 changed files with 69 additions and 7 deletions

View File

@ -161,7 +161,7 @@ form.search-box {
}
}
.faded > span.faded-text {
.faded span.faded-text {
display: inline-block;
padding: $-s;
opacity: 0.5;
@ -189,6 +189,9 @@ form.search-box {
padding-left: 0;
}
}
&.text-center {
text-align: center;
}
}
.setting-nav {

View File

@ -14,14 +14,11 @@
</div>
</div>
<div class="col-sm-4 faded text-center">
<div class="action-buttons text-center" ng-cloak>
<span class="faded-text" ng-bind="draftText"></span>
<button type="button" ng-if="isDraft" ng-click="discardDraft()" class="text-button text-neg"><i class="zmdi zmdi-close-circle"></i>Discard Draft</button>
</div>
<span class="faded-text" ng-bind="draftText"></span>
</div>
<div class="col-sm-4 faded">
<div class="action-buttons">
<div class="action-buttons" ng-cloak>
<button type="button" ng-if="isDraft" ng-click="discardDraft()" class="text-button text-neg"><i class="zmdi zmdi-close-circle"></i>Discard Draft</button>
<button type="submit" id="save-button" class="text-button text-pos"><i class="zmdi zmdi-floppy"></i>Save Page</button>
</div>
</div>