artifact 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/artifact.gemspec +31 -0
- data/bin/artifact +4 -0
- data/lib/artifact.rb +337 -0
- data/lib/artifact/app.rb +55 -0
- data/lib/artifact/files.rb +60 -0
- data/lib/artifact/helpers.rb +130 -0
- data/lib/artifact/middleman.rb +213 -0
- data/lib/artifact/public/css/dropzone.css +155 -0
- data/lib/artifact/public/css/main.css +222 -0
- data/lib/artifact/public/css/pagoda.css +782 -0
- data/lib/artifact/public/js/app.js +123 -0
- data/lib/artifact/public/js/dropzone.js +1919 -0
- data/lib/artifact/static.rb +41 -0
- data/lib/artifact/version.rb +3 -0
- data/lib/artifact/views/errors/404.erb +41 -0
- data/lib/artifact/views/errors/500.erb +43 -0
- data/lib/artifact/views/files/edit.erb +11 -0
- data/lib/artifact/views/files/index.erb +20 -0
- data/lib/artifact/views/files/new.erb +14 -0
- data/lib/artifact/views/layout.erb +36 -0
- data/lib/artifact/views/posts/_list.erb +21 -0
- data/lib/artifact/views/posts/_meta.erb +15 -0
- data/lib/artifact/views/posts/_navbar.erb +49 -0
- data/lib/artifact/views/posts/_table.erb +23 -0
- data/lib/artifact/views/posts/edit.erb +27 -0
- data/lib/artifact/views/posts/index.erb +39 -0
- data/lib/artifact/views/posts/new.erb +22 -0
- data/lib/artifact/views/shared/_menu.erb +18 -0
- data/lib/artifact/views/uploads/_form.erb +27 -0
- data/lib/artifact/views/uploads/_list.erb +17 -0
- metadata +207 -0
@@ -0,0 +1,155 @@
|
|
1
|
+
/* The MIT License */
|
2
|
+
.dropzone,
|
3
|
+
.dropzone *,
|
4
|
+
.dropzone-previews,
|
5
|
+
.dropzone-previews * {
|
6
|
+
-webkit-box-sizing: border-box;
|
7
|
+
-moz-box-sizing: border-box;
|
8
|
+
box-sizing: border-box;
|
9
|
+
}
|
10
|
+
.dropzone {
|
11
|
+
position: relative;
|
12
|
+
border: 1px solid rgba(0,0,0,0.08);
|
13
|
+
background: rgba(0,0,0,0.02);
|
14
|
+
padding: 1em;
|
15
|
+
}
|
16
|
+
.dropzone.dz-clickable {
|
17
|
+
cursor: pointer;
|
18
|
+
}
|
19
|
+
.dropzone.dz-clickable .dz-message,
|
20
|
+
.dropzone.dz-clickable .dz-message span {
|
21
|
+
cursor: pointer;
|
22
|
+
}
|
23
|
+
.dropzone.dz-clickable * {
|
24
|
+
cursor: default;
|
25
|
+
}
|
26
|
+
.dropzone .dz-message {
|
27
|
+
opacity: 1;
|
28
|
+
-ms-filter: none;
|
29
|
+
filter: none;
|
30
|
+
}
|
31
|
+
.dropzone.dz-drag-hover {
|
32
|
+
border-color: rgba(0,0,0,0.15);
|
33
|
+
background: rgba(0,0,0,0.04);
|
34
|
+
}
|
35
|
+
.dropzone.dz-started .dz-message {
|
36
|
+
display: none;
|
37
|
+
}
|
38
|
+
.dropzone .dz-preview,
|
39
|
+
.dropzone-previews .dz-preview {
|
40
|
+
background: rgba(255,255,255,0.8);
|
41
|
+
position: relative;
|
42
|
+
display: inline-block;
|
43
|
+
margin: 17px;
|
44
|
+
vertical-align: top;
|
45
|
+
border: 1px solid #acacac;
|
46
|
+
padding: 6px 6px 6px 6px;
|
47
|
+
}
|
48
|
+
.dropzone .dz-preview.dz-file-preview [data-dz-thumbnail],
|
49
|
+
.dropzone-previews .dz-preview.dz-file-preview [data-dz-thumbnail] {
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
.dropzone .dz-preview .dz-details,
|
53
|
+
.dropzone-previews .dz-preview .dz-details {
|
54
|
+
width: 100px;
|
55
|
+
height: 100px;
|
56
|
+
position: relative;
|
57
|
+
background: #ebebeb;
|
58
|
+
padding: 5px;
|
59
|
+
margin-bottom: 22px;
|
60
|
+
}
|
61
|
+
.dropzone .dz-preview .dz-details .dz-filename,
|
62
|
+
.dropzone-previews .dz-preview .dz-details .dz-filename {
|
63
|
+
overflow: hidden;
|
64
|
+
height: 100%;
|
65
|
+
}
|
66
|
+
.dropzone .dz-preview .dz-details img,
|
67
|
+
.dropzone-previews .dz-preview .dz-details img {
|
68
|
+
position: absolute;
|
69
|
+
top: 0;
|
70
|
+
left: 0;
|
71
|
+
width: 100px;
|
72
|
+
height: 100px;
|
73
|
+
}
|
74
|
+
.dropzone .dz-preview .dz-details .dz-size,
|
75
|
+
.dropzone-previews .dz-preview .dz-details .dz-size {
|
76
|
+
position: absolute;
|
77
|
+
bottom: -28px;
|
78
|
+
left: 3px;
|
79
|
+
height: 28px;
|
80
|
+
line-height: 28px;
|
81
|
+
}
|
82
|
+
.dropzone .dz-preview.dz-error .dz-error-mark,
|
83
|
+
.dropzone-previews .dz-preview.dz-error .dz-error-mark {
|
84
|
+
display: block;
|
85
|
+
}
|
86
|
+
.dropzone .dz-preview.dz-success .dz-success-mark,
|
87
|
+
.dropzone-previews .dz-preview.dz-success .dz-success-mark {
|
88
|
+
display: block;
|
89
|
+
}
|
90
|
+
.dropzone .dz-preview:hover .dz-details img,
|
91
|
+
.dropzone-previews .dz-preview:hover .dz-details img {
|
92
|
+
display: none;
|
93
|
+
}
|
94
|
+
.dropzone .dz-preview .dz-success-mark,
|
95
|
+
.dropzone-previews .dz-preview .dz-success-mark,
|
96
|
+
.dropzone .dz-preview .dz-error-mark,
|
97
|
+
.dropzone-previews .dz-preview .dz-error-mark {
|
98
|
+
display: none;
|
99
|
+
position: absolute;
|
100
|
+
width: 40px;
|
101
|
+
height: 40px;
|
102
|
+
font-size: 30px;
|
103
|
+
text-align: center;
|
104
|
+
right: -10px;
|
105
|
+
top: -10px;
|
106
|
+
}
|
107
|
+
.dropzone .dz-preview .dz-success-mark,
|
108
|
+
.dropzone-previews .dz-preview .dz-success-mark {
|
109
|
+
color: #8cc657;
|
110
|
+
}
|
111
|
+
.dropzone .dz-preview .dz-error-mark,
|
112
|
+
.dropzone-previews .dz-preview .dz-error-mark {
|
113
|
+
color: #ee162d;
|
114
|
+
}
|
115
|
+
.dropzone .dz-preview .dz-progress,
|
116
|
+
.dropzone-previews .dz-preview .dz-progress {
|
117
|
+
position: absolute;
|
118
|
+
top: 100px;
|
119
|
+
left: 6px;
|
120
|
+
right: 6px;
|
121
|
+
height: 6px;
|
122
|
+
background: #d7d7d7;
|
123
|
+
display: none;
|
124
|
+
}
|
125
|
+
.dropzone .dz-preview .dz-progress .dz-upload,
|
126
|
+
.dropzone-previews .dz-preview .dz-progress .dz-upload {
|
127
|
+
display: block;
|
128
|
+
position: absolute;
|
129
|
+
top: 0;
|
130
|
+
bottom: 0;
|
131
|
+
left: 0;
|
132
|
+
width: 0%;
|
133
|
+
background-color: #8cc657;
|
134
|
+
}
|
135
|
+
.dropzone .dz-preview.dz-processing .dz-progress,
|
136
|
+
.dropzone-previews .dz-preview.dz-processing .dz-progress {
|
137
|
+
display: block;
|
138
|
+
}
|
139
|
+
.dropzone .dz-preview .dz-error-message,
|
140
|
+
.dropzone-previews .dz-preview .dz-error-message {
|
141
|
+
display: none;
|
142
|
+
position: absolute;
|
143
|
+
top: -5px;
|
144
|
+
left: -20px;
|
145
|
+
background: rgba(245,245,245,0.8);
|
146
|
+
padding: 8px 10px;
|
147
|
+
color: #800;
|
148
|
+
min-width: 140px;
|
149
|
+
max-width: 500px;
|
150
|
+
z-index: 500;
|
151
|
+
}
|
152
|
+
.dropzone .dz-preview:hover.dz-error .dz-error-message,
|
153
|
+
.dropzone-previews .dz-preview:hover.dz-error .dz-error-message {
|
154
|
+
display: block;
|
155
|
+
}
|
@@ -0,0 +1,222 @@
|
|
1
|
+
/*
|
2
|
+
-----------------------------------------
|
3
|
+
Artifact CSS
|
4
|
+
By Tomas Pollak, Fork Ltd. (forkhq.com)
|
5
|
+
GPLv3
|
6
|
+
-----------------------------------------
|
7
|
+
*/
|
8
|
+
|
9
|
+
html{
|
10
|
+
background-color: #fafafa;
|
11
|
+
}
|
12
|
+
|
13
|
+
body {
|
14
|
+
background-color: #fff;
|
15
|
+
}
|
16
|
+
|
17
|
+
/* container
|
18
|
+
-------------------------------------------------------------*/
|
19
|
+
|
20
|
+
#main{
|
21
|
+
background: #fff;
|
22
|
+
margin-top: 50px;
|
23
|
+
padding-bottom: 40px;
|
24
|
+
position: relative;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* fonts
|
28
|
+
-------------------------------------------------------------*/
|
29
|
+
|
30
|
+
|
31
|
+
html,body,div,p,input,button,select{
|
32
|
+
font-family: "Open Sans", Arial, sans-serif;
|
33
|
+
}
|
34
|
+
|
35
|
+
h1, h2, h3, button, input[type=submit]{
|
36
|
+
font-family: 'Lato', Helvetica, sans-serif;
|
37
|
+
}
|
38
|
+
|
39
|
+
h1 {
|
40
|
+
margin-bottom: 18px;
|
41
|
+
}
|
42
|
+
|
43
|
+
h2 {
|
44
|
+
margin-bottom: 10px;
|
45
|
+
}
|
46
|
+
|
47
|
+
/* form elements, buttons
|
48
|
+
--------------------------------------------------------------*/
|
49
|
+
|
50
|
+
.form input[type=text],
|
51
|
+
.form input[type=password],
|
52
|
+
.form input[type=email],
|
53
|
+
.form input[type=search],
|
54
|
+
.form textarea {
|
55
|
+
border-width: 2px;
|
56
|
+
}
|
57
|
+
|
58
|
+
.btn {
|
59
|
+
border: 2px solid #ccc;
|
60
|
+
color: #ccc;
|
61
|
+
border-radius: 5px;
|
62
|
+
background: none;
|
63
|
+
font-weight: 900;
|
64
|
+
}
|
65
|
+
|
66
|
+
.btn-primary {
|
67
|
+
border-color: #0078e7;
|
68
|
+
color: #0078e7;
|
69
|
+
}
|
70
|
+
|
71
|
+
.btn-success {
|
72
|
+
border-color: #40bd4f;
|
73
|
+
color: #40bd4f;
|
74
|
+
}
|
75
|
+
|
76
|
+
.btn-danger {
|
77
|
+
border-color: #d6564b;
|
78
|
+
color: #d6564b;
|
79
|
+
}
|
80
|
+
|
81
|
+
.btn:hover, .btn:focus {
|
82
|
+
border-color: #000;
|
83
|
+
color: #000;
|
84
|
+
background: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
.dark .btn:hover, .dark .btn:focus {
|
88
|
+
border-color: #fff;
|
89
|
+
color: #fff;
|
90
|
+
}
|
91
|
+
|
92
|
+
.menu .btn {
|
93
|
+
position: relative;
|
94
|
+
top: 3px;
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
/* search
|
99
|
+
--------------------------------------------------------------*/
|
100
|
+
|
101
|
+
#search-input {
|
102
|
+
width: 150px;
|
103
|
+
}
|
104
|
+
|
105
|
+
/* uploads
|
106
|
+
--------------------------------------------------------------*/
|
107
|
+
|
108
|
+
#uploads-bar {
|
109
|
+
width: 100%;
|
110
|
+
background: #333;
|
111
|
+
opacity: 0.85;
|
112
|
+
padding: 10px 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
#uploads-bar:hover {
|
116
|
+
opacity: 1;
|
117
|
+
}
|
118
|
+
|
119
|
+
#uploads-bar li {
|
120
|
+
display: inline-block;
|
121
|
+
position: relative;
|
122
|
+
margin-right: 10px;
|
123
|
+
}
|
124
|
+
|
125
|
+
#uploads-bar img {
|
126
|
+
max-height: 100px;
|
127
|
+
padding: 4px;
|
128
|
+
}
|
129
|
+
|
130
|
+
#uploads-bar .insert-image {
|
131
|
+
position: absolute;
|
132
|
+
right: 10px;
|
133
|
+
bottom: 5px;
|
134
|
+
}
|
135
|
+
|
136
|
+
|
137
|
+
/* post list
|
138
|
+
-------------------------------------------------------------*/
|
139
|
+
|
140
|
+
.post-list {
|
141
|
+
margin: 30px 0 20px 0;
|
142
|
+
padding-top: 10px;
|
143
|
+
}
|
144
|
+
|
145
|
+
.post-list li {
|
146
|
+
border-bottom: 1px solid #ddd;
|
147
|
+
padding: 15px 0;
|
148
|
+
position: relative;
|
149
|
+
list-style: none;
|
150
|
+
font-size: 12px;
|
151
|
+
}
|
152
|
+
|
153
|
+
.post-list .links {
|
154
|
+
position: absolute;
|
155
|
+
right: 0;
|
156
|
+
top: 14px;
|
157
|
+
background: #fff;
|
158
|
+
padding: 0px 8px;
|
159
|
+
visibility: hidden;
|
160
|
+
}
|
161
|
+
|
162
|
+
.post-list li:hover .links {
|
163
|
+
visibility: visible;
|
164
|
+
}
|
165
|
+
|
166
|
+
.post-list li .btn {
|
167
|
+
padding: 2px 7px;
|
168
|
+
}
|
169
|
+
|
170
|
+
/* post edit
|
171
|
+
-------------------------------------------------------------*/
|
172
|
+
|
173
|
+
#post-meta {
|
174
|
+
width: 500px;
|
175
|
+
z-index: 10;
|
176
|
+
border: 3px solid #ccc;
|
177
|
+
border-radius: 5px;
|
178
|
+
background: #f2f2f2;
|
179
|
+
}
|
180
|
+
|
181
|
+
#post-title,
|
182
|
+
#post-content {
|
183
|
+
width: 100%;
|
184
|
+
border: none;
|
185
|
+
outline: none;
|
186
|
+
box-shadow: none;
|
187
|
+
margin-bottom: 20px;
|
188
|
+
position: relative;
|
189
|
+
}
|
190
|
+
|
191
|
+
#post-title {
|
192
|
+
font-size: 30px;
|
193
|
+
border-bottom: 1px solid #ccc;
|
194
|
+
}
|
195
|
+
|
196
|
+
#post-content {
|
197
|
+
resize: none;
|
198
|
+
font-size: 20px;
|
199
|
+
line-height: 30px;
|
200
|
+
}
|
201
|
+
|
202
|
+
/* footer
|
203
|
+
-------------------------------------------------------------*/
|
204
|
+
|
205
|
+
#footer {
|
206
|
+
background-color: #fafafa;
|
207
|
+
text-align: center;
|
208
|
+
padding:10px 5%;
|
209
|
+
line-height: 150%;
|
210
|
+
border-top: 1px solid #ddd;
|
211
|
+
padding-top:10px;
|
212
|
+
}
|
213
|
+
|
214
|
+
#footer p {
|
215
|
+
color: #999;
|
216
|
+
font-size: 85%;
|
217
|
+
}
|
218
|
+
|
219
|
+
#footer p a {
|
220
|
+
color: #999;
|
221
|
+
text-decoration: underline;
|
222
|
+
}
|
@@ -0,0 +1,782 @@
|
|
1
|
+
/* TODO: pull out coloring into variables */
|
2
|
+
div:before, div:after {
|
3
|
+
content: '';
|
4
|
+
display: table;
|
5
|
+
}
|
6
|
+
|
7
|
+
aside {
|
8
|
+
position: relative;
|
9
|
+
display: block;
|
10
|
+
}
|
11
|
+
|
12
|
+
ul {
|
13
|
+
list-style-type: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
.hide {
|
17
|
+
visibility: hidden;
|
18
|
+
height: 1px;
|
19
|
+
clip: rect(0 0 0 0);
|
20
|
+
position: absolute;
|
21
|
+
}
|
22
|
+
|
23
|
+
input, textarea {
|
24
|
+
outline: none;
|
25
|
+
background: none;
|
26
|
+
}
|
27
|
+
|
28
|
+
body {
|
29
|
+
background: #fff;
|
30
|
+
color: #222;
|
31
|
+
}
|
32
|
+
|
33
|
+
body, textarea, pre, input {
|
34
|
+
font-family: 'Lato', Helvetica, sans-serif;
|
35
|
+
line-height: 1.8em;
|
36
|
+
font-size: 16px;
|
37
|
+
font-weight: 400;
|
38
|
+
}
|
39
|
+
|
40
|
+
h1, h2, h3, h4, h5, #text-title pre {
|
41
|
+
font-weight: 900;
|
42
|
+
word-wrap: break-word;
|
43
|
+
line-height: 1.3em;
|
44
|
+
}
|
45
|
+
|
46
|
+
h1,
|
47
|
+
#text-title pre,
|
48
|
+
#text-title textarea {
|
49
|
+
font-weight: 900;
|
50
|
+
font-size: 35px;
|
51
|
+
}
|
52
|
+
|
53
|
+
p {
|
54
|
+
color: #555;
|
55
|
+
}
|
56
|
+
|
57
|
+
a,
|
58
|
+
a:visited
|
59
|
+
a:active {
|
60
|
+
color: #000;
|
61
|
+
text-decoration: none;
|
62
|
+
border-bottom: 1px solid #ddd;
|
63
|
+
}
|
64
|
+
|
65
|
+
a:hover,
|
66
|
+
#admin #published h3 a:hover {
|
67
|
+
color: red;
|
68
|
+
}
|
69
|
+
|
70
|
+
header {
|
71
|
+
width: 162px;
|
72
|
+
border-right: 1px solid #DDD;
|
73
|
+
position: fixed;
|
74
|
+
top: 0;
|
75
|
+
bottom: 0;
|
76
|
+
padding: 20px 40px;
|
77
|
+
}
|
78
|
+
header span {
|
79
|
+
color: #888;
|
80
|
+
font-weight: 500;
|
81
|
+
}
|
82
|
+
header span.powered-by {
|
83
|
+
position: absolute;
|
84
|
+
bottom: 30px;
|
85
|
+
font-size: 11px;
|
86
|
+
}
|
87
|
+
header ul {
|
88
|
+
padding: 0;
|
89
|
+
margin: 50px 0;
|
90
|
+
}
|
91
|
+
header li {
|
92
|
+
margin: 0 0 3px 0;
|
93
|
+
}
|
94
|
+
header li a {
|
95
|
+
padding: 2px 0;
|
96
|
+
color: #888;
|
97
|
+
border-bottom: 2px solid #eee;
|
98
|
+
}
|
99
|
+
header li a:hover {
|
100
|
+
border-color: #777;
|
101
|
+
color: #444;
|
102
|
+
}
|
103
|
+
|
104
|
+
#container {
|
105
|
+
margin-left: 243px;
|
106
|
+
position: relative;
|
107
|
+
}
|
108
|
+
#container time {
|
109
|
+
display: block;
|
110
|
+
padding: 20px 0 20px 50px;
|
111
|
+
text-transform: uppercase;
|
112
|
+
font-weight: 900;
|
113
|
+
font-size: 12px;
|
114
|
+
border-bottom: 1px solid #ddd;
|
115
|
+
}
|
116
|
+
|
117
|
+
#content section {
|
118
|
+
padding: 26px 0 40px 50px;
|
119
|
+
border-bottom: 1px solid #ddd;
|
120
|
+
position: relative;
|
121
|
+
}
|
122
|
+
#content h1.external {
|
123
|
+
margin-top: 25px;
|
124
|
+
font-size: 18px;
|
125
|
+
}
|
126
|
+
#content h1.external .permalink {
|
127
|
+
margin-left: 8px;
|
128
|
+
font-size: 19px;
|
129
|
+
color: #999;
|
130
|
+
border: none;
|
131
|
+
}
|
132
|
+
|
133
|
+
.show #content section {
|
134
|
+
border-bottom: none;
|
135
|
+
}
|
136
|
+
|
137
|
+
code {
|
138
|
+
font-size: 13px;
|
139
|
+
background: #F2F2F2;
|
140
|
+
padding: 20px;
|
141
|
+
margin: 20px;
|
142
|
+
display: block;
|
143
|
+
}
|
144
|
+
|
145
|
+
.contain {
|
146
|
+
width: 960px;
|
147
|
+
position: relative;
|
148
|
+
}
|
149
|
+
|
150
|
+
.contain img {
|
151
|
+
max-width: 100%;
|
152
|
+
height: auto;
|
153
|
+
}
|
154
|
+
|
155
|
+
#publish-bar {
|
156
|
+
position: fixed;
|
157
|
+
bottom: 0;
|
158
|
+
left: 0;
|
159
|
+
background: #bbb;
|
160
|
+
color: #fff;
|
161
|
+
width: 100%;
|
162
|
+
text-align: center;
|
163
|
+
padding: 10px 0 3px;
|
164
|
+
border-top: 1px solid #999;
|
165
|
+
-webkit-box-shadow: rgba(68, 68, 68, 0.9) 0 0 5px;
|
166
|
+
-moz-box-shadow: rgba(68, 68, 68, 0.9) 0 0 5px;
|
167
|
+
box-shadow: rgba(68, 68, 68, 0.9) 0 0 5px;
|
168
|
+
}
|
169
|
+
@media only screen and (max-device-width: 480px) {
|
170
|
+
#publish-bar {
|
171
|
+
padding: 2px 0;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
#publish-bar .contain {
|
175
|
+
margin: 0 auto;
|
176
|
+
width: 960px;
|
177
|
+
}
|
178
|
+
@media only screen and (max-device-width: 480px) {
|
179
|
+
#publish-bar .contain {
|
180
|
+
width: 300px;
|
181
|
+
padding: 3px 10px;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
#publish-bar input[type=text] {
|
185
|
+
border: none;
|
186
|
+
border-bottom: 1px solid #333;
|
187
|
+
padding: 2px;
|
188
|
+
width: 220px;
|
189
|
+
font-size: 12px;
|
190
|
+
color: #999;
|
191
|
+
}
|
192
|
+
#publish-bar .menu.active {
|
193
|
+
background: #fff;
|
194
|
+
color: #000;
|
195
|
+
}
|
196
|
+
#publish-bar .sub-menu {
|
197
|
+
margin: 0;
|
198
|
+
background: #222;
|
199
|
+
padding: 20px;
|
200
|
+
position: absolute;
|
201
|
+
bottom: 0;
|
202
|
+
left: 60px;
|
203
|
+
visibility: hidden;
|
204
|
+
border-radius: 5px;
|
205
|
+
-moz-border-radius: 5px;
|
206
|
+
-webkit-border-radius: 5px;
|
207
|
+
}
|
208
|
+
#publish-bar .sub-menu.visible {
|
209
|
+
visibility: visible;
|
210
|
+
}
|
211
|
+
#publish-bar .sub-menu li {
|
212
|
+
margin: 0 0 15px 0;
|
213
|
+
}
|
214
|
+
#publish-bar .yaml-block {
|
215
|
+
display: inline-block;
|
216
|
+
}
|
217
|
+
#publish-bar .yaml-block .button {
|
218
|
+
cursor: pointer;
|
219
|
+
}
|
220
|
+
#publish-bar .yaml-block .arrow-box {
|
221
|
+
position: relative;
|
222
|
+
background: #aaa;
|
223
|
+
border: 2px solid #444444;
|
224
|
+
}
|
225
|
+
#publish-bar .yaml-block .arrow-box:after, #publish-bar .yaml-block .arrow-box:before {
|
226
|
+
top: 100%;
|
227
|
+
border: solid transparent;
|
228
|
+
content: " ";
|
229
|
+
height: 0;
|
230
|
+
width: 0;
|
231
|
+
position: absolute;
|
232
|
+
pointer-events: none;
|
233
|
+
}
|
234
|
+
#publish-bar .yaml-block .arrow-box:after {
|
235
|
+
border-color: rgba(119, 119, 119, 0);
|
236
|
+
border-top-color: #aaa;
|
237
|
+
border-width: 10px;
|
238
|
+
left: 50%;
|
239
|
+
margin-left: -10px;
|
240
|
+
}
|
241
|
+
#publish-bar .yaml-block .arrow-box:before {
|
242
|
+
border-color: rgba(68, 68, 68, 0);
|
243
|
+
border-top-color: #444444;
|
244
|
+
border-width: 13px;
|
245
|
+
left: 50%;
|
246
|
+
margin-left: -13px;
|
247
|
+
}
|
248
|
+
#publish-bar .yaml-block .yaml-table {
|
249
|
+
position: absolute;
|
250
|
+
background-color: #fff;
|
251
|
+
bottom: 10px;
|
252
|
+
left: -60px;
|
253
|
+
float: left;
|
254
|
+
background-color: #aaa;
|
255
|
+
display: none;
|
256
|
+
-webkit-border-radius: 2px;
|
257
|
+
-moz-border-radius: 2px;
|
258
|
+
-ms-border-radius: 2px;
|
259
|
+
-o-border-radius: 2px;
|
260
|
+
border-radius: 2px;
|
261
|
+
padding: 0px;
|
262
|
+
}
|
263
|
+
#publish-bar .yaml-block .yaml-table .yaml-table-inner {
|
264
|
+
background-color: #fff;
|
265
|
+
margin: 1px;
|
266
|
+
border: 1px solid rgba(68, 68, 68, 0.4);
|
267
|
+
}
|
268
|
+
#publish-bar .yaml-block .yaml-table ul {
|
269
|
+
margin: 0;
|
270
|
+
padding: 0;
|
271
|
+
}
|
272
|
+
#publish-bar .yaml-block .yaml-table ul li .key input, #publish-bar .yaml-block .yaml-table ul li .value input {
|
273
|
+
width: 90px;
|
274
|
+
border: 0 none;
|
275
|
+
margin: 0;
|
276
|
+
padding: 0;
|
277
|
+
color: #333;
|
278
|
+
font-family: 'Titillium Web', sans-serif;
|
279
|
+
font-size: 14px;
|
280
|
+
padding-left: 10px;
|
281
|
+
}
|
282
|
+
#publish-bar .yaml-block .yaml-table ul li .key, #publish-bar .yaml-block .yaml-table ul li .value {
|
283
|
+
border-bottom: 1px solid #777;
|
284
|
+
margin: 0;
|
285
|
+
padding: 0;
|
286
|
+
padding-bottom: 2px;
|
287
|
+
display: inline-block;
|
288
|
+
}
|
289
|
+
#publish-bar .yaml-block .yaml-table ul li .key {
|
290
|
+
border-right: 1px solid #777;
|
291
|
+
}
|
292
|
+
#publish-bar .yaml-block .yaml-table ul li .value {
|
293
|
+
margin-left: -3px;
|
294
|
+
}
|
295
|
+
#publish-bar .yaml-block .yaml-table ul li .value input {
|
296
|
+
width: 250px;
|
297
|
+
}
|
298
|
+
#publish-bar .yaml-block .yaml-table ul li:last-child .key, #publish-bar .yaml-block .yaml-table ul li:last-child .value {
|
299
|
+
border-bottom: 0 none;
|
300
|
+
}
|
301
|
+
#publish-bar .yaml-block .yaml-table ul li.add-yaml-entry {
|
302
|
+
color: #fff;
|
303
|
+
text-shadow: 0px 0px 5px #000;
|
304
|
+
background-color: #aaa;
|
305
|
+
font-size: 14px;
|
306
|
+
line-height: 20px;
|
307
|
+
cursor: pointer;
|
308
|
+
}
|
309
|
+
#publish-bar .yaml-block .yaml-table ul li.add-yaml-entry:hover {
|
310
|
+
text-shadow: 0px 0px 20px #000;
|
311
|
+
}
|
312
|
+
|
313
|
+
#publish-bar input[type=submit],
|
314
|
+
#publish-bar a,
|
315
|
+
.button {
|
316
|
+
display: inline-block;
|
317
|
+
background: #000;
|
318
|
+
padding: 8px 12px;
|
319
|
+
font-weight: bold;
|
320
|
+
border: none;
|
321
|
+
color: #fff;
|
322
|
+
border-radius: 5px;
|
323
|
+
-moz-border-radius: 5px;
|
324
|
+
-webkit-border-radius: 5px;
|
325
|
+
-webkit-appearance: none;
|
326
|
+
}
|
327
|
+
@media only screen and (max-device-width: 480px) {
|
328
|
+
#publish-bar input[type=submit],
|
329
|
+
#publish-bar a,
|
330
|
+
.button {
|
331
|
+
padding: 2px 10px;
|
332
|
+
font-size: 12px;
|
333
|
+
}
|
334
|
+
}
|
335
|
+
|
336
|
+
@media only screen and (max-device-width: 480px) {
|
337
|
+
#publish-bar input[type=submit] {
|
338
|
+
padding-top: 5px;
|
339
|
+
padding-bottom: 5px;
|
340
|
+
margin-top: -1px;
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
344
|
+
.button.secondary {
|
345
|
+
padding: 0 5px;
|
346
|
+
background: #aaa;
|
347
|
+
font-size: 12px;
|
348
|
+
}
|
349
|
+
|
350
|
+
#publish-bar input[type=submit]:hover,
|
351
|
+
#publish-bar a:hover,
|
352
|
+
.col h1 a:hover,
|
353
|
+
.col h2 a:hover,
|
354
|
+
.button:hover,
|
355
|
+
.button.secondary:hover {
|
356
|
+
background: red;
|
357
|
+
color: #fff;
|
358
|
+
}
|
359
|
+
|
360
|
+
.button.space-top {
|
361
|
+
margin-top: 100px;
|
362
|
+
}
|
363
|
+
|
364
|
+
.left {
|
365
|
+
float: left;
|
366
|
+
}
|
367
|
+
|
368
|
+
.right {
|
369
|
+
float: right;
|
370
|
+
}
|
371
|
+
|
372
|
+
.actions {
|
373
|
+
position: absolute;
|
374
|
+
top: 0;
|
375
|
+
right: -60px;
|
376
|
+
font-size: 12px;
|
377
|
+
margin: 0;
|
378
|
+
padding: 0;
|
379
|
+
}
|
380
|
+
|
381
|
+
.actions li {
|
382
|
+
display: inline-block;
|
383
|
+
margin: 0 10px 0 0;
|
384
|
+
}
|
385
|
+
|
386
|
+
label {
|
387
|
+
font-size: 16px;
|
388
|
+
color: #fff;
|
389
|
+
font-weight: bold;
|
390
|
+
margin: 0 8px 0 0;
|
391
|
+
}
|
392
|
+
|
393
|
+
.admin-links {
|
394
|
+
position: absolute;
|
395
|
+
text-align: right;
|
396
|
+
top: 18px;
|
397
|
+
right: 20px;
|
398
|
+
margin: 0;
|
399
|
+
}
|
400
|
+
.admin-links li {
|
401
|
+
float: left;
|
402
|
+
margin-left: 6px;
|
403
|
+
}
|
404
|
+
.admin-links a {
|
405
|
+
float: left;
|
406
|
+
}
|
407
|
+
|
408
|
+
.notice {
|
409
|
+
position: absolute;
|
410
|
+
top: 0;
|
411
|
+
background: lightYellow;
|
412
|
+
width: 100%;
|
413
|
+
display: block;
|
414
|
+
text-align: center;
|
415
|
+
padding: 3px 0;
|
416
|
+
font-size: 12px;
|
417
|
+
}
|
418
|
+
|
419
|
+
body.posts.edit #admin,
|
420
|
+
body.posts.new #admin {
|
421
|
+
width: 100%;
|
422
|
+
}
|
423
|
+
|
424
|
+
#admin {
|
425
|
+
width: 808px;
|
426
|
+
margin: 0 auto;
|
427
|
+
position: relative;
|
428
|
+
}
|
429
|
+
@media only screen and (max-device-width: 480px) {
|
430
|
+
#admin {
|
431
|
+
width: 320px;
|
432
|
+
}
|
433
|
+
}
|
434
|
+
#admin .draft-options {
|
435
|
+
display: inline-block;
|
436
|
+
border: 3px solid #000;
|
437
|
+
border-radius: 5px;
|
438
|
+
padding: 1px;
|
439
|
+
}
|
440
|
+
@media only screen and (max-device-width: 480px) {
|
441
|
+
#admin .draft-options {
|
442
|
+
display: none;
|
443
|
+
}
|
444
|
+
}
|
445
|
+
#admin .draft-options a {
|
446
|
+
font-size: 15px;
|
447
|
+
padding: 4px 10px;
|
448
|
+
background-color: transparent;
|
449
|
+
color: #000;
|
450
|
+
border-radius: 4px;
|
451
|
+
}
|
452
|
+
#admin .draft-options a.selected, #admin .draft-options a:hover {
|
453
|
+
background-color: #000;
|
454
|
+
color: #fff;
|
455
|
+
}
|
456
|
+
#admin .draft-options a.override-select {
|
457
|
+
background-color: inherit;
|
458
|
+
color: #000;
|
459
|
+
}
|
460
|
+
#admin #save-button {
|
461
|
+
width: 90px;
|
462
|
+
}
|
463
|
+
#admin #save-button.saved {
|
464
|
+
color: #999;
|
465
|
+
}
|
466
|
+
#admin #save-button.saved:hover {
|
467
|
+
cursor: normal;
|
468
|
+
}
|
469
|
+
#admin #drafts {
|
470
|
+
float: left;
|
471
|
+
border: 4px solid #000;
|
472
|
+
border-top: none;
|
473
|
+
background: #fff;
|
474
|
+
margin: 0 0 20px 0;
|
475
|
+
padding-top: 10px;
|
476
|
+
}
|
477
|
+
#admin #drafts form {
|
478
|
+
margin: 20px 0 20px -20px;
|
479
|
+
padding: 0 0 0 20px;
|
480
|
+
border-left: 4px solid lightblue;
|
481
|
+
}
|
482
|
+
#admin #drafts #post-title {
|
483
|
+
width: 350px;
|
484
|
+
font-size: 16px;
|
485
|
+
font-weight: 400;
|
486
|
+
margin: 0;
|
487
|
+
border-bottom: 1px solid #ddd;
|
488
|
+
}
|
489
|
+
@media only screen and (max-device-width: 480px) {
|
490
|
+
#admin #drafts #post-title {
|
491
|
+
width: 260px;
|
492
|
+
margin-left: -5px;
|
493
|
+
}
|
494
|
+
}
|
495
|
+
#admin #published {
|
496
|
+
float: right;
|
497
|
+
}
|
498
|
+
#admin #published h2 {
|
499
|
+
color: #999;
|
500
|
+
}
|
501
|
+
#admin #published h2 a {
|
502
|
+
margin-top: -2px;
|
503
|
+
}
|
504
|
+
#admin #published h3 a {
|
505
|
+
color: #999;
|
506
|
+
}
|
507
|
+
@media only screen and (max-device-width: 480px) {
|
508
|
+
#admin #published {
|
509
|
+
float: none;
|
510
|
+
display: block;
|
511
|
+
}
|
512
|
+
}
|
513
|
+
#admin .col h1,
|
514
|
+
#admin .col h2 {
|
515
|
+
position: relative;
|
516
|
+
text-transform: uppercase;
|
517
|
+
}
|
518
|
+
@media only screen and (max-device-width: 480px) {
|
519
|
+
#admin .col h1 {
|
520
|
+
margin-top: 0;
|
521
|
+
}
|
522
|
+
}
|
523
|
+
#admin .col h1 a,
|
524
|
+
#admin .col h2 a {
|
525
|
+
position: absolute;
|
526
|
+
top: 0;
|
527
|
+
right: 0;
|
528
|
+
font-size: 12px;
|
529
|
+
padding: 2px 10px;
|
530
|
+
line-height: 2.7em;
|
531
|
+
margin: 5px 0 0;
|
532
|
+
}
|
533
|
+
#admin .col {
|
534
|
+
width: 360px;
|
535
|
+
padding: 20px;
|
536
|
+
}
|
537
|
+
@media only screen and (max-device-width: 480px) {
|
538
|
+
#admin .col {
|
539
|
+
width: 272px;
|
540
|
+
}
|
541
|
+
}
|
542
|
+
#admin .col h2 a {
|
543
|
+
background: #999;
|
544
|
+
}
|
545
|
+
#admin .col h2 a:hover {
|
546
|
+
background: red;
|
547
|
+
}
|
548
|
+
#admin .col ul {
|
549
|
+
padding: 0;
|
550
|
+
}
|
551
|
+
#admin .col ul li {
|
552
|
+
border-bottom: 1px solid #ddd;
|
553
|
+
padding: 15px 0;
|
554
|
+
position: relative;
|
555
|
+
}
|
556
|
+
#admin .col ul li:hover .links {
|
557
|
+
visibility: visible;
|
558
|
+
}
|
559
|
+
#admin .col ul li .links {
|
560
|
+
position: absolute;
|
561
|
+
right: 0;
|
562
|
+
top: 14px;
|
563
|
+
background: #fff;
|
564
|
+
padding: 1px 8px;
|
565
|
+
visibility: hidden;
|
566
|
+
}
|
567
|
+
#admin .col ul li .links a {
|
568
|
+
color: #999;
|
569
|
+
border-radius: 5px;
|
570
|
+
-moz-border-radius: 5px;
|
571
|
+
-webkit-border-radius: 5px;
|
572
|
+
}
|
573
|
+
#admin .col ul li .links a:hover {
|
574
|
+
color: red;
|
575
|
+
}
|
576
|
+
#admin .col ul li h3 {
|
577
|
+
margin: 0;
|
578
|
+
font-size: 16px;
|
579
|
+
max-width: 100%;
|
580
|
+
text-overflow: ellipsis;
|
581
|
+
overflow: hidden;
|
582
|
+
}
|
583
|
+
#admin .col ul li h3 a {
|
584
|
+
border: none;
|
585
|
+
}
|
586
|
+
#admin textarea, #admin pre {
|
587
|
+
margin: 0;
|
588
|
+
padding: 0;
|
589
|
+
outline: 0;
|
590
|
+
border: 0;
|
591
|
+
}
|
592
|
+
#admin .expandingArea > textarea,
|
593
|
+
#admin .expandingArea > pre {
|
594
|
+
background: transparent;
|
595
|
+
white-space: pre-wrap;
|
596
|
+
word-wrap: break-word;
|
597
|
+
}
|
598
|
+
#admin .expandingArea > textarea {
|
599
|
+
/* The border-box box model is used to allow
|
600
|
+
* padding whilst still keeping the overall width
|
601
|
+
* at exactly that of the containing element.
|
602
|
+
*/
|
603
|
+
-webkit-box-sizing: border-box;
|
604
|
+
-moz-box-sizing: border-box;
|
605
|
+
-ms-box-sizing: border-box;
|
606
|
+
box-sizing: border-box;
|
607
|
+
width: 100%;
|
608
|
+
}
|
609
|
+
#admin .expandingArea.active > textarea {
|
610
|
+
resize: none;
|
611
|
+
}
|
612
|
+
#admin .expandingArea > pre {
|
613
|
+
display: none;
|
614
|
+
}
|
615
|
+
#admin .expandingArea.active > pre {
|
616
|
+
display: block;
|
617
|
+
/* Hide the text; just using it for sizing */
|
618
|
+
visibility: hidden;
|
619
|
+
}
|
620
|
+
|
621
|
+
fieldset.markdown {
|
622
|
+
position: relative;
|
623
|
+
border: none;
|
624
|
+
margin: 0;
|
625
|
+
padding: 0;
|
626
|
+
}
|
627
|
+
|
628
|
+
#split {
|
629
|
+
width: 960px;
|
630
|
+
margin: 0 auto;
|
631
|
+
}
|
632
|
+
#split #post-editor {
|
633
|
+
width: 960px;
|
634
|
+
float: left;
|
635
|
+
}
|
636
|
+
@media only screen and (max-device-width: 480px) {
|
637
|
+
#split #post-editor {
|
638
|
+
width: 310px;
|
639
|
+
padding: 5px;
|
640
|
+
}
|
641
|
+
}
|
642
|
+
#split #fullscreen {
|
643
|
+
float: right;
|
644
|
+
position: relative;
|
645
|
+
top: 35px;
|
646
|
+
border: 0 none;
|
647
|
+
}
|
648
|
+
@media only screen and (max-device-width: 480px) {
|
649
|
+
#split #fullscreen {
|
650
|
+
display: none;
|
651
|
+
}
|
652
|
+
}
|
653
|
+
|
654
|
+
.fullScreen #fullscreen {
|
655
|
+
visibility: hidden;
|
656
|
+
}
|
657
|
+
|
658
|
+
.markdown:before {
|
659
|
+
display: block;
|
660
|
+
content: "";
|
661
|
+
width: 39px;
|
662
|
+
height: 24px;
|
663
|
+
position: absolute;
|
664
|
+
top: 4px;
|
665
|
+
left: -60px;
|
666
|
+
background: url(/assets/markdown.png) no-repeat top left;
|
667
|
+
}
|
668
|
+
|
669
|
+
#text-title {
|
670
|
+
margin: 23px 0 0 0;
|
671
|
+
}
|
672
|
+
@media only screen and (max-device-width: 480px) {
|
673
|
+
#text-title {
|
674
|
+
margin: 0;
|
675
|
+
}
|
676
|
+
}
|
677
|
+
|
678
|
+
#text-content {
|
679
|
+
margin-top: -25px;
|
680
|
+
}
|
681
|
+
@media only screen and (max-device-width: 480px) {
|
682
|
+
#text-content {
|
683
|
+
margin-top: -45px;
|
684
|
+
}
|
685
|
+
}
|
686
|
+
|
687
|
+
#post-title {
|
688
|
+
width: 100%;
|
689
|
+
border: none;
|
690
|
+
background: none;
|
691
|
+
line-height: 45px;
|
692
|
+
}
|
693
|
+
|
694
|
+
#post-content {
|
695
|
+
border: none;
|
696
|
+
width: 100%;
|
697
|
+
position: relative;
|
698
|
+
margin: 0;
|
699
|
+
resize: none;
|
700
|
+
font-size: 20px;
|
701
|
+
line-height: 30px;
|
702
|
+
}
|
703
|
+
@media only screen and (max-device-width: 480px) {
|
704
|
+
#post-content {
|
705
|
+
font-size: 15px;
|
706
|
+
line-height: 20px;
|
707
|
+
}
|
708
|
+
}
|
709
|
+
#post-content.scrolled {
|
710
|
+
border-top: 1px solid rgba(30, 30, 30, 0.1);
|
711
|
+
}
|
712
|
+
|
713
|
+
textarea#post-title {
|
714
|
+
resize: none;
|
715
|
+
font-family: 'Asap', sans-serif;
|
716
|
+
font-size: 40px;
|
717
|
+
font-weight: normal;
|
718
|
+
}
|
719
|
+
@media only screen and (max-device-width: 480px) {
|
720
|
+
textarea#post-title {
|
721
|
+
font-size: 25px;
|
722
|
+
}
|
723
|
+
}
|
724
|
+
|
725
|
+
form .permalink {
|
726
|
+
position: absolute;
|
727
|
+
left: -34px;
|
728
|
+
top: 12px;
|
729
|
+
border: none;
|
730
|
+
color: #ddd;
|
731
|
+
}
|
732
|
+
|
733
|
+
.admin-view {
|
734
|
+
font-size: 11px;
|
735
|
+
margin: 0 10px 2px 0;
|
736
|
+
font-weight: 900;
|
737
|
+
text-transform: uppercase;
|
738
|
+
}
|
739
|
+
|
740
|
+
nav.pagination {
|
741
|
+
text-align: right;
|
742
|
+
font-size: 16px;
|
743
|
+
font-weight: 900;
|
744
|
+
text-transform: uppercase;
|
745
|
+
margin: 0;
|
746
|
+
padding: 0;
|
747
|
+
}
|
748
|
+
|
749
|
+
nav.pagination a {
|
750
|
+
margin-left: 10px;
|
751
|
+
}
|
752
|
+
|
753
|
+
body {
|
754
|
+
margin: 0;
|
755
|
+
}
|
756
|
+
|
757
|
+
.settings .settings-bd {
|
758
|
+
border: 4px solid #000;
|
759
|
+
border-top: none;
|
760
|
+
background: #fff;
|
761
|
+
margin: 0 auto;
|
762
|
+
padding: 10px 20px;
|
763
|
+
width: 760px;
|
764
|
+
}
|
765
|
+
.settings .admin-btn {
|
766
|
+
float: right;
|
767
|
+
margin-top: 30px;
|
768
|
+
}
|
769
|
+
.settings .left-col {
|
770
|
+
display: inline-block;
|
771
|
+
width: 350px;
|
772
|
+
}
|
773
|
+
|
774
|
+
#publish-bar input[type=submit].post-saving {
|
775
|
+
background: #40A4FB;
|
776
|
+
}
|
777
|
+
|
778
|
+
@media only screen and (max-device-width: 480px) {
|
779
|
+
#publish-bar .delete-bar, #publish-bar #draft_label {
|
780
|
+
display: none;
|
781
|
+
}
|
782
|
+
}
|