diff --git a/_assets/css/styles.css b/_assets/css/styles.css index eb1196a2..e921b8c2 100644 --- a/_assets/css/styles.css +++ b/_assets/css/styles.css @@ -242,12 +242,16 @@ fieldset h3, .action { display: inline-block; cursor: pointer; - -webkit-transition: 0.2s ease all; transition: 0.2s ease all; border: 0; margin: 0; color: #546E7A; border-radius: 50%; + background: transparent; + padding: 0; + box-shadow: 0 0 0 0; + vertical-align: middle; + text-align: left; } .action.disabled { @@ -262,7 +266,7 @@ fieldset h3, border-radius: 50%; } -.action:hover i { +.action:hover { background-color: rgba(0, 0, 0, .1); } @@ -395,6 +399,30 @@ header>div div { display: block; } +/* SIDEBAR */ + +#sidebar { + position: fixed; + left: 0; + width: 20%; +} +#sidebar .action { + width: 100%; + display: block; + border-radius: 0; + font-size: 1.1em; + padding: .5em; +} + +#sidebar .action > * { + vertical-align: middle; +} + +main { + width: 78%; + margin-left: 20%; +} + /* * * * * * * * * * * * * * * * * TOP BAR * @@ -791,9 +819,9 @@ header>div div { #listing.list .item { width: 100%; margin: 0; - border: 0; - border-bottom: 1px solid rgba(0, 0, 0, 0.1); + border: 1px solid rgba(0, 0, 0, 0.1); padding: 1em; + border-top: 0; } #listing.list h2 { @@ -840,13 +868,15 @@ header>div div { #listing.list .item.header { display: flex !important; - background: #fafafa; + background: #f8f8f8; position: fixed; - width: 100%; + width: 78%; top: 7.8em; - left: 0; + left: 20%; z-index: 999; padding: .85em; + border: 0; + border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #listing.list .item.header>div:first-child { diff --git a/_assets/templates/actions.tmpl b/_assets/templates/actions.tmpl new file mode 100644 index 00000000..6bcecf1a --- /dev/null +++ b/_assets/templates/actions.tmpl @@ -0,0 +1,91 @@ +{{ define "right-side-actions" }} + {{- if .IsDir }} + + {{- if eq .Display "mosaic" }}view_list{{ else }}view_module{{ end }} + Switch view + + + + {{- end }} + + {{- if and (.User.AllowNew) (.IsDir) }} + + {{- end }} + + {{- if and .User.AllowEdit (not .IsDir) }} + + {{- end }} + + + + +{{ end }} + +{{ define "left-side-actions" }} + {{- if and (not .IsDir) (.User.AllowEdit) }} + {{- if .Editor}} + + {{- if eq .Data.Mode "markdown" }} + + {{- end }} + + {{- if eq .Data.Visual true }} + + {{- end }} + + {{/* end if editor */}} + {{- end }} + + + + {{/* end if not dir and AllowEdit */}} + {{- end }} + + {{- if and .IsDir .User.AllowEdit }} + + + + + + {{- end }} +{{ end }} \ No newline at end of file diff --git a/_assets/templates/base.tmpl b/_assets/templates/base.tmpl index daa9ef0d..fec41f43 100644 --- a/_assets/templates/base.tmpl +++ b/_assets/templates/base.tmpl @@ -62,101 +62,15 @@