diff --git a/app/assets/css/app.css b/app/assets/css/app.css index e7137ffe6..713d9b3c2 100644 --- a/app/assets/css/app.css +++ b/app/assets/css/app.css @@ -87,7 +87,7 @@ body, .form-section-title { margin-top: 5px; - margin-bottom: 15px; + margin-bottom: 10px; color: var(--text-form-section-title-color); padding-left: 0; font-weight: 500; @@ -867,3 +867,18 @@ json-tree .branch-preview { margin-left: 5px; margin-right: 5px; } + +.web-editor { + background-color: var(--bg-webeditor-color); + border-radius: 8px; + padding: 10px; +} + +.web-editor a { + color: var(--text-link-color); +} + +.web-editor a:hover { + color: var(--text-link-hover-color); + text-decoration-line: underline; +} diff --git a/app/assets/css/theme.css b/app/assets/css/theme.css index 9d0859cfc..54ddd2086 100644 --- a/app/assets/css/theme.css +++ b/app/assets/css/theme.css @@ -161,6 +161,7 @@ --bg-searchbar: var(--ui-gray-2); --bg-inputbox: var(--ui-gray-2); --bg-dropdown-hover: var(--ui-gray-3); + --bg-webeditor-color: var(--ui-gray-3); --text-main-color: var(--grey-7); --text-body-color: var(--grey-6); @@ -298,8 +299,9 @@ --bg-navtabs-color: var(--grey-3); --bg-navtabs-hover-color: var(--grey-3); --bg-table-selected-color: var(--grey-3); - --bg-codemirror-color: var(--grey-2); - --bg-codemirror-gutters-color: var(--grey-2); + --bg-codemirror-color: var(--ui-gray-warm-11); + --bg-codemirror-gutters-color: var(--ui-gray-warm-8); + --bg-codemirror-selected-color: var(--ui-gray-warm-7); --bg-dropdown-menu-color: var(--grey-1); --bg-log-viewer-color: var(--grey-2); --bg-log-line-selected-color: var(--grey-3); @@ -319,7 +321,6 @@ --bg-multiselect-checkbox-color: var(--grey-3); --bg-panel-body-color: var(--grey-1); --bg-boxselector-wrapper-disabled-color: var(--grey-39); - --bg-codemirror-selected-color: var(--grey-3); --bg-sidebar-header-color: var(--grey-1); --bg-multiselect-color: var(--grey-1); --bg-daterangepicker-color: var(--grey-3); @@ -344,6 +345,7 @@ --bg-searchbar: var(--grey-1); --bg-inputbox: var(--grey-2); --bg-dropdown-hover: var(--grey-3); + --bg-webeditor-color: var(--ui-gray-warm-9); --text-main-color: var(--white-color); --text-body-color: var(--white-color); @@ -478,7 +480,7 @@ --bg-blocklist-item-selected-color: var(--black-color); --bg-input-group-addon-color: var(--grey-3); --bg-table-color: var(--black-color); - --bg-codemirror-gutters-color: var(--black-color); + --bg-codemirror-gutters-color: var(--ui-gray-warm-11); --bg-codemirror-color: var(--black-color); --bg-codemirror-selected-color: var(--grey-3); --bg-log-viewer-color: var(--black-color); @@ -526,6 +528,7 @@ --bg-inputbox: var(--black-color); --bg-searchbar: var(--black-color); --bg-dropdown-hover: var(--black-color); + --bg-webeditor-color: var(--ui-gray-warm-9); --text-main-color: var(--white-color); --text-body-color: var(--white-color); diff --git a/app/assets/css/vendor-override.css b/app/assets/css/vendor-override.css index 7d45c9856..0519029d7 100644 --- a/app/assets/css/vendor-override.css +++ b/app/assets/css/vendor-override.css @@ -163,12 +163,22 @@ code { .CodeMirror-gutters { background: var(--bg-codemirror-gutters-color); - border-right: 1px solid var(--border-codemirror-gutters-color); + border-right: 0px; +} + +.CodeMirror-linenumber { + text-align: left; +} + +.CodeMirror pre.CodeMirror-line, +.CodeMirror pre.CodeMirror-line-like { + padding: 0 20px; } .CodeMirror { background: var(--bg-codemirror-color); color: var(--text-codemirror-color); + border-radius: 8px; } .CodeMirror-selected { diff --git a/app/kubernetes/custom-templates/kube-create-custom-template-view/kube-create-custom-template-view.html b/app/kubernetes/custom-templates/kube-create-custom-template-view/kube-create-custom-template-view.html index 42867f936..b4a0188dc 100644 --- a/app/kubernetes/custom-templates/kube-create-custom-template-view/kube-create-custom-template-view.html +++ b/app/kubernetes/custom-templates/kube-create-custom-template-view/kube-create-custom-template-view.html @@ -21,11 +21,11 @@ placeholder="# Define or paste the content of your manifest file here" > -

Templates allow deploying any kind of Kubernetes resource (Deployment, Secret, ConfigMap...)

-

+

Templates allow deploying any kind of Kubernetes resource (Deployment, Secret, ConfigMap...)
+
You can get more information about Kubernetes file format in the official documentation. -

+
diff --git a/app/kubernetes/views/deploy/deploy.html b/app/kubernetes/views/deploy/deploy.html index ce112cb80..f988c9058 100644 --- a/app/kubernetes/views/deploy/deploy.html +++ b/app/kubernetes/views/deploy/deploy.html @@ -113,8 +113,8 @@ placeholder="# Define or paste the content of your manifest file here" > - -

+

+

Portainer uses Kompose to convert your Compose manifest to a Kubernetes compliant manifest. Be wary that not all the Compose format options are supported by Kompose at the moment. @@ -123,9 +123,9 @@ You can get more information about Compose file format in the official documentation.

- - -

+

+
+

This feature allows you to deploy any kind of Kubernetes resource in this environment (Deployment, Secret, ConfigMap...).

@@ -133,7 +133,7 @@ You can get more information about Kubernetes file format in the official documentation.

- +
diff --git a/app/portainer/components/form-components/web-editor-form/web-editor-form.html b/app/portainer/components/form-components/web-editor-form/web-editor-form.html index 9f77113c7..0222e3ec2 100644 --- a/app/portainer/components/form-components/web-editor-form/web-editor-form.html +++ b/app/portainer/components/form-components/web-editor-form/web-editor-form.html @@ -1,11 +1,13 @@ -
Web editor
-
- -
-
-
- +
+
Web editor
+
+
+
+
+
+ +