mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 03:42:32 +01:00
Neated some stock styles
This commit is contained in:
parent
941b4496c2
commit
66dd297853
@ -11,3 +11,12 @@ body {
|
|||||||
color: #444;
|
color: #444;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
min-width: 100px;
|
||||||
|
td {
|
||||||
|
min-width: 10px;
|
||||||
|
padding: 4px 6px;
|
||||||
|
border: 1px solid #DDD;
|
||||||
|
}
|
||||||
|
}
|
@ -15,4 +15,8 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 825px;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: -$-s;
|
||||||
|
box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.08);
|
||||||
}
|
}
|
@ -47,10 +47,14 @@
|
|||||||
},
|
},
|
||||||
setup: function(editor) {
|
setup: function(editor) {
|
||||||
editor.addButton('full', {
|
editor.addButton('full', {
|
||||||
text: 'Expand',
|
title: 'Expand Editor',
|
||||||
icon: false,
|
icon: 'fullscreen',
|
||||||
onclick: function() {
|
onclick: function() {
|
||||||
var container = $(editor.getContainer()).toggleClass('fullscreen');
|
var container = $(editor.getContainer()).toggleClass('fullscreen');
|
||||||
|
var isFull = container.hasClass('fullscreen');
|
||||||
|
var iframe = container.find('iframe').first();
|
||||||
|
var height = isFull ? $(window).height()-110 : 600;
|
||||||
|
iframe.css('height', height + 'px');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user