Skip to content
Snippets Groups Projects
Unverified Commit fe655111 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #1790 from OpenTechFund/fix/pagedown-editor-styling

Improving pagedown editor styling with css flex.
parents acf1db7f 31e8a80b
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ class CommentForm(forms.ModelForm): ...@@ -13,7 +13,7 @@ class CommentForm(forms.ModelForm):
fields = ('message', 'visibility') fields = ('message', 'visibility')
labels = { labels = {
'visibility': 'Visible to', 'visibility': 'Visible to',
'message': '', 'message': 'Message',
} }
widgets = { widgets = {
'visibility': forms.RadioSelect(), 'visibility': forms.RadioSelect(),
......
.wmd-panel {
}
.wmd-input {
}
.wmd-preview { .wmd-preview {
background-color: $color--sky-blue; background-color: $color--sky-blue;
padding: 0 10px; padding: 0 10px;
...@@ -25,32 +19,23 @@ ...@@ -25,32 +19,23 @@
} }
.wmd-button-row { .wmd-button-row {
position: relative; display: flex;
background-color: $color--white; background-color: $color--white;
height: 35px; padding: 4px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-top: 10px;
} }
.wmd-spacer { .wmd-spacer {
position: absolute;
display: inline-block;
background-color: $color--mid-grey; background-color: $color--mid-grey;
width: 1px; width: 1px;
height: 20px; height: 20px;
margin-left: 14px; margin: 0 14px;
list-style: none; list-style: none;
} }
.wmd-button { .wmd-button {
position: absolute;
display: inline-block;
width: 20px; width: 20px;
height: 20px; height: 20px;
padding-left: 2px; margin: 0 2px;
padding-right: 3px;
list-style: none; list-style: none;
cursor: pointer; cursor: pointer;
...@@ -64,18 +49,6 @@ ...@@ -64,18 +49,6 @@
} }
} }
.wmd-spacer1 {
left: 50px;
}
.wmd-spacer2 {
left: 175px;
}
.wmd-spacer3 {
left: 300px;
}
.wmd-prompt-background { .wmd-prompt-background {
background-color: $color--black; background-color: $color--black;
} }
......
.wmd-panel {
}
.wmd-input {
}
.wmd-preview { .wmd-preview {
background-color: $color--sky-blue; background-color: $color--sky-blue;
padding: 0 10px; padding: 0 10px;
...@@ -20,33 +14,25 @@ ...@@ -20,33 +14,25 @@
} }
} }
.wmd-button-row { .wmd-button-row {
position: relative; display: flex;
background-color: $color--white; background-color: $color--white;
height: 35px; padding: 4px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-top: 10px;
} }
.wmd-spacer { .wmd-spacer {
position: absolute;
display: inline-block;
background-color: $color--mid-grey; background-color: $color--mid-grey;
width: 1px; width: 1px;
height: 20px; height: 20px;
margin-left: 14px; margin: 0 14px;
list-style: none; list-style: none;
} }
.wmd-button { .wmd-button {
position: absolute;
display: inline-block;
width: 20px; width: 20px;
height: 20px; height: 20px;
padding-left: 2px; margin: 0 2px;
padding-right: 3px;
list-style: none; list-style: none;
cursor: pointer; cursor: pointer;
...@@ -60,18 +46,6 @@ ...@@ -60,18 +46,6 @@
} }
} }
.wmd-spacer1 {
left: 50px;
}
.wmd-spacer2 {
left: 175px;
}
.wmd-spacer3 {
left: 300px;
}
.wmd-prompt-background { .wmd-prompt-background {
background-color: $color--black; background-color: $color--black;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment