commit 412875b25bf9d6d5d258ccf94aed972a1e1d8198 Author: Joffrey JAFFEUX Date: Tue May 14 11:18:12 2019 +0200 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c94d134 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.discourse-site +HELP diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..42b9832 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 joffreyjaffeux + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/about.json b/about.json new file mode 100644 index 0000000..2ed060a --- /dev/null +++ b/about.json @@ -0,0 +1,5 @@ +{ + "name": "discourse-placeholder-theme-component", + "about_url": "https://github.com/discourse/discourse-placeholder-theme-component", + "license_url": "https://github.com/discourse/discourse-placeholder-theme-component/blob/master/LICENSE" +} diff --git a/common/common.scss b/common/common.scss new file mode 100644 index 0000000..6cd324e --- /dev/null +++ b/common/common.scss @@ -0,0 +1,39 @@ +.d-wrap[data-wrap=placeholder] { + padding: 0.5em; + border: 1px solid $primary-medium; + display: flex; + align-items: center; + justify-content: space-between; + + .discourse-placeholder-name { + width: 200px; + font-weight: 700; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + margin-right: 0.5em; + } + + .discourse-placeholder-value, + .discourse-placeholder-select { + box-sizing: border-box; + } + + .discourse-placeholder-value { + width: 100%; + padding: 0.5em; + line-height: $line-height-small; + color: $primary; + background-color: $secondary; + border: 1px solid $primary-medium; + } + + .discourse-placeholder-select { + width: 100%; + margin: 0.5em 0; + line-height: $line-height-small; + color: $primary; + background-color: $secondary; + border: 1px solid $primary-medium; + } +} diff --git a/common/header.html b/common/header.html new file mode 100644 index 0000000..c03f156 --- /dev/null +++ b/common/header.html @@ -0,0 +1,207 @@ +