Upgraded EasyMDE and fixed CSS for preview lists
This commit is contained in:
parent
3b28783c86
commit
9cd5a0c156
10 changed files with 30 additions and 18 deletions
|
@ -123,6 +123,8 @@ a {
|
||||||
body {
|
body {
|
||||||
color: #000 !important;
|
color: #000 !important;
|
||||||
background-color: #f1f1f1;
|
background-color: #f1f1f1;
|
||||||
|
margin: 0;
|
||||||
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
@ -138,9 +140,12 @@ html {
|
||||||
box-sizing: inherit
|
box-sizing: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
.editor-preview-side ul {
|
||||||
margin: 0;
|
padding: 1.5em;
|
||||||
min-height: 100vh;
|
}
|
||||||
|
|
||||||
|
.editor-preview-side li input[type="checkbox"] {
|
||||||
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#overlay {
|
#overlay {
|
||||||
|
|
2
assets/static/easymde/easymde.min.css
vendored
2
assets/static/easymde/easymde.min.css
vendored
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* easymde v2.18.0
|
* easymde v2.20.0
|
||||||
* Copyright Jeroen Akkerman
|
* Copyright Jeroen Akkerman
|
||||||
* @link https://github.com/ionaru/easy-markdown-editor
|
* @link https://github.com/ionaru/easy-markdown-editor
|
||||||
* @license MIT
|
* @license MIT
|
||||||
|
|
4
assets/static/easymde/easymde.min.js
vendored
4
assets/static/easymde/easymde.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
const cacheVersion = "0.31"
|
const cacheVersion = "0.34"
|
||||||
const cacheName = "speedtech-brainminder"
|
const cacheName = "speedtech-brainminder"
|
||||||
const cacheFiles = [
|
const cacheFiles = [
|
||||||
'/static/bootstrap-icons/font/bootstrap-icons.min.css',
|
'/static/bootstrap-icons/font/bootstrap-icons.min.css',
|
||||||
|
@ -13,7 +13,6 @@ const cacheFiles = [
|
||||||
"/static/easymde/easymde.min.js",
|
"/static/easymde/easymde.min.js",
|
||||||
"/static/js/Sortable.min.js",
|
"/static/js/Sortable.min.js",
|
||||||
"/static/js/htmx/htmx.min.js",
|
"/static/js/htmx/htmx.min.js",
|
||||||
"/static/js/hyperscript.min.js",
|
|
||||||
"/static/js/handlebars.js",
|
"/static/js/handlebars.js",
|
||||||
"/static/js/templates.js",
|
"/static/js/templates.js",
|
||||||
"/static/js/slimselect.min.js",
|
"/static/js/slimselect.min.js",
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"short_name": "BrainMinder",
|
"short_name": "BrainMinder",
|
||||||
"start_url": "/",
|
"start_url": "/",
|
||||||
"scope": "/",
|
"scope": "/",
|
||||||
"display": "standalone",
|
"display": "fullscreen",
|
||||||
"background_color": "#2b5797",
|
"background_color": "#2b5797",
|
||||||
"theme_color": "#2b5797",
|
"theme_color": "#2b5797",
|
||||||
"orientation": "any",
|
"orientation": "any",
|
||||||
|
|
|
@ -4,7 +4,11 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" >
|
<meta charset="utf-8" >
|
||||||
<title>BrainMinder</title>
|
<title>BrainMinder</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width; initial-scale=1; viewport-fit=cover">
|
||||||
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<!-- possible content values: default, black or black-translucent -->
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
<link rel="manifest" href="/static/manifest.json" />
|
<link rel="manifest" href="/static/manifest.json" />
|
||||||
<link rel="stylesheet" href="/static/bootstrap-icons/font/bootstrap-icons.min.css" />
|
<link rel="stylesheet" href="/static/bootstrap-icons/font/bootstrap-icons.min.css" />
|
||||||
<link rel="stylesheet" href="/static/easymde/easymde.min.css" />
|
<link rel="stylesheet" href="/static/easymde/easymde.min.css" />
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" >
|
<meta charset="utf-8" >
|
||||||
<title>BrainMinder</title>
|
<title>BrainMinder</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width; initial-scale=1; viewport-fit=cover">
|
||||||
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<!-- possible content values: default, black or black-translucent -->
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
<link rel="manifest" href="/static/manifest.json">
|
<link rel="manifest" href="/static/manifest.json">
|
||||||
<link rel="stylesheet" href="/static/bootstrap-icons/font/bootstrap-icons.min.css" />
|
<link rel="stylesheet" href="/static/bootstrap-icons/font/bootstrap-icons.min.css" />
|
||||||
<link rel="stylesheet" href="/static/css/main.css" />
|
<link rel="stylesheet" href="/static/css/main.css" />
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" >
|
<meta charset="utf-8" >
|
||||||
<title>BrainMinder</title>
|
<title>BrainMinder</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width; initial-scale=1; viewport-fit=cover">
|
||||||
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<!-- possible content values: default, black or black-translucent -->
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
<link rel="manifest" href="/static/manifest.json">
|
<link rel="manifest" href="/static/manifest.json">
|
||||||
<link rel="stylesheet" href="/static/bootstrap-icons/font/bootstrap-icons.min.css" />
|
<link rel="stylesheet" href="/static/bootstrap-icons/font/bootstrap-icons.min.css" />
|
||||||
<link rel="stylesheet" href="/static/css/guest.css" />
|
<link rel="stylesheet" href="/static/css/guest.css" />
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"brainminder.speedtech.it/assets"
|
"brainminder.speedtech.it/assets"
|
||||||
|
|
||||||
"github.com/alexedwards/flow"
|
"github.com/alexedwards/flow"
|
||||||
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (app *application) routes() http.Handler {
|
func (app *application) routes() http.Handler {
|
||||||
|
|
4
go.mod
4
go.mod
|
@ -1,8 +1,6 @@
|
||||||
module brainminder.speedtech.it
|
module brainminder.speedtech.it
|
||||||
|
|
||||||
go 1.23
|
go 1.24
|
||||||
|
|
||||||
toolchain go1.23.0
|
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/alexedwards/flow v0.1.0
|
github.com/alexedwards/flow v0.1.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue