169 lines
3.1 KiB
SCSS
169 lines
3.1 KiB
SCSS
// discussion - elements - editor
|
|
// ====================
|
|
|
|
// UI: general editor styling
|
|
|
|
// TO-DO: isolate out all editing styling from _discussion.scss and clean up cases defined below once general syling exists
|
|
|
|
// =========================
|
|
|
|
// CASE: new post
|
|
.forum-new-post-form {
|
|
.wmd-input {
|
|
@include discussion-wmd-input;
|
|
@include box-sizing(border-box);
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
height: 150px;
|
|
background: $white;
|
|
}
|
|
|
|
.wmd-preview-container {
|
|
@include discussion-new-post-wmd-preview-container;
|
|
}
|
|
|
|
.wmd-preview-label {
|
|
@include discussion-wmd-preview-label;
|
|
}
|
|
|
|
.wmd-preview {
|
|
@include discussion-wmd-preview;
|
|
}
|
|
|
|
.wmd-button {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
// =========================
|
|
|
|
// CASE: inline styling
|
|
// TO-DO: additional styling cleanup here necessary, for now this case was ported over from _discussion.scss
|
|
.discussion-module {
|
|
|
|
.wmd-panel {
|
|
width: 100%;
|
|
min-width: 500px;
|
|
}
|
|
|
|
.wmd-button-bar {
|
|
width: 100%;
|
|
}
|
|
|
|
.wmd-input {
|
|
width: 100%;
|
|
height: 150px;
|
|
border-radius: 3px 3px 0 0;
|
|
font-style: normal;
|
|
font-size: 0.8em;
|
|
font-family: Monaco, 'Lucida Console', monospace;
|
|
line-height: 1.6em;
|
|
|
|
&::-webkit-input-placeholder {
|
|
color: #888;
|
|
}
|
|
}
|
|
|
|
.wmd-button-row {
|
|
@include transition(all .2s ease-out 0s);
|
|
position: relative;
|
|
overflow: hidden;
|
|
margin: ($baseline/2) ($baseline/4) ($baseline/4) ($baseline/4);
|
|
padding: 0;
|
|
height: 30px;
|
|
}
|
|
|
|
.wmd-spacer {
|
|
position: absolute;
|
|
display: inline-block;
|
|
margin-left: 14px;
|
|
width: 1px;
|
|
height: 20px;
|
|
background-color: Silver;
|
|
list-style: none;
|
|
}
|
|
|
|
.wmd-button {
|
|
position: absolute;
|
|
display: inline-block;
|
|
padding-right: 3px;
|
|
padding-left: 2px;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: none;
|
|
list-style: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.wmd-button > span {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 20px;
|
|
background-image: url('/static/images/wmd-buttons-transparent.png');
|
|
background-position: 0 0;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.wmd-spacer1 {
|
|
left: 50px;
|
|
}
|
|
.wmd-spacer2 {
|
|
left: 175px;
|
|
}
|
|
|
|
.wmd-spacer3 {
|
|
left: 300px;
|
|
}
|
|
|
|
.wmd-prompt-background {
|
|
background-color: Black;
|
|
}
|
|
|
|
.wmd-prompt-dialog {
|
|
@extend .modal;
|
|
background: $white;
|
|
}
|
|
|
|
.wmd-prompt-dialog {
|
|
padding: $baseline;
|
|
|
|
> div {
|
|
font-size: 0.8em;
|
|
font-family: arial, helvetica, sans-serif;
|
|
}
|
|
|
|
b {
|
|
font-size: 16px;
|
|
}
|
|
|
|
> form > input[type="text"] {
|
|
border-radius: 3px;
|
|
color: #333;
|
|
}
|
|
|
|
> form > input[type="button"] {
|
|
border: 1px solid #888;
|
|
font-family: $sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
> form > input[type="file"] {
|
|
margin-bottom: 18px;
|
|
}
|
|
}
|
|
|
|
.wmd-button-row {
|
|
// this is being hidden now because the inline styles to position the icons are not being written
|
|
position: relative;
|
|
height: 25px;
|
|
}
|
|
|
|
.wmd-button {
|
|
span {
|
|
background-image: url("/static/images/wmd-buttons.png");
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|