forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.css
201 lines (171 loc) · 3.83 KB
/
editor.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
/*
PublicLab.Editor(https://github.com/publiclab/PublicLab.Editor/) uses bootstrap version 3.4
and plots2 uses bootstrap version 4. Due to class inconsistency between both of the version of
bootstrap, css customization of some classes have been introduced to make editor compatible with
both the versions of bootstrap. This include blockquote, code, pre, .btn-default, .btn-xs.
*/
blockquote {
padding: 10px 20px;
margin: 0 0 20px;
font-size: 17.5px;
border-left: 5px solid #eee;
}
code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f5f5f5;
border-radius: 4px;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
color: #333;
word-break: break-all;
word-wrap: break-word;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px;
}
/* Account for some code outputs that place code tags in pre tags */
code {
padding: 0px;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0;
}
/* Adding the bug-btn stylings below, but they can be removed once the next
version of the editor is released. */
.bug-btn {
color: #f1f1f1;
font-size: 1em;
padding: 0.7em;
border: none;
margin-left: 3%;
border-radius: 2%;
background: linear-gradient(to right, #424242, #616161);
}
.bug-btn:hover {
background: linear-gradient(to right, #242323, #838282);
color: #f1f1f1;
text-decoration: none;
}
.bug-btn-wrapper {
margin: 3rem 0 3rem 0;
}
.btn-default {
color: #333;
background-color: #fff;
border-color: #ccc;
}
.btn-default:hover {
color: #333;
background-color: #e6e6e6;
border-color: #adadad;
}
.btn-xs {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.comment-preview {
margin:0;
margin-bottom:10px;
background:white;
}
.moderation-notice {
font-style: italic;
color: #888;
padding-left: 8px;
}
.side-dropzone, .profile-dropzone {
border:4px dashed #ccc;
color: #aaa;
font-size:16px;
padding:20%;
padding-bottom:30%;
text-align:center;
margin-bottom:10px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
}
.side-dropzone.hover, .profile-dropzone.hover {
background:#ddd;
color:#bbb;
border-color:#bbb;
}
.side-dropzone, .profile-dropzone {
color:#ccc;
}
.side-dropzone .fileinput-button, .profile-dropzone .fileinput-button {
text-decoration:underline;
}
@media (max-width: 480px) {
.side-dropzone, .profile-dropzone { padding:0; margin-bottom:10px;}
.side-dropzone p, .profile-dropzone p { padding:15px; }
}
@media (max-width: 768px) {
.side-dropzone, .profile-dropzone { padding:0; margin-bottom:10px;}
.side-dropzone p, .profile-dropzone p {
padding:20px 20px 30px;
}
}
@media (max-width: 992px) {
.side-dropzone, .profile-dropzone { margin-bottom: 10px;}
}
@media (max-width: 480px) {
.dropzone textarea {
height:300px;
}
}
#leadImage {
margin-bottom:10px;
}
.dropzone textarea {
border-bottom:none;
margin-bottom:0;
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
resize: vertical;
}
.imagebar {
color: #aaa;
border:1px solid #bbb;
border-top:none;
background:#f8f8f8;
-webkit-border-radius: 0 0 4px 4px;
-moz-border-radius: 0 0 4px 4px;
border-radius: 0 0 4px 4px;
}
@media (max-width: 768px) {
.imagebar {
width:100%;
}
}
.imagebar p {
border-top:2px dotted #ddd;
padding:8px 12px 0px;
}
.dropzone.hover .imagebar {
background:#eee;
}
.dropzone.hover textarea {
background:#f8f8f8
}
.imagebar .progress-bar-container {
margin: 10px;
width: 30%;
background-color: #aaa;
}
#side-progress {
margin:3px 10px 10px;
width:30%;
}