mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
progresses
This commit is contained in:
parent
a397e89d20
commit
8879f22932
@ -37,7 +37,7 @@ module.exports = function(grunt) {
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: ['node_modules/font-awesome/fonts/**'],
|
||||
dest: 'assets/dist/public/fonts'
|
||||
dest: 'dist/public/fonts'
|
||||
}],
|
||||
},
|
||||
},
|
||||
@ -50,7 +50,7 @@ module.exports = function(grunt) {
|
||||
expand: true,
|
||||
cwd: 'temp/css/',
|
||||
src: ['*.css', '!*.min.css'],
|
||||
dest: 'assets/public/css/',
|
||||
dest: 'dist/public/css/',
|
||||
ext: '.min.css'
|
||||
}]
|
||||
}
|
||||
@ -69,7 +69,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
main: {
|
||||
files: {
|
||||
'assets/dist/public/js/app.min.js': ['src/js/**/*.js']
|
||||
'dist/public/js/app.min.js': ['src/js/**/*.js']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
assets/dist/public/css/main.min.css
vendored
2
assets/dist/public/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
2
assets/dist/public/js/app.min.js
vendored
2
assets/dist/public/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
13
assets/dist/templates/frontmatter.tmpl
vendored
13
assets/dist/templates/frontmatter.tmpl
vendored
@ -4,15 +4,20 @@
|
||||
{{ if or (eq $value.Type "object") (eq $value.Type "array") }}
|
||||
<fieldset id="{{ $value.Name }}" data-type="{{ $value.Type }}">
|
||||
<h3>{{ SplitCapitalize $value.Title }}</h3>
|
||||
<button class="delete" data-delete="{{ $value.Name }}">remove</button>
|
||||
{{ if (eq $value.Type "array") }}<div class="itens">{{ end }}{{ template "frontmatter" $value.Content }}{{ if (eq $value.Type "array") }}<button class="add">+</button></div>{{ end }}
|
||||
<span class="actions">
|
||||
<button class="add">+</button>
|
||||
<button class="delete">−</button>
|
||||
</span>
|
||||
{{ template "frontmatter" $value.Content }}
|
||||
</fieldset>
|
||||
{{ else }}
|
||||
|
||||
{{ if not (eq $value.Parent.Type "array") }}
|
||||
<div class="block" id="block-{{ $value.Name }}" data-content="{{ $value.Name }}">
|
||||
<label for="{{ $value.Name }}">{{ SplitCapitalize $value.Title }}</label>
|
||||
<button class="delete">remove</button>
|
||||
<span class="actions">
|
||||
<button class="delete">−</button>
|
||||
</span>
|
||||
|
||||
{{ end }}
|
||||
|
||||
@ -31,7 +36,7 @@
|
||||
{{ if not (eq $value.Parent.Type "array") }}</div>{{ end }}
|
||||
|
||||
{{ if eq $value.Parent.Type "array" }}
|
||||
<span class="actions"><button class="delete">×</button></span></div>
|
||||
<span class="actions"><button class="delete">−</button></span></div>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
@ -1,7 +1,7 @@
|
||||
body {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
color: #212121;
|
||||
background-color: #fff;
|
||||
background-color: #f5f5f5;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding-top: 3em;
|
||||
@ -60,11 +60,12 @@ body > nav {
|
||||
left: 0;
|
||||
height: 3em;
|
||||
width: 100%;
|
||||
background-color: #1E88E5;
|
||||
background-color: #0097A7;
|
||||
padding: 0 1em;
|
||||
box-sizing: border-box;
|
||||
z-index: 999;
|
||||
color: #eee;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
|
||||
body > nav ul {
|
||||
@ -116,7 +117,7 @@ body > nav ul li a:hover {
|
||||
/* FOOTER */
|
||||
|
||||
body > footer {
|
||||
background-color: #f5f5f5;
|
||||
font-size: .8em;
|
||||
text-align: center;
|
||||
padding: 1em 0;
|
||||
margin-top: 1em;
|
||||
@ -222,6 +223,7 @@ input[type="submit"] {
|
||||
color: #000;
|
||||
font-weight: normal;
|
||||
background-color: #FFEB3B;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
|
||||
-webkit-transition: .5s ease background-color;
|
||||
transition: .5s ease background-color;
|
||||
}
|
||||
@ -249,7 +251,6 @@ button.delete,
|
||||
button.rename {
|
||||
color: #fff;
|
||||
padding: 0.063em 0.375em;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
button.add {
|
||||
@ -261,21 +262,7 @@ button.add:hover {
|
||||
}
|
||||
|
||||
button.delete {
|
||||
background-color: #E53935;
|
||||
}
|
||||
|
||||
label + .delete,
|
||||
h3 + .delete {
|
||||
visibility: hidden;
|
||||
border-radius: .13em;
|
||||
padding: 0 .3em;
|
||||
font-size: .8em;
|
||||
border: 1px solid #D32F2F;
|
||||
}
|
||||
|
||||
.block:hover .delete,
|
||||
fieldset:hover .delete {
|
||||
visibility: visible;
|
||||
background-color: #F44336;
|
||||
}
|
||||
|
||||
button.delete:hover {
|
||||
@ -332,30 +319,34 @@ fieldset > .actions {
|
||||
}
|
||||
|
||||
.blocks {
|
||||
column-count: 2;
|
||||
-webkit-column-count: 4;
|
||||
-moz-column-count: 4;
|
||||
column-count: 4;
|
||||
-webkit-column-gap: 1em;
|
||||
-moz-column-gap: 1em;
|
||||
column-gap: 1em;
|
||||
}
|
||||
|
||||
.block,
|
||||
fieldset {
|
||||
display: inline-block;
|
||||
margin-bottom: .6em;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
||||
background-color: #fff;
|
||||
padding: 0.6em;
|
||||
box-sizing: border-box;
|
||||
margin: 0 0 1em;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.block label,
|
||||
fieldset label,
|
||||
fieldset h3 {
|
||||
font-weight: 700;
|
||||
display: block;
|
||||
font-size: 1em;
|
||||
margin: 0 0 .3em;
|
||||
color: #424242;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
margin-top: 0;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.block textarea {
|
||||
@ -367,40 +358,6 @@ color: #424242;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.block input,
|
||||
.block textarea,
|
||||
fieldset .itens {
|
||||
background-color: #fafafa;
|
||||
border: 1px solid #e2e2e2;
|
||||
border-radius: .2em;
|
||||
padding: .4em;
|
||||
color: #616161;
|
||||
}
|
||||
|
||||
div[data-type="array-item"],
|
||||
div[data-type="array-item"] + .add {
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
background-color: #2196F3;
|
||||
color: #E3F2FD;
|
||||
border-radius: .6em;
|
||||
margin-bottom: .2em;
|
||||
}
|
||||
|
||||
div[data-type="array-item"] input {
|
||||
padding: .2em .5em;
|
||||
}
|
||||
|
||||
div[data-type="array-item"] .actions {
|
||||
display: inline-block;
|
||||
padding: .2em
|
||||
}
|
||||
|
||||
div[data-type="array-item"] .delete {
|
||||
background-color: transparent;
|
||||
box-shadow: 0 0 0 0;
|
||||
}
|
||||
|
||||
input {
|
||||
border: 0;
|
||||
outline: 0;
|
||||
@ -413,8 +370,8 @@ input[type="submit"] {
|
||||
}
|
||||
|
||||
fieldset input {
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
width: calc(100% - 1.57em);
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
.complete .block[data-content="title"] {
|
||||
@ -707,11 +664,19 @@ fieldset input {
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
.blocks {
|
||||
-webkit-column-count: 3;
|
||||
-moz-column-count: 3;
|
||||
column-count: 3;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
.blocks {
|
||||
-webkit-column-count: 1;
|
||||
-moz-column-count: 1;
|
||||
column-count: 1;
|
||||
-webkit-column-count: 2;
|
||||
-moz-column-count: 2;
|
||||
column-count: 2;
|
||||
}
|
||||
body > nav span {
|
||||
display: none;
|
||||
@ -732,6 +697,11 @@ fieldset input {
|
||||
}
|
||||
|
||||
@media screen and (max-width: 350px) {
|
||||
.blocks {
|
||||
-webkit-column-count: 1;
|
||||
-moz-column-count: 1;
|
||||
column-count: 1;
|
||||
}
|
||||
.browse .actions {
|
||||
text-align: center;
|
||||
}
|
||||
|
2
hugo.go
2
hugo.go
@ -1,6 +1,6 @@
|
||||
//go:generate go get github.com/jteeuwen/go-bindata
|
||||
//go:generate go install github.com/jteeuwen/go-bindata/go-bindata
|
||||
//go:generate go-bindata -prefix assets/dist -pkg assets -o routes/assets/assets.go assets/dist/...
|
||||
//go:generate go-bindata -debug -prefix assets/dist -pkg assets -o routes/assets/assets.go assets/dist/...
|
||||
|
||||
// Package hugo makes the bridge between the static website generator Hugo
|
||||
// and the webserver Caddy, also providing an administrative user interface.
|
||||
|
Loading…
Reference in New Issue
Block a user