Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# v0.2.2
## 12/15/2018
## mm/dd/2018

1. [](#new)
* Added translation
1. [](#improved)
* Use Codemirror for Inline CSS

Expand Down
25 changes: 13 additions & 12 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Custom CSS
version: 0.2.1
version: 0.2.2
description: Adds some custom CSS to your Grav site
icon: plug
author:
Expand All @@ -16,32 +16,33 @@ form:
fields:
enabled:
type: toggle
label: Plugin status
label: PLUGIN_ADMIN.PLUGIN_STATUS
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

css_inline:
type: editor
codemirror:
mode: css
label: Inline CSS
help: CSS that will be added inline to every page
label: PLUGIN_CUSTOM_CSS.INLINE_CSS
help: PLUGIN_CUSTOM_CSS.INLINE_CSS_HELP

css_files:
type: list
label: CSS Files
help: CSS Files that will be loaded on every page. Use relative or absolute URLs
label: PLUGIN_CUSTOM_CSS.CSS_FILES
help: PLUGIN_CUSTOM_CSS.CSS_FILES_HELP
fields:
.path:
type: text
label: File path
help: Relative to web root
label: PLUGIN_CUSTOM_CSS.CSS_FILES_PATH
help: PLUGIN_CUSTOM_CSS.CSS_FILES_PATH_HELP
.priority:
type: int
label: Priority (0=Default)
help: Lower means later inclusion. Negative value to add this file after the other files (that come with the theme)
label: PLUGIN_CUSTOM_CSS.CSS_FILES_PATH_PRIORITY
help: PLUGIN_CUSTOM_CSS.CSS_FILES_PATH_PRIORITY_HELP
default: 0
20 changes: 20 additions & 0 deletions languages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
en:
PLUGIN_CUSTOM_CSS:
INLINE_CSS: "Inline CSS"
INLINE_CSS_HELP: "CSS that will be added inline to every page"
CSS_FILES: "CSS Files"
CSS_FILES_HELP: "CSS Files that will be loaded on every page. Use relative or absolute URLs"
CSS_FILES_PATH: "File path"
CSS_FILES_PATH_HELP: "Relative to web root"
CSS_FILES_PATH_PRIORITY: "Priority (0=Default)"
CSS_FILES_PATH_PRIORITY_HELP: "Lower means later inclusion. Negative value to add this file after the other files (that come with the theme)"
ru:
PLUGIN_CUSTOM_CSS:
INLINE_CSS: "Встроенный CSS"
INLINE_CSS_HELP: "CSS код, который будет добавлен на каждой странице"
CSS_FILES: "CSS файлы"
CSS_FILES_HELP: "CSS файлы, которые будут загружаться на каждой странице. Используйте относительные или абсолютные URL"
CSS_FILES_PATH: "Путь к файлу"
CSS_FILES_PATH_HELP: "Относительно корня"
CSS_FILES_PATH_PRIORITY: "Приоритет (0=По умолчанию)"
CSS_FILES_PATH_PRIORITY_HELP: "Меньше - файл подключается позже. Отрицательное значение для подключения этого файла после других файлов (которые поставляются с темой)"