mirror of
https://github.com/til-schneider/slim-wiki.git
synced 2025-10-22 12:06:11 +02:00
103 lines
1.7 KiB
Plaintext
103 lines
1.7 KiB
Plaintext
|
|
// Reset browser sizes
|
|
|
|
//ol, ul, li,
|
|
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, img, b, u, i, form, label, table, tbody, tfoot, thead, tr, th, td {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
outline: 0;
|
|
font-size: 100%;
|
|
vertical-align: baseline;
|
|
background: transparent;
|
|
}
|
|
body {
|
|
line-height: 1;
|
|
}
|
|
:focus {
|
|
outline: 0;
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
// Layout
|
|
|
|
// We need a variable using brackets here, otherwise less won't calculate the width
|
|
// See: https://github.com/less/less.js/issues/1903
|
|
@small-screen-breakpoint: (@contentMaxWidth + 2 * @contentMinMarginX);
|
|
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
|
|
#main-wrapper {
|
|
position: relative;
|
|
min-height: 100%;
|
|
|
|
.edit-mode & {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 50%;
|
|
}
|
|
}
|
|
|
|
.edit-mode {
|
|
#editor-wrapper {
|
|
position: fixed;
|
|
box-sizing: border-box;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 50%;
|
|
|
|
.CodeMirror {
|
|
height: 100%;
|
|
}
|
|
}
|
|
#editor {
|
|
// The textarea is only used by CodeMirror to obtain the source code, the actual editor is placed after the textarea
|
|
// -> We hide the textarea in order to avoid flickering while loading
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.main-column {
|
|
width: @contentMaxWidth;
|
|
margin: 0 auto;
|
|
|
|
.edit-mode & {
|
|
width: auto;
|
|
margin: 0 @contentMinMarginX;
|
|
}
|
|
|
|
@media (max-width: @small-screen-breakpoint) {
|
|
width: auto;
|
|
margin: 0 @contentMinMarginX;
|
|
}
|
|
}
|
|
|
|
.breadcrumbs {
|
|
position: fixed;
|
|
right: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
|
|
.edit-mode & {
|
|
width: 50%;
|
|
}
|
|
}
|
|
|
|
#content {
|
|
padding: 30px 0 150px;
|
|
}
|
|
|
|
footer {
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|